In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ . "$ScriptDir/../apps/builder/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # DibParser (Polyglot)                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── pwsh ────────────────────────────────────────────────────────────────────────

ls ~/.nuget/packages/argu



╭─[ 817.89ms - stdout ]────────────────────────────────────────────────────────╮

│                                                                              │

│     Directory: C:\Users\i574n\.nuget\packages\argu                           │

│                                                                              │

│ Mode                 LastWriteTime         Length[     │

│ 32;1m Name                                                                 │

│ ----                 -------------         ------ [      │

│ 32;1m----                                                                  │

│ d----          2023-05-17  3:38 PM                6.1.1               │

│ d----          2024-03-12  8:22 PM                6.1.4               │

│ d----          2024-01-29  5:12 PM                6.1.5               │

│ d----          2024-03-12  8:20 PM                6.2.0               │

│ d----          2024-02-23  6:50 PM                6.2.1               │

│ d----          2024-03-12  8:15 PM                6.2.2               │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsec.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsecCS.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FParsec



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## escapeCell (test)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline escapeCell input =

    input

    |> Sm.split "\n"

    |> Array.map (function

        | line when line |> Sm.starts_with "\\#!" || line |> Sm.starts_with 

"\\#r" ->

            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")

        | line -> line

    )

    |> Sm.concat "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



$"a{nl}\\#!magic{nl}b{nl}"

|> escapeCell

|> _assertEqual (

    $"a{nl}#!magic{nl}b{nl}"

)



╭─[ 81.16ms - stdout ]─────────────────────────────────────────────────────────╮

│ a                                                                            │

│ #!magic                                                                      │

│ b                                                                            │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicMarker                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicMarker : Parser<string, unit> = pstring "#!"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic"

|> run magicMarker

|> _assertEqual (

    Success ("#!", (), Position ("", 2, 1, 3))

)



╭─[ 72.63ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!                                                              │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 2                                                             │

│         Line: 1                                                              │

│         Column: 3                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"##!magic"

|> run magicMarker

|> _assertEqual (

    Failure (

        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 71.80ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│ ##!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicCommand                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicCommand =

    magicMarker

    >>. manyTill anyChar newline

    |>> (System.String.Concat >> Sm.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic



a"

|> run magicCommand

|> _assertEqual (

    Success ("magic", (), Position ("", 8, 2, 1))

)



╭─[ 48.45ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: magic                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 8                                                             │

│         Line: 2                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



" #!magic



a"

|> run magicCommand

|> _assertEqual (

    Failure (

        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 52.30ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│  #!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## content                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let content =

    (newline >>. magicMarker) <|> (eof >>. preturn "")

    |> attempt

    |> lookAhead

    |> manyTill anyChar

    |>> (System.String.Concat >> Sm.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run content

|> _assertEqual (

    Success ("#!magic





a", (), Position ("", 14, 7, 1))

)



╭─[ 43.14ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!magic                                                         │

│                                                                              │

│                                                                              │

│ a                                                                            │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Block =

    {

        magic : string

        content : string

    }



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let block =

    pipe2

        magicCommand

        content

        (fun magic content ->

            {

                magic = magic

                content = content

            })



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run block

|> _assertEqual (

    Success (

        { magic = "magic"; content = "a" },

        (),

        Position ("", 14, 7, 1)

    )

)



╭─[ 57.71ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: Block                                                           │

│         magic: magic                                                         │

│         content: a                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## blocks                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let blocks =

    skipMany newline

    >>. sepEndBy block (skipMany1 newline)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test





"#!magic1



a



\#!magic2



b



"

|> escapeCell

|> run blocks

|> _assertEqual (

    Success (

        [[

            { magic = "magic1"; content = "a" }

            { magic = "magic2"; content = "b" }

        ]],

        (),

        Position ("", 26, 9, 1)

    )

)



╭─[ 64.96ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: FSharpList<Block>                                               │

│         - magic: magic1                                                      │

│           content: a                                                         │

│         - magic: magic2                                                      │

│           content: b                                                         │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 26                                                            │

│         Line: 9                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Output                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Output =

    | Fs

    | Md

    | Spi

    | Spir



let inline kernelOutputs magic =

    match magic with

    | "fsharp" -> [[ Fs ]]

    | "markdown" -> [[ Md ]]

    | "spiral" -> [[ Spi; Spir ]]

    | _ -> [[]]



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlock                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlock output (block : Block) =

    match output, block with

    | output, { magic = "markdown"; content = content } ->

        let markdownComment =

            match output with

            | Spi | Spir -> "// // "

            | Fs -> "/// "

            | _ -> ""

        content

        |> Sm.split "\n"

        |> Array.map (Sm.trim_end [[||]])

        |> Array.filter (Sm.ends_with " (test)" >> not)

        |> Array.map (function

            | "" -> markdownComment |> Sm.trim

            | line -> System.Text.RegularExpressions.Regex.Replace (line, 

"^\\s*", $"$&{markdownComment}")

        )

        |> Sm.concat "\n"

    | Fs, { magic = "fsharp"; content = content } ->

        let trimmedContent = content |> Sm.trim

        if trimmedContent |> Sm.starts_with "//// test" || trimmedContent |> 

Sm.starts_with "//// ignore"

        then ""

        else

            content

            |> Sm.split "\n"

            |> Array.filter (Sm.trim_start [[||]] >> Sm.starts_with "#r" >> not)

            |> Sm.concat "\n"

    | (Spi | Spir), { magic = "spiral"; content = content } ->

        let trimmedContent = content |> Sm.trim

        if trimmedContent |> Sm.starts_with "// // test" || trimmedContent |> 

Sm.starts_with "// // ignore"

        then ""

        else content

    | _ -> ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



    b



c





\#!markdown





c





\#!fsharp





let a = 1"

|> escapeCell

|> run block

|> function

    | Success (block, _, _) -> formatBlock Fs block

    | Failure (msg, _, _) -> failwith msg

|> _assertEqual "/// a

///

    /// b

///

/// c"



╭─[ 78.87ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│     /// b                                                                    │

│ ///                                                                          │

│ /// c                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlocks                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlocks output blocks =

    blocks

    |> List.map (formatBlock output)

    |> List.filter ((<>) "")

    |> Sm.concat "\n\n"

    |> fun s -> s + "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



b





\#!markdown





c





\#!fsharp





let a = 1



\#!markdown



d (test)



\#!fsharp



//// test



let a = 2



\#!markdown



e



\#!fsharp



let a = 3"

|> escapeCell

|> run blocks

|> function

    | Success (blocks, _, _) -> formatBlocks Fs blocks

    | Failure (msg, _, _) -> failwith msg

|> _assertEqual "/// a

///

/// b



/// c



let a = 1



/// e



let a = 3

"



╭─[ 73.35ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│ /// b                                                                        │

│                                                                              │

│ /// c                                                                        │

│                                                                              │

│ let a = 1                                                                    │

│                                                                              │

│ /// e                                                                        │

│                                                                              │

│ let a = 3                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parse                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parse output input =

    match run blocks input with

    | Success (blocks, _, _) ->

        let blocks =

            blocks

            |> List.filter (fun block ->

                block.magic |> kernelOutputs |> List.contains output || 

block.magic = "markdown"

            )



        match blocks with

        | { magic = "markdown"; content = content } :: _

            when output = Fs

            && content |> Sm.starts_with "# "

            && content |> Sm.ends_with ")"

            ->

            let inline indentBlock (block : Block) =

                { block with

                    content =

                        block.content

                        |> Sm.split "\n"

                        |> Array.fold

                            (fun (lines, isMultiline) line ->

                                let trimmedLine = line |> Sm.trim

                                if trimmedLine = ""

                                then "" :: lines, isMultiline

                                else

                                    let inline singleQuoteLine () =

                                        trimmedLine |> Seq.sumBy ((=) '"' >> 

System.Convert.ToInt32) = 1

                                        && trimmedLine |> Sm.contains @"'""'" |>

not

                                        && trimmedLine |> Sm.ends_with "{" |> 

not

                                        && trimmedLine |> Sm.ends_with "{|" |> 

not

                                        && trimmedLine |> Sm.starts_with "}" |> 

not

                                        && trimmedLine |> Sm.starts_with "|}" |>

not



                                    match isMultiline, trimmedLine |> 

Sm.split_string [[| $"{q}{q}{q}" |]] with

                                    | false, [[| _; _ |]] ->

                                        $"    {line}" :: lines, true



                                    | true, [[| _; _ |]] ->

                                        line :: lines, false



                                    | false, _ when singleQuoteLine () ->

                                        $"    {line}" :: lines, true



                                    | false, _ when line |> Sm.starts_with "#" 

&& block.magic = "fsharp" ->

                                        line :: lines, false



                                    | false, _ ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () && line |>

Sm.starts_with "    " ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () ->

                                        line :: lines, false



                                    | true, _ ->

                                        line :: lines, true

                            )

                            ([[]], false)

                        |> fst

                        |> List.rev

                        |> Sm.concat "\n"

                }



            let moduleName, namespaceName =

                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 

\((.*)\)$")

                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value



            let moduleBlock =

                {

                    magic = "fsharp"

                    content =

                        $"#if !INTERACTIVE

namespace {namespaceName}

#endif



module {moduleName} ="

                }



            blocks

            |> List.indexed

            |> List.fold

                (fun blocks (index, block) ->

                    match index with

                    | 0 -> blocks

                    | 1 -> indentBlock block :: moduleBlock :: blocks

                    | _ -> indentBlock block :: blocks

                )

                [[]]

            |> List.rev

        | _ -> blocks

        |> Result.Ok

    | Failure (errorMsg, _, _) -> Result.Error errorMsg



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example1 =

    $"""#!meta



{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":

"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}



\#!markdown



# TestModule (TestNamespace)



\#!fsharp



\#!import file.dib



\#!fsharp



\#r "nuget:Expecto"



\#!markdown



## ParserLibrary



\#!fsharp



open System



\#!markdown



## x (test)



\#!fsharp



//// ignore



let x = 1



\#!spiral



// // test



inl x = 0i32



\#!spiral



inl x = 0i32



\#!markdown



### TextInput



\#!fsharp



let str1 = "abc

def"



let str2 =

    "abc\

def"



let str3 =

    $"1{{

        1

    }}1"



let str4 =

    $"1{{({{|

        a = 1

    |}}).a}}1"



let str5 =

    "abc \

        def"



let x =

    match '"' with

    | '"' -> true

    | _ -> false



let long1 = {q}{q}{q}a{q}{q}{q}



let long2 =

    {q}{q}{q}

a

{q}{q}{q}



\#!fsharp



type Position =

    {{

#if INTERACTIVE

        line : string

#else

        line : int

#endif

        column : int

    }}"""

    |> escapeCell



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Fs

|> Result.toOption

|> Option.get

|> (formatBlocks Fs)

|> _assertEqual $"""#if !INTERACTIVE

namespace TestNamespace

#endif



module TestModule =



    /// ## ParserLibrary



    open System



    /// ### TextInput



    let str1 = "abc

def"



    let str2 =

        "abc\

def"



    let str3 =

        $"1{{

            1

        }}1"



    let str4 =

        $"1{{({{|

            a = 1

        |}}).a}}1"



    let str5 =

        "abc \

            def"



    let x =

        match '"' with

        | '"' -> true

        | _ -> false



    let long1 = {q}{q}{q}a{q}{q}{q}



    let long2 =

        {q}{q}{q}

a

{q}{q}{q}



    type Position =

        {{

#if INTERACTIVE

            line : string

#else

            line : int

#endif

            column : int

        }}

"""



╭─[ 234.23ms - stdout ]────────────────────────────────────────────────────────╮

│ #if !INTERACTIVE                                                             │

│ namespace TestNamespace                                                      │

│ #endif                                                                       │

│                                                                              │

│ module TestModule =                                                          │

│                                                                              │

│     /// ## ParserLibrary                                                     │

│                                                                              │

│     open System                                                              │

│                                                                              │

│     /// ### TextInput                                                        │

│                                                                              │

│     let str1 = "abc                                                          │

│ def"                                                                         │

│                                                                              │

│     let str2 =                                                               │

│         "abc\                                                                │

│ def"                                                                         │

│                                                                              │

│     let str3 =                                                               │

│         $"1{                                                                 │

│             1                                                                │

│         }1"                                                                  │

│                                                                              │

│     let str4 =                                                               │

│         $"1{({|                                                              │

│             a = 1                                                            │

│         |}).a}1"                                                             │

│                                                                              │

│     let str5 =                                                               │

│         "abc \                                                               │

│             def"                                                             │

│                                                                              │

│     let x =                                                                  │

│         match '"' with                                                       │

│         | '"' -> true                                                        │

│         | _ -> false                                                         │

│                                                                              │

│     let long1 = """a"""                                                      │

│                                                                              │

│     let long2 =                                                              │

│         """                                                                  │

│ a                                                                            │

│ """                                                                          │

│                                                                              │

│     type Position =                                                          │

│         {                                                                    │

│ #if INTERACTIVE                                                              │

│             line : string                                                    │

│ #else                                                                        │

│             line : int                                                       │

│ #endif                                                                       │

│             column : int                                                     │

│         }                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Md

|> Result.toOption

|> Option.get

|> (formatBlocks Md)

|> _assertEqual "# TestModule (TestNamespace)



## ParserLibrary



### TextInput

"



╭─[ 204.01ms - stdout ]────────────────────────────────────────────────────────╮

│ # TestModule (TestNamespace)                                                 │

│                                                                              │

│ ## ParserLibrary                                                             │

│                                                                              │

│ ### TextInput                                                                │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Spi

|> Result.toOption

|> Option.get

|> (formatBlocks Spi)

|> _assertEqual "// // # TestModule (TestNamespace)



// // ## ParserLibrary



inl x = 0i32



// // ### TextInput

"



╭─[ 205.04ms - stdout ]────────────────────────────────────────────────────────╮

│ // // # TestModule (TestNamespace)                                           │

│                                                                              │

│ // // ## ParserLibrary                                                       │

│                                                                              │

│ inl x = 0i32                                                                 │

│                                                                              │

│ // // ### TextInput                                                          │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parseDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseDibCode output file = async {

    let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"

    trace Debug (fun () -> "parseDibCode") getLocals

    let! input = file |> FileSystem.readAllTextAsync

    match parse output input with

    | Result.Ok blocks -> return blocks |> formatBlocks output

    | Result.Error msg -> return failwith msg

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeDibCode output path = async {

    let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"

    trace Debug (fun () -> "writeDibCode") getLocals

    let! result = parseDibCode output path

    let outputPath = path |> Sm.replace ".dib" $".{output |> string |> 

Sm.to_lower}"

    do! result |> FileSystem.writeAllTextAsync outputPath

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]

        File of file : string * Output



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | File _ -> nameof File



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Argu.ArgumentParser.Create<Arguments>().PrintUsage ()



╭─[ 169.47ms - return value ]──────────────────────────────────────────────────╮

│ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                          │

│                                                                              │

│ FILE:                                                                        │

│                                                                              │

│     <file> <fs|md|spi|spir>                                                  │

│                           File                                               │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --help                display this list of options.                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let files =

        argsMap.[[nameof Arguments.File]]

        |> List.map (function

            | Arguments.File (path, output) -> path, output

        )



    files

    |> List.map (fun (path, output) -> path |> writeDibCode output)

    |> Async.Parallel

    |> Async.Ignore

    |> Async.runWithTimeout 30000

    |> function

        | Some () -> 0

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 182.83ms - return value ]──────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 203.16ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Builder.dib            │

│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Builder.dib            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Builder (Polyglot)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Networking.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

Sm.format_exception}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            matc...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FileSystem.Operators



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildProject                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildProject runtime outputDir path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let fileDir = fullPath |> System.IO.Path.GetDirectoryName

    let extension = fullPath |> System.IO.Path.GetExtension



    let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"

    trace Debug (fun () -> "buildProject") getLocals



    match extension with

    | ".fsproj" -> ()

    | _ -> failwith "Invalid project file"



    let runtimes =

        runtime

        |> Option.map List.singleton

        |> Option.defaultValue [[ "linux-x64"; "win-x64" ]]



    let outputDir = outputDir |> Option.defaultValue "dist"



    return!

        runtimes

        |> List.map (fun runtime -> async {

            let! exitCode, _result =

                Runtime.executeWithOptionsAsync

                    {

                        Command = $@"dotnet publish ""{path}"" --configuration 

Release --output ""{outputDir}"" --runtime {runtime}"

                        CancellationToken = None

                        OnLine = None

                        WorkingDirectory = Some fileDir

                    }



            return exitCode

        })

        |> Async.Sequential

        |> Async.map Array.sum

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## persistCodeProject                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline persistCodeProject packages modules name code = async {

    let getLocals () = $"packages: {packages} / modules: {modules} / name: 

{name} / code.Length: {code |> String.length} / {getLocals ()}"

    trace Debug (fun () -> "persistCodeProject") getLocals



    let repositoryRoot = FileSystem.getSourceDirectory () |> 

FileSystem.findParent ".paket" false



    let targetDir = repositoryRoot </> "target/polyglot/builder" </> name

    System.IO.Directory.CreateDirectory targetDir |> ignore



    let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath

    do! code |> FileSystem.writeAllTextExists filePath



    let modulesCode =

        modules

        |> List.map (fun path -> $"""<Compile Include="{repositoryRoot </> 

path}" />""")

        |> Sm.concat "\n        "



    let fsprojPath = targetDir </> $"{name}.fsproj"

    let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>

        <TargetFramework>net9.0</TargetFramework>

        <LangVersion>preview</LangVersion>

        <RollForward>Major</RollForward>

        <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>

        <PublishAot>false</PublishAot>

        <PublishTrimmed>false</PublishTrimmed>

        <PublishSingleFile>true</PublishSingleFile>

        <SelfContained>true</SelfContained>

        <Version>0.0.1-alpha.1</Version>

        <OutputType>Exe</OutputType>

    </PropertyGroup>



    <ItemGroup>

        {modulesCode}

        <Compile Include="{filePath}" />

    </ItemGroup>



    <Import Project="{repositoryRoot}/.paket/Paket.Restore.targets" />

</Project>

"""

    do! fsprojCode |> FileSystem.writeAllTextExists fsprojPath



    let paketReferencesPath = targetDir </> "paket.references"

    let paketReferencesCode =

        "FSharp.Core" :: packages

        |> Sm.concat "\n"

    do! paketReferencesCode |> FileSystem.writeAllTextExists paketReferencesPath



    return fsprojPath

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildCode                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildCode runtime packages modules outputDir name code = async {

    let! fsprojPath = code |> persistCodeProject packages modules name

    return! fsprojPath |> buildProject runtime outputDir

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"1 + 1 |> ignore"

|> buildCode None [[]] [[]] None "test1"

|> Async.runWithTimeout 180000

|> _assertEqual (Some 0)



╭─[ 17.37s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] persistCodeProject / packages: [] / modules: [] / name:  │

│ test1 / code.Length: 15                                                      │

│ 00:00:00 #2 [Debug] buildProject / fullPath:                                 │

│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj              │

│ 00:00:00 #3 [Debug] executeAsync / options: { Command =                      │

│    "dotnet publish                                                           │

│ "C:\home\git\polyglot\target/polyglot/builder\test1\test1.fsproj"            │

│ --configuration Release --output "dist" --runtime linux-x64"                 │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\target\polyglot\builder\test1"                         │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f   │

│ for .NET                                                                     │

│ 00:00:02 #5 [Verbose] >   Determining projects to restore...                 │

│ 00:00:03 #6 [Verbose] >   Restored                                           │

│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj (in 719 ms). │

│ 00:00:03 #7 [Verbose] >                                                      │

│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │

│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │

│ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │

│ .NET. See: https://aka.ms/dotnet-support-policy [                            │

│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj]             │

│ 00:00:05 #8 [Verbose] >   test1 ->                                           │

│ C:\home\git\polyglot\target\polyglot\builder\test1\bin\Release\net9.0\linux- │

│ x64\test1.dll                                                                │

│ 00:00:07 #9 [Verbose] >   test1 ->                                           │

│ C:\home\git\polyglot\target\polyglot\builder\test1\dist\                     │

│ 00:00:07 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 693         │

│ 00:00:07 #11 [Debug] executeAsync / options: { Command =                     │

│    "dotnet publish                                                           │

│ "C:\home\git\polyglot\target/polyglot/builder\test1\test1.fsproj"            │

│ --configuration Release --output "dist" --runtime win-x64"                   │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\target\polyglot\builder\test1"                         │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:08 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f  │

│ for .NET                                                                     │

│ 00:00:09 #13 [Verbose] >   Determining projects to restore...                │

│ 00:00:10 #14 [Verbose] >   Restored                                          │

│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj (in 559 ms). │

│ 00:00:10 #15 [Verbose] >                                                     │

│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │

│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │

│ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │

│ .NET. See: https://aka.ms/dotnet-support-policy [                            │

│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj]             │

│ 00:00:11 #16 [Verbose] >   test1 ->                                          │

│ C:\home\git\polyglot\target\polyglot\builder\test1\bin\Release\net9.0\win-x6 │

│ 4\test1.dll                                                                  │

│ 00:00:15 #17 [Verbose] >   test1 ->                                          │

│ C:\home\git\polyglot\target\polyglot\builder\test1\dist\                     │

│ 00:00:15 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 691         │

│ FSharpOption<Int32>                                                          │

│       Value: 0                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"1 + a |> ignore"

|> buildCode None [[]] [[]] None "test2"

|> Async.runWithTimeout 180000

|> _assertEqual (Some 2)



╭─[ 11.73s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:16 #19 [Debug] persistCodeProject / packages: [] / modules: [] / name: │

│ test2 / code.Length: 15                                                      │

│ 00:00:16 #20 [Debug] buildProject / fullPath:                                │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj              │

│ 00:00:16 #21 [Debug] executeAsync / options: { Command =                     │

│    "dotnet publish                                                           │

│ "C:\home\git\polyglot\target/polyglot/builder\test2\test2.fsproj"            │

│ --configuration Release --output "dist" --runtime linux-x64"                 │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\target\polyglot\builder\test2"                         │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:17 #22 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f  │

│ for .NET                                                                     │

│ 00:00:18 #23 [Verbose] >   Determining projects to restore...                │

│ 00:00:19 #24 [Verbose] >   Restored                                          │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj (in 506 ms). │

│ 00:00:19 #25 [Verbose] >                                                     │

│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │

│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │

│ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │

│ .NET. See: https://aka.ms/dotnet-support-policy [                            │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj]             │

│ 00:00:22 #26 [Verbose] >                                                     │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fs(1,5): error      │

│ FS0039: The value or constructor 'a' is not defined. [                       │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj]             │

│ 00:00:22 #27 [Debug] executeAsync / exitCode: 1 / output.Length: 715         │

│ 00:00:22 #28 [Debug] executeAsync / options: { Command =                     │

│    "dotnet publish                                                           │

│ "C:\home\git\polyglot\target/polyglot/builder\test2\test2.fsproj"            │

│ --configuration Release --output "dist" --runtime win-x64"                   │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\target\polyglot\builder\test2"                         │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:23 #29 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f  │

│ for .NET                                                                     │

│ 00:00:23 #30 [Verbose] >   Determining projects to restore...                │

│ 00:00:24 #31 [Verbose] >   Restored                                          │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj (in 504 ms). │

│ 00:00:25 #32 [Verbose] >                                                     │

│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │

│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │

│ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │

│ .NET. See: https://aka.ms/dotnet-support-policy [                            │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj]             │

│ 00:00:27 #33 [Verbose] >                                                     │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fs(1,5): error      │

│ FS0039: The value or constructor 'a' is not defined. [                       │

│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj]             │

│ 00:00:27 #34 [Debug] executeAsync / exitCode: 1 / output.Length: 715         │

│ FSharpOption<Int32>                                                          │

│       Value: 2                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## readFile                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline readFile path = async {

    let! code = path |> FileSystem.readAllTextAsync



    let code = System.Text.RegularExpressions.Regex.Replace (

        code,

        @"( *)(let\s+main\s+.*?\s*=)",

        fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + 

m.Groups.[[1]].Value + m.Groups.[[2]].Value

    )



    let codeTrim = code |> Sm.trim_end [[||]]

    return

        if codeTrim |> Sm.ends_with "\n()"

        then codeTrim |> Sm.substring 0 ((codeTrim |> String.length) - 2)

        else code

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildFile                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildFile runtime packages modules path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let dir = fullPath |> System.IO.Path.GetDirectoryName

    let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension

    let! code = fullPath |> readFile

    return! code |> buildCode runtime packages modules (dir </> "dist" |> Some) 

name

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## persistFile                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline persistFile packages modules path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension

    let! code = fullPath |> readFile

    return! code |> persistCodeProject packages modules name

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] 

Path of path : string

    | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list

    | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list

    | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string

    | [[<Argu.ArguAttributes.Unique>]] Persist_Only



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Path _ -> nameof Path

            | Packages _ -> nameof Packages

            | Modules _ -> nameof Modules

            | Runtime _ -> nameof Runtime

            | Persist_Only -> nameof Persist_Only



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Argu.ArgumentParser.Create<Arguments>().PrintUsage ()



╭─[ 222.58ms - return value ]──────────────────────────────────────────────────╮

│ USAGE: dotnet-repl [--help] [--packages [<packages>...]]                     │

│                    [--modules [<modules>...]] [--runtime <runtime>]          │

│                    [--persist-only] <path>                                   │

│                                                                              │

│ PATH:                                                                        │

│                                                                              │

│     <path>                Path                                               │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --packages [<packages>...]                                               │

│                           Packages                                           │

│     --modules [<modules>...]                                                 │

│                           Modules                                            │

│     --runtime <runtime>   Runtime                                            │

│     --persist-only        Persist_Only                                       │

│     --help                display this list of options.                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let path =

        match argsMap.[[nameof Arguments.Path]] with

        | [[ Arguments.Path path ]] -> Some path

        | _ -> None

        |> Option.get



    let packages =

        match argsMap |> Map.tryFind (nameof Arguments.Packages) with

        | Some [[ Arguments.Packages packages ]] -> packages

        | _ -> [[]]



    let modules =

        match argsMap |> Map.tryFind (nameof Arguments.Modules) with

        | Some [[ Arguments.Modules modules ]] -> modules

        | _ -> [[]]



    let runtime =

        match argsMap |> Map.tryFind (nameof Arguments.Runtime) with

        | Some [[ Arguments.Runtime runtime ]] -> Some runtime

        | _ -> None



    let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)



    if persistOnly

    then path |> persistFile packages modules |> Async.map (fun _ -> 0)

    else path |> buildFile runtime packages modules

    |> Async.runWithTimeout (60000 * 60)

    |> function

        | Some exitCode -> exitCode

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 13.19s - return value ]────────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 13.20s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:30 #35 [Debug] persistCodeProject / packages: [Argu;                   │

│ FSharp.Control.AsyncSeq; System.CommandLine; ... ] / modules: [              │

│ lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/date_time.fsx; ... ] /  │

│ name: Builder / code.Length: 7106                                            │

│ 00:00:30 #36 [Debug] buildProject / fullPath:                                │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj          │

│ 00:00:30 #37 [Debug] executeAsync / options: { Command =                     │

│    "dotnet publish                                                           │

│ "C:\home\git\polyglot\target/polyglot/builder\Builder\Builder.fsproj"        │

│ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist"    │

│ --runtime linux-x64"                                                         │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\target\polyglot\builder\Builder"                       │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:31 #38 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f  │

│ for .NET                                                                     │

│ 00:00:32 #39 [Verbose] >   Determining projects to restore...                │

│ 00:00:33 #40 [Verbose] >   Restored                                          │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj (in 454  │

│ ms).                                                                         │

│ 00:00:33 #41 [Verbose] >                                                     │

│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │

│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │

│ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │

│ .NET. See: https://aka.ms/dotnet-support-policy [                            │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj]         │

│ 00:00:34 #42 [Verbose] >   Builder ->                                        │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\bin\Release\net9.0\linu │

│ x-x64\Builder.dll                                                            │

│ 00:00:35 #43 [Verbose] >   Builder ->                                        │

│ C:\home\git\polyglot\apps\builder\dist\                                      │

│ 00:00:35 #44 [Debug] executeAsync / exitCode: 0 / output.Length: 692         │

│ 00:00:35 #45 [Debug] executeAsync / options: { Command =                     │

│    "dotnet publish                                                           │

│ "C:\home\git\polyglot\target/polyglot/builder\Builder\Builder.fsproj"        │

│ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist"    │

│ --runtime win-x64"                                                           │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\target\polyglot\builder\Builder"                       │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:35 #46 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f  │

│ for .NET                                                                     │

│ 00:00:36 #47 [Verbose] >   Determining projects to restore...                │

│ 00:00:37 #48 [Verbose] >   Restored                                          │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj (in 425  │

│ ms).                                                                         │

│ 00:00:37 #49 [Verbose] >                                                     │

│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │

│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │

│ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │

│ .NET. See: https://aka.ms/dotnet-support-policy [                            │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj]         │

│ 00:00:38 #50 [Verbose] >   Builder ->                                        │

│ C:\home\git\polyglot\target\polyglot\builder\Builder\bin\Release\net9.0\win- │

│ x64\Builder.dll                                                              │

│ 00:00:43 #51 [Verbose] >   Builder ->                                        │

│ C:\home\git\polyglot\apps\builder\dist\                                      │

│ 00:00:43 #52 [Debug] executeAsync / exitCode: 0 / output.Length: 690         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Builder.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 328076 bytes to Builder.dib.html

In [ ]:
{ . "$ScriptDir/../apps/parser/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # DibParser (Polyglot)                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── pwsh ────────────────────────────────────────────────────────────────────────

ls ~/.nuget/packages/argu



╭─[ 874.86ms - stdout ]────────────────────────────────────────────────────────╮

│                                                                              │

│     Directory: C:\Users\i574n\.nuget\packages\argu                           │

│                                                                              │

│ Mode                 LastWriteTime         Length[     │

│ 32;1m Name                                                                 │

│ ----                 -------------         ------ [      │

│ 32;1m----                                                                  │

│ d----          2023-05-17  3:38 PM                6.1.1               │

│ d----          2024-03-12  8:22 PM                6.1.4               │

│ d----          2024-01-29  5:12 PM                6.1.5               │

│ d----          2024-03-12  8:20 PM                6.2.0               │

│ d----          2024-02-23  6:50 PM                6.2.1               │

│ d----          2024-03-12  8:15 PM                6.2.2               │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsec.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsecCS.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FParsec



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## escapeCell (test)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline escapeCell input =

    input

    |> Sm.split "\n"

    |> Array.map (function

        | line when line |> Sm.starts_with "\\#!" || line |> Sm.starts_with 

"\\#r" ->

            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")

        | line -> line

    )

    |> Sm.concat "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



$"a{nl}\\#!magic{nl}b{nl}"

|> escapeCell

|> _assertEqual (

    $"a{nl}#!magic{nl}b{nl}"

)



╭─[ 64.06ms - stdout ]─────────────────────────────────────────────────────────╮

│ a                                                                            │

│ #!magic                                                                      │

│ b                                                                            │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicMarker                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicMarker : Parser<string, unit> = pstring "#!"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic"

|> run magicMarker

|> _assertEqual (

    Success ("#!", (), Position ("", 2, 1, 3))

)



╭─[ 71.04ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!                                                              │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 2                                                             │

│         Line: 1                                                              │

│         Column: 3                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"##!magic"

|> run magicMarker

|> _assertEqual (

    Failure (

        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 76.84ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│ ##!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicCommand                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicCommand =

    magicMarker

    >>. manyTill anyChar newline

    |>> (System.String.Concat >> Sm.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic



a"

|> run magicCommand

|> _assertEqual (

    Success ("magic", (), Position ("", 8, 2, 1))

)



╭─[ 46.82ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: magic                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 8                                                             │

│         Line: 2                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



" #!magic



a"

|> run magicCommand

|> _assertEqual (

    Failure (

        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 53.39ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│  #!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## content                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let content =

    (newline >>. magicMarker) <|> (eof >>. preturn "")

    |> attempt

    |> lookAhead

    |> manyTill anyChar

    |>> (System.String.Concat >> Sm.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run content

|> _assertEqual (

    Success ("#!magic





a", (), Position ("", 14, 7, 1))

)



╭─[ 68.16ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!magic                                                         │

│                                                                              │

│                                                                              │

│ a                                                                            │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Block =

    {

        magic : string

        content : string

    }



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let block =

    pipe2

        magicCommand

        content

        (fun magic content ->

            {

                magic = magic

                content = content

            })



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run block

|> _assertEqual (

    Success (

        { magic = "magic"; content = "a" },

        (),

        Position ("", 14, 7, 1)

    )

)



╭─[ 61.37ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: Block                                                           │

│         magic: magic                                                         │

│         content: a                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## blocks                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let blocks =

    skipMany newline

    >>. sepEndBy block (skipMany1 newline)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test





"#!magic1



a



\#!magic2



b



"

|> escapeCell

|> run blocks

|> _assertEqual (

    Success (

        [[

            { magic = "magic1"; content = "a" }

            { magic = "magic2"; content = "b" }

        ]],

        (),

        Position ("", 26, 9, 1)

    )

)



╭─[ 77.19ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: FSharpList<Block>                                               │

│         - magic: magic1                                                      │

│           content: a                                                         │

│         - magic: magic2                                                      │

│           content: b                                                         │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 26                                                            │

│         Line: 9                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Output                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Output =

    | Fs

    | Md

    | Spi

    | Spir



let inline kernelOutputs magic =

    match magic with

    | "fsharp" -> [[ Fs ]]

    | "markdown" -> [[ Md ]]

    | "spiral" -> [[ Spi; Spir ]]

    | _ -> [[]]



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlock                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlock output (block : Block) =

    match output, block with

    | output, { magic = "markdown"; content = content } ->

        let markdownComment =

            match output with

            | Spi | Spir -> "// // "

            | Fs -> "/// "

            | _ -> ""

        content

        |> Sm.split "\n"

        |> Array.map (Sm.trim_end [[||]])

        |> Array.filter (Sm.ends_with " (test)" >> not)

        |> Array.map (function

            | "" -> markdownComment |> Sm.trim

            | line -> System.Text.RegularExpressions.Regex.Replace (line, 

"^\\s*", $"$&{markdownComment}")

        )

        |> Sm.concat "\n"

    | Fs, { magic = "fsharp"; content = content } ->

        let trimmedContent = content |> Sm.trim

        if trimmedContent |> Sm.starts_with "//// test" || trimmedContent |> 

Sm.starts_with "//// ignore"

        then ""

        else

            content

            |> Sm.split "\n"

            |> Array.filter (Sm.trim_start [[||]] >> Sm.starts_with "#r" >> not)

            |> Sm.concat "\n"

    | (Spi | Spir), { magic = "spiral"; content = content } ->

        let trimmedContent = content |> Sm.trim

        if trimmedContent |> Sm.starts_with "// // test" || trimmedContent |> 

Sm.starts_with "// // ignore"

        then ""

        else content

    | _ -> ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



    b



c





\#!markdown





c





\#!fsharp





let a = 1"

|> escapeCell

|> run block

|> function

    | Success (block, _, _) -> formatBlock Fs block

    | Failure (msg, _, _) -> failwith msg

|> _assertEqual "/// a

///

    /// b

///

/// c"



╭─[ 62.09ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│     /// b                                                                    │

│ ///                                                                          │

│ /// c                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlocks                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlocks output blocks =

    blocks

    |> List.map (formatBlock output)

    |> List.filter ((<>) "")

    |> Sm.concat "\n\n"

    |> fun s -> s + "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



b





\#!markdown





c





\#!fsharp





let a = 1



\#!markdown



d (test)



\#!fsharp



//// test



let a = 2



\#!markdown



e



\#!fsharp



let a = 3"

|> escapeCell

|> run blocks

|> function

    | Success (blocks, _, _) -> formatBlocks Fs blocks

    | Failure (msg, _, _) -> failwith msg

|> _assertEqual "/// a

///

/// b



/// c



let a = 1



/// e



let a = 3

"



╭─[ 100.44ms - stdout ]────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│ /// b                                                                        │

│                                                                              │

│ /// c                                                                        │

│                                                                              │

│ let a = 1                                                                    │

│                                                                              │

│ /// e                                                                        │

│                                                                              │

│ let a = 3                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parse                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parse output input =

    match run blocks input with

    | Success (blocks, _, _) ->

        let blocks =

            blocks

            |> List.filter (fun block ->

                block.magic |> kernelOutputs |> List.contains output || 

block.magic = "markdown"

            )



        match blocks with

        | { magic = "markdown"; content = content } :: _

            when output = Fs

            && content |> Sm.starts_with "# "

            && content |> Sm.ends_with ")"

            ->

            let inline indentBlock (block : Block) =

                { block with

                    content =

                        block.content

                        |> Sm.split "\n"

                        |> Array.fold

                            (fun (lines, isMultiline) line ->

                                let trimmedLine = line |> Sm.trim

                                if trimmedLine = ""

                                then "" :: lines, isMultiline

                                else

                                    let inline singleQuoteLine () =

                                        trimmedLine |> Seq.sumBy ((=) '"' >> 

System.Convert.ToInt32) = 1

                                        && trimmedLine |> Sm.contains @"'""'" |>

not

                                        && trimmedLine |> Sm.ends_with "{" |> 

not

                                        && trimmedLine |> Sm.ends_with "{|" |> 

not

                                        && trimmedLine |> Sm.starts_with "}" |> 

not

                                        && trimmedLine |> Sm.starts_with "|}" |>

not



                                    match isMultiline, trimmedLine |> 

Sm.split_string [[| $"{q}{q}{q}" |]] with

                                    | false, [[| _; _ |]] ->

                                        $"    {line}" :: lines, true



                                    | true, [[| _; _ |]] ->

                                        line :: lines, false



                                    | false, _ when singleQuoteLine () ->

                                        $"    {line}" :: lines, true



                                    | false, _ when line |> Sm.starts_with "#" 

&& block.magic = "fsharp" ->

                                        line :: lines, false



                                    | false, _ ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () && line |>

Sm.starts_with "    " ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () ->

                                        line :: lines, false



                                    | true, _ ->

                                        line :: lines, true

                            )

                            ([[]], false)

                        |> fst

                        |> List.rev

                        |> Sm.concat "\n"

                }



            let moduleName, namespaceName =

                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 

\((.*)\)$")

                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value



            let moduleBlock =

                {

                    magic = "fsharp"

                    content =

                        $"#if !INTERACTIVE

namespace {namespaceName}

#endif



module {moduleName} ="

                }



            blocks

            |> List.indexed

            |> List.fold

                (fun blocks (index, block) ->

                    match index with

                    | 0 -> blocks

                    | 1 -> indentBlock block :: moduleBlock :: blocks

                    | _ -> indentBlock block :: blocks

                )

                [[]]

            |> List.rev

        | _ -> blocks

        |> Result.Ok

    | Failure (errorMsg, _, _) -> Result.Error errorMsg



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example1 =

    $"""#!meta



{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":

"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}



\#!markdown



# TestModule (TestNamespace)



\#!fsharp



\#!import file.dib



\#!fsharp



\#r "nuget:Expecto"



\#!markdown



## ParserLibrary



\#!fsharp



open System



\#!markdown



## x (test)



\#!fsharp



//// ignore



let x = 1



\#!spiral



// // test



inl x = 0i32



\#!spiral



inl x = 0i32



\#!markdown



### TextInput



\#!fsharp



let str1 = "abc

def"



let str2 =

    "abc\

def"



let str3 =

    $"1{{

        1

    }}1"



let str4 =

    $"1{{({{|

        a = 1

    |}}).a}}1"



let str5 =

    "abc \

        def"



let x =

    match '"' with

    | '"' -> true

    | _ -> false



let long1 = {q}{q}{q}a{q}{q}{q}



let long2 =

    {q}{q}{q}

a

{q}{q}{q}



\#!fsharp



type Position =

    {{

#if INTERACTIVE

        line : string

#else

        line : int

#endif

        column : int

    }}"""

    |> escapeCell



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Fs

|> Result.toOption

|> Option.get

|> (formatBlocks Fs)

|> _assertEqual $"""#if !INTERACTIVE

namespace TestNamespace

#endif



module TestModule =



    /// ## ParserLibrary



    open System



    /// ### TextInput



    let str1 = "abc

def"



    let str2 =

        "abc\

def"



    let str3 =

        $"1{{

            1

        }}1"



    let str4 =

        $"1{{({{|

            a = 1

        |}}).a}}1"



    let str5 =

        "abc \

            def"



    let x =

        match '"' with

        | '"' -> true

        | _ -> false



    let long1 = {q}{q}{q}a{q}{q}{q}



    let long2 =

        {q}{q}{q}

a

{q}{q}{q}



    type Position =

        {{

#if INTERACTIVE

            line : string

#else

            line : int

#endif

            column : int

        }}

"""



╭─[ 281.08ms - stdout ]────────────────────────────────────────────────────────╮

│ #if !INTERACTIVE                                                             │

│ namespace TestNamespace                                                      │

│ #endif                                                                       │

│                                                                              │

│ module TestModule =                                                          │

│                                                                              │

│     /// ## ParserLibrary                                                     │

│                                                                              │

│     open System                                                              │

│                                                                              │

│     /// ### TextInput                                                        │

│                                                                              │

│     let str1 = "abc                                                          │

│ def"                                                                         │

│                                                                              │

│     let str2 =                                                               │

│         "abc\                                                                │

│ def"                                                                         │

│                                                                              │

│     let str3 =                                                               │

│         $"1{                                                                 │

│             1                                                                │

│         }1"                                                                  │

│                                                                              │

│     let str4 =                                                               │

│         $"1{({|                                                              │

│             a = 1                                                            │

│         |}).a}1"                                                             │

│                                                                              │

│     let str5 =                                                               │

│         "abc \                                                               │

│             def"                                                             │

│                                                                              │

│     let x =                                                                  │

│         match '"' with                                                       │

│         | '"' -> true                                                        │

│         | _ -> false                                                         │

│                                                                              │

│     let long1 = """a"""                                                      │

│                                                                              │

│     let long2 =                                                              │

│         """                                                                  │

│ a                                                                            │

│ """                                                                          │

│                                                                              │

│     type Position =                                                          │

│         {                                                                    │

│ #if INTERACTIVE                                                              │

│             line : string                                                    │

│ #else                                                                        │

│             line : int                                                       │

│ #endif                                                                       │

│             column : int                                                     │

│         }                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Md

|> Result.toOption

|> Option.get

|> (formatBlocks Md)

|> _assertEqual "# TestModule (TestNamespace)



## ParserLibrary



### TextInput

"



╭─[ 265.29ms - stdout ]────────────────────────────────────────────────────────╮

│ # TestModule (TestNamespace)                                                 │

│                                                                              │

│ ## ParserLibrary                                                             │

│                                                                              │

│ ### TextInput                                                                │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Spi

|> Result.toOption

|> Option.get

|> (formatBlocks Spi)

|> _assertEqual "// // # TestModule (TestNamespace)



// // ## ParserLibrary



inl x = 0i32



// // ### TextInput

"



╭─[ 335.75ms - stdout ]────────────────────────────────────────────────────────╮

│ // // # TestModule (TestNamespace)                                           │

│                                                                              │

│ // // ## ParserLibrary                                                       │

│                                                                              │

│ inl x = 0i32                                                                 │

│                                                                              │

│ // // ### TextInput                                                          │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parseDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseDibCode output file = async {

    let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"

    trace Debug (fun () -> "parseDibCode") getLocals

    let! input = file |> FileSystem.readAllTextAsync

    match parse output input with

    | Result.Ok blocks -> return blocks |> formatBlocks output

    | Result.Error msg -> return failwith msg

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeDibCode output path = async {

    let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"

    trace Debug (fun () -> "writeDibCode") getLocals

    let! result = parseDibCode output path

    let outputPath = path |> Sm.replace ".dib" $".{output |> string |> 

Sm.to_lower}"

    do! result |> FileSystem.writeAllTextAsync outputPath

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]

        File of file : string * Output



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | File _ -> nameof File



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Argu.ArgumentParser.Create<Arguments>().PrintUsage ()



╭─[ 131.11ms - return value ]──────────────────────────────────────────────────╮

│ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                          │

│                                                                              │

│ FILE:                                                                        │

│                                                                              │

│     <file> <fs|md|spi|spir>                                                  │

│                           File                                               │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --help                display this list of options.                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let files =

        argsMap.[[nameof Arguments.File]]

        |> List.map (function

            | Arguments.File (path, output) -> path, output

        )



    files

    |> List.map (fun (path, output) -> path |> writeDibCode output)

    |> Async.Parallel

    |> Async.Ignore

    |> Async.runWithTimeout 30000

    |> function

        | Some () -> 0

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 260.72ms - return value ]──────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 278.54ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DibParser.dib          │

│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DibParser.dib          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook DibParser.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 369446 bytes to DibParser.dib.html

00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/date_time.fsx; ... ] / name: DibParser / code.Length: 8972

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64"

  WorkingDirectory =

   Some "C:\home\git\polyglot\target\polyglot\builder\DibParser"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:01 #5 [Verbose] >   Determining projects to restore...

00:00:02 #6 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj (in 656 ms).

00:00:02 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj]

00:00:03 #8 [Verbose] >   DibParser -> C:\home\git\polyglot\target\polyglot\builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll

00:00:05 #9 [Verbose] >   DibParser -> C:\home\git\polyglot\apps\parser\dist\

00:00:05 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 707

00:00:05 #11 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64"

  WorkingDirectory =

   Some "C:\home\git\polyglot\target\polyglot\builder\DibParser"

  CancellationToken = None

  OnLine = None }

00:00:06 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:07 #13 [Verbose] >   Determining projects to restore...

00:00:08 #14 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj (in 560 ms).

00:00:08 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj]

00:00:09 #16 [Verbose] >   DibParser -> C:\home\git\polyglot\target\polyglot\builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll

00:00:14 #17 [Verbose] >   DibParser -> C:\home\git\polyglot\apps\parser\dist\

00:00:14 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 705



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # JsonParser (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import Parser.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Parser =



    open Common



    /// ### TextInput



    type Position =

        {

            line : int

            column : int

        }



    let initialPos = { line = 0; column = 0 }



    let inline incrCol (pos : Position) =

        { pos with column = pos.column + 1 }



    let inline incrLine pos =

        { line = pos.line + 1; column = 0 }



    type InputState =

        {

            lines : string[[]]

            position : Position

        }



    let inline fromStr str =

        {

            lines =

                if str |> String.IsNullOrEmpty

                then [[||]]

                else str |> Sm.split_string [[| "\r\n"; "\n" |]]

            position = initialPos

        }



    le...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open Parser



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## JsonParser                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

(*

// --------------------------------

JSON spec from http://www.json.org/

// --------------------------------



The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase

it here:



* A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`

or an `array`.

  * These structures can be nested.

* A `string` is a sequence of zero or more Unicode characters, wrapped in double

quotes, using backslash escapes.

* A `number` is very much like a C or Java number, except that the octal and 

hexadecimal formats are not used.

* A `boolean` is the literal `true` or `false`

* A `null` is the literal `null`

* An `object` is an unordered set of name/value pairs.

  * An object begins with { (left brace) and ends with } (right brace).

  * Each name is followed by : (colon) and the name/value pairs are separated by

, (comma).

* An `array` is an ordered collection of values.

  * An array begins with [[ (left bracket) and ends with ]] (right bracket).

  * Values are separated by , (comma).

* Whitespace can be inserted between any pair of tokens.



*)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * 

Input>) =

    match actual, expected with

    | Success (_actual, _), Success _expected ->

        printResult actual

        _actual |> _assertEqual _expected

    | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =

p2 ->

        printResult actual

    | _ ->

        printfn $"Actual: {actual}"

        printfn $"Expected: {expected}"

        failwith "Parse failed"

    actual



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### JValue                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type JValue =

    | JString of string

    | JNumber of float

    | JBool   of bool

    | JNull

    | JObject of Map<string, JValue>

    | JArray  of JValue list



── fsharp ──────────────────────────────────────────────────────────────────────

let jValue, jValueRef = createParserForwardedToRef<JValue> ()



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jNull                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jNull =

    pstring "null"

    >>% JNull

    <?> "null"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jValue "null"

|> parserEqual (Success JNull)



╭─[ 343.39ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNull, { lines = [                      │

│ |&quot;null&quot;|]<br/>                  position = { line = 0<br/>         │

│ column = 4 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNull, { lines = [|&quot;null&quot;|]<br/>      │

│ position = { line = 0<br/>               column = 4 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │

│ <tr></tr></thead><tbody><tr><td>IsJString</td><td><d...                      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 362.96ms - stdout ]────────────────────────────────────────────────────────╮

│ JNull                                                                        │

│ JValue                                                                       │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: True                                                          │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNull "nulp"

|> parserEqual (

    Failure (

        "null",

        "Unexpected 'p'",

        { currentLine = "nulp"; line = 0; column = 3 }

    )

)



╭─[ 72.85ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;null&quot;, &quot;Unexpected      │

│ &#39;p&#39;&quot;, { currentLine = &quot;nulp&quot;<br/>                     │

│ line = 0<br/>                                     column = 3                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>null</pre></div></td></tr><tr><td>Item2</td><td>< │

│ div class="dni-plaintext"><pre>Unexpected                                    │

│ &#39;p&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;nulp&quot;<br/>  line = 0<br/>  column = 3               │

│ }</code></span></summary><div><table><thead><tr></tr></thead...              │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 81.39ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:3 Error parsing null                                              │

│ nulp                                                                         │

│    ^Unexpected 'p'                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jBool                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jBool =

    let jtrue =

        pstring "true"

        >>% JBool true

    let jfalse =

        pstring "false"

        >>% JBool false



    jtrue <|> jfalse

    <?> "bool"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jBool "true"

|> parserEqual (Success (JBool true))



╭─[ 80.53ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JBool true, { lines = [                 │

│ |&quot;true&quot;|]<br/>                       position = { line = 0<br/>    │

│ column = 4 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JBool true, { lines = [|&quot;true&quot;|]<br/> │

│ position = { line = 0<br/>               column = 4 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JBool                                            │

│ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr.. │

│ .                                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 90.28ms - stdout ]─────────────────────────────────────────────────────────╮

│ JBool true                                                                   │

│ JBool                                                                        │

│       Item: True                                                             │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: True                                                          │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jBool "false"

|> parserEqual (Success (JBool false))



╭─[ 49.16ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JBool false, { lines = [                │

│ |&quot;false&quot;|]<br/>                        position = { line = 0<br/>  │

│ column = 5 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JBool false, { lines = [                        │

│ |&quot;false&quot;|]<br/>  position = { line = 0<br/>               column = │

│ 5 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JBool                                            │

│ false</code></span></summary><div><table><thead><tr></tr></thead><tb...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 56.51ms - stdout ]─────────────────────────────────────────────────────────╮

│ JBool false                                                                  │

│ JBool                                                                        │

│       Item: False                                                            │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: True                                                          │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jBool "truX"

|> parserEqual (

    Failure (

        "bool",

        "Unexpected 't'",

        { currentLine = "truX"; line = 0; column = 0 }

    )

)



╭─[ 26.14ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;bool&quot;, &quot;Unexpected      │

│ &#39;t&#39;&quot;, { currentLine = &quot;truX&quot;<br/>                     │

│ line = 0<br/>                                     column = 0                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>bool</pre></div></td></tr><tr><td>Item2</td><td>< │

│ div class="dni-plaintext"><pre>Unexpected                                    │

│ &#39;t&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;truX&quot;<br/>  line = 0<br/>  column = 0               │

│ }</code></span></summary><div><table><thead><tr></tr></thead...              │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 35.06ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:0 Error parsing bool                                              │

│ truX                                                                         │

│ ^Unexpected 't'                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jUnescapedChar                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jUnescapedChar =

    satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jUnescapedChar "a"

|> parserEqual (Success 'a')



╭─[ 75.55ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;a&#39;, { lines = [                │

│ |&quot;a&quot;|]<br/>                position = { line = 0<br/>              │

│ column = 1 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(a, { lines = [|&quot;a&quot;|]<br/>  position = │

│ { line = 0<br/>               column = 1 }                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;a&quot;|]<br/...                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 83.77ms - stdout ]─────────────────────────────────────────────────────────╮

│ 'a'                                                                          │

│ a                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jUnescapedChar "\\"

|> parserEqual (

    Failure (

        "char",

        "Unexpected '\\'",

        { currentLine = "\\"; line = 0; column = 0 }

    )

)



╭─[ 41.12ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;char&quot;, &quot;Unexpected      │

│ &#39;\&#39;&quot;, { currentLine = &quot;\&quot;<br/>                        │

│ line = 0<br/>                                     column = 0                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>char</pre></div></td></tr><tr><td>Item2</td><td>< │

│ div class="dni-plaintext"><pre>Unexpected                                    │

│ &#39;\&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;\&quot;<br/>  line = 0<br/>  column = 0                  │

│ }</code></span></summary><div><table><thead><tr></tr></thead><tbod...        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 50.21ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:0 Error parsing char                                              │

│ \                                                                            │

│ ^Unexpected '\'                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jEscapedChar                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jEscapedChar =

    [[

        ("\\\"",'\"')

        ("\\\\",'\\')

        ("\\/",'/')

        ("\\b",'\b')

        ("\\f",'\f')

        ("\\n",'\n')

        ("\\r",'\r')

        ("\\t",'\t')

    ]]

    |> List.map (fun (toMatch, result) ->

        pstring toMatch >>% result

    )

    |> choice

    <?> "escaped char"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar "\\\\"

|> parserEqual (Success '\\')



╭─[ 73.38ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │

│ |&quot;\\&quot;|]<br/>                 position = { line = 0<br/>            │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br/>  position  │

│ = { line = 0<br/>               column = 2 }                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;\\&quot;...                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 83.41ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\\'                                                                         │

│ \                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar "\\t"

|> parserEqual (Success '\t')



╭─[ 49.21ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\009&#39;, { lines = [             │

│ |&quot;\t&quot;|]<br/>                   position = { line = 0<br/>          │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(	, { lines = [|&quot;\t&quot;|]<br/>  position =  │

│ { line = 0<br/>               column = 2 }                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>	                               │

│ </pre></div></td></tr><tr><td>Item2</td><td><details                         │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │

│ |&quot;\t...                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 58.93ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\009'                                                                       │

│ 	                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar @"\\"

|> parserEqual (Success '\\')



╭─[ 64.34ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │

│ |&quot;\\&quot;|]<br/>                 position = { line = 0<br/>            │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br/>  position  │

│ = { line = 0<br/>               column = 2 }                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;\\&quot;...                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 73.78ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\\'                                                                         │

│ \                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar @"\n"

|> parserEqual (Success '\n')



╭─[ 46.90ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\010&#39;, { lines = [             │

│ |&quot;<br/>&quot;|]<br/>                   position = { line = 0<br/>       │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(<br/>, { lines = [|&quot;<br/>&quot;|]<br/>     │

│ position = { line = 0<br/>               column = 2 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>                              │

│ </pre></div></td></tr><tr><td>Item2</td><td><details                         │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines =    │

│ ...                                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 58.74ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\010'                                                                       │

│                                                                              │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar "a"

|> parserEqual (

    Failure (

        "escaped char",

        "Unexpected 'a'",

        { currentLine = "a"; line = 0; column = 0 }

    )

)



╭─[ 39.47ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;escaped char&quot;,               │

│ &quot;Unexpected &#39;a&#39;&quot;, { currentLine = &quot;a&quot;<br/>       │

│ line = 0<br/>                                             column = 0         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>escaped                       │

│ char</pre></div></td></tr><tr><td>Item2</td><td><div                         │

│ class="dni-plaintext"><pre>Unexpected                                        │

│ &#39;a&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;a&quot;<br/>  line = 0<br/>  column = 0                  │

│ }</code></span></summary><div><tab...                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 48.67ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:0 Error parsing escaped char                                      │

│ a                                                                            │

│ ^Unexpected 'a'                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jUnicodeChar                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jUnicodeChar =

    let backslash = pchar '\\'

    let uChar = pchar 'u'

    let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' 

]])

    let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit



    let inline convertToChar (((h1, h2), h3), h4) =

        let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"

        Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char



    backslash >>. uChar >>. fourHexDigits

    |>> convertToChar



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jUnicodeChar "\\u263A"

|> parserEqual (Success '☺')



╭─[ 68.89ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;☺&#39;, { lines = [                │

│ |&quot;\u263A&quot;|]<br/>                position = { line = 0<br/>         │

│ column = 6 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(☺, { lines = [|&quot;\u263A&quot;|]<br/>        │

│ position = { line = 0<br/>               column = 6 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>☺</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;\u2...                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 78.30ms - stdout ]─────────────────────────────────────────────────────────╮

│ '☺'                                                                          │

│ ☺                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jString                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let quotedString =

    let quote = pchar '\"' <?> "quote"

    let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar



    quote >>. manyChars jchar .>> quote



── fsharp ──────────────────────────────────────────────────────────────────────

let jString =

    quotedString

    |>> JString

    <?> "quoted string"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"\""

|> parserEqual (Success (JString ""))



╭─[ 70.91ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;&quot;, { lines = [       │

│ |&quot;&quot;&quot;&quot;|]<br/>                       position = { line =   │

│ 0<br/>                                    column = 2 }                       │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;&quot;, { lines = [               │

│ |&quot;&quot;&quot;&quot;|]<br/>  position = { line = 0<br/>                 │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quot;&quot;</code></span></summary>...  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 78.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString ""                                                                   │

│ JString                                                                      │

│       Item:                                                                  │

│       IsJString: True                                                        │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"a\""

|> parserEqual (Success (JString "a"))



╭─[ 64.05ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;a&quot;, { lines = [      │

│ |&quot;&quot;a&quot;&quot;|]<br/>                        position = { line = │

│ 0<br/>                                     column = 3 }                      │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;a&quot;, { lines = [              │

│ |&quot;&quot;a&quot;&quot;|]<br/>  position = { line = 0<br/>                │

│ column = 3 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quot;a&quot;</code></span></s...        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 74.36ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "a"                                                                  │

│ JString                                                                      │

│       Item: a                                                                │

│       IsJString: True                                                        │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"ab\""

|> parserEqual (Success (JString "ab"))



╭─[ 49.94ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;ab&quot;, { lines = [     │

│ |&quot;&quot;ab&quot;&quot;|]<br/>                         position = { line │

│ = 0<br/>                                      column = 4 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;ab&quot;, { lines = [             │

│ |&quot;&quot;ab&quot;&quot;|]<br/>  position = { line = 0<br/>               │

│ column = 4 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quot;ab&quot;</code></s...              │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 59.78ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "ab"                                                                 │

│ JString                                                                      │

│       Item: ab                                                               │

│       IsJString: True                                                        │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"ab\\tde\""

|> parserEqual (Success (JString "ab\tde"))



╭─[ 44.93ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;ab	de&quot;, { lines = [    │

│ |&quot;&quot;ab\tde&quot;&quot;|]<br/>                            position = │

│ { line = 0<br/>                                         column = 8 }         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;ab	de&quot;, { lines = [            │

│ |&quot;&quot;ab\tde&quot;&quot;|]<br/>  position = { line = 0<br/>           │

│ column = 8 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quo...                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 53.05ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "ab	de"                                                                │

│ JString                                                                      │

│       Item: ab	de                                                              │

│       IsJString: True                                                        │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"ab\\u263Ade\""

|> parserEqual (Success (JString "ab☺de"))



╭─[ 43.83ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;ab☺de&quot;, { lines = [  │

│ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br/>                                   │

│ position = { line = 0<br/>                                         column =  │

│ 12 }                                                                         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;ab☺de&quot;, { lines = [          │

│ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br/>  position = { line = 0<br/>       │

│ column = 12 }                                                                │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JS...                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 52.94ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "ab☺de"                                                              │

│ JString                                                                      │

│       Item: ab☺de                                                            │

│       IsJString: True                                                        │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jNumber                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jNumber =

    let optSign = opt (pchar '-')



    let zero = pstring "0"



    let digitOneNine =

        satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"



    let digit =

        satisfy Char.IsDigit "digit"



    let point = pchar '.'



    let e = pchar 'e' <|> pchar 'E'



    let optPlusMinus = opt (pchar '-' <|> pchar '+')



    let nonZeroInt =

        digitOneNine .>>. manyChars digit

        |>> fun (first, rest) -> string first + rest



    let intPart = zero <|> nonZeroInt



    let fractionPart = point >>. manyChars1 digit



    let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit



    let inline (|>?) opt f =

        match opt with

        | None -> ""

        | Some x -> f x



    let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =

        let signStr =

            optSign

            |>? string



        let fractionPartStr =

            fractionPart

            |>? (fun digits -> "." + digits)



        let expPartStr =

            expPart

            |>? fun (optSign, digits) ->

                let sign = optSign |>? string

                "e" + sign + digits



        (signStr + intPart + fractionPartStr + expPartStr)

        |> float

        |> JNumber



    optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart

    |>> convertToJNumber

    <?> "number"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

            jNumber

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "123"

|> parserEqual (Success (JNumber 123.0))



╭─[ 90.21ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │

│ |&quot;123&quot;|]<br/>                          position = { line = 0<br/>  │

│ column = 3 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [                      │

│ |&quot;123&quot;|]<br/>  position = { line = 0<br/>               column = 3 │

│ }                                                                            │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.0</code></span></summary><div><table><thead><tr></tr></the...            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 100.64ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber 123.0                                                                │

│ JNumber                                                                      │

│       Item: 123                                                              │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "-123"

|> parserEqual (Success (JNumber -123.0))



╭─[ 87.03ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │

│ |&quot;-123&quot;|]<br/>                           position = { line =       │

│ 0<br/>                                        column = 4 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │

│ |&quot;-123&quot;|]<br/>  position = { line = 0<br/>               column =  │

│ 4 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ -123.0</code></span></summary><div><table><thead><tr></t...                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 101.50ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber -123.0                                                               │

│ JNumber                                                                      │

│       Item: -123                                                             │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "123.4"

|> parserEqual (Success (JNumber 123.4))



╭─[ 68.70ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │

│ |&quot;123.4&quot;|]<br/>                          position = { line =       │

│ 0<br/>                                       column = 5 }                    │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │

│ |&quot;123.4&quot;|]<br/>  position = { line = 0<br/>               column = │

│ 5 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.4</code></span></summary><div><table><thead><tr></tr><...                │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 82.12ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 123.4                                                                │

│ JNumber                                                                      │

│       Item: 123.4                                                            │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "-123."

|> parserEqual (Success (JNumber -123.0))



╭─[ 86.70ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │

│ |&quot;-123.&quot;|]<br/>                           position = { line =      │

│ 0<br/>                                        column = 4 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │

│ |&quot;-123.&quot;|]<br/>  position = { line = 0<br/>               column = │

│ 4 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ -123.0</code></span></summary><div><table><thead><tr><...                    │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 100.40ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber -123.0                                                               │

│ JNumber                                                                      │

│       Item: -123                                                             │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "00.1"

|> parserEqual (Success (JNumber 0.0))



╭─[ 105.01ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [                │

│ |&quot;00.1&quot;|]<br/>                        position = { line = 0<br/>   │

│ column = 1 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 0.0, { lines = [                        │

│ |&quot;00.1&quot;|]<br/>  position = { line = 0<br/>               column =  │

│ 1 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbod...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 118.22ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber 0.0                                                                  │

│ JNumber                                                                      │

│       Item: 0                                                                │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let jNumber_ = jNumber .>> spaces1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123"

|> parserEqual (Success (JNumber 123.0))



╭─[ 95.82ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │

│ |&quot;123&quot;|]<br/>                          position = { line = 1<br/>  │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [                      │

│ |&quot;123&quot;|]<br/>  position = { line = 1<br/>               column = 0 │

│ }                                                                            │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.0</code></span></summary><div><table><thead><tr></tr></the...            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 106.89ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber 123.0                                                                │

│ JNumber                                                                      │

│       Item: 123                                                              │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "-123"

|> parserEqual (Success (JNumber -123.0))



╭─[ 107.20ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │

│ |&quot;-123&quot;|]<br/>                           position = { line =       │

│ 1<br/>                                        column = 0 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │

│ |&quot;-123&quot;|]<br/>  position = { line = 1<br/>               column =  │

│ 0 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ -123.0</code></span></summary><div><table><thead><tr></t...                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 125.47ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber -123.0                                                               │

│ JNumber                                                                      │

│       Item: -123                                                             │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "-123."

|> parserEqual (

    Failure (

        "number andThen many1 whitespace",

        "Unexpected '.'",

        { currentLine = "-123."; line = 0; column = 4 }

    )

)



╭─[ 81.48ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure<br/>  (&quot;number andThen many1        │

│ whitespace&quot;, &quot;Unexpected &#39;.&#39;&quot;, { currentLine =        │

│ &quot;-123.&quot;<br/>                                                       │

│ line = 0<br/>                                                                │

│ column = 4                                                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1          │

│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div                   │

│ class="dni-plaintext"><pre>Unexpected                                        │

│ &#39;.&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;...                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 92.47ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:4 Error parsing number andThen many1 whitespace                   │

│ -123.                                                                        │

│     ^Unexpected '.'                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123.4"

|> parserEqual (Success (JNumber 123.4))



╭─[ 105.06ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │

│ |&quot;123.4&quot;|]<br/>                          position = { line =       │

│ 1<br/>                                       column = 0 }                    │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │

│ |&quot;123.4&quot;|]<br/>  position = { line = 1<br/>               column = │

│ 0 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.4</code></span></summary><div><table><thead><tr></tr><...                │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 117.64ms - stdout ]────────────────────────────────────────────────────────╮

│ JNumber 123.4                                                                │

│ JNumber                                                                      │

│       Item: 123.4                                                            │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "00.4"

|> parserEqual (

    Failure (

        "number andThen many1 whitespace",

        "Unexpected '0'",

        { currentLine = "00.4"; line = 0; column = 1 }

    )

)



╭─[ 84.80ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure<br/>  (&quot;number andThen many1        │

│ whitespace&quot;, &quot;Unexpected &#39;0&#39;&quot;, { currentLine =        │

│ &quot;00.4&quot;<br/>                                                        │

│ line = 0<br/>                                                                │

│ column = 1                                                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1          │

│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div                   │

│ class="dni-plaintext"><pre>Unexpected                                        │

│ &#39;0&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;0...                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 98.08ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:1 Error parsing number andThen many1 whitespace                   │

│ 00.4                                                                         │

│  ^Unexpected '0'                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123e4"

|> parserEqual (Success (JNumber 1230000.0))



╭─[ 53.28ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [          │

│ |&quot;123e4&quot;|]<br/>                              position = { line =   │

│ 1<br/>                                           column = 0 }                │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [                  │

│ |&quot;123e4&quot;|]<br/>  position = { line = 1<br/>               column = │

│ 0 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 1230000.0</code></span></summary><div><tab...                                │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 62.96ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 1230000.0                                                            │

│ JNumber                                                                      │

│       Item: 1230000                                                          │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123.4e5"

|> parserEqual (Success (JNumber 12340000.0))



╭─[ 48.33ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [         │

│ |&quot;123.4e5&quot;|]<br/>                               position = { line  │

│ = 1<br/>                                            column = 0 }             │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [                 │

│ |&quot;123.4e5&quot;|]<br/>  position = { line = 1<br/>               column │

│ = 0 }                                                                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber 12340000.0</code></span></summary>...    │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 55.71ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 12340000.0                                                           │

│ JNumber                                                                      │

│       Item: 12340000                                                         │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123.4e-5"

|> parserEqual (Success (JNumber 0.001234))



╭─[ 78.35ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [           │

│ |&quot;123.4e-5&quot;|]<br/>                             position = { line = │

│ 1<br/>                                          column = 0 }                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [                   │

│ |&quot;123.4e-5&quot;|]<br/>  position = { line = 1<br/>                     │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 0.001234</code></span></summary><div><ta...                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 91.30ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 0.001234                                                             │

│ JNumber                                                                      │

│       Item: 0.001234                                                         │

│       IsJString: False                                                       │

│       IsJNumber: True                                                        │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jArray                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jArray =

    let left = pchar '[[' .>> spaces

    let right = pchar ']]' .>> spaces

    let comma = pchar ',' .>> spaces

    let value = jValue .>> spaces



    let values = sepBy value comma



    between left values right

    |>> JArray

    <?> "array"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

            jNumber

            jArray

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jArray "[[ 1, 2 ]]"

|> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))



╭─[ 131.14ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], {    │

│ lines = [|&quot;[ 1, 2 ]&quot;|]<br/>                                        │

│ position = { line = 1<br/>                                                   │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [  │

│ |&quot;[ 1, 2 ]&quot;|]<br/>  position = { line = 1<br/>                     │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span class="d...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 141.28ms - stdout ]────────────────────────────────────────────────────────╮

│ JArray [JNumber 1.0; JNumber 2.0]                                            │

│ JArray                                                                       │

│       Item: FSharpList<JValue>                                               │

│         - Item: 1                                                            │

│           IsJString: False                                                   │

│           IsJNumber: True                                                    │

│           IsJBool: False                                                     │

│           IsJNull: False                                                     │

│           IsJObject: False                                                   │

│           IsJArray: False                                                    │

│         - Item: 2                                                            │

│           IsJString: False                                                   │

│           IsJNumber: True                                                    │

│           IsJBool: False                                                     │

│           IsJNull: False                                                     │

│           IsJObject: False                                                   │

│           IsJArray: False                                                    │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: False                                                       │

│       IsJArray: True                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jArray "[[ 1, 2, ]]"

|> parserEqual (

    Failure (

        "array",

        "Unexpected ','",

        { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }

    )

)



╭─[ 71.45ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;array&quot;, &quot;Unexpected     │

│ &#39;,&#39;&quot;, { currentLine = &quot;[ 1, 2, ]&quot;<br/>                │

│ line = 0<br/>                                      column = 6                │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>array</pre></div></td></tr><tr><td>Item2</td><td> │

│ <div class="dni-plaintext"><pre>Unexpected                                   │

│ &#39;,&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;[ 1, 2, ]&quot;<br/>  line = 0<br/>  column = 6          │

│ }</code></span></summary><div><table><thead><t...                            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 80.88ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:6 Error parsing array                                             │

│ [ 1, 2, ]                                                                    │

│       ^Unexpected ','                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jObject                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jObject =

    let left = spaces >>. pchar '{' .>> spaces

    let right = pchar '}' .>> spaces

    let colon = pchar ':' .>> spaces

    let comma = pchar ',' .>> spaces

    let key = quotedString .>> spaces

    let value = jValue .>> spaces



    let keyValue = (key .>> colon) .>>. value

    let keyValues = sepBy keyValue comma



    between left keyValues right

    |>> Map.ofList

    |>> JObject

    <?> "object"



── fsharp ──────────────────────────────────────────────────────────────────────

jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

            jNumber

            jArray

            jObject

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jObject """{ "a":1, "b"  :  2 }"""

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "a", JNumber 1.0

                "b", JNumber 2.0

            ]]

        )

    )

)



╭─[ 155.23ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject (map [(&quot;a&quot;,     │

│ JNumber 1.0); (&quot;b&quot;, JNumber 2.0)]),<br/>   { lines = [|&quot;{     │

│ &quot;a&quot;:1, &quot;b&quot;  :  2 }&quot;|]<br/>     position = { line =  │

│ 1<br/>                  column = 0 }                                         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JObject (map [(&quot;a&quot;, JNumber 1.0);     │

│ (&quot;b&quot;, JNumber 2.0)]), { lines = [|&quot;{ &quot;a&quot;:1,         │

│ &quot;b&quot;  :  2 }&quot;|]<br/>  position = { line = 1<br/>               │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbod...       │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 163.83ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: a                                                             │

│           Value: JNumber                                                     │

│             Item: 1                                                          │

│             IsJString: False                                                 │

│             IsJNumber: True                                                  │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: b                                                             │

│           Value: JNumber                                                     │

│             Item: 2                                                          │

│             IsJString: False                                                 │

│             IsJNumber: True                                                  │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: True                                                        │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jObject """{ "a":1, "b"  :  2, }"""

|> parserEqual (

    Failure (

        "object",

        "Unexpected ','",

        { currentLine = """{ "a":1, "b"  :  2, }"""; line = 0; column = 18 }

    )

)



╭─[ 78.12ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;object&quot;, &quot;Unexpected    │

│ &#39;,&#39;&quot;, { currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  : │

│ 2, }&quot;<br/>                                       line = 0<br/>          │

│ column = 18                                                                  │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>object</pre></div></td></tr><tr><td>Item2</td><td │

│ ><div class="dni-plaintext"><pre>Unexpected                                  │

│ &#39;,&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  :  2, }&quot;<br/>     │

│ lin...                                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 90.00ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:18 Error parsing object                                           │

│ { "a":1, "b"  :  2, }                                                        │

│                   ^Unexpected ','                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jValue                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example1 = """{

    "name" : "Scott",

    "isMale" : true,

    "bday" : {"year":2001, "month":12, "day":25 },

    "favouriteColors" : [["blue", "green"]],

    "emptyArray" : [[]],

    "emptyObject" : {}

}"""

run jValue example1

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "name", JString "Scott"

                "isMale", JBool true

                "bday", JObject (

                    Map.ofList [[

                        "year", JNumber 2001.0

                        "month", JNumber 12.0

                        "day", JNumber 25.0

                    ]]

                )

                "favouriteColors", JArray [[ JString "blue"; JString "green" ]]

                "emptyArray", JArray [[]]

                "emptyObject", JObject Map.empty

            ]]

        )

    )

)



╭─[ 265.06ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject<br/>     (map<br/>        │

│ [(&quot;bday&quot;,<br/>          JObject<br/>            (map<br/>          │

│ [(&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br/>    │

│ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │

│ ]);<br/>         (&quot;emptyObject&quot;, JObject (map []));<br/>           │

│ (&quot;favouriteColors&quot;,                                                │

│ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │

│ d>Item</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>(JObject<br/>  (map<br/>     [                   │

│ (&quot;bday&quot;,<br/>       JObject<br/>         (map<br/>            [    │

│ (...                                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 276.57ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject                                                                      │

│   (map                                                                       │

│      [("bday",                                                               │

│        JObject                                                               │

│          (map                                                                │

│             [("day", JNumber 25.0); ("month", JNumber 12.0);                 │

│              ("year", JNumber 2001.0)])); ("emptyArray", JArray []);         │

│       ("emptyObject", JObject (map []));                                     │

│       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │

│       ("isMale", JBool true); ("name", JString "Scott")])                    │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: bday                                                          │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│               - Key: day                                                     │

│                 Value: JNumber 25.0                                          │

│               - Key: month                                                   │

│                 Value: JNumber 12.0                                          │

│               - Key: year                                                    │

│                 Value: JNumber 2001.0                                        │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: True                                                  │

│             IsJArray: False                                                  │

│         - Key: emptyArray                                                    │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│                                                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: True                                                   │

│         - Key: emptyObject                                                   │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│                                                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: True                                                  │

│             IsJArray: False                                                  │

│         - Key: favouriteColors                                               │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: blue                                                   │

│                 IsJString: True                                              │

│                 IsJNumber: False                                             │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│               - Item: green                                                  │

│                 IsJString: True                                              │

│                 IsJNumber: False                                             │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: True                                                   │

│         - Key: isMale                                                        │

│           Value: JBool                                                       │

│             Item: True                                                       │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: True                                                    │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: name                                                          │

│           Value: JString                                                     │

│             Item: Scott                                                      │

│             IsJString: True                                                  │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: True                                                        │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example2 = """{"widget": {

    "debug": "on",

    "window": {

        "title": "Sample Konfabulator Widget",

        "name": "main_window",

        "width": 500,

        "height": 500

    },

    "image": {

        "src": "Images/Sun.png",

        "name": "sun1",

        "hOffset": 250,

        "vOffset": 250,

        "alignment": "center"

    },

    "text": {

        "data": "Click Here",

        "size": 36,

        "style": "bold",

        "name": "text1",

        "hOffset": 250,

        "vOffset": 100,

        "alignment": "center",

        "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"

    }

}}"""



run jValue example2

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "widget", JObject (

                    Map.ofList [[

                        "debug", JString "on"

                        "window", JObject (

                            Map.ofList [[

                                "title", JString "Sample Konfabulator Widget"

                                "name", JString "main_window"

                                "width", JNumber 500.0

                                "height", JNumber 500.0

                            ]]

                        )

                        "image", JObject (

                            Map.ofList [[

                                "src", JString "Images/Sun.png"

                                "name", JString "sun1"

                                "hOffset", JNumber 250.0

                                "vOffset", JNumber 250.0

                                "alignment", JString "center"

                            ]]

                        )

                        "text", JObject (

                            Map.ofList [[

                                "data", JString "Click Here"

                                "size", JNumber 36.0

                                "style", JString "bold"

                                "name", JString "text1"

                                "hOffset", JNumber 250.0

                                "vOffset", JNumber 100.0

                                "alignment", JString "center"

                                "onMouseUp", JString "sun1.opacity = 

(sun1.opacity / 100) * 90;"

                            ]]

                        )

                    ]]

                )

            ]]

        )

    )

)



╭─[ 814.80ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject<br/>     (map<br/>        │

│ [(&quot;widget&quot;,<br/>          JObject<br/>            (map<br/>        │

│ [(&quot;debug&quot;, JString &quot;on&quot;);<br/>                           │

│ (&quot;image&quot;,<br/>                 JObject<br/>                        │

│ (map<br/>                      [(&quot;alignment&quot;, JString              │

│ &quot;center&quot;);<br/>                                                    │

│ (&quot;hOffset&quot;...</code></span></summary><div><table><thead><tr></tr>< │

│ /thead><tbody><tr><td>Item</td><td><details                                  │

│ class="dni-treeview"><summary><span                                          │

│ class="dni-code-hint"><code>(JObject<br/>  (map<br/>     [                   │

│ (&quot;widget&quot;,<br/>       JObject<br/>         (map<br/>      ...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 826.11ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject                                                                      │

│   (map                                                                       │

│      [("widget",                                                             │

│        JObject                                                               │

│          (map                                                                │

│             [("debug", JString "on");                                        │

│              ("image",                                                       │

│               JObject                                                        │

│                 (map                                                         │

│                    [("alignment", JString "center"); ("hOffset", JNumber     │

│ 250.0);                                                                      │

│                     ("name", JString "sun1"); ("src", JString                │

│ "Images/Sun.png");                                                           │

│                     ("vOffset", JNumber 250.0)]));                           │

│              ("text",                                                        │

│               JObject                                                        │

│                 (map                                                         │

│                    [("alignment", JString "center");                         │

│                     ("data", JString "Click Here"); ("hOffset", JNumber      │

│ 250.0);                                                                      │

│                     ("name", JString "text1");                               │

│                     ("onMouseUp",                                            │

│                      JString "sun1.opacity = (sun1.opacity / 100) * 90;");   │

│                     ("size", JNumber 36.0); ("style", JString "bold");       │

│                     ("vOffset", JNumber 100.0)]));                           │

│              ("window",                                                      │

│               JObject                                                        │

│                 (map                                                         │

│                    [("height", JNumber 500.0); ("name", JString              │

│ "main_window");                                                              │

│                     ("title", JString "Sample Konfabulator Widget");         │

│                     ("width", JNumber 500.0)]))]))])                         │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: widget                                                        │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│               - Key: debug                                                   │

│                 Value: JString "on"                                          │

│               - Key: image                                                   │

│                 Value: JObject                                               │

│   (map                                                                       │

│      [("alignment", JString "center"); ("hOffset", JNumber 250.0);           │

│       ("name", JString "sun1"); ("src", JString "Images/Sun.png");           │

│       ("vOffset", JNumber 250.0)])                                           │

│               - Key: text                                                    │

│                 Value: JObject                                               │

│   (map                                                                       │

│      [("alignment", JString "center"); ("data", JString "Click Here");       │

│       ("hOffset", JNumber 250.0); ("name", JString "text1");                 │

│       ("onMouseUp", JString "sun1.opacity = (sun1.opacity / 100) * 90;");    │

│       ("size", JNumber 36.0); ("style", JString "bold");                     │

│       ("vOffset", JNumber 100.0)])                                           │

│               - Key: window                                                  │

│                 Value: JObject                                               │

│   (map                                                                       │

│      [("height", JNumber 500.0); ("name", JString "main_window");            │

│       ("title", JString "Sample Konfabulator Widget"); ("width", JNumber     │

│ 500.0)])                                                                     │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: True                                                  │

│             IsJArray: False                                                  │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: True                                                        │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example3 = """{

  "string": "Hello, \"World\"!",

  "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",

  "number": 42,

  "scientificNumber": 3.14e-10,

  "boolean": true,

  "nullValue": null,

  "array": [[1, 2, 3, 4, 5]],

  "unicodeString1": "프리마",

  "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, 

\u0022\u0057\u006F\u0072\u006C\u0064\u0022!",

  "specialCharacters": "!@#$%^&*()",

  "emptyArray": [[]],

  "emptyObject": {},

  "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],

  "object": {

    "nestedString": "Nested Value",

    "nestedNumber": 3.14,

    "nestedBoolean": false,

    "nestedNull": null,

    "nestedArray": [["a", "b", "c"]],

    "nestedObject": {

      "nestedProperty": "Nested Object Value"

    }

  },

  "nestedObjects": [[

    {"name": "Alice", "age": 25},

    {"name": "Bob", "age": 30}

  ]]

}"""

run jValue example3

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "string", JString @"Hello, ""World""!"

                "escapedString", JString @"This string contains 

\/\\\b\f\n\r\t\""\'"

                "number", JNumber 42.0

                "scientificNumber", JNumber 3.14e-10

                "boolean", JBool true

                "nullValue", JNull

                "array", JArray [[

                    JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 

5.0

                ]]

                "unicodeString1", JString "프리마"

                "unicodeString2", JString @"Hello, ""World""!"

                "specialCharacters", JString "!@#$%^&*()"

                "emptyArray", JArray [[]]

                "emptyObject", JObject Map.empty

                "nestedArrays", JArray [[

                    JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]

                    JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]

                ]]

                "object", JObject (

                    Map.ofList [[

                        "nestedString", JString "Nested Value"

                        "nestedNumber", JNumber 3.14

                        "nestedBoolean", JBool false

                        "nestedNull", JNull

                        "nestedArray", JArray [[JString "a"; JString "b"; 

JString "c"]]

                        "nestedObject", JObject (

                            Map.ofList [[

                                "nestedProperty", JString "Nested Object Value"

                            ]]

                        )

                    ]]

                )

                "nestedObjects", JArray [[

                  JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber

25.0 ]])

                  JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 

30.0 ]])

                ]]

            ]]

        )

    )

)



╭─[ 973.88ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject<br/>     (map<br/>        │

│ [(&quot;array&quot;,<br/>          JArray<br/>            [JNumber 1.0;      │

│ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br/>                   │

│ (&quot;boolean&quot;, JBool true); (&quot;emptyArray&quot;, JArray []);<br/> │

│ (&quot;emptyObject&quot;, JObject (map []));<br/>                            │

│ (&quot;escapedString&quot;, JString &quot;This                               │

│ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │

│ td>Item</td><td><details class="dni-treeview"><summary><span                 │

│ class="dni-code-hint"><code>(JObject<br/>  (map<br/>     [                   │

│ (&quot;array&quot;,<br/>       JArray [JNumber 1.0; JNumber 2.0; JNumber     │

│ 3.0; JNumber 4.0; J...                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 989.08ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject                                                                      │

│   (map                                                                       │

│      [("array",                                                              │

│        JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber   │

│ 5.0]);                                                                       │

│       ("boolean", JBool true); ("emptyArray", JArray []);                    │

│       ("emptyObject", JObject (map []));                                     │

│       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │

│       ("nestedArrays",                                                       │

│        JArray                                                                │

│          [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0];                    │

│           JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                  │

│       ("nestedObjects",                                                      │

│        JArray                                                                │

│          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │

│           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │

│       ("nullValue", JNull); ("number", JNumber 42.0); ...])                  │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: array                                                         │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: 1                                                      │

│                 IsJString: False                                             │

│                 IsJNumber: True                                              │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│               - Item: 2                                                      │

│                 IsJString: False                                             │

│                 IsJNumber: True                                              │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│               - Item: 3                                                      │

│                 IsJString: False                                             │

│                 IsJNumber: True                                              │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│               - Item: 4                                                      │

│                 IsJString: False                                             │

│                 IsJNumber: True                                              │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│               - Item: 5                                                      │

│                 IsJString: False                                             │

│                 IsJNumber: True                                              │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: False                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: True                                                   │

│         - Key: boolean                                                       │

│           Value: JBool                                                       │

│             Item: True                                                       │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: True                                                    │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: emptyArray                                                    │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│                                                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: True                                                   │

│         - Key: emptyObject                                                   │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│                                                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: True                                                  │

│             IsJArray: False                                                  │

│         - Key: escapedString                                                 │

│           Value: JString                                                     │

│             Item: This string contains \/\\\b\f\n\r\t\"\'                    │

│             IsJString: True                                                  │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: nestedArrays                                                  │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: [ JNumber 1.0, JNumber 2.0, JNumber 3.0 ]              │

│                 IsJString: False                                             │

│                 IsJNumber: False                                             │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: True                                               │

│               - Item: [ JNumber 4.0, JNumber 5.0, JNumber 6.0 ]              │

│                 IsJString: False                                             │

│                 IsJNumber: False                                             │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: False                                             │

│                 IsJArray: True                                               │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: True                                                   │

│         - Key: nestedObjects                                                 │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: [ [age, JNumber 25.0], [name, JString "Alice"] ]       │

│                 IsJString: False                                             │

│                 IsJNumber: False                                             │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: True                                              │

│                 IsJArray: False                                              │

│               - Item: [ [age, JNumber 30.0], [name, JString "Bob"] ]         │

│                 IsJString: False                                             │

│                 IsJNumber: False                                             │

│                 IsJBool: False                                               │

│                 IsJNull: False                                               │

│                 IsJObject: True                                              │

│                 IsJArray: False                                              │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: True                                                   │

│         - Key: nullValue                                                     │

│           Value: JValue                                                      │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: True                                                    │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: number                                                        │

│           Value: JNumber                                                     │

│             Item: 42                                                         │

│             IsJString: False                                                 │

│             IsJNumber: True                                                  │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: object                                                        │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│               - Key: nestedArray                                             │

│                 Value: JArray [JString "a"; JString "b"; JString "c"]        │

│               - Key: nestedBoolean                                           │

│                 Value: JBool false                                           │

│               - Key: nestedNull                                              │

│                 Value: JNull                                                 │

│               - Key: nestedNumber                                            │

│                 Value: JNumber 3.14                                          │

│               - Key: nestedObject                                            │

│                 Value: JObject (map [("nestedProperty", JString "Nested      │

│ Object Value")])                                                             │

│               - Key: nestedString                                            │

│                 Value: JString "Nested Value"                                │

│             IsJString: False                                                 │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: True                                                  │

│             IsJArray: False                                                  │

│         - Key: scientificNumber                                              │

│           Value: JNumber                                                     │

│             Item: 3.14E-10                                                   │

│             IsJString: False                                                 │

│             IsJNumber: True                                                  │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: specialCharacters                                             │

│           Value: JString                                                     │

│             Item: !@#$%^&*()                                                 │

│             IsJString: True                                                  │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: string                                                        │

│           Value: JString                                                     │

│             Item: Hello, "World"!                                            │

│             IsJString: True                                                  │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: unicodeString1                                                │

│           Value: JString                                                     │

│             Item: 프리마                                                     │

│             IsJString: True                                                  │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│         - Key: unicodeString2                                                │

│           Value: JString                                                     │

│             Item: Hello, "World"!                                            │

│             IsJString: True                                                  │

│             IsJNumber: False                                                 │

│             IsJBool: False                                                   │

│             IsJNull: False                                                   │

│             IsJObject: False                                                 │

│             IsJArray: False                                                  │

│       IsJString: False                                                       │

│       IsJNumber: False                                                       │

│       IsJBool: False                                                         │

│       IsJNull: False                                                         │

│       IsJObject: True                                                        │

│       IsJArray: False                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook JsonParser.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 545759 bytes to JsonParser.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Parser (Polyglot)                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### TextInput                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Position =

    {

        line : int

        column : int

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let initialPos = { line = 0; column = 0 }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline incrCol (pos : Position) =

    { pos with column = pos.column + 1 }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline incrLine pos =

    { line = pos.line + 1; column = 0 }



── fsharp ──────────────────────────────────────────────────────────────────────

type InputState =

    {

        lines : string[[]]

        position : Position

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline fromStr str =

    {

        lines =

            if str |> String.IsNullOrEmpty

            then [[||]]

            else str |> Sm.split_string [[| "\r\n"; "\n" |]]

        position = initialPos

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fromStr "" |> _assertEqual {

    lines = [[||]]

    position = { line = 0; column = 0 }

}



╭─[ 77.27ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [  ]                                                            │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fromStr "Hello \n World" |> _assertEqual {

    lines = [[| "Hello "; " World" |]]

    position = { line = 0; column = 0 }

}



╭─[ 25.49ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [ Hello ,  World ]                                              │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline currentLine inputState =

    let linePos = inputState.position.line

    if linePos < inputState.lines.Length

    then inputState.lines.[[linePos]]

    else "end of file"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline nextChar input =

    let linePos = input.position.line

    let colPos = input.position.column



    if linePos >= input.lines.Length

    then input, None

    else

        let currentLine = currentLine input

        if colPos < currentLine.Length then

            let char = currentLine.[[colPos]]

            let newPos = incrCol input.position

            let newState = { input with position = newPos }

            newState, Some char

        else

            let char = '\n'

            let newPos = incrLine input.position

            let newState = { input with position = newPos }

            newState, Some char



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let newInput, charOpt = fromStr "Hello World" |> nextChar



newInput |> _assertEqual {

    lines = [[| "Hello World" |]]

    position = { line = 0; column = 1 }

}

charOpt |> _assertEqual (Some 'H')



╭─[ 42.75ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [ Hello World ]                                                 │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 1                                                            │

│ FSharpOption<Char>                                                           │

│       Value: H                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar



newInput |> _assertEqual {

    lines = [[| "Hello"; ""; "World" |]]

    position = { line = 0; column = 1 }

}

charOpt |> _assertEqual (Some 'H')



╭─[ 34.71ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [ Hello, , World ]                                              │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 1                                                            │

│ FSharpOption<Char>                                                           │

│       Value: H                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### Parser                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Input = InputState

type ParserLabel = string

type ParserError = string



type ParserPosition =

    {

        currentLine : string

        line : int

        column : int

    }



type ParseResult<'a> =

    | Success of 'a

    | Failure of ParserLabel * ParserError * ParserPosition



type Parser<'a> =

    {

        label : ParserLabel

        parseFn : Input -> ParseResult<'a * Input>

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline printResult result =

    match result with

    | Success (value, input) ->

        printfn $"%A{value}"

    | Failure (label, error, parserPos) ->

        let errorLine = parserPos.currentLine

        let colPos = parserPos.column

        let linePos = parserPos.line

        let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"

        printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing 

%s{label}\n%s{errorLine}\n%s{failureCaret}"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runOnInput parser input =

    parser.parseFn input



── fsharp ──────────────────────────────────────────────────────────────────────

let inline run parser inputStr =

    runOnInput parser (fromStr inputStr)



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parserPositionFromInputState (inputState : Input) =

    {

        currentLine = currentLine inputState

        line = inputState.position.line

        column = inputState.position.column

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getLabel parser =

    parser.label



── fsharp ──────────────────────────────────────────────────────────────────────

let inline setLabel parser newLabel =

    {

        label = newLabel

        parseFn = fun input ->

            match parser.parseFn input with

            | Success s -> Success s

            | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let (<?>) = setLabel



── fsharp ──────────────────────────────────────────────────────────────────────

let inline satisfy predicate label =

    {

        label = label

        parseFn = fun input ->

            let remainingInput, charOpt = nextChar input

            match charOpt with

            | None ->

                let err = "No more input"

                let pos = parserPositionFromInputState input

                Failure (label, err, pos)

            | Some first ->

                if predicate first

                then Success (first, remainingInput)

                else

                    let err = $"Unexpected '%c{first}'"

                    let pos = parserPositionFromInputState input

                    Failure (label, err, pos)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

runOnInput parser input |> _assertEqual (

    Success (

        'H',

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 43.57ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - H                                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "World"

let parser = satisfy (fun c -> c = 'H') "H"

runOnInput parser input |> _assertEqual (

    Failure (

        "H",

        "Unexpected 'W'",

        {

            currentLine = "World"

            line = 0

            column = 0

        }

    )

)



╭─[ 48.32ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: H                                                               │

│       Item2: Unexpected 'W'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: World                                                   │

│         line: 0                                                              │

│         column: 0                                                            │

│       IsSuccess: False                                                       │

│       IsFailure: True                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline bindP f p =

    {

        label = "unknown"

        parseFn = fun input ->

            match runOnInput p input with

            | Failure (label, err, pos) -> Failure (label, err, pos)

            | Success (value1, remainingInput) -> runOnInput (f value1) 

remainingInput

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (>>=) p f = bindP f p



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"

runOnInput parser2 input |> _assertEqual (

    Success (

        'e',

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 60.67ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - e                                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "World"

let parser = satisfy (fun c -> c = 'W') "W"

let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"

runOnInput parser2 input |> _assertEqual (

    Failure (

        "e",

        "Unexpected 'o'",

        {

            currentLine = "World"

            line = 0

            column = 1

        }

    )

)



╭─[ 49.58ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: e                                                               │

│       Item2: Unexpected 'o'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: World                                                   │

│         line: 0                                                              │

│         column: 1                                                            │

│       IsSuccess: False                                                       │

│       IsFailure: True                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline returnP x =

    {

        label = $"%A{x}"

        parseFn = fun input -> Success (x, input)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = returnP "Hello"

runOnInput parser input |> _assertEqual (

    Success (

        "Hello",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 0 }

        }

    )

)



╭─[ 53.88ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - Hello                                                    │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 0                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline mapP f =

    bindP (f >> returnP)



── fsharp ──────────────────────────────────────────────────────────────────────

let (<!>) = mapP



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (|>>) x f = f <!> x



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = parser |>> string

runOnInput parser2 input |> _assertEqual (

    Success (

        "H",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 38.92ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - H                                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline applyP fP xP =

    fP >>=

        fun f ->

            xP >>=

                fun x ->

                    returnP (f x)



── fsharp ──────────────────────────────────────────────────────────────────────

let (<*>) = applyP



── fsharp ──────────────────────────────────────────────────────────────────────

let inline lift2 f xP yP =

    returnP f <*> xP <*> yP



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'e') "e"

let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2

runOnInput parser3 input |> _assertEqual (

    Success (

        "He",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 67.55ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - He                                                       │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline andThen p1 p2 =

    p1 >>=

        fun p1Result ->

            p2 >>=

                fun p2Result ->

                    returnP (p1Result, p2Result)

    <?> $"{getLabel p1} andThen {getLabel p2}"



── fsharp ──────────────────────────────────────────────────────────────────────

let (.>>.) = andThen



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'e') "e"

let parser3 = parser .>>. parser2

runOnInput parser3 input |> _assertEqual (

    Success (

        ('H', 'e'),

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 67.06ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - ( H, e )                                                 │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline orElse p1 p2 =

    {

        label = $"{getLabel p1} orElse {getLabel p2}"

        parseFn = fun input ->

            match runOnInput p1 input with

            | Success _ as result -> result

            | Failure _ -> runOnInput p2 input

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let (<|>) = orElse



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'h') "h"

let parser3 = parser <|> parser2

runOnInput parser3 input |> _assertEqual (

    Success (

        'h',

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 44.68ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - h                                                        │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline choice listOfParsers =

    listOfParsers |> List.reduce (<|>)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'h') "h"

let parser3 = choice [[ parser; parser2 ]]

runOnInput parser3 input |> _assertEqual (

    Success (

        'h',

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 45.30ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - h                                                        │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let rec sequence parserList =

    match parserList with

    | [[]] -> returnP [[]]

    | head :: tail -> (lift2 cons) head (sequence tail)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'e') "e"

let parser3 = sequence [[ parser; parser2 ]]

runOnInput parser3 input |> _assertEqual (

    Success (

        [[ 'H'; 'e' ]],

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 81.35ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [ H, e ]                                                 │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let rec parseZeroOrMore parser input =

    match runOnInput parser input with

    | Failure (_, _, _) ->

        [[]], input

    | Success (firstValue, inputAfterFirstParse) ->

        let subsequentValues, remainingInput = parseZeroOrMore parser 

inputAfterFirstParse

        firstValue :: subsequentValues, remainingInput



── fsharp ──────────────────────────────────────────────────────────────────────

let inline many parser =

    {

        label = $"many {getLabel parser}"

        parseFn = fun input -> Success (parseZeroOrMore parser input)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = many parser

runOnInput parser2 input |> _assertEqual (

    Success (

        [[]],

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 0 }

        }

    )

)



╭─[ 67.94ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [  ]                                                     │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 0                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline many1 p =

    p >>=

        fun head ->

            many p >>=

                fun tail ->

                    returnP (head :: tail)

    <?> $"many1 {getLabel p}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = many1 parser

runOnInput parser2 input |> _assertEqual (

    Failure (

        "many1 H",

        "Unexpected 'h'",

        {

            currentLine = "hello"

            line = 0

            column = 0

        }

    )

)



╭─[ 57.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: many1 H                                                         │

│       Item2: Unexpected 'h'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: hello                                                   │

│         line: 0                                                              │

│         column: 0                                                            │

│       IsSuccess: False                                                       │

│       IsFailure: True                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline opt p =

    let some = p |>> Some

    let none = returnP None

    (some <|> none)

    <?> $"opt {getLabel p}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = opt parser

runOnInput parser2 input |> _assertEqual (

    Success (

        None,

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 0 }

        }

    )

)



╭─[ 50.80ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - <null>                                                   │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 0                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (.>>) p1 p2 =

    p1 .>>. p2

    |> mapP fst



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (>>.) p1 p2 =

    p1 .>>. p2

    |> mapP snd



── fsharp ──────────────────────────────────────────────────────────────────────

let inline between p1 p2 p3 =

    p1 >>. p2 .>> p3



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "[[Hello]]"

let parser =

    between

        (satisfy (fun c -> c = '[[') "[[")

        (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> 

List.contains c) "letter"))

        (satisfy (fun c -> c = ']]') "]]")

runOnInput parser input |> _assertEqual (

    Success (

        [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],

        {

            lines = [[| "[[Hello]]" |]]

            position = { line = 0; column = 7 }

        }

    )

)



╭─[ 144.88ms - stdout ]────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [ H, e, l, l, o ]                                        │

│       - InputState                                                           │

│           lines: [ [Hello] ]                                                 │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 7                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sepBy1 p sep =

    let sepThenP = sep >>. p

    p .>>. many sepThenP

    |>> fun (p, pList) -> p :: pList



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sepBy p sep =

    sepBy1 p sep <|> returnP [[]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello,World"

let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy 

(fun c -> c = ',') "comma")

runOnInput parser input |> _assertEqual (

    Success (

        [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] 

]],

        {

            lines = [[| "Hello,World" |]]

            position = { line = 1; column = 0 }

        }

    )

)



╭─[ 98.04ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - FSharpList<FSharpList<Char>>                             │

│ [ H, e, l, l, o ]                                                            │

│ [ W, o, r, l, d,                                                             │

│  ]                                                                           │

│       - InputState                                                           │

│           lines: [ Hello,World ]                                             │

│           position: Position                                                 │

│             line: 1                                                          │

│             column: 0                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline pchar charToMatch =

    satisfy ((=) charToMatch) $"%c{charToMatch}"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline anyOf listOfChars =

    listOfChars

    |> List.map pchar

    |> choice

    <?> $"anyOf %A{listOfChars}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many

runOnInput parser input |> _assertEqual (

    Success (

        [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 5 }

        }

    )

)



╭─[ 44.75ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [ H, e, l, l, o ]                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 5                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline charListToStr charList =

    charList |> List.toArray |> String



── fsharp ──────────────────────────────────────────────────────────────────────

let inline manyChars cp =

    many cp

    |>> charListToStr



── fsharp ──────────────────────────────────────────────────────────────────────

let inline manyChars1 cp =

    many1 cp

    |>> charListToStr



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])

runOnInput parser input |> _assertEqual (

    Success (

        "Hello",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 5 }

        }

    )

)



╭─[ 73.57ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - Hello                                                    │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 5                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline pstring str =

    str

    |> List.ofSeq

    |> List.map pchar

    |> sequence

    |> mapP charListToStr

    <?> str



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = pstring "Hello"

runOnInput parser input |> _assertEqual (

    Success (

        "Hello",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 5 }

        }

    )

)



╭─[ 52.77ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - Hello                                                    │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 5                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let whitespaceChar =

    satisfy Char.IsWhiteSpace "whitespace"



── fsharp ──────────────────────────────────────────────────────────────────────

let spaces = many whitespaceChar



── fsharp ──────────────────────────────────────────────────────────────────────

let spaces1 = many1 whitespaceChar



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "  Hello"

let parser = spaces1 .>>. pstring "Hello"

runOnInput parser input |> _assertEqual (

    Success (

        ([[ ' '; ' ' ]], "Hello"),

        {

            lines = [[| "  Hello" |]]

            position = { line = 0; column = 7 }

        }

    )

)



╭─[ 68.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       -         - [  ,   ]                                       │

│         - Hello                                                              │

│       - InputState                                                           │

│           lines: [   Hello ]                                                 │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 7                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let digitChar =

    satisfy Char.IsDigit "digit"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = digitChar

runOnInput parser input |> _assertEqual (

    Failure (

        "digit",

        "Unexpected 'H'",

        {

            currentLine = "Hello"

            line = 0

            column = 0

        }

    )

)



╭─[ 27.12ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: digit                                                           │

│       Item2: Unexpected 'H'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: Hello                                                   │

│         line: 0                                                              │

│         column: 0                                                            │

│       IsSuccess: False                                                       │

│       IsFailure: True                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let pint =

    let inline resultToInt (sign, digits) =

        let i = int digits

        match sign with

        | Some ch -> -i

        | None -> i



    let digits = manyChars1 digitChar



    opt (pchar '-') .>>. digits

    |> mapP resultToInt

    <?> "integer"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run pint "-123"

|> _assertEqual (

    Success (

        -123,

        {

            lines = [[| "-123" |]]

            position = { line = 0; column = 4 }

        }

    )

)



╭─[ 38.62ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - -123                                                     │

│       - InputState                                                           │

│           lines: [ -123 ]                                                    │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 4                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let pfloat =

    let inline resultToFloat (((sign, digits1), point), digits2) =

        let fl = float $"{digits1}.{digits2}"

        match sign with

        | Some ch -> -fl

        | None -> fl



    let digits = manyChars1 digitChar



    opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits

    |> mapP resultToFloat

    <?> "float"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run pfloat "-123.45"

|> _assertEqual (

    Success (

        -123.45,

        {

            lines = [[| "-123.45" |]]

            position = { line = 0; column = 7 }

        }

    )

)



╭─[ 41.55ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - -123.45                                                  │

│       - InputState                                                           │

│           lines: [ -123.45 ]                                                 │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 7                                                        │

│     - IsSuccess: True                                                        │

│       IsFailure: False                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline createParserForwardedToRef<'a> () =

    let mutable parserRef : Parser<'a> =

        {

            label = "unknown"

            parseFn = fun _ -> failwith "unfixed forwarded parser"

        }



    let wrapperParser =

        { parserRef with

            parseFn = fun input -> runOnInput parserRef input

        }



    wrapperParser, (fun v -> parserRef <- v)



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (>>%) p x =

    p

    |>> fun _ -> x

[NbConvertApp] Converting notebook Parser.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 415573 bytes to Parser.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: JsonParser.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Parser.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: JsonParser.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Parser.dib

In [ ]:
{ . "$ScriptDir/../lib/fsharp/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Async (Polyglot)                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## choice                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline choice asyncs = async {

    let e = Event<_> ()

    use cts = new System.Threading.CancellationTokenSource ()

    let fn =

        asyncs

        |> Seq.map (fun a -> async {

            let! x = a

            e.Trigger x

        })

        |> Async.Parallel

        |> Async.Ignore

    Async.Start (fn, cts.Token)

    let! result = Async.AwaitEvent e.Publish

    cts.Cancel ()

    return result

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## map                                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline map fn a = async {

    let! x = a

    return fn x

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## catch                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline catch a =

    a

    |> Async.Catch

    |> map (function

        | Choice1Of2 result -> Ok result

        | Choice2Of2 ex -> Error ex

    )



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## runWithTimeoutAsync                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutAsync (timeout : int) fn =

    let getLocals () = $"timeout: {timeout} / {getLocals ()}"



    let timeoutTask = async {

        do! Async.Sleep timeout

        trace Debug (fun () -> "runWithTimeoutAsync") getLocals

        return None

    }



    let task = async {

        try

            let! result = fn

            return Some result

        with

        | :? System.AggregateException as ex when

            ex.InnerExceptions

            |> Seq.exists (function :? 

System.Threading.Tasks.TaskCanceledException -> true | _ -> false)

            ->

            let getLocals () = $"ex: {ex |> Sm.format_exception} / {getLocals 

()}"

            trace Warning (fun () -> "runWithTimeoutAsync") getLocals

            return None

        | ex ->

            trace Critical (fun () -> $"runWithTimeoutAsync** / ex: {ex |> 

Sm.format_exception}") getLocals

            return None

    }



    [[ timeoutTask; task ]]

    |> choice



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeout timeout fn =

    fn

    |> runWithTimeoutAsync timeout

    |> Async.RunSynchronously



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 60

|> runWithTimeout 10

|> _assertEqual None



╭─[ 176.83ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 10                        │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 10

|> runWithTimeout 60

|> _assertEqual (Some ())



╭─[ 120.22ms - stdout ]────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



async {

    raise (exn "error")

}

|> runWithTimeout 60

|> _assertEqual None



╭─[ 138.77ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Critical] runWithTimeoutAsync** / ex: System.Exception: error / │

│ timeout: 60                                                                  │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## runWithTimeoutChildAsync                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutChildAsync (timeout : int) fn = async {

    let getLocals () = $"timeout: {timeout} / {getLocals ()}"

    let! child = Async.StartChild (fn, timeout)

    return!

        child

        |> catch

        |> map (function

            | Ok result -> Some result

            | Error (:? System.TimeoutException as ex) ->

                trace Debug (fun () -> $"runWithTimeoutChildAsync") getLocals

                None

            | Error ex ->

                trace Critical (fun () -> $"runWithTimeoutChildAsync** / ex: {ex

|> Sm.format_exception}") getLocals

                None

        )

}



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutChild timeout fn =

    fn

    |> runWithTimeoutChildAsync timeout

    |> Async.RunSynchronously



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 60

|> runWithTimeoutChild 10

|> _assertEqual None



╭─[ 100.08ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #3 [Debug] runWithTimeoutChildAsync / timeout: 10                   │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 10

|> runWithTimeoutChild 60

|> _assertEqual (Some ())



╭─[ 67.32ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



async {

    raise (exn "error")

}

|> runWithTimeoutChild 60

|> _assertEqual None



╭─[ 81.47ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #4 [Critical] runWithTimeoutChildAsync** / ex: System.Exception:    │

│ error / timeout: 60                                                          │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## runWithTimeoutStrict                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutStrict (timeout : int) fn =

    let getLocals () = $"timeout: {timeout} / {getLocals ()}"



    let timeoutTask = async {

        do! Async.Sleep timeout

        return None, getLocals

    }



    let task = async {

        try

            return Async.RunSynchronously (fn, timeout) |> Some, getLocals

        with

        | :? System.TimeoutException as ex ->

            let getLocals () = $"ex: {ex |> Sm.format_exception} / {getLocals 

()}"

            return None, getLocals

        | ex ->

            trace Critical (fun () -> $"runWithTimeoutStrict / ex: {ex |> 

Sm.format_exception}") getLocals

            return raise ex

    }



    try

        [[| timeoutTask; task |]]

        |> Array.map Async.StartAsTask

        |> System.Threading.Tasks.Task.WhenAny

        |> fun task ->

            match task.Result.Result with

            | None, getLocals ->

                trace Debug (fun () -> "runWithTimeoutStrict") getLocals

                None

            | result, _ -> result

    with

    | :? System.AggregateException as ex when

        ex.InnerExceptions

        |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException 

-> true | _ -> false)

        ->

        let getLocals () = $"ex: {ex |> Sm.format_exception} / {getLocals ()}"

        trace Warning (fun () -> "runWithTimeoutStrict") getLocals

        None

    | ex ->

        let getLocals () = $"ex: {ex |> Sm.format_exception} / {getLocals ()}"

        trace Critical (fun () -> "runWithTimeoutStrict**") getLocals

        None



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 60

|> runWithTimeoutStrict 10

|> _assertEqual None



╭─[ 91.13ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:01 #5 [Debug] runWithTimeoutStrict / timeout: 10                       │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 10

|> runWithTimeoutStrict 60

|> _assertEqual (Some ())



╭─[ 89.38ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



async {

    raise (exn "error")

}

|> runWithTimeoutStrict 60

|> _assertEqual None



╭─[ 111.73ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:01 #6 [Critical] runWithTimeoutStrict / ex: System.Exception: error /  │

│ timeout: 60                                                                  │

│ 00:00:01 #7 [Critical] runWithTimeoutStrict** / ex:                          │

│ System.AggregateException: One or more errors occurred. (error) / timeout:   │

│ 60                                                                           │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## awaitValueTask                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =

    task.AsTask () |> Async.AwaitTask



let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =

    task.AsTask () |> Async.AwaitTask



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## init                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline init x = async {

    return x

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



init 1

|> Async.RunSynchronously

|> _assertEqual 1



╭─[ 33.34ms - stdout ]─────────────────────────────────────────────────────────╮

│ 1                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## mergeCancellationTokenWithDefaultAsync                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline mergeCancellationTokenWithDefaultAsync (token : 

System.Threading.CancellationToken) = async {

    let! ct = Async.CancellationToken

    let dct = Async.DefaultCancellationToken

    let cts = System.Threading.CancellationTokenSource.CreateLinkedTokenSource 

[[| ct; dct; token |]]

    return cts.Token

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## withCancellationToken                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =

    Async.StartImmediateAsTask (fn, ct)

    |> Async.AwaitTask



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let cts = new System.Threading.CancellationTokenSource ()



async {

    let run = async {

        do! Async.Sleep 100

        return 1

    }



    let! child =

        run

        |> withCancellationToken cts.Token

        |> catch

        |> Async.StartChild



    do! Async.Sleep 50

    cts.Cancel ()

    return! child

}

|> Async.RunSynchronously

|> Result.mapError _.Message

|> _assertEqual (Error ("A task was canceled."))



╭─[ 172.20ms - stdout ]────────────────────────────────────────────────────────╮

│ FSharpResult<Int32,String>                                                   │

│       ResultValue: 0                                                         │

│       ErrorValue: A task was canceled.                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## withTraceLevel                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline withTraceLevel level fn = async {

    let oldTraceLevel = traceLevel

    try

        traceLevel <- level

        return! fn

    finally

        traceLevel <- oldTraceLevel

}

[NbConvertApp] Converting notebook Async.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 325715 bytes to Async.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # AsyncSeq (Polyglot)                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/Async.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## subscribeEvent                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline subscribeEvent (event: IEvent<'H, 'A>) map =

    let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

    System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

    |> FSharp.Control.AsyncSeq.ofObservableBuffered



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



type TestEvent () as self =

    member val Calls = [[]] with get, set

    member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get



    member _.AddCall text =

        self.Calls <- self.Calls @ [[ text ]]



    member _.EventInterface =

        { new IEvent<ErrorEventHandler, ErrorEventArgs> with

            member _.AddHandler handler =

                self.AddCall "AddHandler"

                self.Event.Publish.AddHandler handler



            member _.RemoveHandler handler =

                self.AddCall "RemoveHandler"

                self.Event.Publish.RemoveHandler handler



            member _.Subscribe observer =

                self.AddCall "IObservable.Subscribe"

                let disposable = self.Event.Publish.Subscribe observer

                new_disposable (fun () ->

                    self.AddCall "IObservable.Dispose"

                    disposable.Dispose ()

                )

        }



    member _.Subscribe () =

        subscribeEvent

            self.EventInterface

            (fun args ->

                let result = args.GetException () |> Sm.format_exception

                self.AddCall $"TestEvent.Subscribe({result})"

                result

            )



    member _.Iter subscription =

        subscription

        |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {

            self.AddCall $"TestEvent.Iter({i}: {error})"

        })



    member _.WaitCall text = async {

        while self.Calls |> List.last <> text do

            do! Async.SwitchToThreadPool ()

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testEvent = TestEvent ()



async {

    testEvent.AddCall "1"

    let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild

    do! testEvent.WaitCall "AddHandler"

    testEvent.AddCall "2"

    do! child

    testEvent.AddCall "3"

}

|> Async.runWithTimeout 300

|> _assertEqual None



testEvent.Calls

|> Seq.toList

|> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]



╭─[ 576.37ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 300                       │

│ <null>                                                                       │

│ [ 1, AddHandler, 2, RemoveHandler ]                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testEvent = TestEvent ()



async {

    testEvent.AddCall "1"

    let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild

    do! testEvent.WaitCall "AddHandler"

    testEvent.AddCall "2"

    use _ = testEvent.EventInterface.Subscribe (fun args ->

        testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"

    )

    testEvent.AddCall "3"

    do! child

    testEvent.AddCall "4"

}

|> Async.runWithTimeout 300

|> _assertEqual None



testEvent.Calls

|> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; 

"RemoveHandler"; "IObservable.Dispose" ]]



╭─[ 480.39ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 300                       │

│ <null>                                                                       │

│ [ 1, AddHandler, 2, IObservable.Subscribe, 3, RemoveHandler,                 │

│ IObservable.Dispose ]                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testEvent = TestEvent ()



async {

    testEvent.AddCall "1"

    let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild

    do! testEvent.WaitCall "AddHandler"

    testEvent.AddCall "2"

    use _ = testEvent.EventInterface.Subscribe (fun args ->

        async {

            do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"

            testEvent.AddCall 

$"testEvent.EventInterface.Subscribe({args.GetException () |> 

Sm.format_exception})"

        }

        |> Async.RunSynchronously

    )

    testEvent.AddCall "3"

    testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))

    testEvent.AddCall "4"

    do! child

    testEvent.AddCall "5"

}

|> Async.runWithTimeout 300

|> _assertEqual None



testEvent.Calls

|> _assertEqual [[

    "1"

    "AddHandler"

    "2"

    "IObservable.Subscribe"

    "3"

    "TestEvent.Subscribe(System.Exception: error)"

    "TestEvent.Iter(0: System.Exception: error)"

    "testEvent.EventInterface.Subscribe(System.Exception: error)"

    "4"

    "RemoveHandler"

    "IObservable.Dispose"

]]



╭─[ 494.93ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:01 #3 [Debug] runWithTimeoutAsync / timeout: 300                       │

│ <null>                                                                       │

│ [ 1, AddHandler, 2, IObservable.Subscribe, 3,                                │

│ TestEvent.Subscribe(System.Exception: error), TestEvent.Iter(0:              │

│ System.Exception: error),                                                    │

│ testEvent.EventInterface.Subscribe(System.Exception: error), 4,              │

│ RemoveHandler, IObservable.Dispose ]                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let subscribeToken (token : System.Threading.CancellationToken) =

    let tcs = new System.Threading.Tasks.TaskCompletionSource ()

    System.Action tcs.SetResult |> token.Register |> ignore

    let start = System.DateTime.Now.Ticks

    FSharp.Control.AsyncSeq.unfoldAsync

        (fun () -> async {

            do! tcs.Task |> Async.AwaitTask

            return Some (System.DateTime.Now.Ticks - start, ())

        })

        ()



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let cts = new System.Threading.CancellationTokenSource ()



async {

    let! child =

        cts.Token

        |> subscribeToken

        |> FSharp.Control.AsyncSeq.tryFirst

        |> Async.StartChild



    do! Async.Sleep 100

    cts.Cancel ()

    return! child

}

|> Async.RunSynchronously

|> Option.get

|> _isGreaterThan 900000



╭─[ 190.89ms - stdout ]────────────────────────────────────────────────────────╮

│ 1086208                                                                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook AsyncSeq.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 302530 bytes to AsyncSeq.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Common (Polyglot)                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

let nl = System.Environment.NewLine

let q = @""""



── fsharp ──────────────────────────────────────────────────────────────────────

let inline cons head tail = head :: tail



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## memoize                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline memoize fn =

    let result = lazy fn ()

    fun () -> result.Value



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## TraceLevel                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type TraceLevel =

    | Verbose

    | Debug

    | Info

    | Warning

    | Critical



let inline getLocals () = ""



let mutable traceEnabled = true

let mutable traceCount = 0

let mutable traceLevel = Verbose

let mutable traceDump = false



── fsharp ──────────────────────────────────────────────────────────────────────

let testTraceLevel level =

    traceEnabled && level >= traceLevel



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## traceRaw                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let rec traceRaw level fn =

    if level |> testTraceLevel then

        traceCount <- traceCount + 1



        let text = $"%s{fn ()}"

#if FABLE_COMPILER_RUST

        Fable.Core.RustInterop.emitRustExpr () @"println!(""{}"", text)"

#else

        System.Console.WriteLine text

#endif



#if !WASM && !FABLE_COMPILER

        if traceDump then

            try

                let tmpPath = System.IO.Path.GetTempPath ()

                let logDir = System.IO.Path.Combine (tmpPath, "!polyglot")

                System.IO.Directory.CreateDirectory logDir |> ignore

                let logFile = System.IO.Path.Combine (logDir, 

$"{Date_time.new_guid_from_date_time System.DateTime.Now}.txt")

                System.IO.File.WriteAllTextAsync (logFile, text) |> 

Async.AwaitTask |> Async.RunSynchronously

            with ex ->

                traceRaw Critical (fun () -> $"trace / ex: {ex |> 

Sm.format_exception}")

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



traceRaw Debug (fun () -> "test")



╭─[ 17.12ms - stdout ]─────────────────────────────────────────────────────────╮

│ test                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## trace                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let private replStart =

#if INTERACTIVE || !FABLE_COMPILER

    fun () ->

        if System.Reflection.Assembly.GetEntryAssembly().GetName().Name <> 

"Microsoft.DotNet.Interactive.App"

        then Some System.DateTime.Now.Ticks

        else None

    |> memoize

#else

    fun () -> None : int64 option

#endif



let trace level fn getLocals =

    fun () ->

        let time =

#if WASM

            ""

#else

            match replStart () with

            | Some replStart ->

                let t = System.DateTime.Now.Ticks - replStart |> System.TimeSpan

                System.DateTime (1, 1, 1, t.Hours, t.Minutes, t.Seconds, 

t.Milliseconds)

            | None -> System.DateTime.Now

            |> fun dateTime ->

#if FABLE_COMPILER_RUST

                "hh:mm:ss"

#else

                "HH:mm:ss"

#endif

                |> dateTime.ToString

#endif

        $"{time} #{traceCount} [[%A{level}]] %s{fn ()} / %s{getLocals ()}"

        |> Sm.trim_start [[||]]

        |> Sm.trim_end [[| ' '; '/' |]]

    |> traceRaw level



let inline withTrace enabled fn =

    let oldTraceEnabled = traceEnabled

    try

        traceEnabled <- enabled

        fn ()

    finally

        traceEnabled <- oldTraceEnabled



let inline withTraceEnabled fn =

    withTrace true fn



let inline withTraceDisabled fn =

    withTrace false fn



let inline withTraceLevel level fn =

    let oldTraceLevel = traceLevel

    try

        traceLevel <- level

        fn ()

    finally

        traceLevel <- oldTraceLevel



let inline withTraceDump dump fn =

    let oldTraceDump = traceDump

    try

        traceDump <- dump

        fn ()

    finally

        traceDump <- oldTraceDump



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



trace Debug (fun () -> "test") getLocals



╭─[ 35.39ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Debug] test                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Common.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 294731 bytes to Common.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # CommonFSharp (Polyglot)                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getUnionCaseName                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getUnionCaseName<'T> (x: 'T) =

    match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

    | case, _ -> case.Name



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



TraceLevel.Critical

|> getUnionCaseName

|> _assertEqual (nameof TraceLevel.Critical)



╭─[ 148.40ms - stdout ]────────────────────────────────────────────────────────╮

│ Critical                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook CommonFSharp.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 275894 bytes to CommonFSharp.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Threading (Polyglot)                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## newDisposableToken                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline newDisposableToken (mergeToken: System.Threading.CancellationToken 

option) =

    let cts = new System.Threading.CancellationTokenSource ()

    let cts =

        match mergeToken with

        | None -> cts

        | Some mergeToken ->

            System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[|

cts.Token; mergeToken |]]

    let disposable = new_disposable cts.Cancel

    cts.Token, disposable



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable counter = 0



let inline run fn =

    let token, disposable = newDisposableToken None

    use _ = disposable

    fn token

    async {

        fn token

    }

    |> Async.Start



let inline fn (token : System.Threading.CancellationToken) =

    counter <- counter + (if token.IsCancellationRequested then 10 else 1)



async {

    run fn

    do! Async.Sleep 10

    return counter

}

|> Async.RunSynchronously

|> _assertEqual 11



╭─[ 173.02ms - stdout ]────────────────────────────────────────────────────────╮

│ 11                                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Threading.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 278912 bytes to Threading.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Crypto (Polyglot)                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## hashText                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let hashText (input : string) =

    use sha256 = System.Security.Cryptography.SHA256.Create ()

    input

    |> System.Text.Encoding.UTF8.GetBytes

    |> sha256.ComputeHash

    |> Array.map (fun b -> b.ToString "x2")

    |> Sm.concat ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



""

|> hashText

|> _assertEqual 

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"



╭─[ 69.18ms - stdout ]─────────────────────────────────────────────────────────╮

│ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



" "

|> hashText

|> _assertEqual 

"36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068"



╭─[ 22.14ms - stdout ]─────────────────────────────────────────────────────────╮

│ 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Crypto.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 277730 bytes to Crypto.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # FileSystem (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Runtime.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Operators                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

module Operators =

    let inline (</>) a b =

        System.IO.Path.Combine (a, b)



── fsharp ──────────────────────────────────────────────────────────────────────

open Operators



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## createTempDirectory                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline createTempDirectory () =

    let tempFolder = File_system.create_temp_directory_name ()

    let result = System.IO.Directory.CreateDirectory tempFolder



    if not result.Exists then

        let getLocals () =

            $"tempFolder: {tempFolder} / result: {({|

                Exists = result.Exists

                CreationTime = result.CreationTime

            |})} {getLocals ()}"



        trace Debug (fun () -> "createTempDirectory") getLocals



    tempFolder



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempDirectory = createTempDirectory ()



Directory.Exists tempDirectory

|> _assertEqual true



╭─[ 54.78ms - stdout ]─────────────────────────────────────────────────────────╮

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getSourceDirectory                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let getSourceDirectory =

    fun () -> __SOURCE_DIRECTORY__

    |> memoize



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getSourceDirectory ()

|> System.IO.DirectoryInfo

|> fun dir -> dir.Name

|> _assertEqual "fsharp"



╭─[ 47.70ms - stdout ]─────────────────────────────────────────────────────────╮

│ fsharp                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## findParent                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline findParent name isFile rootDir =

    let rec loop dir =

        if dir </> name |> (if isFile then System.IO.File.Exists else 

System.IO.Directory.Exists)

        then dir

        else

            dir

            |> System.IO.Directory.GetParent

            |> function

                | null -> failwith $"""No parent for {if isFile then "file" else

"dir"} '{name}' at '{rootDir}'"""

                | parent -> parent.FullName |> loop

    loop rootDir



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getSourceDirectory () |> findParent ".paket" false

|> System.IO.DirectoryInfo

|> fun dir -> dir.Name

|> _assertEqual "polyglot"



╭─[ 49.61ms - stdout ]─────────────────────────────────────────────────────────╮

│ polyglot                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getSourceDirectory () |> findParent "paket.dependencies" true

|> System.IO.DirectoryInfo

|> fun dir -> dir.Name

|> _assertEqual "polyglot"



╭─[ 29.75ms - stdout ]─────────────────────────────────────────────────────────╮

│ polyglot                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## readAllTextAsync                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline readAllTextAsync path =

    path |> System.IO.File.ReadAllTextAsync |> Async.AwaitTask



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## fileExistsContent                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline fileExistsContent path content = async {

    if path |> System.IO.File.Exists |> not

    then return false

    else

        let! existingContent = path |> readAllTextAsync

        return content = existingContent

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeAllTextAsync                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeAllTextAsync path contents =

    System.IO.File.WriteAllTextAsync (path, contents) |> Async.AwaitTask



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeAllTextExists                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeAllTextExists path contents = async {

    let! exists = contents |> fileExistsContent path

    if not exists

    then do! contents |> writeAllTextAsync path

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## waitForFileAccess                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline waitForFileAccess access path =

    let fileAccess, fileShare =

        access

        |> Option.defaultValue (System.IO.FileAccess.ReadWrite, 

System.IO.FileShare.Read)



    let rec loop retry = async {

        try

            use _ = new System.IO.FileStream (

                path,

                System.IO.FileMode.Open,

                fileAccess,

                fileShare

            )

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () = $"path: {path |> System.IO.Path.GetFileName} 

/ ex: {ex |> Sm.format_exception} / {getLocals ()}"

                trace Debug (fun () -> "waitForFileAccess") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test.txt"



let inline lockFile () = async {

    trace Debug (fun () -> "_1") getLocals

    use stream = new System.IO.FileStream (

        path,

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

    stream.Seek (0L, SeekOrigin.Begin) |> ignore

    trace Debug (fun () -> "_4") getLocals

    stream.WriteByte 49uy

    trace Debug (fun () -> "_5") getLocals

    stream.Flush ()

    trace Debug (fun () -> "_6") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    do! "0" |> writeAllTextAsync path

    trace Debug (fun () -> "2") getLocals

    let! child = lockFile () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "4") getLocals

    let! retries = path |> waitForFileAccess None

    trace Debug (fun () -> "5") getLocals

    let! text = path |> readAllTextAsync

    trace Debug (fun () -> "6") getLocals

    do! child

    trace Debug (fun () -> "7") getLocals

    return retries, text

}

|> Async.runWithTimeout 3000

|> function

    | Some (retries, text) ->

        retries

        |> _isBetween

            (if Runtime.isWindows () then 50 else 100)

            (if Runtime.isWindows () then 150 else 200)



        text |> _assertEqual "1"



        true

    | _ -> false

|> _assertEqual true



╭─[ 2.52s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] 1                                                        │

│ 00:00:00 #2 [Debug] 2                                                        │

│ 00:00:00 #3 [Debug] _1                                                       │

│ 00:00:00 #4 [Debug] 3                                                        │

│ 00:00:00 #5 [Debug] _2                                                       │

│ 00:00:00 #6 [Debug] 4                                                        │

│ 00:00:00 #7 [Debug] waitForFileAccess / path: test.txt / ex:                 │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-3183-8379-8ab65 │

│ 0670b4f\test.txt' because it is being used by another process.               │

│ 00:00:01 #8 [Debug] waitForFileAccess / path: test.txt / ex:                 │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-3183-8379-8ab65 │

│ 0670b4f\test.txt' because it is being used by another process.               │

│ 00:00:02 #9 [Debug] _3                                                       │

│ 00:00:02 #10 [Debug] _4                                                      │

│ 00:00:02 #11 [Debug] _5                                                      │

│ 00:00:02 #12 [Debug] _6                                                      │

│ 00:00:02 #13 [Debug] 5                                                       │

│ 00:00:02 #14 [Debug] 6                                                       │

│ 00:00:02 #15 [Debug] 7                                                       │

│ 128                                                                          │

│ 128                                                                          │

│ 128                                                                          │

│ 1                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## readAllTextRetryAsync                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline readAllTextRetryAsync fullPath =

    let rec loop retry = async {

        try

            if retry > 0

            then do!

                fullPath

                |> waitForFileAccess (Some (

                    System.IO.FileAccess.Read,

                    System.IO.FileShare.Read

                ))

                |> Async.runWithTimeoutAsync 1000

                |> Async.Ignore

            return! fullPath |> readAllTextAsync |> Async.map Some

        with ex ->

            let getLocals () = $"retry: {retry} / ex: {ex |> 

Sm.format_exception} / {getLocals ()}"

            trace Debug (fun () -> $"watchWithFilter / readContent") getLocals

            if retry = 0

            then return! loop (retry + 1)

            else return None

    }

    loop 0



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## deleteDirectoryAsync                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline deleteDirectoryAsync path =

    let rec loop retry = async {

        try

            System.IO.Directory.Delete (path, true)

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () = $"path: {path |> System.IO.Path.GetFileName} 

/ ex: {ex |> Sm.format_exception} / {getLocals ()}"

                trace Debug (fun () -> "deleteDirectoryAsync") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test"



let inline lockDirectory () = async {

    trace Debug (fun () -> "_1") getLocals

    System.IO.File.WriteAllText (path </> "test.txt", "0")

    use _ = new System.IO.FileStream (

        path </> "test.txt",

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    Directory.CreateDirectory path |> ignore

    trace Debug (fun () -> "2") getLocals

    let! child = lockDirectory () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 60

    trace Debug (fun () -> "4") getLocals

    let! retries = deleteDirectoryAsync path

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries

}

|> Async.runWithTimeout 3000

|> function

    | Some retries ->

        retries

        |> _isBetween

            (if Runtime.isWindows () then 50 else 0)

            (if Runtime.isWindows () then 150 else 0)



        true

    | _ -> false

|> _assertEqual true



╭─[ 2.39s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:02 #16 [Debug] 1                                                       │

│ 00:00:02 #17 [Debug] 2                                                       │

│ 00:00:02 #18 [Debug] 3                                                       │

│ 00:00:02 #19 [Debug] _1                                                      │

│ 00:00:02 #20 [Debug] _2                                                      │

│ 00:00:02 #21 [Debug] 4                                                       │

│ 00:00:02 #22 [Debug] deleteDirectoryAsync / path: test / ex:                 │

│ System.IO.IOException: The process cannot access the file 'test.txt' because │

│ it is being used by another process.                                         │

│ 00:00:04 #23 [Debug] deleteDirectoryAsync / path: test / ex:                 │

│ System.IO.IOException: The process cannot access the file 'test.txt' because │

│ it is being used by another process.                                         │

│ 00:00:04 #24 [Debug] _3                                                      │

│ 00:00:04 #25 [Debug] 5                                                       │

│ 00:00:04 #26 [Debug] 6                                                       │

│ 125                                                                          │

│ 125                                                                          │

│ 125                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## deleteFileAsync                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline deleteFileAsync path =

    let rec loop retry = async {

        try

            System.IO.File.Delete path

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () = $"path: {path |> System.IO.Path.GetFileName} 

/ ex: {ex |> Sm.format_exception} / {getLocals ()}"

                trace Warning (fun () -> "deleteFileAsync") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test.txt"



let inline lockFile () = async {

    trace Debug (fun () -> "_1") getLocals

    use _ = new System.IO.FileStream (

        path,

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    do! "0" |> writeAllTextAsync path

    trace Debug (fun () -> "2") getLocals

    let! child = lockFile () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "4") getLocals

    let! retries = deleteFileAsync path

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries

}

|> Async.runWithTimeout 3000

|> function

    | Some retries ->

        retries

        |> _isBetween

            (if Runtime.isWindows () then 50 else 0)

            (if Runtime.isWindows () then 150 else 0)



        true

    | _ -> false

|> _assertEqual true



╭─[ 2.28s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:05 #27 [Debug] 1                                                       │

│ 00:00:05 #28 [Debug] 2                                                       │

│ 00:00:05 #29 [Debug] 3                                                       │

│ 00:00:05 #30 [Debug] _1                                                      │

│ 00:00:05 #31 [Debug] _2                                                      │

│ 00:00:05 #32 [Debug] 4                                                       │

│ 00:00:05 #33 [Warning] deleteFileAsync / path: test.txt / ex:                │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-3698-9805-98012 │

│ 9e9db05\test.txt' because it is being used by another process.               │

│ 00:00:06 #34 [Warning] deleteFileAsync / path: test.txt / ex:                │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-3698-9805-98012 │

│ 9e9db05\test.txt' because it is being used by another process.               │

│ 00:00:07 #35 [Debug] _3                                                      │

│ 00:00:07 #36 [Debug] 5                                                       │

│ 00:00:07 #37 [Debug] 6                                                       │

│ 128                                                                          │

│ 128                                                                          │

│ 128                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## moveFileAsync                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline moveFileAsync newPath oldPath =

    let rec loop retry = async {

        try

            System.IO.File.Move (oldPath, newPath)

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () =

                    $"oldPath: {oldPath |> System.IO.Path.GetFileName} / 

newPath: {newPath |> System.IO.Path.GetFileName} / ex: {ex |> 

Sm.format_exception} / {getLocals ()}"

                trace Warning (fun () -> "moveFileAsync") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test.txt"

let newPath = tempFolder </> "test2.txt"



let inline lockFile () = async {

    trace Debug (fun () -> "_1") getLocals

    use _ = new System.IO.FileStream (

        path,

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    do! "0" |> writeAllTextAsync path

    trace Debug (fun () -> "2") getLocals

    let! child = lockFile () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "4") getLocals

    let! retries1 = path |> moveFileAsync newPath

    trace Debug (fun () -> "5") getLocals

    let! retries2 = newPath |> waitForFileAccess None

    trace Debug (fun () -> "6") getLocals

    let! text = newPath |> readAllTextAsync

    trace Debug (fun () -> "7") getLocals

    do! child

    trace Debug (fun () -> "8") getLocals

    return retries1, retries2, text

}

|> Async.runWithTimeout 3000

|> function

    | Some (retries1, retries2, text) ->

        retries1

        |> _isBetween

            (if Runtime.isWindows () then 50 else 0)

            (if Runtime.isWindows () then 150 else 0)



        retries2

        |> _isBetween

            (if Runtime.isWindows () then 0 else 100)

            (if Runtime.isWindows () then 0 else 200)



        text |> _assertEqual "0"



        true

    | _ -> false

|> _assertEqual true



╭─[ 2.41s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:07 #38 [Debug] 1                                                       │

│ 00:00:07 #39 [Debug] 2                                                       │

│ 00:00:07 #40 [Debug] 3                                                       │

│ 00:00:07 #41 [Debug] _1                                                      │

│ 00:00:07 #42 [Debug] _2                                                      │

│ 00:00:07 #43 [Debug] 4                                                       │

│ 00:00:07 #44 [Warning] moveFileAsync / oldPath: test.txt / newPath:          │

│ test2.txt / ex: System.IO.IOException: The process cannot access the file    │

│ because it is being used by another process.                                 │

│ 00:00:09 #45 [Warning] moveFileAsync / oldPath: test.txt / newPath:          │

│ test2.txt / ex: System.IO.IOException: The process cannot access the file    │

│ because it is being used by another process.                                 │

│ 00:00:09 #46 [Debug] _3                                                      │

│ 00:00:09 #47 [Debug] 5                                                       │

│ 00:00:09 #48 [Debug] 6                                                       │

│ 00:00:09 #49 [Debug] 7                                                       │

│ 00:00:09 #50 [Debug] 8                                                       │

│ 128                                                                          │

│ 128                                                                          │

│ 128                                                                          │

│ 0                                                                            │

│ 0                                                                            │

│ 0                                                                            │

│ 0                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## watchDirectory                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type FileSystemChangeType =

    | Failure

    | Changed

    | Created

    | Deleted

    | Renamed



[[<RequireQualifiedAccess>]]

type FileSystemChange =

    | Failure of exn: exn

    | Changed of path: string * content: string option

    | Created of path: string * content: string option

    | Deleted of path: string

    | Renamed of oldPath: string * (string * string option)





let inline watchDirectoryWithFilter filter shouldReadContent path =

    let fullPath = path |> System.IO.Path.GetFullPath

    let getLocals () = $"filter: {filter} / {getLocals ()}"



    let watcher =

        new System.IO.FileSystemWatcher (

            Path = fullPath,

            NotifyFilter = filter,

            EnableRaisingEvents = true,

            IncludeSubdirectories = true

        )



    let inline getEventPath (path : string) =

        path |> Sm.trim |> Sm.replace fullPath "" |> Sm.trim_start [[| '/'; '\\'

|]]



    let inline ticks () =

        System.DateTime.UtcNow.Ticks



    let changedStream =

        AsyncSeq.subscribeEvent

            watcher.Changed

            (fun event ->

                ticks (),

                [[ FileSystemChange.Changed (getEventPath event.FullPath, None) 

]]

            )



    let deletedStream =

        AsyncSeq.subscribeEvent

            watcher.Deleted

            (fun event ->

                ticks (),

                [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]

            )



    let createdStream =

        AsyncSeq.subscribeEvent

            watcher.Created

            (fun event ->

                let path = getEventPath event.FullPath

                ticks (), [[

                    FileSystemChange.Created (path, None)

                    if Runtime.isWindows () then

                        FileSystemChange.Changed (path, None)

                ]])



    let renamedStream =

        AsyncSeq.subscribeEvent

            watcher.Renamed

            (fun event ->

                ticks (), [[

                    FileSystemChange.Renamed (

                        getEventPath event.OldFullPath,

                        (getEventPath event.FullPath, None)

                    )

                ]]

            )



    let failureStream =

        AsyncSeq.subscribeEvent

            watcher.Error

            (fun event -> ticks (), [[ FileSystemChange.Failure 

(event.GetException ()) ]])



    let stream =

        [[

            changedStream

            deletedStream

            createdStream

            renamedStream

            failureStream

        ]]

        |> FSharp.Control.AsyncSeq.mergeAll

        |> FSharp.Control.AsyncSeq.map (fun (t, events) ->

            events

            |> List.fold

                (fun (i, events) event ->

                    i + 1L,

                    (t + i, event) :: events)

                (0L, [[]])

            |> snd

            |> List.rev

        )

        |> FSharp.Control.AsyncSeq.concatSeq

        |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {

            match shouldReadContent event, event with

            | true, FileSystemChange.Changed (path, _) ->

                do! Async.Sleep 5

                let! content = fullPath </> path |> readAllTextRetryAsync

                return t, FileSystemChange.Changed (path, content)

            | true, FileSystemChange.Created (path, _) ->

                do! Async.Sleep 5

                let! content = fullPath </> path |> readAllTextRetryAsync

                return t, FileSystemChange.Created (path, content)

            | true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->

                let! content = fullPath </> newPath |> readAllTextRetryAsync

                return t, FileSystemChange.Renamed (oldPath, (newPath, content))

            | _ -> return t, event

        })



    let disposable =

        new_disposable (fun () ->

            trace Debug (fun () -> "watchWithFilter / Disposing watch stream") 

getLocals

            watcher.EnableRaisingEvents <- false

            watcher.Dispose ()

        )



    stream, disposable



let inline watchDirectory path =

    watchDirectoryWithFilter

        (System.IO.NotifyFilters.FileName

        // ||| System.IO.NotifyFilters.DirectoryName

        // ||| System.IO.NotifyFilters.Attributes

        //// ||| System.IO.NotifyFilters.Size

        ||| System.IO.NotifyFilters.LastWrite

        //// ||| System.IO.NotifyFilters.LastAccess

        // ||| System.IO.NotifyFilters.CreationTime

        // ||| System.IO.NotifyFilters.Security

        )

        path



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### testEventsRaw (test)                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline testEventsRaw

    (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 * 

FileSystemChange> * IDisposable)

    write

    =

    let tempDirectory = createTempDirectory ()

    let stream, disposable = watchFn (fun _ -> true) tempDirectory



    let events = System.Collections.Concurrent.ConcurrentBag ()



    let inline iter () =

        stream

        |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async { 

events.Add event })



    let run = async {

        let! _ = iter () |> Async.StartChild

        do! Async.Sleep 250

        return! write tempDirectory

    }



    try

        run

        |> Async.runWithTimeout 60000

        |> _assertEqual (Some ())

    finally

        disposable.Dispose ()

        deleteDirectoryAsync tempDirectory |> Async.Ignore |> 

Async.RunSynchronously



    let eventsLog =

        events

        |> Seq.toList

        |> List.sortBy fst

        |> List.fold

            (fun (prev, acc) (ticks, event) ->

                ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event) 

:: acc

            )

            (0L, [[]])

        |> snd

        |> List.rev

        |> List.map (fun (diff, n, event) ->

            let text = $"{n} / {diff} / {event}"

            if text |> String.length <= 100

            then text

            else text |> Sm.substring 0 100 |> Sm.replace "\n" ""

        )

        |> Sm.concat "\n"

    let getLocals () = $"eventsLog: \n{eventsLog} / {getLocals ()}"

    trace Debug (fun () -> "testEventsRaw") getLocals



    events

    |> Seq.toList

    |> List.sortBy fst

    |> List.map snd

    |> List.fold

        (fun acc event ->

            match acc, event with

            | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent

:: acc,

                FileSystemChange.Changed (path, Some content)

                when lastPath = path && content |> Sm.starts_with lastContent

                ->

                event :: acc

            | _ -> event :: acc

        )

        [[]]

    |> List.rev



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### fast (test)                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"a{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    do! Async.Sleep 250



    for i = 1 to n do

        do! $"b{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    do! Async.Sleep 250



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    do! Async.Sleep 250



    for i = 1 to n do

        do! $"c{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")



    do! Async.Sleep 250



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore



    do! Async.Sleep 250

}



let inline run () =

    let events = testEventsRaw watchDirectory write



    events

    |> _sequenceEqual [[

        FileSystemChange.Created ("file1.txt", Some "a1")

        FileSystemChange.Changed ("file1.txt", Some "a1")

        FileSystemChange.Created ("file2.txt", Some "a2")

        FileSystemChange.Changed ("file2.txt", Some "a2")



        FileSystemChange.Changed ("file1.txt", Some "b1")

        FileSystemChange.Changed ("file2.txt", Some "b2")



        FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))

        FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))



        FileSystemChange.Changed ("file_1.txt", Some "c1")

        FileSystemChange.Changed ("file_2.txt", Some "c2")



        FileSystemChange.Deleted "file_1.txt"

        FileSystemChange.Deleted "file_2.txt"

    ]]



run

|> retry_fn 3

|> _assertEqual (Some ())



╭─[ 6.88s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:19 #51 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ 00:00:19 #52 [Debug] testEventsRaw / eventsLog:                              │

│ 0 / 638473732095705498 / Created ("file1.txt", Some "a1")                    │

│ 1 / 638473732095705499 / Changed ("file1.txt", Some "a1")                    │

│ 17971 / 638473732095723470 / Changed ("file1.txt", Some "a1")                │

│ 895 / 638473732095724365 / Created ("file2.txt", Some "a2")                  │

│ 1 / 638473732095724366 / Changed ("file2.txt", Some "a2")                    │

│ 43 / 638473732095724409 / Changed ("file2.txt", Some "a2")                   │

│ 2608624 / 638473732098333033 / Changed ("file1.txt", Some "b1")              │

│ 1605 / 638473732098334638 / Changed ("file1.txt", Some "b1")                 │

│ 6613 / 638473732098341251 / Changed ("file2.txt", Some "b2")                 │

│ 1505 / 638473732098342756 / Changed ("file2.txt", Some "b2")                 │

│ 2507761 / 638473732100850517 / Renamed ("file1.txt", ("file_1.txt", Some     │

│ "b1"))                                                                       │

│ 3115 / 638473732100853632 / Renamed ("file2.txt", ("file_2.txt", Some "b2")) │

│ 2644434 / 638473732103498066 / Changed ("file_1.txt", Some "c1")             │

│ 2210 / 638473732103500276 / Changed ("file_1.txt", Some "c1")                │

│ 10050 / 638473732103510326 / Changed ("file_2.txt", Some "c2")               │

│ 1304 / 638473732103511630 / Changed ("file_2.txt", Some "c2")                │

│ 2642013 / 638473732106153643 / Deleted "file_1.txt"                          │

│ 1952 / 638473732106155595 / Deleted "file_2.txt"                             │

│ FSharpList<FileSystemChange>                                                 │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a1                                                          │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: True                                                      │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a1                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a2                                                          │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: True                                                      │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a2                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: b1                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: b2                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - oldPath: file1.txt                                                   │

│         Item2:         - file_1.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: b1                                                        │

│       - IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: True                                                      │

│       - oldPath: file2.txt                                                   │

│         Item2:         - file_2.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: b2                                                        │

│       - IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: True                                                      │

│       - path: file_1.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: c1                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file_2.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: c2                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file_1.txt                                                     │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: True                                                      │

│         IsRenamed: False                                                     │

│       - path: file_2.txt                                                     │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: True                                                      │

│         IsRenamed: False                                                     │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### slow (test)                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    let contents =

        [[ 1 .. n ]]

        |> List.map (string >> String.replicate 1_000_000)



    for i = 1 to n do

        do! $"{contents.[[i - 1]]}a" |> writeAllTextAsync (path </> 

$"file{i}.txt")



    do! Async.Sleep 1500



    for i = 1 to n do

        do! $"{contents.[[i - 1]]}b" |> writeAllTextAsync (path </> 

$"file{i}.txt")



    do! Async.Sleep 1500



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    do! Async.Sleep 1500



    for i = 1 to n do

        do! $"{contents.[[i - 1]]}c" |> writeAllTextAsync (path </> 

$"file_{i}.txt")



    do! Async.Sleep 1500



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore



    do! Async.Sleep 1500

}



let inline run () =

    let events =

        testEventsRaw watchDirectory write

        |> List.map (function

            | FileSystemChange.Changed (path, Some content) ->

                FileSystemChange.Changed (path, content |> Seq.distinct |> 

Seq.map string |> Sm.concat "" |> Some)

            | FileSystemChange.Created (path, Some content) ->

                FileSystemChange.Created (path, content |> Seq.distinct |> 

Seq.map string |> Sm.concat "" |> Some)

            | FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->

                FileSystemChange.Renamed (

                    oldPath,

                    (newPath, content |> Seq.distinct |> Seq.map string |> 

Sm.concat "" |> Some)

                )

            | event -> event

        )



    events

    |> _sequenceEqual [[

        FileSystemChange.Created ("file1.txt", Some "1a")

        FileSystemChange.Changed ("file1.txt", Some "1a")

        FileSystemChange.Created ("file2.txt", Some "2a")

        FileSystemChange.Changed ("file2.txt", Some "2a")



        FileSystemChange.Changed ("file1.txt", Some "1b")

        FileSystemChange.Changed ("file2.txt", Some "2b")



        FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))

        FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))



        FileSystemChange.Changed ("file_1.txt", Some "1c")

        FileSystemChange.Changed ("file_2.txt", Some "2c")



        FileSystemChange.Deleted "file_1.txt"

        FileSystemChange.Deleted "file_2.txt"

    ]]



run

|> retry_fn 5

|> _assertEqual (Some ())



╭─[ 14.86s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:26 #54 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-5759-5905-5ea53 │

│ 1bcbdc7\file2.txt' because it is being used by another process.)             │

│ 00:00:26 #53 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-5759-5905-5ea53 │

│ 1bcbdc7\file2.txt' because it is being used by another process.)             │

│ 00:00:27 #55 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-5759-5905-5ea53 │

│ 1bcbdc7\file2.txt' because it is being used by another process.)             │

│ 00:00:27 #56 [Debug] waitForFileAccess / path: file2.txt / ex:               │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-5759-5905-5ea53 │

│ 1bcbdc7\file2.txt' because it is being used by another process.              │

│ 00:00:30 #57 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-5759-5905-5ea53 │

│ 1bcbdc7\file_2.txt' because it is being used by another process.)            │

│ 00:00:30 #58 [Debug] waitForFileAccess / path: file_2.txt / ex:              │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0126-5759-5905-5ea53 │

│ 1bcbdc7\file_2.txt' because it is being used by another process.             │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:33 #59 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ 00:00:33 #60 [Debug] testEventsRaw / eventsLog:                              │

│ 0 / 638473732178696706 / Created  ("file1.txt",   Some                       │

│ "1111111111111111111111111111111111111                                       │

│ 1 / 638473732178696707 / Changed  ("file1.txt",   Some                       │

│ "1111111111111111111111111111111111111                                       │

│ 66039 / 638473732178762746 / Changed  ("file1.txt",   Some                   │

│ "111111111111111111111111111111111                                           │

│ 14840 / 638473732178777586 / Created  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 1 / 638473732178777587 / Changed  ("file2.txt",   Some                       │

│ "2222222222222222222222222222222222222                                       │

│ 66544 / 638473732178844131 / Changed  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 14993887 / 638473732193838018 / Changed  ("file1.txt",   Some                │

│ "111111111111111111111111111111                                              │

│ 70414 / 638473732193908432 / Changed  ("file1.txt",   Some                   │

│ "111111111111111111111111111111111                                           │

│ 21965 / 638473732193930397 / Changed  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 82219 / 638473732194012616 / Changed  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 15116818 / 638473732209129434 / Renamed  ("file1.txt",   ("file_1.txt",      │

│ Some      "1111111111                                                        │

│ 4163 / 638473732209133597 / Renamed  ("file2.txt",   ("file_2.txt",    Some  │

│ "22222222222222                                                              │

│ 15008608 / 638473732224142205 / Changed  ("file_1.txt",   Some               │

│ "11111111111111111111111111111                                               │

│ 69434 / 638473732224211639 / Changed  ("file_1.txt",   Some                  │

│ "11111111111111111111111111111111                                            │

│ 24941 / 638473732224236580 / Changed  ("file_2.txt",   Some                  │

│ "22222222222222222222222222222222                                            │

│ 65107 / 638473732224301687 / Changed  ("file_2.txt",   Some                  │

│ "22222222222222222222222222222222                                            │

│ 14989672 / 638473732239291359 / Deleted "file_1.txt"                         │

│ 6705 / 638473732239298064 / Deleted "file_2.txt"                             │

│ FSharpList<FileSystemChange>                                                 │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 1a                                                          │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: True                                                      │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 1a                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 2a                                                          │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: True                                                      │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 2a                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 1b                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 2b                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - oldPath: file1.txt                                                   │

│         Item2:         - file_1.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: 1b                                                        │

│       - IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: True                                                      │

│       - oldPath: file2.txt                                                   │

│         Item2:         - file_2.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: 2b                                                        │

│       - IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: True                                                      │

│       - path: file_1.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: 1c                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file_2.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: 2c                                                          │

│         IsFailure: False                                                     │

│         IsChanged: True                                                      │

│         IsCreated: False                                                     │

│         IsDeleted: False                                                     │

│         IsRenamed: False                                                     │

│       - path: file_1.txt                                                     │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: True                                                      │

│         IsRenamed: False                                                     │

│       - path: file_2.txt                                                     │

│         IsFailure: False                                                     │

│         IsChanged: False                                                     │

│         IsCreated: False                                                     │

│         IsDeleted: True                                                      │

│         IsRenamed: False                                                     │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### testEventsSorted (test)                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline sortEvent event =

    match event with

    | FileSystemChange.Failure _ -> 0

    | FileSystemChange.Created _ -> 1

    | FileSystemChange.Changed _ -> 2

    | FileSystemChange.Renamed (_oldPath, _) -> 3

    | FileSystemChange.Deleted _ -> 4



let inline formatEvents events =

    events

    |> Seq.toList

    |> List.sortBy (snd >> sortEvent)

    |> List.choose (fun (ticks, event) ->

        match event with

        | FileSystemChange.Failure _ ->

            None

        | FileSystemChange.Changed (path, _) ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Changed)

        | FileSystemChange.Created (path, _) ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Created)

        | FileSystemChange.Deleted path ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Deleted)

        | FileSystemChange.Renamed (_oldPath, (path, _)) ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Renamed)

    )

    |> List.sortBy (fun (_, path, _) -> path)

    |> List.distinctBy (fun (_, path, event) -> path, event)



let inline testEventsSorted

    (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> * 

IDisposable)

    write

    =

    let path = createTempDirectory ()

    let stream, disposable = watchFn path



    let events = System.Collections.Concurrent.ConcurrentBag ()



    let inline iter () =

        stream

        |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async { 

events.Add event })



    let run = async {

        let! _ = iter () |> Async.StartChild

        do! Async.Sleep 250

        return! write path

    }



    try

        run

        |> Async.runWithTimeout 5000

        |> _assertEqual (Some ())

    finally

        disposable.Dispose ()

        deleteDirectoryAsync path |> Async.Ignore |> Async.RunSynchronously



    let events = formatEvents events



    let eventMap =

        events

        |> List.map (fun (ticks, path, event) -> path, (event, ticks))

        |> List.groupBy fst

        |> List.map (fun (path, events) ->

            let event, _ticks =

                events

                |> List.map snd

                |> List.sortByDescending snd

                |> List.head



            path, event

        )

        |> Map.ofList



    let eventList =

        events

        |> List.map (fun (_ticks, path, event) -> path, event)



    eventMap, eventList



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### create and delete (test)                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 3



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore



    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file1.txt", nameof FileSystemChangeType.Deleted



        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Deleted



        "file3.txt", nameof FileSystemChangeType.Created

        "file3.txt", nameof FileSystemChangeType.Changed

        "file3.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Deleted

        "file2.txt", nameof FileSystemChangeType.Deleted

        "file3.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retry_fn 3

|> _assertEqual (Some ())



╭─[ 5.43s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:40 #61 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file1.txt, Deleted )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file2.txt, Deleted )                                                       │

│ ( file3.txt, Created )                                                       │

│ ( file3.txt, Changed )                                                       │

│ ( file3.txt, Deleted )                                                       │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Deleted                                                       │

│       - Key: file2.txt                                                       │

│         Value: Deleted                                                       │

│       - Key: file3.txt                                                       │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### change (test)                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! "" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore



    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file1.txt", nameof FileSystemChangeType.Deleted



        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Deleted

        "file2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retry_fn 3

|> _assertEqual (Some ())



╭─[ 6.33s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:46 #62 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file1.txt, Deleted )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file2.txt, Deleted )                                                       │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Deleted                                                       │

│       - Key: file2.txt                                                       │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### rename (test)                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore



    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed



        "file_1.txt", nameof FileSystemChangeType.Renamed

        "file_1.txt", nameof FileSystemChangeType.Deleted



        "file_2.txt", nameof FileSystemChangeType.Renamed

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Changed

        "file_1.txt", nameof FileSystemChangeType.Deleted

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retry_fn 3

|> _assertEqual (Some ())



╭─[ 7.52s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:54 #63 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file_1.txt, Renamed )                                                      │

│ ( file_1.txt, Deleted )                                                      │

│ ( file_2.txt, Renamed )                                                      │

│ ( file_2.txt, Deleted )                                                      │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file2.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file_1.txt                                                      │

│         Value: Deleted                                                       │

│       - Key: file_2.txt                                                      │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### full (test)                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! "" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore



    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed



        "file_1.txt", nameof FileSystemChangeType.Changed

        "file_1.txt", nameof FileSystemChangeType.Renamed

        "file_1.txt", nameof FileSystemChangeType.Deleted



        "file_2.txt", nameof FileSystemChangeType.Changed

        "file_2.txt", nameof FileSystemChangeType.Renamed

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Changed

        "file_1.txt", nameof FileSystemChangeType.Deleted

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retry_fn 3

|> _assertEqual (Some ())



╭─[ 8.54s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:01:02 #64 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file_1.txt, Changed )                                                      │

│ ( file_1.txt, Renamed )                                                      │

│ ( file_1.txt, Deleted )                                                      │

│ ( file_2.txt, Changed )                                                      │

│ ( file_2.txt, Renamed )                                                      │

│ ( file_2.txt, Deleted )                                                      │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file2.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file_1.txt                                                      │

│         Value: Deleted                                                       │

│       - Key: file_2.txt                                                      │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook FileSystem.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 467342 bytes to FileSystem.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Networking (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/Runtime.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## testPortOpen                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline testPortOpen port = async {

    let! ct = Async.CancellationToken

    use client = new System.Net.Sockets.TcpClient ()

    try

        do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

        return true

    with ex ->

        trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

Sm.format_exception}") getLocals

        return false

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



testPortOpen 65536

|> Async.runWithTimeout 120

|> _assertEqual (Some false)



╭─[ 256.70ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Verbose] testPortOpen / ex: System.ArgumentOutOfRangeException: │

│ Specified argument was out of the range of valid values. (Parameter 'port')  │

│ FSharpOption<Boolean>                                                        │

│       Value: False                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline testPortOpenTimeout timeout port = async {

    let! result =

        testPortOpen port

        |> Async.runWithTimeoutAsync timeout

    return

        match result with

        | None -> false

        | Some result -> result

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



testPortOpenTimeout 120 65535

|> Async.RunSynchronously

|> _assertEqual false



╭─[ 286.27ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 120                       │

│ False                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## waitForPortAccess                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline waitForPortAccess timeout status port =

    let rec loop retry = async {

        let! isPortOpen =

            match timeout with

            | None -> testPortOpen port

            | Some timeout -> testPortOpenTimeout timeout port

        if isPortOpen = status

        then return retry

        else

            if retry % 100 = 0 then

                let getLocals () = $"port: {port} / retry: {retry} / {getLocals 

()}"

                trace Verbose (fun () -> "waitForPortAccess") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5555



let inline lockPort () = async {

    trace Debug (fun () -> "_1") getLocals

    do! Async.Sleep 5000

    use listener = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    trace Debug (fun () -> "_2") getLocals

    listener.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_4") getLocals

    listener.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPort () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "3") getLocals

    let! retries1 = waitForPortAccess None true port

    trace Debug (fun () -> "4") getLocals

    let! retries2 = waitForPortAccess None false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries1, retries2

}

|> Async.runWithTimeout 20000

|> function

    | Some (retries1, retries2) ->

        retries1

        |> _isBetween

            (if Runtime.isWindows () then 2 else 2)

            (if Runtime.isWindows () then 5 else 1500)



        retries2

        |> _isBetween

            (if Runtime.isWindows () then 80 else 80)

            (if Runtime.isWindows () then 150 else 600)



        true

    | _ -> false

|> _assertEqual true



╭─[ 9.66s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:01 #3 [Debug] 1                                                        │

│ 00:00:01 #4 [Debug] _1                                                       │

│ 00:00:01 #5 [Debug] 2                                                        │

│ 00:00:01 #6 [Debug] 3                                                        │

│ 00:00:03 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or   │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:03 #8 [Verbose] waitForPortAccess / port: 5555 / retry: 0              │

│ 00:00:05 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or   │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:06 #10 [Debug] _2                                                      │

│ 00:00:06 #11 [Debug] _3                                                      │

│ 00:00:06 #12 [Debug] 4                                                       │

│ 00:00:06 #13 [Verbose] waitForPortAccess / port: 5555 / retry: 0             │

│ 00:00:08 #14 [Verbose] waitForPortAccess / port: 5555 / retry: 100           │

│ 00:00:08 #15 [Debug] _4                                                      │

│ 00:00:08 #16 [Debug] _5                                                      │

│ 00:00:10 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or  │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:10 #18 [Debug] 5                                                       │

│ 00:00:10 #19 [Debug] 6                                                       │

│ 2                                                                            │

│ 2                                                                            │

│ 2                                                                            │

│ 121                                                                          │

│ 121                                                                          │

│ 121                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5555



let inline lockPort () = async {

    trace Debug (fun () -> "_1") getLocals

    do! Async.Sleep 500

    use listener = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    trace Debug (fun () -> "_2") getLocals

    listener.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 200

    trace Debug (fun () -> "_4") getLocals

    listener.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPort () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "3") getLocals

    let! retries1 = waitForPortAccess (Some 60) true port

    trace Debug (fun () -> "4") getLocals

    let! retries2 = waitForPortAccess (Some 60) false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries1, retries2

}

|> Async.runWithTimeout 2000

|> function

    | Some (retries1, retries2) ->

        retries1

        |> _isBetween

            (if Runtime.isWindows () then 4 else 2)

            (if Runtime.isWindows () then 15 else 150)



        retries2

        |> _isBetween

            (if Runtime.isWindows () then 5 else 0)

            (if Runtime.isWindows () then 20 else 60)



        true

    | _ -> false

|> _assertEqual true



╭─[ 1.76s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:11 #20 [Debug] 1                                                       │

│ 00:00:11 #22 [Debug] _1                                                      │

│ 00:00:11 #21 [Debug] 2                                                       │

│ 00:00:11 #23 [Debug] 3                                                       │

│ 00:00:11 #24 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #25 [Verbose] waitForPortAccess / port: 5555 / retry: 0             │

│ 00:00:11 #26 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #27 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #28 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #29 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #30 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #31 [Debug] _2                                                      │

│ 00:00:11 #32 [Debug] _3                                                      │

│ 00:00:11 #33 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #34 [Debug] 4                                                       │

│ 00:00:11 #35 [Verbose] waitForPortAccess / port: 5555 / retry: 0             │

│ 00:00:12 #36 [Debug] _4                                                      │

│ 00:00:12 #37 [Debug] _5                                                      │

│ 00:00:12 #38 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:12 #39 [Debug] 5                                                       │

│ 00:00:12 #40 [Debug] 6                                                       │

│ 7                                                                            │

│ 7                                                                            │

│ 7                                                                            │

│ 11                                                                           │

│ 11                                                                           │

│ 11                                                                           │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getAvailablePort                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getAvailablePort timeout initialPort =

    let rec loop port = async {

        let! isPortOpen =

            match timeout with

            | None -> testPortOpen port

            | Some timeout -> testPortOpenTimeout timeout port

        if not isPortOpen

        then return port

        else return! loop (port + 1)

    }

    loop initialPort



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5555



let inline lockPorts () = async {

    trace Debug (fun () -> "_1") getLocals

    use listener1 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    use listener2 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port + 1)

    trace Debug (fun () -> "_2") getLocals

    listener1.Start ()

    listener2.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 4000

    trace Debug (fun () -> "_4") getLocals

    listener1.Stop ()

    listener2.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPorts () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 240

    trace Debug (fun () -> "3") getLocals

    let! availablePort = getAvailablePort None port

    trace Debug (fun () -> "4") getLocals

    let! retries = waitForPortAccess None false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return availablePort, retries

}

|> Async.runWithTimeout 15000

|> function

    | Some (availablePort, retries) ->

        availablePort |> _assertEqual (port + 2)



        retries

        |> _isBetween

            (if Runtime.isWindows () then 100 else 100)

            (if Runtime.isWindows () then 150 else 1200)



        true

    | _ -> false

|> _assertEqual true



╭─[ 6.64s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:13 #41 [Debug] 1                                                       │

│ 00:00:13 #42 [Debug] 2                                                       │

│ 00:00:13 #43 [Debug] _1                                                      │

│ 00:00:13 #44 [Debug] _2                                                      │

│ 00:00:13 #45 [Debug] _3                                                      │

│ 00:00:13 #46 [Debug] 3                                                       │

│ 00:00:15 #47 [Verbose] testPortOpen / ex: System.AggregateException: One or  │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:15 #48 [Debug] 4                                                       │

│ 00:00:15 #49 [Verbose] waitForPortAccess / port: 5555 / retry: 0             │

│ 00:00:16 #50 [Verbose] waitForPortAccess / port: 5555 / retry: 100           │

│ 00:00:17 #51 [Debug] _4                                                      │

│ 00:00:17 #52 [Debug] _5                                                      │

│ 00:00:19 #53 [Verbose] testPortOpen / ex: System.AggregateException: One or  │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:19 #54 [Debug] 5                                                       │

│ 00:00:19 #55 [Debug] 6                                                       │

│ 5557                                                                         │

│ 112                                                                          │

│ 112                                                                          │

│ 112                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5555



let inline lockPorts () = async {

    trace Debug (fun () -> "_1") getLocals

    use listener1 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    use listener2 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port + 1)

    trace Debug (fun () -> "_2") getLocals

    listener1.Start ()

    listener2.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 400

    trace Debug (fun () -> "_4") getLocals

    listener1.Stop ()

    listener2.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPorts () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 240

    trace Debug (fun () -> "3") getLocals

    let! availablePort = getAvailablePort (Some 60) port

    trace Debug (fun () -> "4") getLocals

    let! retries = waitForPortAccess (Some 60) false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return availablePort, retries

}

|> Async.runWithTimeout 1500

|> function

    | Some (availablePort, retries) ->

        availablePort |> _assertEqual (port + 2)



        retries

        |> _isBetween

            (if Runtime.isWindows () then 2 else 1)

            (if Runtime.isWindows () then 10 else 120)



        true

    | _ -> false

|> _assertEqual true



╭─[ 1.22s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:19 #56 [Debug] 1                                                       │

│ 00:00:19 #58 [Debug] 2                                                       │

│ 00:00:19 #58 [Debug] _1                                                      │

│ 00:00:19 #59 [Debug] _2                                                      │

│ 00:00:19 #60 [Debug] _3                                                      │

│ 00:00:20 #61 [Debug] 3                                                       │

│ 00:00:20 #62 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:20 #63 [Debug] 4                                                       │

│ 00:00:20 #64 [Verbose] waitForPortAccess / port: 5555 / retry: 0             │

│ 00:00:20 #65 [Debug] _4                                                      │

│ 00:00:20 #66 [Debug] _5                                                      │

│ 00:00:20 #67 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:20 #68 [Debug] 5                                                       │

│ 00:00:20 #69 [Debug] 6                                                       │

│ 5557                                                                         │

│ 7                                                                            │

│ 7                                                                            │

│ 7                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Networking.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 326214 bytes to Networking.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Runtime (Polyglot)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



open FileSystem.Operators



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## isWindows                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let isWindows =

    fun () ->

        System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

            System.Runtime.InteropServices.OSPlatform.Windows

    |> memoize



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



isWindows ()



╭─[ 78.88ms - return value ]───────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>True</pre></div><style>                      │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getExecutableSuffix                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getExecutableSuffix () =

    if isWindows ()

    then ".exe"

    else ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getExecutableSuffix ()



╭─[ 13.34ms - return value ]───────────────────────────────────────────────────╮

│ .exe                                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## splitCommand                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type private CommandParseStep =

    | Start

    | Path of quoted: bool

    | Arguments



let splitCommand (command: string) =

    let rec loop (path, args) chars step =

        match chars, step with

        | ('"' | '\'') :: tail, _ when path = "" -> loop (path, args) tail (Path

true)

        | ('"' | '\'') :: tail, Path true -> loop (path, args) tail (Path false)

        | ' ' :: tail, Path true -> loop ($"{path} ", args) tail (Path true)

        | ' ' :: tail, (Start | Path _) -> loop (path, args) tail Arguments

        | char :: tail, Arguments -> loop (path, $"{args}{char}") tail Arguments

        | char :: tail, _ -> loop ($"{path}{char}", args) tail step

        | _, _ -> path |> Sm.replace @"\" "/", args

    loop ("", "") (command |> Seq.toList) Start



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



splitCommand ""

|> _assertEqual ("", "")



splitCommand "/a/b/c"

|> _assertEqual ("/a/b/c", "")



splitCommand "cat file.txt"

|> _assertEqual ("cat", "file.txt")



splitCommand """..\..\file.exe file1.txt file2.txt"""

|> _assertEqual ("../../file.exe", "file1.txt file2.txt")



splitCommand @"c:\dir\file.exe ""file1.txt file2.txt"""

|> _assertEqual ("c:/dir/file.exe", @"""file1.txt file2.txt""")



splitCommand @"""..\..\dir name\file.exe"" ""file 1.txt"" file2.txt"

|> _assertEqual ("../../dir name/file.exe", @"""file 1.txt"" file2.txt")



splitCommand @"""..\..\file 1.exe"" -c \\""echo 1\\"""

|> _assertEqual ("../../file 1.exe", @"-c \\""echo 1\\""")



splitCommand @"..\..\file 1.exe -c \\""echo 1\\"""

|> _assertEqual ("../../file", @"1.exe -c \\""echo 1\\""")



╭─[ 87.90ms - stdout ]─────────────────────────────────────────────────────────╮

│ ( ,  )                                                                       │

│ ( /a/b/c,  )                                                                 │

│ ( cat, file.txt )                                                            │

│ ( ../../file.exe, file1.txt file2.txt )                                      │

│ ( c:/dir/file.exe, "file1.txt file2.txt" )                                   │

│ ( ../../dir name/file.exe, "file 1.txt" file2.txt )                          │

│ ( ../../file 1.exe, -c \\"echo 1\\" )                                        │

│ ( ../../file, 1.exe -c \\"echo 1\\" )                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## executeAsync                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type ExecutionLine =

    {

        ProcessId : int

        Line : string

        Error : bool

    }



type ExecutionOptions =

    {

        Command : string

        WorkingDirectory : string option

        CancellationToken : System.Threading.CancellationToken option

        OnLine : (ExecutionLine -> Async<unit>) option

    }



let inline executeWithOptionsAsync (options : ExecutionOptions) = async {

    let fileName, arguments = options.Command |> splitCommand

    let workingDirectory = options.WorkingDirectory |> Option.defaultValue ""



    trace Debug (fun () -> $"executeAsync / options: {options}") getLocals



    let startInfo = System.Diagnostics.ProcessStartInfo (

        Arguments = arguments,

        CreateNoWindow = true,

        FileName = fileName,

        RedirectStandardError = true,

        RedirectStandardOutput = true,

        StandardOutputEncoding = System.Text.Encoding.UTF8,

        UseShellExecute = false,

        WorkingDirectory = workingDirectory

    )



    use proc = new System.Diagnostics.Process (StartInfo = startInfo)

    let output = System.Collections.Concurrent.ConcurrentStack<string> ()



    let inline event error (e: System.Diagnostics.DataReceivedEventArgs) = async

{

        if e.Data <> null then

            match options.OnLine with

            | Some onLine ->

                do!

                    onLine

                        {

                            ProcessId = proc.Id

                            Line = e.Data

                            Error = error

                        }

            | None -> ()



            trace

                Verbose

                (fun () -> $"> {e.Data}")

                Common.getLocals



            output.Push

                $"{

                    if error then '[['.ToString() else System.String.Empty

                }{

                    e.Data

                }{

                    if error then ']]'.ToString() else System.String.Empty

                }"

    }



    proc.OutputDataReceived.Add (event false >> Async.StartImmediate)

    proc.ErrorDataReceived.Add (event true >> Async.StartImmediate)



    if proc.Start () |> not

    then failwith $"executeAsync / proc.Start () error"



    proc.BeginErrorReadLine ()

    proc.BeginOutputReadLine ()



    let! ct =

        options.CancellationToken

        |> Option.defaultValue System.Threading.CancellationToken.None

        |> Async.mergeCancellationTokenWithDefaultAsync



    use reg = ct.Register (fun _ ->

        if not proc.HasExited then proc.Kill ()

    )



    let! exitCode = async {

        try

            do! proc.WaitForExitAsync ct |> Async.AwaitTask

            return proc.ExitCode

        with :? System.Threading.Tasks.TaskCanceledException as ex ->

            trace Warning (fun () -> $"executeAsync / WaitForExitAsync / ex: {ex

|> Sm.format_exception}") getLocals

            ex |> Sm.format_exception |> output.Push

            return System.Int32.MinValue

    }



    let output = output |> Seq.rev |> Sm.concat "\n"



    trace Debug (fun () ->

        $"executeAsync / exitCode: {exitCode} / output.Length: {output.Length}"

    ) getLocals



    return exitCode, output

}



let inline executeAsync command =

    executeWithOptionsAsync

        {

            Command = command

            CancellationToken = None

            OnLine = None

            WorkingDirectory = None

        }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.createTempDirectory ()

let fileName = "test.txt"

let path = tempFolder </> fileName



async {

    let! exitCode, result = executeAsync @$"pwsh -c ""Get-Content {path}"""

    exitCode |> _assertEqual 1

    result |> _stringContains "not exist"



    do! "0" |> FileSystem.writeAllTextAsync path



    return!

        executeWithOptionsAsync

            {

                Command = @$"pwsh -c ""Get-Content {fileName}"""

                CancellationToken = None

                OnLine = None

                WorkingDirectory = Some tempFolder

            }



}

|> Async.runWithTimeout 10000

|> function

    | Some (exitCode, output) ->

        exitCode |> _assertEqual 0

        output |> _assertEqual "0"

        true

    | _ -> false

|> _assertEqual true



╭─[ 2.08s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] executeAsync / options: { Command =                      │

│    "pwsh -c "Get-Content                                                     │

│ C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0128-3315-1554-158690 │

│ 836163\test.txt""                                                            │

│   WorkingDirectory = None                                                    │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:00 #2 [Verbose] > Get-Content: Cannot find path              │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0128-3315-1554-15869 │

│ 0836163\test.txt' because it does not exist.                               │

│ 00:00:00 #3 [Debug] executeAsync / exitCode: 1 / output.Length: 170          │

│ 1                                                                            │

│ [Get-Content: Cannot find path                                     │

│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0128-3315-1554-15869 │

│ 0836163\test.txt' because it does not exist.]                              │

│ 00:00:00 #4 [Debug] executeAsync / options: { Command = "pwsh -c             │

│ "Get-Content test.txt""                                                      │

│   WorkingDirectory =                                                         │

│    Some                                                                      │

│                                                                              │

│ "C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0128-3315-1554-15869 │

│ 0836163"                                                                     │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:01 #5 [Verbose] > 0                                                    │

│ 00:00:01 #6 [Debug] executeAsync / exitCode: 0 / output.Length: 1            │

│ 0                                                                            │

│ 0                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.createTempDirectory ()

let path = tempFolder </> "test.txt"



let command = @$"pwsh -c ""Get-Content {path}"""



async {

    do! "0" |> FileSystem.writeAllTextAsync path

    let cts = new System.Threading.CancellationTokenSource ()

    trace Debug (fun () -> "1") getLocals

    let! result =

        executeWithOptionsAsync

            {

                Command = command

                CancellationToken = Some cts.Token

                OnLine = None

                WorkingDirectory = None

            }

        |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 100

    trace Debug (fun () -> "3") getLocals

    cts.Cancel ()

    trace Debug (fun () -> "4") getLocals

    let! exitCode, output = result

    trace Debug (fun () -> "5") getLocals

    return exitCode, output

}

|> Async.runWithTimeout 10000

|> function

    | Some (exitCode, output) ->

        exitCode |> _assertEqual -2147483648

        output |> _assertEqual "System.Threading.Tasks.TaskCanceledException: A 

task was canceled."



        true

    | _ -> false

|> _assertEqual true



╭─[ 680.85ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:01 #7 [Debug] 1                                                        │

│ 00:00:01 #9 [Debug] 2                                                        │

│ 00:00:01 #8 [Debug] executeAsync / options: { Command =                      │

│    "pwsh -c "Get-Content                                                     │

│ C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0128-3513-1389-182f1d │

│ 1dcb91\test.txt""                                                            │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = None }                                                            │

│ 00:00:02 #10 [Debug] 3                                                       │

│ 00:00:02 #11 [Debug] 4                                                       │

│ 00:00:02 #12 [Warning] executeAsync / WaitForExitAsync / ex:                 │

│ System.Threading.Tasks.TaskCanceledException: A task was canceled.           │

│ 00:00:02 #13 [Debug] executeAsync / exitCode: -2147483648 / output.Length:   │

│ 66                                                                           │

│ 00:00:02 #14 [Debug] 5                                                       │

│ -2147483648                                                                  │

│ System.Threading.Tasks.TaskCanceledException: A task was canceled.           │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## splitArgs                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline splitArgs commandLine =

    commandLine

    |> System.CommandLine.Parsing.CommandLineStringSplitter.Instance.Split



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""a b "c d" e"""

|> splitArgs

|> Seq.toArray

|> _assertEqual [[| "a"; "b"; "c d"; "e" |]]



╭─[ 35.92ms - stdout ]─────────────────────────────────────────────────────────╮

│ [ a, b, c d, e ]                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parseArgs                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =

    let assemblyName = 

System.Reflection.Assembly.GetEntryAssembly().GetName().Name

    let errorHandler : Argu.IExiter =

        if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |> 

List.contains assemblyName

        then Argu.ExceptionExiter ()

        else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->

Some System.ConsoleColor.Red)



    let parser =

        Argu.ArgumentParser.Create<'T> (

            programName = $"{assemblyName}{getExecutableSuffix ()}",

            errorHandler = errorHandler

        )



    parser.ParseCommandLine args



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce; 

Argu.ArguAttributes.Last>]]

        Paths of paths : string list



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Paths _ -> nameof Paths



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Argu.ArgumentParser.Create<Arguments>().PrintUsage ()



╭─[ 106.29ms - return value ]──────────────────────────────────────────────────╮

│ USAGE: dotnet-repl [--help] <paths>...                                       │

│                                                                              │

│ PATHS:                                                                       │

│                                                                              │

│     <paths>...            Paths                                              │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --help                display this list of options.                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fun () -> parseArgs<Arguments> [[||]] |> ignore

|> _throwsC (fun ex _ ->

    Sm.format_exception ex

    |> _stringContains "Argu.ArguParseException: ERROR: missing parameter 

'<paths>...'."

)



╭─[ 57.75ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSI_0035+it@3-246                                                            │

│ Argu.ArguParseException: ERROR: missing parameter '<paths>...'.              │

│ USAGE: dotnet-repl.exe [--help] <paths>...                                   │

│                                                                              │

│ PATHS:                                                                       │

│                                                                              │

│     <paths>...            Paths                                              │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --help                display this list of options.                      │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =

    args

    |> parseArgs<'T>

    |> fun results -> results.GetAllResults ()



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce; 

Argu.ArguAttributes.Last>]]

        Paths of paths : string list



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Paths _ -> nameof Paths



parseAllArgs<Arguments> [[| "a b"; "c" |]]

|> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]



╭─[ 101.62ms - stdout ]────────────────────────────────────────────────────────╮

│ FSharpList<Arguments>                                                        │

│       - paths: [ a b, c ]                                                    │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =

    args

    |> parseAllArgs<'T>

    |> List.groupBy CommonFSharp.getUnionCaseName<'T>

    |> Map.ofList



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



parseArgsMap<Arguments> [[| "a b"; "c" |]]

|> _assertEqual (

    [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]

    |> Map.ofList

)



╭─[ 61.81ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpMap<String,FSharpList<Arguments>>                                      │

│       - Key: Paths                                                           │

│         Value: FSharpList<Arguments>                                         │

│           - paths: [ a b, c ]                                                │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Runtime.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 340995 bytes to Runtime.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Toml (Polyglot)                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/tomlyn/0.17.0/lib/net7.0/Tomlyn.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (/./) (table: Tomlyn.Model.TomlTable) (key: string) : 

Tomlyn.Model.TomlTable =

    table.[[key]] :?> Tomlyn.Model.TomlTable



let inline (/../) (table: Tomlyn.Model.TomlTable) (key: string) : 'T seq =

    table.[[key]] :?> Tomlyn.Model.TomlArray |> Seq.cast<'T>



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tomlContent =

    """

[[extension]]

paths = [["/a", "/b"]]

"""



let toml = Tomlyn.Toml.Parse tomlContent

let tomlModel = Tomlyn.Toml.ToModel toml



let paths : string seq = tomlModel /./ "extension" /../ "paths"



paths

|> Seq.toList

|> _assertEqual [[ "/a"; "/b" ]]



╭─[ 139.09ms - stdout ]────────────────────────────────────────────────────────╮

│ [ /a, /b ]                                                                   │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Toml.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 278296 bytes to Toml.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: AsyncSeq.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Common.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Networking.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: FileSystem.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Threading.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: CommonFSharp.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Async.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Crypto.dib

00:00:00 #5 [Debug] parseDibCode / output: Fs / file: Crypto.dib

00:00:00 #5 [Debug] parseDibCode / output: Fs / file: Threading.dib

00:00:00 #9 [Debug] parseDibCode / output: Fs / file: FileSystem.dib

00:00:00 #8 [Debug] parseDibCode / output: Fs / file: Networking.dib

00:00:00 #7 [Debug] parseDibCode / output: Fs / file: Common.dib

00:00:00 #6 [Debug] parseDibCode / output: Fs / file: Async.dib

00:00:00 #5 [Debug] parseDibCode / output: Fs / file: CommonFSharp.dib

00:00:00 #6 [Debug] parseDibCode / output: Fs / file: AsyncSeq.dib

00:00:00 #10 [Debug] writeDibCode / output: Fs / path: Runtime.dib

00:00:00 #10 [Debug] writeDibCode / output: Fs / path: Toml.dib

00:00:00 #12 [Debug] parseDibCode / output: Fs / file: Toml.dib

00:00:00 #11 [Debug] parseDibCode / output: Fs / file: Runtime.dib

In [ ]:
{ . "$ScriptDir/../lib/rust/fable/build.ps1" } | Invoke-Block

── pwsh ────────────────────────────────────────────────────────────────────────

. ../../../scripts/nbs_header.ps1

. ../../../scripts/core.ps1



── pwsh ────────────────────────────────────────────────────────────────────────

dotnet fable --optimize --lang rs --extension .rs



╭─[ 949.74ms - stdout ]────────────────────────────────────────────────────────╮

│ Fable 4.14.0: F# to Rust compiler (status: alpha)                            │

│                                                                              │

│ Thanks to the contributor! @eugene-g                                         │

│ Stand with Ukraine! https://standwithukraine.com.ua/                         │

│                                                                              │

│ Parsing fable-library-rust.fsproj...                                         │

│ Retrieving project options from cache, in case of issues run `dotnet fable   │

│ clean` or try `--noCache` option.                                            │

│ Project and references (1 source files) parsed in 173ms                      │

│                                                                              │

│ Skipped compilation because all generated files are up-to-date!              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook build.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 272480 bytes to build.dib.html

In [ ]:
{ . "$ScriptDir/../apps/spiral/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Supervisor (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com

mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli

ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0

/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0

/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/

7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"

#r 

@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha

rp.Json.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Threading.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Networking.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Threading =



    open Common



    /// ## newDisposableToken



    let inline newDisposableToken (mergeToken: 

System.Threading.CancellationToken option) =

        let cts = new System.Threading.CancellationTokenSource ()

        let cts =

            match mergeToken with

            | None -> cts

            | Some mergeToken ->

                System.Threading.CancellationTokenSource.CreateLinkedTokenSource

[[| cts.Token; mergeToken |]]

        let disposable = new_disposable cts.Cancel

        cts.Token, disposable





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

Sm.format_exception}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            matc...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FileSystem.Operators

open Microsoft.AspNetCore.SignalR.Client



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## sendJson                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sendJson (port : int) (json : string) = async {

    let! portOpen = Networking.testPortOpen port

    if portOpen then

        try

            let connection = 

HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()

            do! connection.StartAsync () |> Async.AwaitTask

            let! result = connection.InvokeAsync<string>("ClientToServerMsg", 

json) |> Async.AwaitTask

            do! connection.StopAsync () |> Async.AwaitTask

            trace Debug (fun () -> $"sendJson / port: {port} / json: {json} / 

result.Length: {result |> Option.ofObj |> Option.map String.length}") getLocals

            return Some result

        with ex ->

            trace Critical (fun () -> $"sendJson / port: {port} / json: {json} /

ex: {ex |> Sm.format_exception}") getLocals

            return None

    else

        trace Debug (fun () -> "sendJson / error: port not open") getLocals

        return None

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## sendObj                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sendObj port obj =

    obj

    |> System.Text.Json.JsonSerializer.Serialize

    |> sendJson port



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## awaitCompiler                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type VSCPos = {| line : int; character : int |}

type VSCRange = VSCPos * VSCPos

type RString = VSCRange * string

type TracedError = {| trace : string list; message : string |}

type ClientErrorsRes =

    | FatalError of string

    | TracedError of TracedError

    | PackageErrors of {| uri : string; errors : RString list |}

    | TokenizerErrors of {| uri : string; errors : RString list |}

    | ParserErrors of {| uri : string; errors : RString list |}

    | TypeErrors of {| uri : string; errors : RString list |}



── fsharp ──────────────────────────────────────────────────────────────────────

let inline awaitCompiler port cancellationToken = async {

    let ct, disposable = cancellationToken |> Threading.newDisposableToken

    let! ct = ct |> Async.mergeCancellationTokenWithDefaultAsync



    let compiler = MailboxProcessor.Start (fun inbox -> async {

        let! availablePort = Networking.getAvailablePort (Some 60) port

        if availablePort <> port then

            inbox.Post (port, false)

        else

            let repositoryRoot = FileSystem.getSourceDirectory () |> 

FileSystem.findParent ".paket" false



            let compilerPath =

                repositoryRoot </> "deps/The-Spiral-Language/The Spiral Language

2/artifacts/bin/The Spiral Language 2/release"

                |> System.IO.Path.GetFullPath



            let dllPath = compilerPath </> "Spiral.dll"



            let! exitCode, result =

                Runtime.executeWithOptionsAsync

                    {

                        Command = $@"dotnet ""{dllPath}"" --port {availablePort}

--default-int i32 --default-float f64"

                        CancellationToken = Some ct

                        WorkingDirectory = None

                        OnLine = Some <| fun { Line = line } -> async {

                            if line |> Sm.contains $"Server bound to: 

http://localhost:{availablePort}" then

                                do! Networking.waitForPortAccess (Some 500) true

availablePort |> Async.Ignore



                                let rec loop retry = async {

                                    let getLocals () = $"port: {availablePort} /

retry: {retry} / {getLocals ()}"

                                    try

                                        let pingObj = {| Ping = true |}

                                        let! pingResult = pingObj |> sendObj 

availablePort

                                        trace Verbose (fun () -> $"awaitCompiler

/ Ping / result: {pingResult}") getLocals

                                    with ex ->

                                        trace Verbose (fun () -> $"awaitCompiler

/ Ping / ex: {ex |> Sm.format_exception}") getLocals

                                        do! Async.Sleep 10

                                        do! loop (retry + 1)

                                }

                                do! loop 0

                                inbox.Post (availablePort, true)

                        }

                    }

            trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} / 

result: {result}") getLocals

            disposable.Dispose ()

    }, ct)



    let! serverPort, managed = compiler.Receive ()



    let connection = 

HubConnectionBuilder().WithUrl($"http://127.0.0.1:{serverPort}").Build ()

    do! connection.StartAsync () |> Async.AwaitTask



    let event = Event<_> ()

    let disposable' = connection.On<string> ("ServerToClientMsg", event.Trigger)

    let stream =

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun () -> async {

                let! msg = event.Publish |> Async.AwaitEvent

                return Some (msg |> 

FSharp.Json.Json.deserialize<ClientErrorsRes>, ())

            })

            ()



    let disposable' =

        new_disposable (fun () ->

            async {

                disposable'.Dispose ()

                do! connection.StopAsync () |> Async.AwaitTask

                disposable.Dispose ()

                if managed

                then do! Networking.waitForPortAccess (Some 2000) false 

serverPort |> Async.Ignore

            }

            |> Async.RunSynchronously

        )



    return

        serverPort,

        stream,

        ct,

        disposable'

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getFileUri                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getFileUri (path : string) =

    let path =

        if Runtime.isWindows () |> not

        then path

        else $"{path.[[0]] |> System.Char.ToLower}{path.[[1..]]}" |> Sm.replace 

"\\" "/"

    $"file:///{path |> Sm.trim_start [[| '/' |]]}"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getFilePathFromUri uri =

    match System.Uri.TryCreate (uri, System.UriKind.Absolute) with

    | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath

    | _ -> failwith "invalid uri"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getCompilerPort () =

    13805



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## serialize_obj                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

    let serializeObj obj =

        obj

        |> FSharp.Json.Json.serialize

        |> Sm.replace "\\\\" "\\"

        |> Sm.replace "\\r\\n" "\n"

        |> Sm.replace "\\n" "\n"



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildFile                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildFile timeout port cancellationToken path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let fileDir = fullPath |> System.IO.Path.GetDirectoryName

    let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension

    let! code = fullPath |> FileSystem.readAllTextAsync



    let eventFilter = function

        | FileSystem.FileSystemChange.Changed (path, _) when path = 

$"{fileName}.fsx" -> true

        | _ -> false



    let stream, disposable = fileDir |> FileSystem.watchDirectory eventFilter

    use _ = disposable



    let token, disposable = Threading.newDisposableToken cancellationToken

    use _ = disposable



    let! serverPort, errors, ct, disposable = awaitCompiler port (Some token)

    use _ = disposable



    let fsxContentSeq =

        stream

        |> FSharp.Control.AsyncSeq.choose (function

            | _, (FileSystem.FileSystemChange.Changed (path, Some content) as 

event)

                when event |> eventFilter

                ->

                Some content

            | _ -> None

        )

        |> FSharp.Control.AsyncSeq.map (fun content ->

            Some (content |> Sm.replace "\r\n" "\n"), None

        )



    let inline printErrorData (data : {| uri : string; errors : RString list |})

=

        let fileName = data.uri |> System.IO.Path.GetFileName

        let errors =

            data.errors

            |> List.map snd

            |> Sm.concat "\n"

        $"{fileName}:\n{errors}"



    let errorsSeq =

        errors

        |> FSharp.Control.AsyncSeq.choose (fun error ->

            match error with

            | FatalError message ->

                Some (message, error)

            | TracedError data ->

                Some (data.message, error)

            | PackageErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | TokenizerErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | ParserErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | TypeErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | _ -> None

        )

        |> FSharp.Control.AsyncSeq.map (fun (message, error) ->

            None, Some (message, error)

        )



    let timerSeq =

        1000

        |> FSharp.Control.AsyncSeq.intervalMs

        |> FSharp.Control.AsyncSeq.map (fun _ -> None, None)



    let outputSeq =

        [[ fsxContentSeq; errorsSeq; timerSeq ]]

        |> FSharp.Control.AsyncSeq.mergeAll



    let! outputChild =

        ((None, [[]], 0), outputSeq)

        ||> FSharp.Control.AsyncSeq.scan (

            fun (fsxContentResult, errors, typeErrorCount) (fsxContent, error) 

->

                match fsxContent, error with

                | Some fsxContent, None -> Some fsxContent, errors, 

typeErrorCount

                | None, Some (_, FatalError "File main has a type error 

somewhere in its path.") ->

                    fsxContentResult, errors, typeErrorCount + 1

                | None, Some error -> fsxContentResult, error :: errors, 

typeErrorCount

                | None, None when typeErrorCount >= 1 ->

                    fsxContentResult, errors, typeErrorCount + 1

                | _ -> fsxContentResult, errors, typeErrorCount

        )

        |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (fsxContent, errors, 

typeErrorCount) ->

            trace Debug (fun () -> $"buildFile / takeWhileInclusive / 

fsxContent: {fsxContent |> Option.defaultValue System.String.Empty |> 

Sm.ellipsis 750} / errors: {errors |> serializeObj} / typeErrorCount: 

{typeErrorCount}") getLocals

            match fsxContent, errors with

            | None, [[]] when typeErrorCount > 2 -> false

            | None, [[]] -> true

            | _ -> false

        )

        |> FSharp.Control.AsyncSeq.tryLast

        |> Async.withCancellationToken ct

        |> Async.catch

        |> Async.runWithTimeoutAsync timeout

        |> Async.StartChild



    let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText = 

code |} |}

    let! _fileOpenResult = fileOpenObj |> sendObj serverPort



    do! Async.Sleep 60



    let buildFileObj = {| BuildFile = {| uri = fullPath |> getFileUri; backend =

"Fsharp" |} |}

    let! _buildFileResult = buildFileObj |> sendObj serverPort



    return!

        outputChild

        |> Async.map (function

            | Some (Ok (Some (message, errors, _))) ->

                message, errors |> List.distinct |> List.rev

            | Some (Error ex) ->

                trace Critical (fun () -> $"buildFile / error: {ex |> 

serializeObj}") getLocals

                None, [[]]

            | _ -> None, [[]]

        )

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## persistCode                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline persistCode code = async {

    let tempDir = FileSystem.createTempDirectory ()



    let mainPath = tempDir </> "main.spi"

    do! code |> FileSystem.writeAllTextAsync mainPath



    let repositoryRoot = FileSystem.getSourceDirectory () |> 

FileSystem.findParent ".paket" false



    let spiprojPath = tempDir </> "package.spiproj"

    let spiprojCode =

        $"""packageDir: {repositoryRoot </> "lib"}

packages:

    |core-

    spiral-

modules:

    main

"""

    do! spiprojCode |> FileSystem.writeAllTextAsync spiprojPath



    let disposable = new_disposable (fun () ->

        ()

        // tempDir |> FileSystem.deleteDirectoryAsync |> Async.Ignore |> 

Async.RunSynchronously

    )



    return mainPath, disposable

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildCode                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildCode timeout cancellationToken code = async {

    let! mainPath, disposable = persistCode code

    use _ = disposable

    let port = getCompilerPort ()

    return! mainPath |> buildFile timeout port cancellationToken

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let buildCode timeout cancellationToken code = buildCode timeout 

cancellationToken code



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl app () =

    console.write_line "text"

    1i32



inl main () =

    app

    |> dyn

    |> ignore

"""

|> buildCode 15000 None

|> Async.runWithTimeout 15000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        Some """let rec closure0 () () : int32 =

    let v0 : string = "text"

    System.Console.WriteLine v0

    1

let v0 : (unit -> int32) = closure0()

()

""",

        [[]]

    )

)



╭─[ 6.95s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60                        │

│ 00:00:00 #2 [Debug] executeAsync / options: { Command =                      │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:00 #4 [Verbose] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to:          │

│ http://localhost:13805                                                       │

│ 00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500                       │

│ 00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0             │

│ 00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} /           │

│ result.Length:                                                               │

│ 00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port:      │

│ 13805 / retry: 0                                                             │

│ 00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:01 #11 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #12 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #13 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl app () =\n    console.write_line                 │

│ \u0022text\u0022\n    1i32\n\ninl main () =\n    app\n    |\u003E dyn\n      │

│ |\u003E                                                                      │

│ ignore\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240 │

│ 330-0129-3690-9094-985b99797e7b/main.spi"}} / result.Length:                 │

│ 00:00:01 #14 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0129-3690-9094-985b99797e7b/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:02 #15 [Verbose] > Building                                            │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0129-3690-9094-985b99 │

│ 797e7b\main.spi                                                              │

│ 00:00:02 #16 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:03 #17 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:04 #18 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec    │

│ closure0 () () : int32 =                                                     │

│     let v0 : string = "text"                                                 │

│     System.Console.WriteLine v0                                              │

│     1                                                                        │

│ let v0 : (unit -> int32) = closure0()                                        │

│ ()                                                                           │

│  / errors: [] / typeErrorCount: 0                                            │

│ 00:00:06 #19 [Debug] runWithTimeoutAsync / timeout: 2000                     │

│ 00:00:06 #20 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - FSharpOption<String>                                    │

│           Value: let rec closure0 () () : int32 =                            │

│     let v0 : string = "text"                                                 │

│     System.Console.WriteLine v0                                              │

│     1                                                                        │

│ let v0 : (unit -> int32) = closure0()                                        │

│ ()                                                                           │

│                                                                              │

│       - [  ]                                                                 │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> _assertEqual None



╭─[ 12.59s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:07 #21 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:07 #22 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:07 #23 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral               │

│ 00:00:07 #24 [Verbose] > dll_path:                                           │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:08 #25 [Verbose] > Starting the Spiral Server. It is bound to:         │

│ http://localhost:13805                                                       │

│ 00:00:08 #26 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:08 #27 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:08 #28 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:08 #29 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:08 #30 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:08 #31 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:08 #32 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:08 #33 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"","uri":"file:///c:/Users/i574n/AppData/Local/Temp/d │

│ otnet-repl/20240330-0129-4416-1606-1d4cb45969a1/main.spi"}} / result.Length: │

│ 00:00:08 #34 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0129-4416-1606-1d4cb45969a1/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:09 #35 [Verbose] > Building                                            │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0129-4416-1606-1d4cb4 │

│ 5969a1\main.spi                                                              │

│ 00:00:09 #36 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:10 #37 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:11 #38 [Verbose] > Cannot find `main` in file main.                    │

│ 00:00:11 #39 [Verbose] > Build skipped for                                   │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0129-4416-1606-1d4cb4 │

│ 5969a1\main.spi                                                              │

│ 00:00:11 #40 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:12 #41 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:13 #42 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:14 #43 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:15 #44 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:16 #45 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:17 #46 [Debug] runWithTimeoutAsync / timeout: 10000                    │

│ 00:00:17 #47 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:18 #48 [Debug] runWithTimeoutAsync / timeout: 10000                    │

│ 00:00:19 #49 [Debug] runWithTimeoutAsync / timeout: 2000                     │

│ 00:00:19 #50 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"inl app () =

    0i32



inl a = 1



inl main () =

    app

    |> dyn

    |> ignore

"

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[ "main.spi:

Global inl/let statements should all return functions known at parse time." ]]

    )

)



╭─[ 4.25s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:19 #51 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:19 #52 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:20 #53 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral               │

│ 00:00:20 #54 [Verbose] > dll_path:                                           │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:20 #55 [Verbose] > Starting the Spiral Server. It is bound to:         │

│ http://localhost:13805                                                       │

│ 00:00:20 #56 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:20 #57 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:20 #58 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:20 #59 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:20 #60 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:20 #61 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:20 #62 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:20 #63 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl app () =\n    0i32\n\ninl a = 1\n\ninl main ()   │

│ =\n    app\n    |\u003E dyn\n    |\u003E                                     │

│ ignore\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240 │

│ 330-0129-5656-5658-56cfb73482f2/main.spi"}} / result.Length:                 │

│ 00:00:20 #64 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0129-5656-5658-56cfb73482f2/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:21 #65 [Verbose] > Building                                            │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0129-5656-5658-56cfb7 │

│ 3482f2\main.spi                                                              │

│ 00:00:21 #66 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [                                                                            │

│   [                                                                          │

│     "main.spi:                                                               │

│ Global inl/let statements should all return functions known at parse time.", │

│     {                                                                        │

│       "ParserErrors": {                                                      │

│         "errors": [                                                          │

│           [                                                                  │

│             [                                                                │

│               {                                                              │

│                 "character": 0,                                              │

│                 "line": 3                                                    │

│               },                                                             │

│               {                                                              │

│                 "character": 9,                                              │

│                 "line": 3                                                    │

│               }                                                              │

│             ],                                                               │

│             "Global inl/let statements should all return functions known at  │

│ parse time."                                                                 │

│           ]                                                                  │

│         ],                                                                   │

│         "uri":                                                               │

│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0129-5656-56 │

│ 58-56cfb73482f2\main.spi"                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 0                                                        │

│ 00:00:21 #67 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:23 #68 [Debug] runWithTimeoutAsync / timeout: 2000                     │

│ 00:00:23 #69 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Global inl/let statements should all return functions known at parse time. ] │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () =

    1i32 / 0i32

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[ "An attempt to divide by zero has been detected at compile time." ]]

    )

)



╭─[ 5.37s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:23 #70 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:23 #71 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:24 #72 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral               │

│ 00:00:24 #73 [Verbose] > dll_path:                                           │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:24 #74 [Verbose] > Starting the Spiral Server. It is bound to:         │

│ http://localhost:13805                                                       │

│ 00:00:24 #75 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:24 #76 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:24 #77 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:24 #78 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:24 #79 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:24 #80 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:24 #81 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:24 #82 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl main () =\n    1i32 /                            │

│ 0i32\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/2024033 │

│ 0-0130-0077-7723-70f3e5038b26/main.spi"}} / result.Length:                   │

│ 00:00:25 #83 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-0077-7723-70f3e5038b26/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:25 #84 [Verbose] > Building                                            │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-0077-7723-70f3e5 │

│ 038b26\main.spi                                                              │

│ 00:00:25 #85 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:26 #86 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [                                                                            │

│   [                                                                          │

│     "An attempt to divide by zero has been detected at compile time.",       │

│     {                                                                        │

│       "TracedError": {                                                       │

│         "message": "An attempt to divide by zero has been detected at        │

│ compile time.",                                                              │

│         "trace": [                                                           │

│           "Error trace on line: 1, column: 10 in module:                     │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-0077-7723-70f3e5 │

│ 038b26\main.spi.                                                             │

│ inl main () =                                                                │

│          ^                                                                   │

│ ",                                                                           │

│           "Error trace on line: 2, column: 5 in module:                      │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-0077-7723-70f3e5 │

│ 038b26\main.spi.                                                             │

│     1i32 / 0i32                                                              │

│     ^                                                                        │

│ "                                                                            │

│         ]                                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 0                                                        │

│ 00:00:26 #87 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:28 #88 [Debug] runWithTimeoutAsync / timeout: 2000                     │

│ 00:00:28 #89 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ An attempt to divide by zero has been detected at compile time. ]  │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () =

    1 + ""

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[

            "main.spi:

Constraint satisfaction error.

Got: string

Fails to satisfy: number"

        ]]

    )

)



╭─[ 5.10s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:29 #90 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:29 #91 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:29 #92 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral               │

│ 00:00:29 #93 [Verbose] > dll_path:                                           │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:29 #94 [Verbose] > Starting the Spiral Server. It is bound to:         │

│ http://localhost:13805                                                       │

│ 00:00:30 #95 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:30 #96 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:30 #97 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:30 #98 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:30 #99 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:30 #100 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:30 #101 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:30 #102 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │

│ \u0022\u0022\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl │

│ /20240330-0130-0617-1716-1034eb7269c3/main.spi"}} / result.Length:           │

│ 00:00:30 #103 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-0617-1716-1034eb7269c3/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:30 #104 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-0617-1716-1034eb │

│ 7269c3\main.spi                                                              │

│ 00:00:31 #105 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:31 #106 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 1                                               │

│ 00:00:31 #107 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [                                                                    │

│   [                                                                          │

│     "main.spi:                                                               │

│ Constraint satisfaction error.                                               │

│ Got: string                                                                  │

│ Fails to satisfy: number",                                                   │

│     {                                                                        │

│       "TypeErrors": {                                                        │

│         "errors": [                                                          │

│           [                                                                  │

│             [                                                                │

│               {                                                              │

│                 "character": 8,                                              │

│                 "line": 1                                                    │

│               },                                                             │

│               {                                                              │

│                 "character": 10,                                             │

│                 "line": 1                                                    │

│               }                                                              │

│             ],                                                               │

│             "Constraint satisfaction error.                                  │

│ Got: string                                                                  │

│ Fails to satisfy: number"                                                    │

│           ]                                                                  │

│         ],                                                                   │

│         "uri":                                                               │

│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-0617-17 │

│ 16-1034eb7269c3\main.spi"                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 1                                                        │

│ 00:00:31 #108 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:33 #109 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:00:33 #110 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Constraint satisfaction error.                                               │

│ Got: string                                                                  │

│ Fails to satisfy: number ]                                                   │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () =

    x + y

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[

            "main.spi:

Unbound variable: x.

Unbound variable: y."

        ]]

    )

)



╭─[ 4.92s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:34 #111 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:34 #112 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:34 #113 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:00:34 #114 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:34 #115 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:00:35 #116 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:35 #117 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:35 #118 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:35 #119 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:35 #120 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:00:35 #121 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:35 #122 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:35 #123 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │

│ y\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330-0 │

│ 130-1130-3070-34d2bf56f3e4/main.spi"}} / result.Length:                      │

│ 00:00:35 #124 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-1130-3070-34d2bf56f3e4/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:35 #125 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-1130-3070-34d2bf │

│ 56f3e4\main.spi                                                              │

│ 00:00:36 #126 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:36 #127 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 1                                               │

│ 00:00:36 #128 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [                                                                    │

│   [                                                                          │

│     "main.spi:                                                               │

│ Unbound variable: x.                                                         │

│ Unbound variable: y.",                                                       │

│     {                                                                        │

│       "TypeErrors": {                                                        │

│         "errors": [                                                          │

│           [                                                                  │

│             [                                                                │

│               {                                                              │

│                 "character": 4,                                              │

│                 "line": 1                                                    │

│               },                                                             │

│               {                                                              │

│                 "character": 5,                                              │

│                 "line": 1                                                    │

│               }                                                              │

│             ],                                                               │

│             "Unbound variable: x."                                           │

│           ],                                                                 │

│           [                                                                  │

│             [                                                                │

│               {                                                              │

│                 "character": 8,                                              │

│                 "line": 1                                                    │

│               },                                                             │

│               {                                                              │

│                 "character": 9,                                              │

│                 "line": 1                                                    │

│               }                                                              │

│             ],                                                               │

│             "Unbound variable: y."                                           │

│           ]                                                                  │

│         ],                                                                   │

│         "uri":                                                               │

│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-1130-30 │

│ 70-34d2bf56f3e4\main.spi"                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 1                                                        │

│ 00:00:36 #129 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:38 #130 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:00:38 #131 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Unbound variable: x.                                                         │

│ Unbound variable: y. ]                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""union a =

    | B

    | c



inl main () =

    ()

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[ "main.spi:

Expected: uppercase variable" ]]

    )

)



╭─[ 3.95s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:39 #132 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:39 #133 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:39 #134 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:00:39 #135 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:40 #136 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:00:40 #137 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:40 #138 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:40 #139 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:40 #140 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:40 #141 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:00:40 #142 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:40 #143 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:40 #144 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"union a =\n    | B\n    | c\n\ninl main () =\n       │

│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330- │

│ 0130-1637-3723-37b647caae24/main.spi"}} / result.Length:                     │

│ 00:00:40 #145 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-1637-3723-37b647caae24/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:40 #146 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-1637-3723-37b647 │

│ caae24\main.spi                                                              │

│ 00:00:40 #147 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [                                                                    │

│   [                                                                          │

│     "main.spi:                                                               │

│ Expected: uppercase variable",                                               │

│     {                                                                        │

│       "ParserErrors": {                                                      │

│         "errors": [                                                          │

│           [                                                                  │

│             [                                                                │

│               {                                                              │

│                 "character": 6,                                              │

│                 "line": 2                                                    │

│               },                                                             │

│               {                                                              │

│                 "character": 7,                                              │

│                 "line": 2                                                    │

│               }                                                              │

│             ],                                                               │

│             "Expected: uppercase variable"                                   │

│           ]                                                                  │

│         ],                                                                   │

│         "uri":                                                               │

│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-1637-37 │

│ 23-37b647caae24\main.spi"                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 0                                                        │

│ 00:00:40 #148 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:42 #149 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:00:42 #150 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Expected: uppercase variable ]                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

/// abc

inl main () =

    ()

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[ "main.spi:

Expected: whitespace" ]]

    )

)



╭─[ 1.12s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:43 #151 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:43 #152 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:43 #153 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:43 #154 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\n/// abc\ninl main () =\n                           │

│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330- │

│ 0130-2050-5014-5865b2eca5fd/main.spi"}} / result.Length:                     │

│ 00:00:43 #155 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-2050-5014-5865b2eca5fd/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:44 #156 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [                                                                    │

│   [                                                                          │

│     "main.spi:                                                               │

│ Expected: whitespace",                                                       │

│     {                                                                        │

│       "TokenizerErrors": {                                                   │

│         "errors": [                                                          │

│           [                                                                  │

│             [                                                                │

│               {                                                              │

│                 "character": 2,                                              │

│                 "line": 1                                                    │

│               },                                                             │

│               {                                                              │

│                 "character": 3,                                              │

│                 "line": 1                                                    │

│               }                                                              │

│             ],                                                               │

│             "Expected: whitespace"                                           │

│           ]                                                                  │

│         ],                                                                   │

│         "uri":                                                               │

│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-2050-50 │

│ 14-5865b2eca5fd\main.spi"                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 0                                                        │

│ 00:00:44 #157 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Expected: whitespace ]                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl main () =

    real

        inl real_unbox forall a. (obj : a) : a =

            typecase obj with

            | _ => obj

        real_unbox ()

    ()

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[ "Cannot apply a forall with a term." ]]

    )

)



╭─[ 5.77s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:44 #158 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:44 #159 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:45 #160 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:00:45 #161 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:45 #162 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:00:45 #163 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:45 #164 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:45 #165 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:45 #166 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:45 #167 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:00:45 #168 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:45 #169 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:45 #170 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │

│ forall a. (obj : a) : a =\n            typecase obj with\n            | _    │

│ =\u003E obj\n        real_unbox ()\n                                         │

│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330- │

│ 0130-2177-7757-7e0dc815fdc6/main.spi"}} / result.Length:                     │

│ 00:00:46 #171 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-2177-7757-7e0dc815fdc6/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:46 #172 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-2177-7757-7e0dc8 │

│ 15fdc6\main.spi                                                              │

│ 00:00:46 #173 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:47 #174 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [                                                                    │

│   [                                                                          │

│     "Cannot apply a forall with a term.",                                    │

│     {                                                                        │

│       "TracedError": {                                                       │

│         "message": "Cannot apply a forall with a term.",                     │

│         "trace": [                                                           │

│           "Error trace on line: 2, column: 10 in module:                     │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-2177-7757-7e0dc8 │

│ 15fdc6\main.spi.                                                             │

│ inl main () =                                                                │

│          ^                                                                   │

│ ",                                                                           │

│           "Error trace on line: 4, column: 9 in module:                      │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-2177-7757-7e0dc8 │

│ 15fdc6\main.spi.                                                             │

│         inl real_unbox forall a. (obj : a) : a =                             │

│         ^                                                                    │

│ ",                                                                           │

│           "Error trace on line: 7, column: 9 in module:                      │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-2177-7757-7e0dc8 │

│ 15fdc6\main.spi.                                                             │

│         real_unbox ()                                                        │

│         ^                                                                    │

│ "                                                                            │

│         ]                                                                    │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 0                                                        │

│ 00:00:47 #175 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:49 #176 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:00:49 #177 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ Cannot apply a forall with a term. ]                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl main () =

    real

        inl real_unbox forall a. (obj : a) : a =

            typecase obj with

            | _ => obj

        real_unbox `i32 1

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        None,

        [[ "The main function should not have a forall." ]]

    )

)



╭─[ 5.11s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:50 #178 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:50 #179 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:50 #180 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:00:50 #181 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:51 #182 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:00:51 #183 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:51 #184 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:51 #185 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:51 #186 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:00:51 #187 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:51 #188 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:51 #189 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │

│ forall a. (obj : a) : a =\n            typecase obj with\n            | _    │

│ =\u003E obj\n        real_unbox \u0060i32                                    │

│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330-0 │

│ 130-2739-3909-3fb9d22f43cc/main.spi"}} / result.Length:                      │

│ 00:00:51 #190 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-2739-3909-3fb9d22f43cc/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:51 #191 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-2739-3909-3fb9d2 │

│ 2f43cc\main.spi                                                              │

│ 00:00:52 #192 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:53 #193 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [                                                                    │

│   [                                                                          │

│     "The main function should not have a forall.",                           │

│     {                                                                        │

│       "TracedError": {                                                       │

│         "message": "The main function should not have a forall.",            │

│         "trace": []                                                          │

│       }                                                                      │

│     }                                                                        │

│   ]                                                                          │

│ ] / typeErrorCount: 0                                                        │

│ 00:00:53 #194 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:55 #195 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:00:55 #196 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ The main function should not have a forall. ]                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl init_series start end inc =

    inl total : f64 = conv ((end - start) / inc) + 1

    listm.init total (conv >> (*) inc >> (+) start) : list f64



type integration = (f64 -> f64) -> f64 -> f64 -> f64



inl integral dt : integration =

    fun f a b =>

        init_series (a + dt / 2) (b - dt / 2) dt

        |> listm.map (f >> (*) dt)

        |> listm.fold (+) 0



inl main () =

    integral 0.1 (fun x => x ** 2) 0 1

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        Some "0.3325000000000001\n",

        [[]]

    )

)



╭─[ 5.51s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:55 #197 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:55 #198 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:00:55 #199 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:00:55 #200 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:56 #201 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:00:56 #202 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:56 #203 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:56 #204 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:56 #205 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:56 #206 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:00:56 #207 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:56 #208 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:56 #209 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │

│ f64 = conv ((end - start) / inc) \u002B 1\n    listm.init total (conv        │

│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype         │

│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl   │

│ integral dt : integration =\n    fun f a b =\u003E\n        init_series (a   │

│ \u002B dt / 2) (b - dt / 2) dt\n        |\u003E listm.map (f \u003E\u003E    │

│ (*) dt)\n        |\u003E listm.fold (\u002B) 0\n\ninl main () =\n            │

│ integral 0.1 (fun x =\u003E x ** 2) 0                                        │

│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330-0 │

│ 130-3255-5574-51465d129636/main.spi"}} / result.Length:                      │

│ 00:00:56 #210 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-3255-5574-51465d129636/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:00:57 #211 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-3255-5574-51465d │

│ 129636\main.spi                                                              │

│ 00:00:57 #212 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:58 #213 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:58 #214 [Debug] buildFile / takeWhileInclusive / fsxContent:           │

│ 0.3325000000000001                                                           │

│  / errors: [] / typeErrorCount: 0                                            │

│ 00:00:58 #215 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:01:00 #216 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:01:00 #217 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - FSharpOption<String>                                    │

│           Value: 0.3325000000000001                                          │

│                                                                              │

│       - [  ]                                                                 │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl init_series start end inc =

    inl total : f64 = conv ((end - start) / inc) + 1

    listm.init total (conv >> (*) inc >> (+) start) : list f64



type integration = (f64 -> f64) -> f64 -> f64 -> f64



inl integral dt : integration =

    fun f a b =>

        init_series (a + dt / 2) (b - dt / 2) dt

        |> listm.map (f >> (*) dt)

        |> listm.fold (+) 0



inl main () =

    integral 0.01 (fun x => x ** 2) 0 1

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _assertEqual (

    Some (

        Some "0.33332500000000004\n",

        [[]]

    )

)

// |> _assertEqual None

// |> fun x -> printfn $"{x.ToDisplayString ()}"



╭─[ 5.43s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:01:01 #218 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:01:01 #219 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-1070> }                                     │

│ 00:01:01 #220 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:01:01 #221 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:01:01 #222 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:01:01 #223 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:01:01 #224 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:01:02 #225 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:01:02 #226 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:01:02 #227 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:01:02 #228 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:01:02 #229 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:01:02 #230 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │

│ f64 = conv ((end - start) / inc) \u002B 1\n    listm.init total (conv        │

│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype         │

│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl   │

│ integral dt : integration =\n    fun f a b =\u003E\n        init_series (a   │

│ \u002B dt / 2) (b - dt / 2) dt\n        |\u003E listm.map (f \u003E\u003E    │

│ (*) dt)\n        |\u003E listm.fold (\u002B) 0\n\ninl main () =\n            │

│ integral 0.01 (fun x =\u003E x ** 2) 0                                       │

│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330-0 │

│ 130-3804-0425-01317014591d/main.spi"}} / result.Length:                      │

│ 00:01:02 #231 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │

│ /Temp/dotnet-repl/20240330-0130-3804-0425-01317014591d/main.spi"}} /         │

│ result.Length:                                                               │

│ 00:01:02 #232 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0130-3804-0425-013170 │

│ 14591d\main.spi                                                              │

│ 00:01:03 #233 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:01:04 #234 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:01:04 #235 [Debug] buildFile / takeWhileInclusive / fsxContent:           │

│ 0.33332500000000004                                                          │

│  / errors: [] / typeErrorCount: 0                                            │

│ 00:01:04 #236 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:01:06 #237 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ 00:01:06 #238 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - FSharpOption<String>                                    │

│           Value: 0.33332500000000004                                         │

│                                                                              │

│       - [  ]                                                                 │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getFileTokenRange                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getFileTokenRange port cancellationToken path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let! code = fullPath |> FileSystem.readAllTextAsync

    let lines = code |> Sm.split "\n"



    let token, disposable = Threading.newDisposableToken cancellationToken

    use _ = disposable



    let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)

    use _ = disposable



    let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText = 

code |} |}

    let! _fileOpenResult = fileOpenObj |> sendObj serverPort



    let fileTokenRangeObj =

        {|

            FileTokenRange =

                {|

                    uri = fullPath |> getFileUri

                    range =

                        [[|

                            {| line = 0; character = 0 |}

                            {| line = lines.Length - 1; character = 

lines.[[lines.Length - 1]].Length |}

                        |]]

                |}

        |}

    let! fileTokenRangeResult =

        fileTokenRangeObj

        |> sendObj serverPort

        |> Async.withCancellationToken ct



    return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int 

array>

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getCodeTokenRange                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getCodeTokenRange cancellationToken code = async {

    let! mainPath, disposable = persistCode code

    use _ = disposable

    let port = getCompilerPort ()

    return! mainPath |> getFileTokenRange port cancellationToken

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () = ()"""

|> getCodeTokenRange None

|> Async.runWithTimeout 10000

|> Option.flatten

|> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 

8; 0; 0; 2; 1; 4; 0; 0;

2; 1; 8; 0; 0; 1; 1; 8; 0 |]])



╭─[ 8.67s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:01:19 #239 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:01:19 #240 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:it@4-435> }                                             │

│ 00:01:19 #241 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:01:19 #242 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:01:19 #243 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:01:20 #244 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:01:20 #245 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:01:20 #246 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:01:20 #247 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:01:20 #248 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:01:20 #249 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =                                        │

│ ()","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330-01 │

│ 30-5612-1201-14bfd41c7487/main.spi"}} / result.Length:                       │

│ 00:01:20 #250 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileTokenRange":{"range":[                                                 │

│ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/Users/ │

│ i574n/AppData/Local/Temp/dotnet-repl/20240330-0130-5612-1201-14bfd41c7487/ma │

│ in.spi"}} / result.Length: Some(213)                                         │

│ 00:01:22 #251 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ FSharpOption<Int32[]>                                                        │

│       Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0,   │

│ 0, 2, 1, 4, 0, 0, 2, 1, 8, 0, 0, 1, 1, 8, 0 ]                                │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () = 1i32"""

|> getCodeTokenRange None

|> Async.runWithTimeout 10000

|> Option.flatten

|> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 

8; 0; 0; 2; 1; 4; 0; 0;

2; 1; 3; 0; 0; 1; 3; 12; 0 |]])



╭─[ 10.17s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:01:29 #252 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:01:29 #253 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:it@4-865> }                                             │

│ 00:01:29 #254 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral              │

│ 00:01:29 #255 [Verbose] > dll_path:                                          │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:01:29 #256 [Verbose] > Starting the Spiral Server. It is bound to:        │

│ http://localhost:13805                                                       │

│ 00:01:30 #257 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:01:30 #258 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:01:30 #259 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:01:30 #260 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:01:30 #261 [Verbose] > Server bound to: http://localhost:13805            │

│ 00:01:30 #262 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =                                        │

│ 1i32","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240330- │

│ 0131-0624-2479-243b78935926/main.spi"}} / result.Length:                     │

│ 00:01:30 #263 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileTokenRange":{"range":[                                                 │

│ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/Users/ │

│ i574n/AppData/Local/Temp/dotnet-repl/20240330-0131-0624-2479-243b78935926/ma │

│ in.spi"}} / result.Length: Some(214)                                         │

│ 00:01:32 #264 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│ FSharpOption<Int32[]>                                                        │

│       Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0,   │

│ 0, 2, 1, 4, 0, 0, 2, 1, 3, 0, 0, 1, 3, 12, 0 ]                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | Build_File of string * string

    | File_Token_Range of string * string

    | Execute_Command of string

    | Timeout of int

    | Port of int



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Build_File _ -> nameof Build_File

            | File_Token_Range _ -> nameof File_Token_Range

            | Execute_Command _ -> nameof Execute_Command

            | Timeout _ -> nameof Timeout

            | Port _ -> nameof Port



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Argu.ArgumentParser.Create<Arguments>().PrintUsage ()



╭─[ 191.51ms - return value ]──────────────────────────────────────────────────╮

│ USAGE: dotnet-repl [--help] [--build-file <string> <string>]                 │

│                    [--file-token-range <string> <string>]                    │

│                    [--execute-command <string>] [--timeout <int>] [--port    │

│ <int>]                                                                       │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --build-file <string> <string>                                           │

│                           Build_File                                         │

│     --file-token-range <string> <string>                                     │

│                           File_Token_Range                                   │

│     --execute-command <string>                                               │

│                           Execute_Command                                    │

│     --timeout <int>       Timeout                                            │

│     --port <int>          Port                                               │

│     --help                display this list of options.                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let buildFileActions =

        argsMap

        |> Map.tryFind (nameof Arguments.Build_File)

        |> Option.defaultValue [[]]

        |> List.choose (function

            | Arguments.Build_File (inputPath, outputPath) -> Some (inputPath, 

outputPath)

            | _ -> None

        )



    let fileTokenRangeActions =

        argsMap

        |> Map.tryFind (nameof Arguments.File_Token_Range)

        |> Option.defaultValue [[]]

        |> List.choose (function

            | Arguments.File_Token_Range (inputPath, outputPath) -> Some 

(inputPath, outputPath)

            | _ -> None

        )



    let executeCommandActions =

        argsMap

        |> Map.tryFind (nameof Arguments.Execute_Command)

        |> Option.defaultValue [[]]

        |> List.choose (function

            | Arguments.Execute_Command command -> Some command

            | _ -> None

        )



    let timeout =

        match argsMap |> Map.tryFind (nameof Arguments.Timeout) with

        | Some [[ Arguments.Timeout timeout ]] -> timeout

        | _ -> 60000 * 60



    let port =

        match argsMap |> Map.tryFind (nameof Arguments.Port) with

        | Some [[ Arguments.Port port ]] -> Some port

        | _ -> None



    async {

        let port = port |> Option.defaultWith getCompilerPort

        let localToken, disposable = Threading.newDisposableToken None

        let! serverPort, _errors, compilerToken, disposable = awaitCompiler port

(Some localToken)

        use _ = disposable



        let buildFileAsync =

            buildFileActions

            |> List.map (fun (inputPath, outputPath) -> async {

                let! outputCode, errors = inputPath |> buildFile timeout 

serverPort None



                errors

                |> List.map snd

                |> List.iter (fun error ->

                    trace Critical (fun () -> $"main / error: {error |> 

serializeObj}") getLocals

                )



                match outputCode with

                | Some outputCode ->

                    do! outputCode |> FileSystem.writeAllTextAsync outputPath

                    return 0

                | None ->

                    return 1

            })



        let fileTokenRangeAsync =

            fileTokenRangeActions

            |> List.map (fun (inputPath, outputPath) -> async {

                let! tokenRange = inputPath |> getFileTokenRange serverPort None

                match tokenRange with

                | Some tokenRange ->

                    do! tokenRange |> FSharp.Json.Json.serialize |> 

FileSystem.writeAllTextAsync outputPath

                    return 0

                | None ->

                    return 1

            })



        let executeCommandAsync =

            executeCommandActions

            |> List.map (fun command -> async {

                let! exitCode, result =

                    Runtime.executeWithOptionsAsync

                        {

                            Command = command

                            CancellationToken = Some compilerToken

                            WorkingDirectory = None

                            OnLine = None

                        }



                trace Debug (fun () -> $"main / executeCommand / exitCode: 

{exitCode}") getLocals



                return exitCode

            })



        return!

            [[| buildFileAsync; fileTokenRangeAsync; executeCommandAsync |]]

            |> Seq.collect id

            |> fun x -> Async.Parallel (x, float 

System.Environment.ProcessorCount * 0.75 |> ceil |> int)

            |> Async.map Array.sum

    }

    |> Async.runWithTimeout timeout

    |> Option.defaultValue 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 98.29ms - return value ]───────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Supervisor.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 450000 bytes to Supervisor.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Supervisor.dib

00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Supervisor.dib

00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/date_time.fsx; ... ] / name: Supervisor / code.Length: 19261

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64"

  WorkingDirectory =

   Some "C:\home\git\polyglot\target\polyglot\builder\Supervisor"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:01 #5 [Verbose] >   Determining projects to restore...

00:00:05 #6 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj (in 1.75 sec).

00:00:06 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj]

00:01:17 #8 [Verbose] >   Supervisor -> C:\home\git\polyglot\target\polyglot\builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll

00:01:19 #9 [Verbose] >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\

00:01:19 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 717

00:01:19 #11 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64"

  WorkingDirectory =

   Some "C:\home\git\polyglot\target\polyglot\builder\Supervisor"

  CancellationToken = None

  OnLine = None }

00:01:20 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:01:23 #13 [Verbose] >   Determining projects to restore...

00:01:25 #14 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj (in 776 ms).

00:01:25 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj]

00:01:52 #16 [Verbose] >   Supervisor -> C:\home\git\polyglot\target\polyglot\builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll

00:02:03 #17 [Verbose] >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\

00:02:03 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 713



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Eval (Polyglot)                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com

mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli

ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0

/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0

/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/

7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"

#r 

@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha

rp.Json.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Threading.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Networking.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



#!import ../../apps/builder/Builder.fs

#!import ../../apps/spiral/Supervisor.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Threading =



    open Common



    /// ## newDisposableToken



    let inline newDisposableToken (mergeToken: 

System.Threading.CancellationToken option) =

        let cts = new System.Threading.CancellationTokenSource ()

        let cts =

            match mergeToken with

            | None -> cts

            | Some mergeToken ->

                System.Threading.CancellationTokenSource.CreateLinkedTokenSource

[[| cts.Token; mergeToken |]]

        let disposable = new_disposable cts.Cancel

        cts.Token, disposable





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

Sm.format_exception}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            matc...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Builder =



#if !INTERACTIVE

    open Lib

#endif



    open Common

    open FileSystem.Operators



    /// ## buildProject



    let inline buildProject runtime outputDir path = async {

        let fullPath = path |> System.IO.Path.GetFullPath

        let fileDir = fullPath |> System.IO.Path.GetDirectoryName

        let extension = fullPath |> System.IO.Path.GetExtension



        let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"

        trace Debug (fun () -> "buildProject") getLocals



        match extension with

        | ".fsproj" -> ()

        | _ -> failwith "Invalid project file"



        let runtimes =

            runtime

            |> Option.map List.singleton

            |> ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Supervisor =



#if !INTERACTIVE

    open Lib

#endif



    open Common

    open FileSystem.Operators

    open Microsoft.AspNetCore.SignalR.Client



    /// ## sendJson



    let inline sendJson (port : int) (json : string) = async {

        let! portOpen = Networking.testPortOpen port

        if portOpen then

            try

                let connection = 

HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()

                do! connection.StartAsync () |> Async.AwaitTask

                let! result = 

connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask

                do! connection.StopAsync () |> Async.AwaitTask

                trace Debug (fun () -> $"se...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FileSystem.Operators



── fsharp ──────────────────────────────────────────────────────────────────────

open System

open System.Collections.Generic

open System.IO

open System.Text

open System.Threading

// open FSharp.Compiler

// open FSharp.Compiler.Interactive.Shell

// open FSharp.Compiler.Diagnostics

// open FSharp.Compiler.EditorServices



── fsharp ──────────────────────────────────────────────────────────────────────

let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =

    let allCodeLineLength =

        allCode |> Sm.split "\n" |> Array.length



    errors

    |> List.map (fun (_, error) ->

        match error with

        | Supervisor.FatalError message ->

            (

                severity, message, 0, ("", (0, 0), (0, 0))

            )

            |> List.singleton

        | Supervisor.TracedError data ->

            data.trace

            |> List.truncate 5

            |> List.append [[ data.message ]]

            |> List.map (fun message ->

                (

                    severity, message, 0, ("", (0, 0), (0, 0))

                )

            )

        | Supervisor.PackageErrors data

        | Supervisor.TokenizerErrors data

        | Supervisor.ParserErrors data

        | Supervisor.TypeErrors data ->

            data.errors

            |> List.filter (fun ((rangeStart, _), _) ->

                trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line: 

{rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength: 

{allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}") 

getLocals

                rangeStart.line > allCodeLineLength

            )

            |> List.map (fun ((rangeStart, rangeEnd), message) ->

                (

                    severity,

                    message,

                    0,

                    (

                        (data.uri |> System.IO.Path.GetFileName),

                        (

                            (match lastTopLevelIndex with

                            | Some i when rangeStart.line >= i + 

allCodeLineLength + 3 ->

                                rangeStart.line - allCodeLineLength - 2

                            | _ -> rangeStart.line - allCodeLineLength),

                            (match lastTopLevelIndex with

                            | Some i when rangeStart.line >= i + 

allCodeLineLength + 3 ->

                                rangeStart.character - 4

                            | _ -> rangeStart.character)

                        ),

                        (

                            (match lastTopLevelIndex with

                            | Some i when rangeStart.line >= i + 

allCodeLineLength + 3 ->

                                rangeEnd.line - allCodeLineLength - 2

                            | _ -> rangeEnd.line - allCodeLineLength),

                            (match lastTopLevelIndex with

                            | Some i when rangeStart.line >= i + 

allCodeLineLength + 3 ->

                                rangeEnd.character - 4

                            | _ -> rangeEnd.character)

                        )

                    )

                )

            )

    )

    |> List.collect id

    |> List.toArray



── fsharp ──────────────────────────────────────────────────────────────────────

let spiralExDir = Path.GetTempPath () </> "!spiral-ex"

let maxTermCountPath = spiralExDir </> "max_term_count.txt"



let mutable allCode = ""



── fsharp ──────────────────────────────────────────────────────────────────────

let log2 (text : string) =

    if traceLevel = TraceLevel.Verbose then

        try

            let tmpPath = Path.GetTempPath ()

            let logDir = Path.Combine (tmpPath, "_log_spiral_kernel")

            Directory.CreateDirectory logDir |> ignore

            let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH-mm-ss-fff"

            let logFile = Path.Combine (logDir, 

$"log_{dateTimeStr}_{Random().Next()}.txt")

            let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff"

            let fileName = "SpiralScriptHelpers"

            File.AppendAllText (logFile, $"{dateTimeStr} {fileName} 

{text}{Environment.NewLine}") |> ignore

        with ex ->

            trace Debug (fun () -> $"V.log / ex: {ex |> Sm.format_exception}") 

getLocals



── fsharp ──────────────────────────────────────────────────────────────────────

let log (text : string) =

    if traceLevel = TraceLevel.Verbose then

        try

            let tmpPath = Path.GetTempPath ()

            let logDir = Path.Combine (tmpPath, "_log_spiral_kernel")

            Directory.CreateDirectory logDir |> ignore

            let logFile = Path.Combine (logDir, "log.txt")

            let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff"

            let fileName = "SpiralScriptHelpers"

            File.AppendAllText (logFile, $"{dateTimeStr} {fileName} 

{text}{Environment.NewLine}") |> ignore

        with ex ->

            trace Debug (fun () -> $"SpiralScriptHelpers.log / ex: {ex |> 

Sm.format_exception}") getLocals

            log2 text



── fsharp ──────────────────────────────────────────────────────────────────────

let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name



let inline startTokenRangeWatcher () =

    if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then

        let tmpSpiralDir = Path.GetTempPath () </> "!dotnet-interactive-spiral"

        let tmpCodeDir = tmpSpiralDir </> "code"

        let tmpTokensDir = tmpSpiralDir </> "tokens"



        [[ tmpSpiralDir; tmpCodeDir; tmpTokensDir ]]

        |> List.iter (fun dir -> if Directory.Exists dir |> not then 

Directory.CreateDirectory dir |> ignore)



        let stream, disposable = FileSystem.watchDirectory (fun _ -> false) 

tmpCodeDir



        try

            let port = Supervisor.getCompilerPort () + 2

            let existingFilesChild =

                tmpCodeDir

                |> System.IO.Directory.GetFiles

                |> Array.map (fun codePath -> async {

                    try

                        let tokensPath = tmpTokensDir </> (codePath |> 

System.IO.Path.GetFileName)

                        if File.Exists tokensPath |> not then

                            let! tokens = codePath |> 

Supervisor.getFileTokenRange port None

                            match tokens with

                            | Some tokens ->

                                do!

                                    tokens

                                    |> FSharp.Json.Json.serialize

                                    |> FileSystem.writeAllTextAsync tokensPath

                            | None ->

                                log $"Eval.watchDirectory / GetFiles / tokens: 

None / {getLocals ()}"

                    with ex ->

                        log $"Eval.watchDirectory / GetFiles / ex: {ex |> 

Sm.format_exception} / {getLocals ()}"

                })

                |> Async.Sequential

                |> Async.Ignore



            let streamAsyncChild =

                stream

                |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)

-> async {

                    try

                        let getLocals () = $"ticks: {ticks} / event: {event} / 

{getLocals ()}"

                        match event with

                        | FileSystem.FileSystemChange.Changed (path, _) ->

                            let codePath = tmpCodeDir </> path

                            do!

                                codePath

                                |> FileSystem.waitForFileAccess (Some (

                                    System.IO.FileAccess.Read,

                                    System.IO.FileShare.Read

                                ))

                                |> Async.runWithTimeoutAsync 1000

                                |> Async.Ignore

                            let! tokens = codePath |> 

Supervisor.getFileTokenRange port None

                            match tokens with

                            | Some tokens ->

                                do!

                                    tokens

                                    |> FSharp.Json.Json.serialize

                                    |> FileSystem.writeAllTextAsync 

(tmpTokensDir </> path)

                            | None ->

                                log $"Eval.watchDirectory / iterAsyncParallel / 

tokens: None / {getLocals ()}"

                        | _ -> ()

                    with ex ->

                        log $"Eval.watchDirectory / iterAsyncParallel / ex: {ex 

|> Sm.format_exception} / {getLocals ()}"

                })



            async {

                do! Async.Sleep 3000

                existingFilesChild |> Async.StartImmediate

                streamAsyncChild |> Async.Start

            }

            |> Async.Start

        with ex ->

            log $"Eval / ex: {ex |> Sm.format_exception}"



        disposable

    else new_disposable (fun () -> ())



── fsharp ──────────────────────────────────────────────────────────────────────

let inline eval

    (fsi_eval:

        string

        -> System.Threading.CancellationToken

        -> Choice<'a,Exception> * (TraceLevel * string * int * (string * (int * 

int) * (int * int))) array)

    (cancellationToken: Option<System.Threading.CancellationToken>)

    (code: string)

    =

    log $"Eval / code: %A{code}"



    let rawCellCode =

        if code |> Sm.trim <> "// // trace"

        then code |> Sm.replace "\r\n" "\n"

        else

            if traceLevel = Info

            then traceLevel <- Verbose

            else traceLevel <- Info

            traceDump <- traceLevel = Verbose

            "inl main () = ()"



    let lines = rawCellCode |> Sm.split "\n"



    if lines |> Array.exists (fun line -> line |> Sm.starts_with "#r " && line 

|> Sm.ends_with "\"") then

        let cancellationToken = defaultArg cancellationToken 

System.Threading.CancellationToken.None

        let ch, errors = fsi_eval code cancellationToken

        match ch with

        | Choice1Of2 v -> Ok(v), errors

        | Choice2Of2 ex -> Error(ex), errors

    else

        try

            let lastBlock =

                lines

                |> Array.tryFindBack (fun line ->

                    line |> String.length > 0

                    && line.[[0]] <> ' '

                )



            let hasMain =

                lastBlock

                |> Option.exists (fun line ->

                    line |> Sm.starts_with "inl main "

                    || line |> Sm.starts_with "let main "

                )



            let cellCode, lastTopLevelIndex =

                if hasMain

                then rawCellCode, None

                else

                    let lastTopLevelIndex, _ =

                        (lines |> Array.indexed, (None, false))

                        ||> Array.foldBack (fun (i, line) (lastTopLevelIndex, 

finished) ->

                            trace Debug (fun () -> $"i: {i} / line: '{line}' / 

lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}") getLocals

                            match line with

                            | _ when finished -> lastTopLevelIndex, true

                            | "" -> lastTopLevelIndex, false

                            | line when

                                line |> Sm.starts_with " "

                                || line |> Sm.starts_with "// " -> 

lastTopLevelIndex, false

                            | line when

                                line |> Sm.starts_with "open "

                                || line |> Sm.starts_with "prototype "

                                || line |> Sm.starts_with "instance "

                                || line |> Sm.starts_with "type "

                                || line |> Sm.starts_with "union "

                                || line |> Sm.starts_with "nominal " -> 

lastTopLevelIndex, true

                            | line when

                                line |> Sm.starts_with "inl "

                                || line |> Sm.starts_with "let " ->

                                let m =

                                    System.Text.RegularExpressions.Regex.Match (

                                        line,

                                        @"^(inl|let) +([[~\(\w]][[\w\d']]*(?:| 

*[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]]"

                                    )

                                trace Debug (fun () -> $"m: '{m}' / 

m.Groups.Count: {m.Groups.Count}") getLocals

                                if m.Groups.Count = 3

                                then Some i, false

                                else lastTopLevelIndex, true

                            | _ -> Some i, false

                        )

                    let code =

                        match lastTopLevelIndex with

                        | Some lastTopLevelIndex ->

                            lines

                            |> Array.mapi (fun i line ->

                                match i with

                                | i when i < lastTopLevelIndex -> line

                                | i when i = lastTopLevelIndex -> $"\nlet main 

() =\n    {line}"

                                | _ when line |> Sm.trim = "" -> ""

                                | _ -> $"    {line}"

                            )

                            |> Sm.concat "\n"

                        | None -> $"{rawCellCode}\n\ninl main () = ()\n"

                    code, lastTopLevelIndex



            let newAllCode = $"{allCode}\n\n{cellCode}"



            let rustArgs =

                lines

                |> Array.tryPick (fun line ->

                    if line |> Sm.starts_with "// // rust="

                    then line |> Sm.split "=" |> Array.tryItem 1

                    else None

                )



            let timeout =

                lines

                |> Array.tryPick (fun line ->

                    if line |> Sm.starts_with "// // timeout="

                    then line |> Sm.split "=" |> Array.tryItem 1 |> Option.map 

int

                    else None

                )

                |> Option.defaultValue (60000 * 60)



            let printCode =

                lines

                |> Array.tryPick (fun line ->

                    if line |> Sm.starts_with "// // print_code="

                    then line |> Sm.split "=" |> Array.tryItem 1 |> Option.map 

((=) "true")

                    else None

                )

                |> Option.defaultValue true



            let maxTermCount =

                lines

                |> Array.tryPick (fun line ->

                    if line |> Sm.starts_with "// // max_term_count="

                    then line |> Sm.split "=" |> Array.tryItem 1 |> Option.map 

int

                    else None

                )



            async {

                try

                    let! mainPath, disposable = newAllCode |> 

Supervisor.persistCode

                    use _ = disposable



                    match maxTermCount with

                    | Some maxTermCount ->

                        do! maxTermCount |> string |> 

FileSystem.writeAllTextAsync maxTermCountPath

                    | None -> ()



                    let port = Supervisor.getCompilerPort ()



                    let! codeChoice =

                        mainPath

                        |> Supervisor.buildFile timeout port cancellationToken

                        |> Async.catch

                        |> Async.runWithTimeoutAsync timeout



                    match maxTermCount with

                    | Some _ -> do! FileSystem.deleteFileAsync maxTermCountPath 

|> Async.Ignore

                    | None -> ()



                    let code =

                        match codeChoice with

                        | Some (Ok code) -> Some code

                        | Some (Error ex) ->

                            log $"Eval / errors: {ex |> Sm.format_exception}"

                            None

                        | _ -> None



                    match code with

                    | Some (Some code, spiralErrors) ->

                        let spiralErrors =

                            mapErrors (Warning, spiralErrors, lastTopLevelIndex)

allCode

                        let inline _trace (fn : unit -> string) =

                            if traceLevel = Info

                            then fn () |> System.Console.WriteLine

                            else trace Info (fun () -> 

$"SpiralScriptHelpers.Eval / {fn ()}") getLocals



                        if printCode

                        then _trace (fun () -> if rustArgs |> Option.isSome then

$"\n.fsx:\n{code}" else code)



                        let! rustResult =

                            if rustArgs |> Option.isNone || lastTopLevelIndex = 

None

                            then None |> Async.init

                            else

                                async {

                                    // let hash = $"repl_{code |> 

Crypto.hashText}"

                                    let hash = $"spiral_eval"



                                    let! fsprojPath = code |> 

Builder.persistCodeProject [["Fable.Core"]] [[]] hash



                                    let projectDir = fsprojPath |> 

Path.GetDirectoryName



                                    let outDir = projectDir </> $"target/{hash}"



                                    let libLinkTargetPath = projectDir </> 

"target/fable-library-rust"

                                    let libLinkPath = outDir </> 

$"fable_modules/fable-library-rust"



                                    if Directory.Exists libLinkTargetPath |> not

                                    then libLinkTargetPath |> 

Directory.CreateDirectory |> ignore



                                    libLinkPath |> Path.GetDirectoryName |> 

Directory.CreateDirectory |> ignore



                                    let libLinkPathInfo = DirectoryInfo 

libLinkPath

                                    if libLinkPathInfo.Exists && 

libLinkPathInfo.LinkTarget = null then

                                        Directory.Delete (libLinkPath, true)



                                    if libLinkPath |> Directory.Exists |> not 

then

                                        Directory.CreateSymbolicLink 

(libLinkPath, libLinkTargetPath)

                                        |> ignore





                                    let! exitCode, result =

                                        Runtime.executeWithOptionsAsync

                                            {

                                                Command = $@"dotnet fable 

{fsprojPath} --optimize --lang rs --extension .rs --outDir {outDir}"

                                                CancellationToken = 

cancellationToken

                                                WorkingDirectory = None

                                                OnLine = None

                                            }



                                    if exitCode <> 0

                                    then return Some (Error result)

                                    else

                                        let rsPath = outDir </> $"{hash}.rs"

                                        let! rsCode = rsPath |> 

FileSystem.readAllTextAsync



                                        let mainCode = "pub fn main() -> 

Result<(), String> { Ok(()) }"



                                        let cached = rsCode |> Sm.contains 

mainCode



                                        let rsCode =

                                            if cached

                                            then rsCode

                                            else rsCode |> Sm.replace "),);" 

"));"



                                        if printCode

                                        then _trace (fun () -> 

$"\n.rs:\n{rsCode}")



                                        if not cached

                                        then do!

                                            $"{rsCode}\n\n{mainCode}\n"

                                            |> FileSystem.writeAllTextAsync 

rsPath





                                        let cargoTomlPath = outDir </> 

$"Cargo.toml"

                                        let cargoTomlContent = $"""[[package]]

name = "{hash}"

version = "0.0.1"

edition = "2021"



[[workspace]]



[[dependencies]]

fable_library_rust = {{ path = "fable_modules/fable-library-rust", optional = 

true, default-features = false }}

clap = {{}}

num-complex = {{}}

pyo3 = "~0.21.0-beta.0"



[[features]]

default = [["fable_library_rust/default", 

"fable_library_rust/static_do_bindings"]]



[[[[bin]]]]

name = "{hash}"

path = "{hash}.rs"

"""

                                        do! cargoTomlContent |> 

FileSystem.writeAllTextExists cargoTomlPath



                                        let! exitCode, result =

                                            Runtime.executeWithOptionsAsync

                                                {

                                                    Command = $@"cargo run 

--release --manifest-path {cargoTomlPath}"

                                                    CancellationToken = 

cancellationToken

                                                    WorkingDirectory = None

                                                    OnLine = None

                                                }



                                        if exitCode = 0 then

                                            try

                                                let result =

                                                    result

                                                    |> Sm.split "\n"

                                                    |> Array.skipWhile (fun line

->

                                                        line |> Sm.contains 

@"[[optimized]] target" |> not

                                                    )

                                                    |> Array.skip 2

                                                    |> Sm.concat "\n"

                                                return Some (Ok result)

                                            with ex ->

                                                return $"ex: 

{ex}\nresult:\n{result}" |> Error |> Some

                                        else

                                            return Some (Error result)

                                }



                        let cancellationToken = defaultArg cancellationToken 

System.Threading.CancellationToken.None



                        let fsxResult =

                            if rustArgs |> Option.isSome

                            then None

                            else

                                try

                                    let ch, errors = fsi_eval code 

cancellationToken

                                    let errors =

                                        errors

                                        |> Array.map (fun (e1, e2, e3, _) ->

                                            (e1, e2, e3, ("", (0, 0), (0, 0)))

                                        )

                                    Some (ch, errors)

                                with ex ->

                                    trace Critical (fun () -> 

$"SpiralScriptHelpers.Eval / ex: {ex |> Sm.format_exception}") getLocals

                                    None



                        match fsxResult, rustResult with

                        | Some (ch, errors), None ->

                            let errors = errors |> Array.append spiralErrors

                            match ch with

                            | Choice1Of2 v ->

                                allCode <- newAllCode

                                return Ok(v), errors

                            | Choice2Of2 ex -> return Error ex, errors

                        | _, Some result ->

                            let result, errors =

                                match result with

                                | Ok result -> result, [[||]]

                                | Error error ->

                                    "",

                                    [[|

                                        (

                                            TraceLevel.Critical, error, 0, ("", 

(0, 0), (0, 0))

                                        )

                                    |]]



                            let header = if printCode then ".rs output:\n" else 

""

                            let ch, errors2 = fsi_eval 

$"\"\"\"{header}{result}\n\"\"\"" cancellationToken

                            let errors =

                                errors

                                |> Array.append spiralErrors

                                |> Array.append errors2

                            match ch with

                            | Choice1Of2 v ->

                                allCode <- newAllCode

                                return Ok(v), errors

                            | Choice2Of2 ex ->

                                return Error ex, errors

                        | _ ->

                            let ch, errors = fsi_eval "()" cancellationToken

                            match ch with

                            | Choice1Of2 v ->

                                allCode <- newAllCode

                                return Ok(v), errors

                            | Choice2Of2 ex ->

                                return Error ex, errors

                    | Some (None, errors) when errors |> List.isEmpty |> not ->

                        return errors.[[0]] |> fst |> Exception |> Error,

                        mapErrors (TraceLevel.Critical, errors, 

lastTopLevelIndex) allCode

                    | _ ->

                        return Error (Exception "Spiral error or timeout"),

                        [[|

                            (

                                TraceLevel.Critical, "Diag: Spiral error or 

timeout", 0, ("", (0, 0), (0, 0))

                            )

                        |]]

                with ex ->

                    log $"Eval / ex: {ex |> Sm.format_exception}"

                    return Error (Exception $"Spiral error or timeout (4_) / ex:

{ex |> Sm.format_exception}"),

                    [[|

                        (

                            TraceLevel.Critical, $"Diag: Spiral error or timeout

(4) / ex: {ex |> Sm.format_exception}", 0, ("", (0, 0), (0, 0))

                        )

                    |]]

            }

            |> Async.runWithTimeoutStrict timeout

            |> Option.defaultValue (

                Error (Exception "Spiral error or timeout (2)"),

                [[|

                    (

                        TraceLevel.Critical, "Diag: Spiral error or timeout 

(2)", 0, ("", (0, 0), (0, 0))

                    )

                |]]

            )

        with ex ->

            log $"Eval / ex: {ex |> Sm.format_exception}"

            Error (Exception $"Spiral error or timeout (3) / ex: {ex |> 

Sm.format_exception}"),

            [[|

                (

                    TraceLevel.Critical, $"Diag: Spiral error or timeout (3) / 

ex: {ex |> Sm.format_exception}", 0, ("", (0, 0), (0, 0))

                )

            |]]

[NbConvertApp] Converting notebook Eval.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 373356 bytes to Eval.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Eval.dib

00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Eval.dib

In [ ]:
{ . "$ScriptDir/../apps/plot/build.ps1" } | Invoke-Block
    Finished `release` profile [optimized] target(s) in 0.71s

In [ ]:
{ . "$ScriptDir/../lib/spiral/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@429-61> }

00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805

00:00:01 #6 [Debug] runWithTimeoutAsync / timeout: 500

00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805

00:00:01 #14 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 testing.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:01 #12 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 console.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:01 #13 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 guid.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:01 #15 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 common.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:01 #16 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 date_time.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:08 #17 [Verbose] >

00:00:08 #18 [Verbose] >

00:00:08 #19 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #20 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #21 [Verbose] > │ # date_time                                                                  │

00:00:08 #22 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #23 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #24 [Verbose] >

00:00:08 #25 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #26 [Verbose] > │ # testing                                                                    │

00:00:08 #27 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #28 [Verbose] >

00:00:08 #29 [Verbose] >

00:00:08 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #31 [Verbose] > open rust_operators

00:00:08 #32 [Verbose] > open sm'_operators

00:00:08 #33 [Verbose] >

00:00:08 #34 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #35 [Verbose] >

00:00:08 #36 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #37 [Verbose] > inl __expect fn log b a =

00:00:08 #38 [Verbose] >     if log then

00:00:08 #39 [Verbose] >         a |> sm'.format_debug |> console.write_line

00:00:08 #40 [Verbose] >     inl result = fn a b

00:00:08 #41 [Verbose] >     inl result =

00:00:08 #42 [Verbose] >         result || join result

00:00:08 #43 [Verbose] >     if log

00:00:08 #44 [Verbose] >     then $"$\"__expect / actual: %A{!a} / expected: %A{!b}\""

00:00:08 #45 [Verbose] >     else "__expect"

00:00:08 #46 [Verbose] >     |> assert result

00:00:08 #47 [Verbose] >

00:00:08 #48 [Verbose] > inl __assert_approx_eq log e b a = __expect (fun a b => abs (b - a) < (e |>

00:00:08 #49 [Verbose] > optionm.defaultWith 0.00000001)) log b a

00:00:08 #50 [Verbose] > inl _assert_approx_eq e b a = __assert_approx_eq true e b a

00:00:08 #51 [Verbose] >

00:00:08 #52 [Verbose] > inl __assert_eq log b a = __expect (=) log b a

00:00:08 #53 [Verbose] > inl _assert_eq b a = __assert_eq true b a

00:00:08 #54 [Verbose] >

00:00:08 #55 [Verbose] > inl __assert_eq' log b a = __expect (/=) log b a

00:00:08 #56 [Verbose] > inl _assert_eq' b a = __assert_eq' true b a

00:00:08 #57 [Verbose] >

00:00:08 #58 [Verbose] > inl __assert_ne log b a = __expect (fun a b => a = b |> fun x => join x |> not)

00:00:08 #59 [Verbose] > log b a

00:00:08 #60 [Verbose] > inl _assert_ne b a = __assert_ne true b a

00:00:08 #61 [Verbose] >

00:00:08 #62 [Verbose] > inl __assert_gt log b a = __expect (>) log b a

00:00:08 #63 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #64 [Verbose] > inl _assert_gt b a = __assert_gt true b a

00:00:08 #65 [Verbose] > │ # math                                                                       │

00:00:08 #66 [Verbose] >

00:00:08 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #68 [Verbose] > inl __assert_ge log b a = __expect (>=) log b a

00:00:08 #69 [Verbose] > inl _assert_ge b a = __assert_ge true b a

00:00:08 #70 [Verbose] >

00:00:08 #71 [Verbose] > inl __assert_lt log b a = __expect (<) log b a

00:00:08 #72 [Verbose] > inl _assert_lt b a = __assert_lt true b a

00:00:08 #73 [Verbose] >

00:00:08 #74 [Verbose] > inl __assert_le log b a = __expect (<=) log b a

00:00:08 #75 [Verbose] > inl _assert_le b a = __assert_le true b a

00:00:08 #76 [Verbose] >

00:00:08 #77 [Verbose] > inl __contains forall t. log (b : t) a =

00:00:08 #78 [Verbose] >     __expect

00:00:08 #79 [Verbose] >         (fun a b => a |> $'Seq.tryFind' ((=) b) |> optionm'.unbox |> fun (x :

00:00:08 #80 [Verbose] > option t) => x <> None)

00:00:08 #81 [Verbose] >         log b a

00:00:08 #82 [Verbose] > inl _contains b a = __contains true b a

00:00:08 #83 [Verbose] >

00:00:08 #84 [Verbose] > inl _throws (fn : () -> ()) : option exn =

00:00:08 #85 [Verbose] >     inl none = None : option exn

00:00:08 #86 [Verbose] >     inl some (s : exn) = Some s

00:00:08 #87 [Verbose] >     $"try !fn (); !none with ex -> ex |> !some"

00:00:08 #88 [Verbose] >

00:00:08 #89 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #90 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #91 [Verbose] > │ # console                                                                    │

00:00:08 #92 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #93 [Verbose] >

00:00:08 #94 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #95 [Verbose] > // // test

00:00:08 #96 [Verbose] >

00:00:08 #97 [Verbose] > open testing

00:00:08 #98 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #99 [Verbose] >

00:00:08 #100 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #101 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #102 [Verbose] > │ # guid                                                                       │

00:00:08 #103 [Verbose] > // // test

00:00:08 #104 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #105 [Verbose] >

00:00:08 #106 [Verbose] > open testing

00:00:09 #107 [Verbose] >

00:00:09 #108 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #109 [Verbose] > // // test

00:00:09 #110 [Verbose] >

00:00:09 #111 [Verbose] > open testing

00:00:16 #112 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1026-2681-2083a804b7a7\main.spi

00:00:16 #113 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1047-4747-476e46e893b4\main.spi

00:00:16 #114 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1045-4569-494f888362f0\main.spi

00:00:16 #115 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1053-5379-5b5f9358759f\main.spi

00:00:16 #116 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1061-6133-6415889b3ec0\main.spi

00:00:16 #117 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1078-7897-7f128ad72dec\main.spi

00:00:17 #118 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #119 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #120 [Verbose] > │ # common                                                                     │

00:00:17 #121 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #122 [Verbose] >

00:00:17 #123 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #124 [Verbose] > // // test

00:00:17 #125 [Verbose] >

00:00:17 #126 [Verbose] > open testing

00:00:21 #127 [Verbose] >

00:00:21 #128 [Verbose] > ╭─[ 12.36s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #129 [Verbose] > │ ()                                                                           │

00:00:21 #130 [Verbose] > │                                                                              │

00:00:21 #131 [Verbose] > │                                                                              │

00:00:21 #132 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #133 [Verbose] >

00:00:21 #134 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #135 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #136 [Verbose] > │ ## guid                                                                      │

00:00:21 #137 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #138 [Verbose] >

00:00:21 #139 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #140 [Verbose] > nominal guid = $"System.Guid"

00:00:21 #141 [Verbose] >

00:00:21 #142 [Verbose] > ╭─[ 12.63s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #143 [Verbose] > │ ()                                                                           │

00:00:21 #144 [Verbose] > │                                                                              │

00:00:21 #145 [Verbose] > │                                                                              │

00:00:21 #146 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #147 [Verbose] >

00:00:21 #148 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #149 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #150 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1693-9364-9155da35c20b\main.spi

00:00:21 #151 [Verbose] > │ ## write_line                                                                │

00:00:21 #152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #153 [Verbose] >

00:00:21 #154 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #155 [Verbose] > inl write_line obj : () =

00:00:21 #156 [Verbose] >     $"System.Console.WriteLine !obj"

00:00:21 #157 [Verbose] >

00:00:21 #158 [Verbose] > ╭─[ 12.87s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #159 [Verbose] > │ ()                                                                           │

00:00:21 #160 [Verbose] > │                                                                              │

00:00:21 #161 [Verbose] > │                                                                              │

00:00:21 #162 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #163 [Verbose] >

00:00:21 #164 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #165 [Verbose] > // // test

00:00:21 #166 [Verbose] >

00:00:21 #167 [Verbose] > 1f64

00:00:21 #168 [Verbose] > |> _assert_approx_eq (Some 3) 2

00:00:21 #169 [Verbose] >

00:00:21 #170 [Verbose] > ╭─[ 12.65s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #171 [Verbose] > │ ()                                                                           │

00:00:21 #172 [Verbose] > │                                                                              │

00:00:21 #173 [Verbose] > │                                                                              │

00:00:21 #174 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #175 [Verbose] >

00:00:21 #176 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #177 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #178 [Verbose] > │ ## types                                                                     │

00:00:21 #179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #180 [Verbose] >

00:00:21 #181 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #182 [Verbose] > nominal any = $"obj"

00:00:21 #183 [Verbose] > nominal disposable = $"System.IDisposable"

00:00:21 #184 [Verbose] > nominal exn = $"exn"

00:00:21 #185 [Verbose] > nominal unativeint = $"unativeint"

00:00:21 #186 [Verbose] >

00:00:21 #187 [Verbose] > let array x = x

00:00:21 #188 [Verbose] >

00:00:21 #189 [Verbose] > inl unativeint forall t {int}. (n : t) : unativeint =

00:00:21 #190 [Verbose] >     $"unativeint !n"

00:00:21 #191 [Verbose] >

00:00:21 #192 [Verbose] > ╭─[ 12.78s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #193 [Verbose] > │ ()                                                                           │

00:00:21 #194 [Verbose] > │                                                                              │

00:00:21 #195 [Verbose] > │                                                                              │

00:00:21 #196 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #197 [Verbose] >

00:00:21 #198 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #199 [Verbose] > // // test

00:00:21 #200 [Verbose] >

00:00:21 #201 [Verbose] > 2 * 2 / 0.4f64 |> sqrt

00:00:21 #202 [Verbose] > |> _assert_approx_eq None 3.1622776601683795

00:00:21 #203 [Verbose] >

00:00:21 #204 [Verbose] > ╭─[ 13.08s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #205 [Verbose] > │ ()                                                                           │

00:00:21 #206 [Verbose] > │                                                                              │

00:00:21 #207 [Verbose] > │                                                                              │

00:00:21 #208 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #209 [Verbose] >

00:00:21 #210 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #211 [Verbose] > // // test

00:00:21 #212 [Verbose] >

00:00:21 #213 [Verbose] > open testing

00:00:21 #214 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1711-1110-126f6aba5c09\main.spi

00:00:21 #215 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1712-1248-17669a1c2ef1\main.spi

00:00:21 #216 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1715-1581-197c1f9aaa17\main.spi

00:00:21 #217 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1716-1695-1bc54e7253a1\main.spi

00:00:21 #218 [Verbose] >

00:00:21 #219 [Verbose] > ╭─[ 436.95ms - stdout ]────────────────────────────────────────────────────────╮

00:00:21 #220 [Verbose] > │ ()                                                                           │

00:00:21 #221 [Verbose] > │                                                                              │

00:00:21 #222 [Verbose] > │                                                                              │

00:00:21 #223 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #224 [Verbose] >

00:00:21 #225 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #226 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #227 [Verbose] > │ ## new_guid                                                                  │

00:00:21 #228 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #229 [Verbose] >

00:00:21 #230 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #231 [Verbose] > inl new_guid (x : string) : guid =

00:00:21 #232 [Verbose] >     $'`guid !x '

00:00:21 #233 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1723-2326-287f7b57c9c8\main.spi

00:00:22 #234 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1740-4002-4b55763aa8e8\main.spi

00:00:22 #235 [Verbose] >

00:00:22 #236 [Verbose] >

00:00:22 #237 [Verbose] > ╭─[ 638.17ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #238 [Verbose] > │ ()                                                                           │

00:00:22 #239 [Verbose] > │                                                                              │

00:00:22 #240 [Verbose] > │                                                                              │

00:00:22 #241 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #242 [Verbose] >

00:00:22 #243 [Verbose] > ╭─[ 586.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #244 [Verbose] > │ ()                                                                           │

00:00:22 #245 [Verbose] > │                                                                              │

00:00:22 #246 [Verbose] > │                                                                              │

00:00:22 #247 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #248 [Verbose] > ╭─[ 682.12ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #249 [Verbose] >

00:00:22 #250 [Verbose] >

00:00:22 #251 [Verbose] > │ ()                                                                           │

00:00:22 #252 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #253 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #254 [Verbose] > │                                                                              │

00:00:22 #255 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #256 [Verbose] > │                                                                              │

00:00:22 #257 [Verbose] > │ ## prototype                                                                 │

00:00:22 #258 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #259 [Verbose] >

00:00:22 #260 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #261 [Verbose] > inl write_line_ ~obj : () =

00:00:22 #262 [Verbose] >     $"System.Console.WriteLine !obj"

00:00:22 #263 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #264 [Verbose] >

00:00:22 #265 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #266 [Verbose] > prototype (~:>) r : forall t. t -> r

00:00:22 #267 [Verbose] > prototype append t : t -> t -> t

00:00:22 #268 [Verbose] > prototype of_string t : string -> t

00:00:22 #269 [Verbose] > prototype to_string t : t -> string

00:00:22 #270 [Verbose] >

00:00:22 #271 [Verbose] > ╭─[ 586.65ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #272 [Verbose] > │ ()                                                                           │

00:00:22 #273 [Verbose] > │                                                                              │

00:00:22 #274 [Verbose] > │                                                                              │

00:00:22 #275 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #276 [Verbose] >

00:00:22 #277 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #278 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #279 [Verbose] > │ ## new_raw_guid                                                              │

00:00:22 #280 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #281 [Verbose] >

00:00:22 #282 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #283 [Verbose] > inl new_raw_guid () : guid =

00:00:22 #284 [Verbose] >     $"System.Guid.NewGuid ()"

00:00:22 #285 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1790-9044-9b8dc2def018\main.spi

00:00:22 #286 [Verbose] >

00:00:22 #287 [Verbose] > ╭─[ 348.00ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #288 [Verbose] > │ ()                                                                           │

00:00:22 #289 [Verbose] >

00:00:22 #290 [Verbose] > │                                                                              │

00:00:22 #291 [Verbose] > ╭─[ 345.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #292 [Verbose] > │ ()                                                                           │

00:00:22 #293 [Verbose] > │                                                                              │

00:00:22 #294 [Verbose] > │                                                                              │

00:00:22 #295 [Verbose] > │                                                                              │

00:00:22 #296 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #297 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #298 [Verbose] >

00:00:22 #299 [Verbose] >

00:00:22 #300 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #301 [Verbose] > nominal console_color = $"System.ConsoleColor"

00:00:22 #302 [Verbose] >

00:00:22 #303 [Verbose] > inl reset_color () : () =

00:00:22 #304 [Verbose] >     run_target function

00:00:22 #305 [Verbose] >         | Fsharp => fun () => $"System.Console.ResetColor ()"

00:00:22 #306 [Verbose] >         | _ => fun () => ()

00:00:22 #307 [Verbose] >

00:00:22 #308 [Verbose] > inl set_foreground_color (color : console_color) : () =

00:00:22 #309 [Verbose] >     run_target function

00:00:22 #310 [Verbose] >         | Fsharp => fun () => $"System.Console.ForegroundColor <- !color"

00:00:22 #311 [Verbose] >         | _ => fun () => ()

00:00:22 #312 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #313 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #314 [Verbose] > │ ## null                                                                      │

00:00:22 #315 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #316 [Verbose] >

00:00:22 #317 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #318 [Verbose] > inl null forall t. () : t =

00:00:22 #319 [Verbose] >     $"null |> unbox<`t>"

00:00:22 #320 [Verbose] >

00:00:22 #321 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #322 [Verbose] > │ ## types                                                                     │

00:00:22 #323 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #324 [Verbose] >

00:00:22 #325 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #326 [Verbose] > ╭─[ 435.68ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #327 [Verbose] > inl types () =

00:00:22 #328 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::DateTime<$0>\")>]]

00:00:22 #329 [Verbose] > type chrono_DateTime<'T> = class end"

00:00:22 #330 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::Local\")>]] type

00:00:22 #331 [Verbose] > │ ()                                                                           │

00:00:22 #332 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1792-9208-96f2e406aa69\main.spi

00:00:22 #333 [Verbose] > chrono_Local = class end"

00:00:22 #334 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1793-9355-99e53c72209b\main.spi

00:00:22 #335 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::NaiveDateTime\")>]]

00:00:22 #337 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1800-0055-081cacd2e194\main.spi

00:00:22 #337 [Verbose] > │                                                                              │

00:00:22 #338 [Verbose] > type chrono_NaiveDateTime = class end"

00:00:22 #339 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1826-2617-2f9bcbe99200\main.spi

00:00:22 #340 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::Utc\")>]] type

00:00:22 #341 [Verbose] > chrono_Utc = class end"

00:00:22 #342 [Verbose] > │                                                                              │

00:00:22 #343 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::time::Duration\")>]]

00:00:22 #344 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #345 [Verbose] > type std_time_Duration = class end"

00:00:22 #346 [Verbose] >

00:00:22 #347 [Verbose] > ╭─[ 370.51ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #348 [Verbose] > │ ()                                                                           │

00:00:22 #349 [Verbose] > │                                                                              │

00:00:22 #350 [Verbose] > │                                                                              │

00:00:22 #351 [Verbose] >

00:00:22 #352 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #353 [Verbose] >

00:00:22 #354 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #355 [Verbose] > nominal ticks = i64

00:00:22 #356 [Verbose] > nominal duration = $"std_time_Duration"

00:00:22 #357 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #358 [Verbose] > nominal date_time = $"System.DateTime"

00:00:22 #359 [Verbose] > nominal date_time' t = $"chrono_DateTime<`t>"

00:00:22 #360 [Verbose] > nominal local = $"chrono_Local"

00:00:22 #361 [Verbose] > nominal naive_date_time = $"chrono_NaiveDateTime"

00:00:22 #363 [Verbose] > nominal utc = $"chrono_Utc"

00:00:22 #363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #364 [Verbose] > │ ## main                                                                      │

00:00:22 #365 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #366 [Verbose] >

00:00:22 #367 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #368 [Verbose] > inl main () =

00:00:22 #369 [Verbose] >     $"let new_guid x = !new_guid x" : ()

00:00:22 #370 [Verbose] >     $"let new_raw_guid x = !new_raw_guid x" : ()

00:00:22 #371 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1828-2800-210916a1b1ab\main.spi

00:00:22 #372 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1829-2905-283f40cb00d1\main.spi

00:00:23 #373 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1843-4347-490739d28f93\main.spi

00:00:23 #374 [Verbose] >

00:00:23 #375 [Verbose] >

00:00:23 #376 [Verbose] > ╭─[ 450.23ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #377 [Verbose] > │ ()                                                                           │

00:00:23 #378 [Verbose] > │                                                                              │

00:00:23 #379 [Verbose] > │                                                                              │

00:00:23 #380 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #381 [Verbose] >

00:00:23 #382 [Verbose] > ╭─[ 434.77ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #383 [Verbose] >

00:00:23 #384 [Verbose] > ╭─[ 449.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #385 [Verbose] > │ ()                                                                           │

00:00:23 #386 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #387 [Verbose] > │ ()                                                                           │

00:00:23 #388 [Verbose] > inl i32 forall t. (x : t) : i32 =

00:00:23 #389 [Verbose] > │                                                                              │

00:00:23 #390 [Verbose] >     $"int32 !x"

00:00:23 #391 [Verbose] >

00:00:23 #392 [Verbose] > inl i64 forall t. (x : t) : i64 =

00:00:23 #393 [Verbose] >     $"int64 !x"

00:00:23 #394 [Verbose] >

00:00:23 #395 [Verbose] > inl f32 forall t. (x : t) : f32 =

00:00:23 #396 [Verbose] >     $"float32 !x"

00:00:23 #397 [Verbose] >

00:00:23 #398 [Verbose] > inl f64 forall t. (x : t) : f64 =

00:00:23 #399 [Verbose] >     $"float !x"

00:00:23 #400 [Verbose] > │                                                                              │

00:00:23 #401 [Verbose] > │                                                                              │

00:00:23 #402 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #403 [Verbose] > │                                                                              │

00:00:23 #404 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #405 [Verbose] >

00:00:23 #406 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:23 #407 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:23 #408 [Verbose] > │ ## naive_utc                                                                 │

00:00:23 #409 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #410 [Verbose] >

00:00:23 #411 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #412 [Verbose] > inl naive_utc (date_time : date_time' utc) : naive_date_time =

00:00:23 #413 [Verbose] >     inl date_time = join date_time

00:00:23 #414 [Verbose] >     !\($'"!date_time.naive_utc()"')

00:00:23 #415 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1876-7608-7707be7b0bba\main.spi

00:00:23 #416 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1880-8097-8a6dbb590093\main.spi

00:00:23 #417 [Verbose] >

00:00:23 #418 [Verbose] > ╭─[ 556.94ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #419 [Verbose] > │ ()                                                                           │

00:00:23 #420 [Verbose] > │                                                                              │

00:00:23 #421 [Verbose] > │                                                                              │

00:00:23 #422 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #423 [Verbose] >

00:00:23 #424 [Verbose] >

00:00:23 #425 [Verbose] > ╭─[ 559.63ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #426 [Verbose] > │ ()                                                                           │

00:00:23 #427 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:23 #428 [Verbose] > │                                                                              │

00:00:23 #429 [Verbose] > │                                                                              │

00:00:23 #430 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #431 [Verbose] >

00:00:23 #432 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:23 #433 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:23 #434 [Verbose] > │ ## pair                                                                      │

00:00:23 #435 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #436 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:23 #437 [Verbose] >

00:00:23 #438 [Verbose] > │ ## to_local                                                                  │

00:00:23 #439 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #440 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #441 [Verbose] > type pair a b = $"(`a * `b)"

00:00:23 #442 [Verbose] >

00:00:23 #443 [Verbose] >

00:00:23 #444 [Verbose] > inl pair x y =

00:00:23 #445 [Verbose] >     x, y

00:00:23 #446 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #447 [Verbose] > inl to_local (date_time : date_time' utc) : date_time' local =

00:00:23 #448 [Verbose] >     inl naive_date_time = date_time |> naive_utc

00:00:23 #449 [Verbose] >     !\($'"chrono::offset::TimeZone::from_utc_datetime(&chrono::Local,

00:00:23 #450 [Verbose] > &!naive_date_time)"')

00:00:24 #451 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1943-4392-43dc6659a413\main.spi

00:00:24 #452 [Verbose] >

00:00:24 #453 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1946-4615-4eeff87c1194\main.spi

00:00:24 #454 [Verbose] > ╭─[ 2.53s - stdout ]───────────────────────────────────────────────────────────╮

00:00:24 #455 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:24 #456 [Verbose] >

00:00:24 #457 [Verbose] > ╭─[ 2.59s - stdout ]───────────────────────────────────────────────────────────╮

00:00:24 #458 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:24 #459 [Verbose] > │     let v0 : string = $"%A{3.1622776601683795}"                              │

00:00:24 #460 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:24 #461 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3.1622776601683795} /          │

00:00:24 #462 [Verbose] > │     let v0 : string = $"%A{1.0}"                                             │

00:00:24 #463 [Verbose] > │ expected: %A{3.1622776601683795}"                                            │

00:00:24 #464 [Verbose] > │     ()                                                                       │

00:00:24 #465 [Verbose] > │ method0()                                                                    │

00:00:24 #466 [Verbose] > │                                                                              │

00:00:24 #467 [Verbose] > │ 3.16227766                                                                   │

00:00:24 #468 [Verbose] > │                                                                              │

00:00:24 #469 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #470 [Verbose] >

00:00:24 #471 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:24 #472 [Verbose] > // // test

00:00:24 #473 [Verbose] >

00:00:24 #474 [Verbose] > 2f64 / 3

00:00:24 #475 [Verbose] > |> _assert_approx_eq None 0.6666666666666666

00:00:24 #476 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:24 #477 [Verbose] > │     let v1 : string = $"__expect / actual: %A{1.0} / expected: %A{2.0}"      │

00:00:24 #478 [Verbose] > │     ()                                                                       │

00:00:24 #479 [Verbose] >

00:00:24 #480 [Verbose] > │ method0()                                                                    │

00:00:24 #481 [Verbose] > ╭─[ 605.14ms - stdout ]────────────────────────────────────────────────────────╮

00:00:24 #482 [Verbose] > │ ()                                                                           │

00:00:24 #483 [Verbose] > │                                                                              │

00:00:24 #484 [Verbose] > │                                                                              │

00:00:24 #485 [Verbose] > │                                                                              │

00:00:24 #486 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #487 [Verbose] >

00:00:24 #488 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:24 #489 [Verbose] > // // test

00:00:24 #490 [Verbose] >

00:00:24 #491 [Verbose] > pair 1i32 2i32

00:00:24 #492 [Verbose] > |> _assert_eq (1, 2)

00:00:24 #493 [Verbose] > │ 1.0                                                                          │

00:00:24 #494 [Verbose] > │                                                                              │

00:00:24 #495 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-1981-8104-8f56677705b1\main.spi

00:00:24 #496 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #497 [Verbose] >

00:00:24 #498 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:24 #499 [Verbose] > // // test

00:00:24 #500 [Verbose] >

00:00:24 #501 [Verbose] > "abcd"

00:00:24 #502 [Verbose] > |> _contains 'b'

00:00:24 #503 [Verbose] >

00:00:24 #504 [Verbose] > ╭─[ 620.26ms - stdout ]────────────────────────────────────────────────────────╮

00:00:24 #505 [Verbose] > │ ()                                                                           │

00:00:24 #506 [Verbose] > │                                                                              │

00:00:24 #507 [Verbose] > │                                                                              │

00:00:24 #508 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #509 [Verbose] >

00:00:24 #510 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:24 #511 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:24 #512 [Verbose] > │ ## from_timestamp'                                                           │

00:00:24 #513 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #514 [Verbose] >

00:00:24 #515 [Verbose] >

00:00:24 #516 [Verbose] >

00:00:26 #517 [Verbose] >

00:00:26 #518 [Verbose] >

00:00:26 #519 [Verbose] > ╭─[ 2.29s - stdout ]───────────────────────────────────────────────────────────╮

00:00:26 #520 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:00:26 #521 [Verbose] > │     | US0_0                                                                  │

00:00:26 #522 [Verbose] > │     | US0_1 of f1_0 : char                                                   │

00:00:26 #523 [Verbose] > │ let rec closure0 () (v0 : char) : bool =                                     │

00:00:26 #524 [Verbose] > │     let v1 : bool = 'b' = v0                                                 │

00:00:26 #525 [Verbose] > │     v1                                                                       │

00:00:26 #526 [Verbose] > │ and closure1 () (v0 : char) : US0 =                                          │

00:00:26 #527 [Verbose] > │     US0_1(v0)                                                                │

00:00:26 #528 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:00:26 #529 [Verbose] > │     v0                                                                       │

00:00:26 #530 [Verbose] > │ and method0 () : unit =                                                      │

00:00:26 #531 [Verbose] > │     let v0 : string = "abcd"                                                 │

00:00:26 #532 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:26 #533 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:26 #534 [Verbose] > │     let v2 : ((char -> bool) -> (string -> char option)) = Seq.tryFind       │

00:00:26 #535 [Verbose] > │     let v3 : (char -> bool) = closure0()                                     │

00:00:26 #536 [Verbose] > │     let v4 : (string -> char option) = v2 v3                                 │

00:00:26 #537 [Verbose] > │     let v5 : char option = v4 v0                                             │

00:00:26 #538 [Verbose] > │     let v6 : (char -> US0) = closure1()                                      │

00:00:26 #539 [Verbose] > │     let v7 : US0 = US0_0                                                     │

00:00:26 #540 [Verbose] > │     let v8 : US0 = v5 |> Option.map v6 |> Option.defaultValue v7             │

00:00:26 #541 [Verbose] > │     let v10 : bool =                                                         │

00:00:26 #542 [Verbose] > │         match v8 with                                                        │

00:00:26 #543 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:00:26 #544 [Verbose] > │             true                                                             │

00:00:26 #545 [Verbose] > │         | _ ->                                                               │

00:00:26 #546 [Verbose] > │             false                                                            │

00:00:26 #547 [Verbose] > │     let v11 : bool = v10 <> true                                             │

00:00:26 #548 [Verbose] > │     let v13 : bool =                                                         │

00:00:26 #549 [Verbose] > │         if v11 then                                                          │

00:00:26 #550 [Verbose] > │             true                                                             │

00:00:26 #551 [Verbose] > │         else                                                                 │

00:00:26 #552 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #553 [Verbose] > inl from_timestamp' forall t {number; int}. (timestamp : t) : option (date_time'

00:00:26 #554 [Verbose] > utc) =

00:00:26 #555 [Verbose] >     inl timestamp = join timestamp

00:00:26 #556 [Verbose] >     inl result : optionm'.option' (date_time' utc) =

00:00:26 #557 [Verbose] >         !\($'"chrono::DateTime::from_timestamp_micros(!timestamp / 1000i64)"')

00:00:26 #558 [Verbose] >     result |> optionm'.unbox

00:00:26 #559 [Verbose] >

00:00:26 #560 [Verbose] > ╭─[ 461.19ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #561 [Verbose] > │ ()                                                                           │

00:00:26 #562 [Verbose] > │                                                                              │

00:00:26 #563 [Verbose] > │                                                                              │

00:00:26 #564 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #565 [Verbose] >

00:00:26 #566 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:26 #567 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:26 #568 [Verbose] > │ ## format'                                                                   │

00:00:26 #569 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #570 [Verbose] >

00:00:26 #571 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #572 [Verbose] > inl format' (format : string) (date_time : date_time' utc) : sm'.std_string =

00:00:26 #573 [Verbose] >     inl format = #format

00:00:26 #574 [Verbose] >     inl date_time = join date_time

00:00:26 #575 [Verbose] >     !\($'"!date_time.format(!format).to_string()"')

00:00:26 #576 [Verbose] >

00:00:26 #577 [Verbose] > ╭─[ 824.27ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #578 [Verbose] > │ ()                                                                           │

00:00:26 #579 [Verbose] > │                                                                              │

00:00:26 #580 [Verbose] > │                                                                              │

00:00:26 #581 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #582 [Verbose] >

00:00:26 #583 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:26 #584 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:26 #585 [Verbose] > │ ## format''                                                                  │

00:00:26 #586 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #587 [Verbose] >

00:00:26 #588 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #589 [Verbose] > inl format'' (format : string) (date_time : date_time' _) : sm'.std_string =

00:00:26 #590 [Verbose] >     inl format = #format

00:00:26 #591 [Verbose] >     inl date_time = join date_time

00:00:26 #592 [Verbose] > │             method1(v11)                                                     │

00:00:26 #593 [Verbose] > │     let v14 : string = $"__expect / actual: %A{v0} / expected: %A{'b'}"      │

00:00:26 #594 [Verbose] >     !\($'"!date_time.format(!format).to_string()"')

00:00:26 #595 [Verbose] > │     let v15 : bool = v13 = false                                             │

00:00:26 #596 [Verbose] > │     if v15 then                                                              │

00:00:26 #597 [Verbose] > │         failwith<unit> v14                                                   │

00:00:26 #598 [Verbose] > │ method0()                                                                    │

00:00:26 #599 [Verbose] > │                                                                              │

00:00:26 #600 [Verbose] > │ "abcd"                                                                       │

00:00:26 #601 [Verbose] > │                                                                              │

00:00:26 #602 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #603 [Verbose] >

00:00:26 #604 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #605 [Verbose] > // // test

00:00:26 #606 [Verbose] >

00:00:26 #607 [Verbose] > (dyn 1f64)

00:00:26 #608 [Verbose] > |> _assert_approx_eq (Some 3) 2

00:00:27 #609 [Verbose] >

00:00:27 #610 [Verbose] > ╭─[ 1.45s - stdout ]───────────────────────────────────────────────────────────╮

00:00:27 #611 [Verbose] > │ ()                                                                           │

00:00:27 #612 [Verbose] > │                                                                              │

00:00:27 #613 [Verbose] > │                                                                              │

00:00:27 #614 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #615 [Verbose] >

00:00:27 #616 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:27 #617 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:27 #618 [Verbose] > │ ## format_timestamp                                                          │

00:00:27 #619 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #620 [Verbose] >

00:00:27 #621 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #622 [Verbose] > inl format_timestamp (timestamp : sm'.std_string) =

00:00:27 #623 [Verbose] >     inl timestamp = join timestamp

00:00:27 #624 [Verbose] >     timestamp

00:00:27 #625 [Verbose] >     |> fun x => !\($'"!x.parse().unwrap()"') : i64

00:00:27 #626 [Verbose] >     |> from_timestamp'

00:00:27 #627 [Verbose] >     |> optionm.map fun x =>

00:00:27 #628 [Verbose] >         x

00:00:27 #629 [Verbose] >         |> to_local

00:00:27 #630 [Verbose] >         |> format'' "%Y-%m-%d %H:%M:%S"

00:00:27 #631 [Verbose] >         |> sm'.from_std_string

00:00:27 #632 [Verbose] >     |> resultm.from_option

00:00:27 #633 [Verbose] >

00:00:27 #634 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2001-0124-0ecb6da73af9\main.spi

00:00:27 #635 [Verbose] > ╭─[ 577.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #637 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2006-0693-0e7b9d8f3d3a\main.spi

00:00:27 #636 [Verbose] > ╭─[ 2.00s - stdout ]───────────────────────────────────────────────────────────╮

00:00:27 #638 [Verbose] > ╭─[ 2.32s - stdout ]───────────────────────────────────────────────────────────╮

00:00:27 #639 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:27 #640 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2004-0492-072d87180097\main.spi

00:00:27 #641 [Verbose] > │ let rec closure0 () (v0 : string) : System.Guid =                            │

00:00:27 #643 [Verbose] > │     let v0 : string = $"%A{0.6666666666666666}"                              │

00:00:27 #642 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:27 #644 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2044-4439-47da724b3084\main.spi

00:00:27 #645 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:27 #646 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:27 #647 [Verbose] > │     let v0 : string = $"%A{struct (1, 2)}"                                   │

00:00:27 #648 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2056-5673-5fa9b4e30b1a\main.spi

00:00:27 #649 [Verbose] > │     v1                                                                       │

00:00:27 #650 [Verbose] > │     let v1 : string = $"__expect / actual: %A{0.6666666666666666} /          │

00:00:27 #651 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:27 #652 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2144-4438-400649c4c820\main.spi

00:00:27 #653 [Verbose] > │ and closure1 () () : System.Guid =                                           │

00:00:27 #654 [Verbose] > │ expected: %A{0.6666666666666666}"                                            │

00:00:27 #655 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (1, 2)} / expected:     │

00:00:27 #656 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2235-3519-37de06391b21\main.spi

00:00:27 #658 [Verbose] > │     ()                                                                       │

00:00:27 #657 [Verbose] > │     let v0 : System.Guid = System.Guid.NewGuid ()                            │

00:00:27 #659 [Verbose] > │ %A{struct (1, 2)}"                                                           │

00:00:27 #660 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2240-4010-4d7e2f009bee\main.spi

00:00:27 #661 [Verbose] > │ method0()                                                                    │

00:00:27 #662 [Verbose] > │     v0                                                                       │

00:00:27 #663 [Verbose] > │     ()                                                                       │

00:00:27 #664 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2238-3864-3bbffe498f4a\main.spi

00:00:27 #665 [Verbose] > │                                                                              │

00:00:27 #666 [Verbose] > │ let v0 : (string -> System.Guid) = closure0()                                │

00:00:27 #667 [Verbose] > │ method0()                                                                    │

00:00:27 #669 [Verbose] > │ let new_guid x = v0 x                                                        │

00:00:27 #668 [Verbose] > │ 0.6666666667                                                                 │

00:00:27 #671 [Verbose] > │ let v1 : (unit -> System.Guid) = closure1()                                  │

00:00:27 #670 [Verbose] > │                                                                              │

00:00:27 #672 [Verbose] > │                                                                              │

00:00:27 #673 [Verbose] > │ struct (1, 2)                                                                │

00:00:27 #674 [Verbose] > │ let new_raw_guid x = v1 x                                                    │

00:00:27 #675 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #677 [Verbose] >

00:00:27 #676 [Verbose] > │ ()                                                                           │

00:00:27 #678 [Verbose] > │                                                                              │

00:00:27 #679 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #680 [Verbose] > │                                                                              │

00:00:27 #681 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #682 [Verbose] > // // test

00:00:27 #683 [Verbose] > │                                                                              │

00:00:27 #684 [Verbose] >

00:00:27 #686 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #685 [Verbose] >

00:00:27 #687 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:27 #688 [Verbose] > 2f64 |> log

00:00:27 #689 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:27 #690 [Verbose] > |> _assert_approx_eq None 0.6931471805599453

00:00:27 #691 [Verbose] > │ ## new_pair                                                                  │

00:00:27 #692 [Verbose] >

00:00:27 #693 [Verbose] > ╭─[ 992.59ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #694 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #695 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:27 #696 [Verbose] >

00:00:27 #697 [Verbose] > │     let v0 : string = $"%A{0.6931471805599453}"                              │

00:00:27 #698 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #699 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:27 #700 [Verbose] > inl new_pair forall a b. (a : a) (b : b) : pair a b =

00:00:27 #701 [Verbose] > │     let v1 : string = $"__expect / actual: %A{0.6931471805599453} /          │

00:00:27 #702 [Verbose] >     $"!a, !b"

00:00:27 #703 [Verbose] > │ expected: %A{0.6931471805599453}"                                            │

00:00:27 #704 [Verbose] >

00:00:27 #705 [Verbose] > │     ()                                                                       │

00:00:27 #706 [Verbose] > ╭─[ 449.24ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #707 [Verbose] > │ method0()                                                                    │

00:00:27 #708 [Verbose] > │ ()                                                                           │

00:00:27 #709 [Verbose] > │                                                                              │

00:00:27 #710 [Verbose] > │                                                                              │

00:00:27 #711 [Verbose] > │ 0.6931471806                                                                 │

00:00:27 #713 [Verbose] > │                                                                              │

00:00:27 #712 [Verbose] > │                                                                              │

00:00:27 #714 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #715 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #716 [Verbose] >

00:00:27 #717 [Verbose] >

00:00:27 #719 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:27 #718 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #720 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:27 #721 [Verbose] > // // test

00:00:27 #723 [Verbose] >

00:00:27 #722 [Verbose] > │ ## from_pair                                                                 │

00:00:27 #725 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #724 [Verbose] > pi

00:00:27 #727 [Verbose] > |> _assert_approx_eq None 3.141592653589793f64

00:00:27 #726 [Verbose] >

00:00:27 #728 [Verbose] >

00:00:27 #729 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #730 [Verbose] > ╭─[ 397.38ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #731 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:27 #732 [Verbose] > │     let v0 : string = $"%A{3.141592653589793}"                               │

00:00:27 #733 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:27 #734 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3.141592653589793} / expected: │

00:00:27 #735 [Verbose] > │ %A{3.141592653589793}"                                                       │

00:00:27 #736 [Verbose] > │     ()                                                                       │

00:00:27 #737 [Verbose] > │ method0()                                                                    │

00:00:27 #738 [Verbose] > │                                                                              │

00:00:27 #739 [Verbose] > inl from_pair forall a b. (pair : pair a b) : a * b =

00:00:27 #740 [Verbose] > │ 3.141592654                                                                  │

00:00:27 #741 [Verbose] >     $"let (a, b) = !pair"

00:00:27 #742 [Verbose] > ╭─[ 546.21ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #743 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:27 #744 [Verbose] >     $"a", $"b"

00:00:27 #745 [Verbose] > │                                                                              │

00:00:27 #746 [Verbose] > │     v0                                                                       │

00:00:27 #747 [Verbose] > │ and method0 () : unit =                                                      │

00:00:27 #748 [Verbose] > │     let v0 : float = 1.0                                                     │

00:00:27 #749 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:27 #750 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:27 #751 [Verbose] > │     let v2 : float = 2.0 - v0                                                │

00:00:27 #752 [Verbose] > │     let v3 : float =  -v2                                                    │

00:00:27 #753 [Verbose] > │     let v4 : bool = v2 >= v3                                                 │

00:00:27 #754 [Verbose] > │     let v5 : float =                                                         │

00:00:27 #755 [Verbose] > │         if v4 then                                                           │

00:00:27 #756 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #757 [Verbose] > │             v2                                                               │

00:00:27 #758 [Verbose] > │         else                                                                 │

00:00:27 #759 [Verbose] > │             v3                                                               │

00:00:27 #760 [Verbose] > │     let v6 : bool = v5 < 3.0                                                 │

00:00:27 #761 [Verbose] > │     let v8 : bool =                                                          │

00:00:27 #762 [Verbose] > │         if v6 then                                                           │

00:00:27 #763 [Verbose] > │             true                                                             │

00:00:27 #764 [Verbose] > │         else                                                                 │

00:00:27 #765 [Verbose] > │             method1(v6)                                                      │

00:00:27 #766 [Verbose] > │     let v9 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}"       │

00:00:27 #767 [Verbose] >

00:00:27 #768 [Verbose] > │     let v10 : bool = v8 = false                                              │

00:00:27 #769 [Verbose] > │     if v10 then                                                              │

00:00:27 #770 [Verbose] > │         failwith<unit> v9                                                    │

00:00:27 #771 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #772 [Verbose] > │ method0()                                                                    │

00:00:27 #774 [Verbose] > │                                                                              │

00:00:27 #773 [Verbose] > // // test

00:00:27 #775 [Verbose] >

00:00:27 #776 [Verbose] > pi |> cos

00:00:27 #777 [Verbose] > │ 1.0                                                                          │

00:00:27 #778 [Verbose] > |> _assert_eq -1f64

00:00:27 #779 [Verbose] > │                                                                              │

00:00:27 #780 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #781 [Verbose] >

00:00:27 #782 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #783 [Verbose] > inl print_and_return x =

00:00:27 #784 [Verbose] >     $"printfn $\"print_and_return / x: {!x}\""

00:00:27 #785 [Verbose] >     x

00:00:27 #786 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2285-8571-85011551d45a\main.spi

00:00:27 #787 [Verbose] > 00:00:00 #1 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_22_506_FileOpen.json' because it is being used by another process.)

00:00:27 #788 [Verbose] > 00:00:00 #2 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_22_605_BuildFile.json' because it is being used by another process.)

00:00:27 #789 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2295-9537-9683e6ccbab1\main.spi

00:00:27 #790 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2297-9727-9b05b26c6100\main.spi

00:00:27 #791 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2297-9769-99adf072ad17\main.spi

00:00:27 #792 [Verbose] >

00:00:27 #793 [Verbose] > ╭─[ 349.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #794 [Verbose] > │ ()                                                                           │

00:00:27 #795 [Verbose] > │                                                                              │

00:00:27 #796 [Verbose] > │                                                                              │

00:00:27 #797 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #798 [Verbose] >

00:00:27 #799 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:27 #800 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:27 #801 [Verbose] > │ ## duration_from_millis                                                      │

00:00:27 #802 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #803 [Verbose] >

00:00:27 #804 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #805 [Verbose] > inl duration_from_millis (ms : u64) : duration =

00:00:27 #806 [Verbose] >     inl ms = join ms

00:00:27 #807 [Verbose] >     !\($'"std::time::Duration::from_millis(!ms)"')

00:00:27 #808 [Verbose] >

00:00:27 #809 [Verbose] > ╭─[ 544.27ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #810 [Verbose] > │ ()                                                                           │

00:00:27 #811 [Verbose] > │                                                                              │

00:00:27 #812 [Verbose] > │                                                                              │

00:00:27 #813 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #814 [Verbose] >

00:00:27 #815 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #816 [Verbose] > // // test

00:00:27 #817 [Verbose] >

00:00:27 #818 [Verbose] > new_pair "a" 1i32

00:00:27 #819 [Verbose] > |> from_pair

00:00:27 #820 [Verbose] > |> _assert_eq ("a", 1i32)

00:00:27 #821 [Verbose] >

00:00:27 #822 [Verbose] > ╭─[ 410.81ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #823 [Verbose] >

00:00:27 #824 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:27 #825 [Verbose] > │     let v0 : string = $"%A{-1.0}"                                            │

00:00:27 #826 [Verbose] > ╭─[ 397.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #827 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:27 #828 [Verbose] > │ ()                                                                           │

00:00:27 #829 [Verbose] > │     let v1 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}"    │

00:00:27 #830 [Verbose] > │                                                                              │

00:00:27 #831 [Verbose] > │     ()                                                                       │

00:00:27 #832 [Verbose] > │                                                                              │

00:00:27 #833 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #834 [Verbose] > │ method0()                                                                    │

00:00:27 #835 [Verbose] > │                                                                              │

00:00:27 #836 [Verbose] > │ -1.0                                                                         │

00:00:27 #837 [Verbose] > │                                                                              │

00:00:27 #838 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #839 [Verbose] >

00:00:27 #840 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #841 [Verbose] > // // test

00:00:27 #842 [Verbose] >

00:00:27 #843 [Verbose] > pi

00:00:27 #844 [Verbose] > |> cos

00:00:27 #845 [Verbose] > |> fun n => n / 2f64

00:00:27 #846 [Verbose] > |> _assert_approx_eq None -0.5

00:00:27 #847 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2321-2130-285bcdeb9ed4\main.spi

00:00:27 #848 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2335-3559-326881aaf869\main.spi

00:00:27 #849 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2338-3809-38e039e0aa4c\main.spi

00:00:27 #850 [Verbose] >

00:00:28 #851 [Verbose] > ╭─[ 352.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #852 [Verbose] > │ ()                                                                           │

00:00:28 #853 [Verbose] > 00:00:00 #3 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_23_132_BuildFile.json' because it is being used by another process.)

00:00:28 #854 [Verbose] > │                                                                              │

00:00:28 #855 [Verbose] > │                                                                              │

00:00:28 #856 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #857 [Verbose] >

00:00:28 #858 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:28 #859 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:28 #860 [Verbose] > │ ## get_environment_variable                                                  │

00:00:28 #861 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #862 [Verbose] >

00:00:28 #863 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #864 [Verbose] > inl get_environment_variable (var : string) : string =

00:00:28 #865 [Verbose] >     $"System.Environment.GetEnvironmentVariable !var"

00:00:28 #866 [Verbose] >

00:00:28 #867 [Verbose] > ╭─[ 376.25ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #868 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:28 #869 [Verbose] > │     let v0 : string = $"%A{-0.5}"                                            │

00:00:28 #870 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:28 #871 [Verbose] > │     let v1 : string = $"__expect / actual: %A{-0.5} / expected: %A{-0.5}"    │

00:00:28 #872 [Verbose] > │     ()                                                                       │

00:00:28 #873 [Verbose] > │ method0()                                                                    │

00:00:28 #874 [Verbose] > │                                                                              │

00:00:28 #875 [Verbose] > │ -0.5                                                                         │

00:00:28 #876 [Verbose] > │                                                                              │

00:00:28 #877 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #878 [Verbose] >

00:00:28 #879 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #880 [Verbose] > // // test

00:00:28 #881 [Verbose] >

00:00:28 #882 [Verbose] > pi / 2 |> cos

00:00:28 #883 [Verbose] > |> _assert_approx_eq None 0.00000000000000006123233995736766f64

00:00:28 #884 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2374-7483-7037b7bdbb10\main.spi

00:00:28 #885 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2376-7677-750f7e11f282\main.spi

00:00:28 #886 [Verbose] > [NbConvertApp] Converting notebook console.dib.ipynb to html

00:00:28 #887 [Verbose] >

00:00:28 #888 [Verbose] >

00:00:28 #889 [Verbose] >

00:00:28 #890 [Verbose] > ╭─[ 468.69ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #891 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:28 #892 [Verbose] > │     let v0 : string = $"%A{6.123233995736766E-17}"                           │

00:00:28 #893 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:28 #894 [Verbose] > │     let v1 : string = $"__expect / actual: %A{6.123233995736766E-17} /       │

00:00:28 #895 [Verbose] > │ expected: %A{6.123233995736766E-17}"                                         │

00:00:28 #896 [Verbose] > │     ()                                                                       │

00:00:28 #897 [Verbose] > │ method0()                                                                    │

00:00:28 #898 [Verbose] > │                                                                              │

00:00:28 #899 [Verbose] > │ 6.123233996e-17                                                              │

00:00:28 #900 [Verbose] > │                                                                              │

00:00:28 #901 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #902 [Verbose] >

00:00:28 #903 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:28 #904 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:28 #905 [Verbose] > │ ## atan2                                                                     │

00:00:28 #906 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #907 [Verbose] >

00:00:28 #908 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #909 [Verbose] > inl atan2 (y : f64) (x : f64) =

00:00:28 #910 [Verbose] >     $"System.Math.Atan2 (!y, !x)" : f64

00:00:29 #911 [Verbose] >

00:00:29 #912 [Verbose] > ╭─[ 366.28ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #913 [Verbose] > │ ()                                                                           │

00:00:29 #914 [Verbose] > │                                                                              │

00:00:29 #915 [Verbose] > │                                                                              │

00:00:29 #916 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #917 [Verbose] >

00:00:29 #918 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #919 [Verbose] > // // test

00:00:29 #920 [Verbose] >

00:00:29 #921 [Verbose] > 0 |> atan2 1

00:00:29 #922 [Verbose] > |> _assert_eq 1.5707963267948966

00:00:29 #923 [Verbose] >

00:00:29 #924 [Verbose] > ╭─[ 605.74ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #925 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:29 #926 [Verbose] > │     v0                                                                       │

00:00:29 #927 [Verbose] > │ and method0 () : unit =                                                      │

00:00:29 #928 [Verbose] > │     let v0 : float = System.Math.Atan2 (1.0, 0.0)                            │

00:00:29 #929 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:29 #930 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:29 #931 [Verbose] > │     let v2 : bool = v0 = 1.5707963267948966                                  │

00:00:29 #932 [Verbose] > │     let v4 : bool =                                                          │

00:00:29 #933 [Verbose] > │         if v2 then                                                           │

00:00:29 #934 [Verbose] > │             true                                                             │

00:00:29 #935 [Verbose] > │         else                                                                 │

00:00:29 #936 [Verbose] > │             method1(v2)                                                      │

00:00:29 #937 [Verbose] > │     let v5 : string = $"__expect / actual: %A{v0} / expected:                │

00:00:29 #938 [Verbose] > │ %A{1.5707963267948966}"                                                      │

00:00:29 #939 [Verbose] > │     let v6 : bool = v4 = false                                               │

00:00:29 #940 [Verbose] > │     if v6 then                                                               │

00:00:29 #941 [Verbose] > │         failwith<unit> v5                                                    │

00:00:29 #942 [Verbose] > │ method0()                                                                    │

00:00:29 #943 [Verbose] > │                                                                              │

00:00:29 #944 [Verbose] > │ 1.570796327                                                                  │

00:00:29 #945 [Verbose] > │                                                                              │

00:00:29 #946 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #947 [Verbose] >

00:00:29 #948 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:29 #949 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:29 #950 [Verbose] > │ ## e                                                                         │

00:00:29 #951 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #952 [Verbose] >

00:00:29 #953 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:29 #954 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2416-1623-11911950280c\main.spi

00:00:29 #955 [Verbose] > ╭─[ 731.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #956 [Verbose] >   validate(nb)

00:00:29 #957 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2421-2116-21bdc5ff862a\main.spi

00:00:29 #958 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:29 #959 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2427-2700-2335b5c20484\main.spi

00:00:29 #960 [Verbose] > │     v0                                                                       │

00:00:29 #961 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2456-5650-50e6198a9042\main.spi

00:00:29 #962 [Verbose] > │ and method0 () : unit =                                                      │

00:00:29 #963 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2462-6280-6cfb11eb150b\main.spi

00:00:29 #964 [Verbose] > │     let v0 : string = "a"                                                    │

00:00:29 #965 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2494-9425-9bd30bdf61a4\main.spi

00:00:29 #966 [Verbose] > │     let v1 : (string * int32) = v0, 1                                        │

00:00:29 #967 [Verbose] > │     let (a, b) = v1                                                          │

00:00:29 #968 [Verbose] > │     let v2 : string = a                                                      │

00:00:29 #969 [Verbose] > │     let v3 : int32 = b                                                       │

00:00:29 #970 [Verbose] > │     let v4 : string = $"%A{struct (v2, v3)}"                                 │

00:00:29 #971 [Verbose] > │     System.Console.WriteLine v4                                              │

00:00:29 #972 [Verbose] > │     let v5 : bool = v2 = "a"                                                 │

00:00:29 #973 [Verbose] > │     let v7 : bool =                                                          │

00:00:29 #974 [Verbose] > │         if v5 then                                                           │

00:00:29 #975 [Verbose] > │             let v6 : bool = v3 = 1                                           │

00:00:29 #976 [Verbose] > │             v6                                                               │

00:00:29 #977 [Verbose] > │         else                                                                 │

00:00:29 #978 [Verbose] > │             false                                                            │

00:00:29 #979 [Verbose] > │     let v9 : bool =                                                          │

00:00:29 #980 [Verbose] > │         if v7 then                                                           │

00:00:29 #981 [Verbose] > │             true                                                             │

00:00:29 #982 [Verbose] > │         else                                                                 │

00:00:29 #983 [Verbose] > │             method1(v7)                                                      │

00:00:29 #984 [Verbose] > │     let v10 : string = $"__expect / actual: %A{struct (v2, v3)} / expected:  │

00:00:29 #985 [Verbose] > │ %A{struct (v0, 1)}"                                                          │

00:00:29 #986 [Verbose] > │     let v11 : bool = v9 = false                                              │

00:00:29 #987 [Verbose] > │     if v11 then                                                              │

00:00:29 #988 [Verbose] > │         failwith<unit> v10                                                   │

00:00:29 #989 [Verbose] > │ method0()                                                                    │

00:00:29 #990 [Verbose] > │                                                                              │

00:00:29 #991 [Verbose] > ╭─[ 382.33ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #992 [Verbose] > │ struct ("a", 1)                                                              │

00:00:29 #993 [Verbose] > │ ()                                                                           │

00:00:29 #994 [Verbose] > │                                                                              │

00:00:29 #995 [Verbose] > │                                                                              │

00:00:29 #996 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #997 [Verbose] > │                                                                              │

00:00:29 #998 [Verbose] >

00:00:29 #999 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1001 [Verbose] >

00:00:29 #1000 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1002 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1003 [Verbose] > // // test

00:00:29 #1004 [Verbose] > // // test

00:00:29 #1005 [Verbose] >

00:00:29 #1006 [Verbose] >

00:00:29 #1007 [Verbose] > new_pair "a" (new_pair 1i32 "b")

00:00:29 #1008 [Verbose] > inl test_guid () =

00:00:29 #1009 [Verbose] > |> from_pair

00:00:29 #1010 [Verbose] >     guid.new_guid "FEDCBA98-7654-3210-FEDC-BA9876543210"

00:00:29 #1011 [Verbose] >

00:00:29 #1012 [Verbose] >

00:00:29 #1013 [Verbose] > ╭─[ 675.14ms - return value ]──────────────────────────────────────────────────╮

00:00:29 #1014 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span                     │

00:00:29 #1015 [Verbose] > ╭─[ 391.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #1016 [Verbose] > │ class="dni-code-hint"><code>(a, (1,                                          │

00:00:29 #1017 [Verbose] > │ ()                                                                           │

00:00:29 #1018 [Verbose] > │ b))</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │

00:00:29 #1019 [Verbose] > │                                                                              │

00:00:29 #1021 [Verbose] > │                                                                              │

00:00:29 #1020 [Verbose] > │ d>Item1</td><td><div                                                         │

00:00:29 #1022 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1023 [Verbose] > │ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │

00:00:29 #1024 [Verbose] >

00:00:29 #1025 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1026 [Verbose] > type ticks_guid = guid.guid

00:00:29 #1027 [Verbose] > type date_time_guid = guid.guid

00:00:29 #1028 [Verbose] >

00:00:29 #1029 [Verbose] > ╭─[ 359.62ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #1030 [Verbose] > │ ()                                                                           │

00:00:29 #1031 [Verbose] > │                                                                              │

00:00:29 #1032 [Verbose] > │                                                                              │

00:00:29 #1033 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1034 [Verbose] >

00:00:29 #1035 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:29 #1036 [Verbose] > │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>(1,     │

00:00:29 #1037 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:29 #1038 [Verbose] > │ ## date_time_guid_from_date_time                                             │

00:00:29 #1039 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1040 [Verbose] >

00:00:29 #1041 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1042 [Verbose] > inl date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =

00:00:29 #1043 [Verbose] >     inl guid = guid |> sm'.obj_to_string

00:00:29 #1044 [Verbose] >     inl prefix = $'!date_time.ToString "yyyyMMdd-HHmm-ssff-ffff-f"' : string

00:00:29 #1045 [Verbose] >     $'`date_time_guid $"{!prefix}{!guid.[[!prefix.Length..]]}"' : date_time_guid

00:00:29 #1046 [Verbose] > │ b)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

00:00:29 #1047 [Verbose] > │ >Item1</td><td><div                                                          │

00:00:29 #1048 [Verbose] > │ class="dni-plaintext"><pre>1</pre></div></td></tr><tr><td>Item2</td><td><div │

00:00:29 #1049 [Verbose] > │ class="dni-plaintext"><pre>b</pre></div></td></tr></tbody></table></div></de │

00:00:29 #1050 [Verbose] > │ tails></td></tr></tbody></table></div></details><style>                      │

00:00:29 #1051 [Verbose] > │ .dni-code-hint {                                                             │

00:00:29 #1052 [Verbose] > │     font-style: italic;                                                      │

00:00:29 #1053 [Verbose] > │     overflow: hidden;                                                        │

00:00:29 #1054 [Verbose] > │     white-space: nowrap;                                                     │

00:00:29 #1055 [Verbose] > │ }                                                                            │

00:00:29 #1056 [Verbose] > │ .dni-treev...                                                                │

00:00:29 #1057 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1058 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1059 [Verbose] > inl e () =

00:00:29 #1060 [Verbose] >

00:00:29 #1061 [Verbose] >     exp 1f64

00:00:29 #1062 [Verbose] > ╭─[ 1.09s - stdout ]───────────────────────────────────────────────────────────╮

00:00:29 #1063 [Verbose] > │ let rec method0 () : struct (string * (int32 * string)) =                    │

00:00:29 #1064 [Verbose] > │     let v0 : string = "b"                                                    │

00:00:29 #1065 [Verbose] > │     let v1 : (int32 * string) = 1, v0                                        │

00:00:29 #1066 [Verbose] > │     let v2 : string = "a"                                                    │

00:00:29 #1067 [Verbose] > │     let v3 : (string * (int32 * string)) = v2, v1                            │

00:00:29 #1068 [Verbose] > │     let (a, b) = v3                                                          │

00:00:29 #1069 [Verbose] > │     let v4 : string = a                                                      │

00:00:29 #1070 [Verbose] > │     let v5 : (int32 * string) = b                                            │

00:00:29 #1071 [Verbose] > │     struct (v4, v5)                                                          │

00:00:29 #1072 [Verbose] > │ method0()                                                                    │

00:00:29 #1073 [Verbose] > │                                                                              │

00:00:29 #1074 [Verbose] > │                                                                              │

00:00:29 #1075 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1076 [Verbose] >

00:00:29 #1077 [Verbose] >

00:00:29 #1078 [Verbose] > ╭─[ 388.61ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #1079 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:29 #1080 [Verbose] > │ ()                                                                           │

00:00:29 #1081 [Verbose] > │                                                                              │

00:00:29 #1082 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:29 #1083 [Verbose] > │                                                                              │

00:00:29 #1084 [Verbose] > │ ## log_level_type                                                            │

00:00:29 #1085 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1086 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #1087 [Verbose] >

00:00:29 #1088 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1089 [Verbose] > // // test

00:00:29 #1090 [Verbose] >

00:00:29 #1091 [Verbose] > date_time_guid_from_date_time (test_guid ()) $'System.DateTime.MinValue'

00:00:29 #1092 [Verbose] > |> sm'.obj_to_string

00:00:29 #1093 [Verbose] > |> _assert_eq' "00010101-0000-0000-0000-0a9876543210"

00:00:29 #1094 [Verbose] >

00:00:29 #1095 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #1096 [Verbose] > union log_level_type =

00:00:29 #1097 [Verbose] >     | Verbose

00:00:29 #1098 [Verbose] >     | Debug

00:00:29 #1099 [Verbose] >     | Info

00:00:29 #1100 [Verbose] >     | Warning

00:00:29 #1101 [Verbose] >     | Critical

00:00:29 #1102 [Verbose] >

00:00:29 #1103 [Verbose] > instance to_string log_level_type = function

00:00:29 #1104 [Verbose] >     | Verbose => "Verbose"

00:00:29 #1105 [Verbose] >     | Debug => "Debug"

00:00:29 #1106 [Verbose] >     | Info => "Info"

00:00:29 #1107 [Verbose] >     | Warning => "Warning"

00:00:29 #1108 [Verbose] >     | Critical => "Critical"

00:00:29 #1109 [Verbose] >

00:00:29 #1110 [Verbose] > instance of_string log_level_type = function

00:00:29 #1111 [Verbose] >     | "Verbose" => Verbose

00:00:29 #1112 [Verbose] >     | "Debug" => Debug

00:00:29 #1113 [Verbose] >     | "Info" => Info

00:00:29 #1114 [Verbose] >     | "Warning" => Warning

00:00:29 #1115 [Verbose] >     | "Critical" => Critical

00:00:29 #1116 [Verbose] > [NbConvertApp] Converting notebook guid.dib.ipynb to html

00:00:29 #1117 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:29 #1118 [Verbose] >   validate(nb)

00:00:29 #1119 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2530-3042-33f6a75acb63\main.spi

00:00:29 #1120 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2533-3340-3a1d5ad656a2\main.spi

00:00:29 #1121 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2533-3395-3a86eb3103f1\main.spi

00:00:30 #1122 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:30 #1123 [Verbose] >   return _pygments_highlight(

00:00:30 #1124 [Verbose] >

00:00:30 #1125 [Verbose] > ╭─[ 491.32ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #1126 [Verbose] > │ ()                                                                           │

00:00:30 #1127 [Verbose] > │                                                                              │

00:00:30 #1128 [Verbose] > │                                                                              │

00:00:30 #1129 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1130 [Verbose] >

00:00:30 #1131 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #1132 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #1133 [Verbose] > │ ## floor                                                                     │

00:00:30 #1134 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1135 [Verbose] >

00:00:30 #1136 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #1137 [Verbose] > inl floor forall t {float}. (x : t) : t =

00:00:30 #1138 [Verbose] >     $"floor !x"

00:00:30 #1139 [Verbose] >

00:00:30 #1140 [Verbose] > ╭─[ 449.49ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #1141 [Verbose] > │ ()                                                                           │

00:00:30 #1142 [Verbose] > │                                                                              │

00:00:30 #1143 [Verbose] > │                                                                              │

00:00:30 #1144 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1145 [Verbose] >

00:00:30 #1146 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #1147 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #1148 [Verbose] > │ ## to_any                                                                    │

00:00:30 #1149 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1150 [Verbose] >

00:00:30 #1151 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #1152 [Verbose] > inl to_any forall t. (obj : t) : any =

00:00:30 #1153 [Verbose] >     $"!obj"

00:00:30 #1154 [Verbose] >

00:00:30 #1155 [Verbose] > instance (~:>) any = to_any

00:00:30 #1156 [Verbose] > [NbConvertApp] Writing 276933 bytes to console.dib.html

00:00:30 #1157 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2576-7611-781c052d8aca\main.spi

00:00:30 #1158 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2579-7918-78dd77826b78\main.spi

00:00:30 #1159 [Verbose] >

00:00:30 #1160 [Verbose] > ╭─[ 446.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #1161 [Verbose] > │ ()                                                                           │

00:00:30 #1162 [Verbose] > │                                                                              │

00:00:30 #1163 [Verbose] > │                                                                              │

00:00:30 #1164 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1165 [Verbose] >

00:00:30 #1166 [Verbose] >

00:00:30 #1167 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #1168 [Verbose] > ╭─[ 448.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #1169 [Verbose] > │ ()                                                                           │

00:00:30 #1170 [Verbose] > │                                                                              │

00:00:30 #1171 [Verbose] > │                                                                              │

00:00:30 #1172 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1173 [Verbose] >

00:00:30 #1174 [Verbose] > // // test

00:00:30 #1175 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #1176 [Verbose] >

00:00:30 #1177 [Verbose] > 0.6 |> floor

00:00:30 #1178 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #1179 [Verbose] > │ ## (/@)                                                                      │

00:00:30 #1180 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1181 [Verbose] > |> _assert_eq 0f64

00:00:30 #1182 [Verbose] >

00:00:30 #1183 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #1184 [Verbose] > inl (/@) a b =

00:00:30 #1185 [Verbose] >     b |> append a

00:00:30 #1186 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2624-2437-23014180a32c\main.spi

00:00:30 #1187 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2625-2537-28d25ce26098\main.spi

00:00:31 #1188 [Verbose] > 00:00:03 #4 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_26_326_FileOpen.json' because it is being used by another process.)

00:00:31 #1189 [Verbose] > 00:00:03 #5 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_26_383_BuildFile.json' because it is being used by another process.)

00:00:31 #1190 [Verbose] >

00:00:31 #1191 [Verbose] > ╭─[ 719.02ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #1192 [Verbose] > │ ()                                                                           │

00:00:31 #1193 [Verbose] > │                                                                              │

00:00:31 #1194 [Verbose] > │                                                                              │

00:00:31 #1195 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #1196 [Verbose] >

00:00:31 #1197 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:31 #1198 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:31 #1199 [Verbose] > │ ## unbox                                                                     │

00:00:31 #1200 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #1201 [Verbose] >

00:00:31 #1202 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #1203 [Verbose] > inl unbox forall t u. (x : t) : u =

00:00:31 #1204 [Verbose] >     $"!x |> unbox<`u>"

00:00:31 #1205 [Verbose] >

00:00:31 #1206 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:31 #1207 [Verbose] >   return _pygments_highlight(

00:00:31 #1208 [Verbose] >

00:00:32 #1209 [Verbose] > ╭─[ 842.25ms - stdout ]────────────────────────────────────────────────────────╮

00:00:32 #1210 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2698-9825-927aad279df5\main.spi

00:00:32 #1211 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:32 #1212 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2711-1130-1b90e0242cd1\main.spi

00:00:32 #1213 [Verbose] > │     v0                                                                       │

00:00:32 #1214 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2763-6316-628a3d1acaaf\main.spi

00:00:32 #1215 [Verbose] > │ and method0 () : unit =                                                      │

00:00:32 #1216 [Verbose] > │     let v0 : float = floor 0.6                                               │

00:00:32 #1217 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:32 #1218 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:32 #1219 [Verbose] > │     let v2 : bool = v0 = 0.0                                                 │

00:00:32 #1220 [Verbose] > │     let v4 : bool =                                                          │

00:00:32 #1221 [Verbose] > │         if v2 then                                                           │

00:00:32 #1222 [Verbose] > │             true                                                             │

00:00:32 #1223 [Verbose] > │         else                                                                 │

00:00:32 #1224 [Verbose] > │             method1(v2)                                                      │

00:00:32 #1225 [Verbose] > │     let v5 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}"       │

00:00:32 #1226 [Verbose] > │     let v6 : bool = v4 = false                                               │

00:00:32 #1227 [Verbose] > │     if v6 then                                                               │

00:00:32 #1228 [Verbose] > │         failwith<unit> v5                                                    │

00:00:32 #1229 [Verbose] > │ method0()                                                                    │

00:00:32 #1230 [Verbose] > │                                                                              │

00:00:32 #1231 [Verbose] > │ 0.0                                                                          │

00:00:32 #1232 [Verbose] > │                                                                              │

00:00:32 #1233 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1234 [Verbose] >

00:00:32 #1235 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:32 #1236 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:32 #1237 [Verbose] > │ ## log_base                                                                  │

00:00:32 #1238 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1239 [Verbose] >

00:00:32 #1240 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #1241 [Verbose] > inl log_base (new_base : f64) (a : f64) =

00:00:32 #1242 [Verbose] >     $"System.Math.Log (!a, !new_base)" : f64

00:00:32 #1243 [Verbose] >

00:00:32 #1244 [Verbose] > ╭─[ 458.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:32 #1245 [Verbose] > │ ()                                                                           │

00:00:32 #1246 [Verbose] > │                                                                              │

00:00:32 #1247 [Verbose] > │                                                                              │

00:00:32 #1248 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1249 [Verbose] >

00:00:32 #1250 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #1251 [Verbose] > // // test

00:00:32 #1252 [Verbose] >

00:00:32 #1253 [Verbose] > 100 |> log_base 10

00:00:32 #1254 [Verbose] > |> _assert_eq 2

00:00:32 #1255 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2772-7278-7cdd7fef3a67\main.spi

00:00:32 #1256 [Verbose] >

00:00:32 #1257 [Verbose] > ╭─[ 566.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:32 #1258 [Verbose] >

00:00:32 #1259 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:32 #1260 [Verbose] > ╭─[ 3.00s - stdout ]───────────────────────────────────────────────────────────╮

00:00:32 #1261 [Verbose] > │     v0                                                                       │

00:00:32 #1262 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:32 #1263 [Verbose] > │ and method0 () : unit =                                                      │

00:00:32 #1264 [Verbose] > │     v0                                                                       │

00:00:32 #1265 [Verbose] > │     let v0 : float = System.Math.Log (100.0, 10.0)                           │

00:00:32 #1266 [Verbose] > │ and method0 () : unit =                                                      │

00:00:32 #1267 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:32 #1268 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:32 #1269 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:32 #1270 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:32 #1271 [Verbose] > │     let v2 : bool = v0 = 2.0                                                 │

00:00:32 #1272 [Verbose] > │     let v2 : System.DateTime = System.DateTime.MinValue                      │

00:00:32 #1273 [Verbose] > │     let v4 : bool =                                                          │

00:00:32 #1274 [Verbose] > │     let v3 : string = v1.ToString ()                                         │

00:00:32 #1275 [Verbose] > │         if v2 then                                                           │

00:00:32 #1276 [Verbose] > │     let v4 : string = v2.ToString "yyyyMMdd-HHmm-ssff-ffff-f"                │

00:00:32 #1277 [Verbose] > │             true                                                             │

00:00:32 #1278 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4}{v3.[v4.Length..]}"             │

00:00:32 #1279 [Verbose] > │         else                                                                 │

00:00:32 #1280 [Verbose] > │     let v6 : string = v5.ToString ()                                         │

00:00:32 #1281 [Verbose] > │             method1(v2)                                                      │

00:00:32 #1282 [Verbose] > │     let v7 : string = $"%A{v6}"                                              │

00:00:32 #1283 [Verbose] > │     let v5 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}"       │

00:00:32 #1284 [Verbose] > │     System.Console.WriteLine v7                                              │

00:00:32 #1285 [Verbose] > │     let v6 : bool = v4 = false                                               │

00:00:32 #1286 [Verbose] > │     let v8 : string = "00010101-0000-0000-0000-0a9876543210"                 │

00:00:32 #1287 [Verbose] > │     if v6 then                                                               │

00:00:32 #1288 [Verbose] > │     let v9 : bool = v6 = v8                                                  │

00:00:32 #1289 [Verbose] > │         failwith<unit> v5                                                    │

00:00:32 #1290 [Verbose] > │     let v11 : bool =                                                         │

00:00:32 #1291 [Verbose] > │ method0()                                                                    │

00:00:32 #1292 [Verbose] > │         if v9 then                                                           │

00:00:32 #1293 [Verbose] > │                                                                              │

00:00:32 #1294 [Verbose] > │             true                                                             │

00:00:32 #1295 [Verbose] > │ 2.0                                                                          │

00:00:32 #1296 [Verbose] > │         else                                                                 │

00:00:32 #1297 [Verbose] > │                                                                              │

00:00:32 #1298 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1299 [Verbose] >

00:00:32 #1300 [Verbose] > │             method1(v9)                                                      │

00:00:32 #1301 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:32 #1302 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:32 #1303 [Verbose] > │     let v12 : string = $"__expect / actual: %A{v6} / expected: %A{v8}"       │

00:00:32 #1304 [Verbose] > │ ## round                                                                     │

00:00:32 #1305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1306 [Verbose] > │     let v13 : bool = v11 = false                                             │

00:00:32 #1307 [Verbose] > │     if v13 then                                                              │

00:00:32 #1308 [Verbose] > │         failwith<unit> v12                                                   │

00:00:32 #1309 [Verbose] >

00:00:32 #1310 [Verbose] > │ method0()                                                                    │

00:00:32 #1311 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #1312 [Verbose] > inl round forall t {float}. (x : t) : t =

00:00:32 #1313 [Verbose] > │                                                                              │

00:00:32 #1314 [Verbose] >     $"round !x"

00:00:32 #1315 [Verbose] > │ "00010101-0000-0000-0000-0a9876543210"                                       │

00:00:32 #1316 [Verbose] > │                                                                              │

00:00:32 #1317 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1318 [Verbose] >

00:00:32 #1319 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #1320 [Verbose] > // // test

00:00:32 #1321 [Verbose] >

00:00:32 #1322 [Verbose] > date_time_guid_from_date_time (test_guid ()) $'System.DateTime.MaxValue'

00:00:32 #1323 [Verbose] > |> sm'.obj_to_string

00:00:32 #1324 [Verbose] > |> _assert_eq $'$"99991231-2359-5999-9999-9{(!test_guid() |>

00:00:32 #1325 [Verbose] > string).[[^10..]]}"'

00:00:32 #1326 [Verbose] > [NbConvertApp] Converting notebook testing.dib.ipynb to html

00:00:32 #1327 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:32 #1328 [Verbose] >   validate(nb)

00:00:32 #1329 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2839-3958-3889f6e7d3a4\main.spi

00:00:32 #1330 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2835-3506-3398b888423a\main.spi

00:00:32 #1331 [Verbose] > [NbConvertApp] Writing 278591 bytes to guid.dib.html

00:00:32 #1332 [Verbose] > ╭─[ 389.41ms - stdout ]────────────────────────────────────────────────────────╮

00:00:32 #1333 [Verbose] > │ ()                                                                           │

00:00:32 #1334 [Verbose] > │                                                                              │

00:00:32 #1335 [Verbose] > │                                                                              │

00:00:32 #1336 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1337 [Verbose] >

00:00:32 #1338 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:32 #1339 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:32 #1340 [Verbose] > │ ## (/+)                                                                      │

00:00:32 #1341 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1342 [Verbose] >

00:00:32 #1343 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #1344 [Verbose] > inl (/+) forall t. (a : t) (b : t) : t =

00:00:32 #1345 [Verbose] >     $"!a + !b"

00:00:32 #1346 [Verbose] >

00:00:32 #1347 [Verbose] > ╭─[ 514.43ms - stdout ]────────────────────────────────────────────────────────╮

00:00:32 #1348 [Verbose] > │ ()                                                                           │

00:00:32 #1349 [Verbose] > │                                                                              │

00:00:32 #1350 [Verbose] > │                                                                              │

00:00:32 #1351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1352 [Verbose] >

00:00:32 #1353 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:32 #1354 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:32 #1355 [Verbose] > │ ## (/=)                                                                      │

00:00:32 #1356 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #1357 [Verbose] >

00:00:32 #1358 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #1359 [Verbose] > inl (/=) forall t. (a : t) (b : t) : bool =

00:00:32 #1360 [Verbose] >     $"!a = !b"

00:00:33 #1361 [Debug] executeAsync / exitCode: 0 / output.Length: 3869

00:00:33 #1362 [Debug] main / executeCommand / exitCode: 0

00:00:33 #1363 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"optionm'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:33 #1364 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2841-4133-41c590813783\main.spi

00:00:33 #1365 [Verbose] >

00:00:33 #1366 [Verbose] > ╭─[ 394.10ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #1367 [Verbose] > │ ()                                                                           │

00:00:33 #1368 [Verbose] > │                                                                              │

00:00:33 #1369 [Verbose] > │                                                                              │

00:00:33 #1370 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #1371 [Verbose] >

00:00:33 #1372 [Verbose] >

00:00:33 #1373 [Verbose] > ╭─[ 450.01ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #1374 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:33 #1375 [Verbose] > // // test

00:00:33 #1376 [Verbose] > │ ()                                                                           │

00:00:33 #1377 [Verbose] >

00:00:33 #1378 [Verbose] > 0.5 |> round

00:00:33 #1379 [Verbose] > |> _assert_eq 0f64

00:00:33 #1380 [Verbose] > │                                                                              │

00:00:33 #1381 [Verbose] > │                                                                              │

00:00:33 #1382 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #1383 [Verbose] >

00:00:33 #1384 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:33 #1385 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:33 #1386 [Verbose] > │ ## (||>)                                                                     │

00:00:33 #1387 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #1388 [Verbose] >

00:00:33 #1389 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:33 #1390 [Verbose] > inl (||>) (arg1, arg2) fn =

00:00:33 #1391 [Verbose] >     arg2 |> fn arg1

00:00:33 #1392 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2880-8068-80e6113991bf\main.spi

00:00:33 #1393 [Verbose] >

00:00:33 #1394 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2886-8699-8e819b0972b4\main.spi

00:00:33 #1395 [Verbose] > ╭─[ 752.28ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #1396 [Verbose] > │ let rec closure0 () () : System.Guid =                                       │

00:00:33 #1397 [Verbose] >

00:00:33 #1398 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:33 #1399 [Verbose] > ╭─[ 455.12ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #1400 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:33 #1401 [Verbose] > │     v1                                                                       │

00:00:33 #1402 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:00:33 #1403 [Verbose] > │     v0                                                                       │

00:00:33 #1404 [Verbose] > │ and method0 () : unit =                                                      │

00:00:33 #1405 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:33 #1406 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:33 #1407 [Verbose] > │     let v2 : System.DateTime = System.DateTime.MaxValue                      │

00:00:33 #1408 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:33 #1409 [Verbose] > │     let v3 : string = v1.ToString ()                                         │

00:00:33 #1410 [Verbose] > │     let v4 : string = v2.ToString "yyyyMMdd-HHmm-ssff-ffff-f"                │

00:00:33 #1411 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4}{v3.[v4.Length..]}"             │

00:00:33 #1412 [Verbose] > │     let v6 : string = v5.ToString ()                                         │

00:00:33 #1413 [Verbose] >

00:00:33 #1414 [Verbose] > │     let v7 : (unit -> System.Guid) = closure0()                              │

00:00:33 #1415 [Verbose] > ╭─[ 490.79ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #1416 [Verbose] > │     let v8 : string = $"99991231-2359-5999-9999-9{(v7() |> string).[^10..]}" │

00:00:33 #1417 [Verbose] > │ ()                                                                           │

00:00:33 #1418 [Verbose] > │     let v9 : string = $"%A{v6}"                                              │

00:00:33 #1419 [Verbose] > │                                                                              │

00:00:33 #1420 [Verbose] > │     System.Console.WriteLine v9                                              │

00:00:33 #1421 [Verbose] > │                                                                              │

00:00:33 #1422 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #1423 [Verbose] > │     let v10 : bool = v6 = v8                                                 │

00:00:33 #1424 [Verbose] > │     let v12 : bool =                                                         │

00:00:33 #1425 [Verbose] > │         if v10 then                                                          │

00:00:33 #1426 [Verbose] > │             true                                                             │

00:00:33 #1427 [Verbose] > │         else                                                                 │

00:00:33 #1428 [Verbose] > │             method1(v10)                                                     │

00:00:33 #1429 [Verbose] > │     let v13 : string = $"__expect / actual: %A{v6} / expected: %A{v8}"       │

00:00:33 #1430 [Verbose] > │     let v14 : bool = v12 = false                                             │

00:00:33 #1431 [Verbose] > │     if v14 then                                                              │

00:00:33 #1432 [Verbose] > │         failwith<unit> v13                                                   │

00:00:33 #1433 [Verbose] > │ method0()                                                                    │

00:00:33 #1434 [Verbose] > │     v0                                                                       │

00:00:33 #1435 [Verbose] > │                                                                              │

00:00:33 #1436 [Verbose] >

00:00:33 #1437 [Verbose] > │ "99991231-2359-5999-9999-9a9876543210"                                       │

00:00:33 #1438 [Verbose] > │                                                                              │

00:00:33 #1439 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #1440 [Verbose] >

00:00:33 #1441 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:33 #1442 [Verbose] > // // test

00:00:33 #1443 [Verbose] >

00:00:33 #1444 [Verbose] > date_time_guid_from_date_time (test_guid ()) $'System.DateTime.UnixEpoch'

00:00:33 #1445 [Verbose] > |> sm'.obj_to_string

00:00:33 #1446 [Verbose] > |> _assert_eq $'$"19700101-0000-0000-0000-0{(!test_guid () |>

00:00:33 #1447 [Verbose] > string).[[^10..]]}"'

00:00:33 #1448 [Verbose] > │ and method0 () : unit =                                                      │

00:00:33 #1449 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:33 #1450 [Verbose] > // // test

00:00:33 #1451 [Verbose] >

00:00:33 #1452 [Verbose] > (3i32, 2i32)

00:00:33 #1453 [Verbose] > ||> fun a b => a - b

00:00:33 #1454 [Verbose] > │     let v0 : float = round 0.5                                               │

00:00:33 #1455 [Verbose] > |> _assert_eq 1

00:00:33 #1456 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:33 #1457 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:33 #1458 [Verbose] > │     let v2 : bool = v0 = 0.0                                                 │

00:00:33 #1459 [Verbose] > │     let v4 : bool =                                                          │

00:00:33 #1460 [Verbose] > │         if v2 then                                                           │

00:00:33 #1461 [Verbose] > │             true                                                             │

00:00:33 #1462 [Verbose] > │         else                                                                 │

00:00:33 #1463 [Verbose] > │             method1(v2)                                                      │

00:00:33 #1464 [Verbose] > │     let v5 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}"       │

00:00:33 #1465 [Verbose] > │     let v6 : bool = v4 = false                                               │

00:00:33 #1466 [Verbose] > │     if v6 then                                                               │

00:00:34 #1467 [Verbose] > │         failwith<unit> v5                                                    │

00:00:34 #1468 [Verbose] > │ method0()                                                                    │

00:00:34 #1469 [Verbose] > │                                                                              │

00:00:34 #1470 [Verbose] > │ 0.0                                                                          │

00:00:34 #1471 [Verbose] > │                                                                              │

00:00:34 #1472 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:34 #1473 [Debug] executeAsync / exitCode: 0 / output.Length: 5882

00:00:34 #1474 [Debug] main / executeCommand / exitCode: 0

00:00:34 #1475 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"am'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:34 #1476 [Verbose] >

00:00:34 #1477 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:34 #1478 [Verbose] > // // test

00:00:34 #1479 [Verbose] >

00:00:34 #1480 [Verbose] > 0.6 |> round

00:00:34 #1481 [Verbose] > |> _assert_eq 1f64

00:00:34 #1482 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2939-3996-3493ce37901e\main.spi

00:00:34 #1483 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2941-4104-412035bb832e\main.spi

00:00:34 #1484 [Verbose] >

00:00:34 #1485 [Verbose] > ╭─[ 663.77ms - stdout ]────────────────────────────────────────────────────────╮

00:00:34 #1486 [Verbose] >

00:00:34 #1487 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:34 #1488 [Verbose] > │     let v0 : string = $"%A{1}"                                               │

00:00:34 #1489 [Verbose] > ╭─[ 666.93ms - stdout ]────────────────────────────────────────────────────────╮

00:00:34 #1490 [Verbose] > │ let rec closure0 () () : System.Guid =                                       │

00:00:34 #1491 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:34 #1492 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:34 #1493 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:34 #1494 [Verbose] > │     let v1 : string = $"__expect / actual: %A{1} / expected: %A{1}"          │

00:00:34 #1495 [Verbose] > │     v1                                                                       │

00:00:34 #1496 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:00:34 #1497 [Verbose] > │     ()                                                                       │

00:00:34 #1498 [Verbose] > │     v0                                                                       │

00:00:34 #1499 [Verbose] > │ and method0 () : unit =                                                      │

00:00:34 #1500 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:34 #1501 [Verbose] > │ method0()                                                                    │

00:00:34 #1502 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:34 #1503 [Verbose] > │     let v2 : System.DateTime = System.DateTime.UnixEpoch                     │

00:00:34 #1504 [Verbose] > │                                                                              │

00:00:34 #1505 [Verbose] > │     let v3 : string = v1.ToString ()                                         │

00:00:34 #1506 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-2963-6300-6740a070af63\main.spi

00:00:34 #1507 [Verbose] > │ 1                                                                            │

00:00:34 #1508 [Verbose] > │     let v4 : string = v2.ToString "yyyyMMdd-HHmm-ssff-ffff-f"                │

00:00:34 #1509 [Verbose] > │                                                                              │

00:00:34 #1510 [Verbose] >

00:00:34 #1511 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:34 #1512 [Verbose] >   return _pygments_highlight(

00:00:35 #1513 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3016-1629-1de89882ec6d\main.spi

00:00:35 #1514 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3008-0898-07a8c4e7da86\main.spi

00:00:35 #1515 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3091-9170-913f63b2fa83\main.spi

00:00:35 #1516 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3092-9222-952a836c1623\main.spi

00:00:35 #1517 [Verbose] > 00:00:08 #6 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_31_001_FileOpen.json' because it is being used by another process.)

00:00:36 #1518 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #1519 [Verbose] >

00:00:36 #1520 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:36 #1521 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:36 #1522 [Verbose] > │ ## flip                                                                      │

00:00:36 #1523 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #1524 [Verbose] >

00:00:36 #1525 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:36 #1526 [Verbose] > inl flip fn a b =

00:00:36 #1527 [Verbose] >     fn b a

00:00:36 #1528 [Verbose] >

00:00:36 #1529 [Verbose] > ╭─[ 818.75ms - stdout ]────────────────────────────────────────────────────────╮

00:00:36 #1530 [Verbose] > │ ()                                                                           │

00:00:36 #1531 [Verbose] > │                                                                              │

00:00:36 #1532 [Verbose] > │                                                                              │

00:00:36 #1533 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #1534 [Verbose] >

00:00:36 #1535 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:36 #1536 [Verbose] > // // test

00:00:36 #1537 [Verbose] >

00:00:36 #1538 [Verbose] > (1i32, 2i32)

00:00:36 #1539 [Verbose] > ||> flip pair

00:00:36 #1540 [Verbose] > |> _assert_eq (2, 1)

00:00:36 #1541 [Verbose] >

00:00:36 #1542 [Verbose] > ╭─[ 387.83ms - stdout ]────────────────────────────────────────────────────────╮

00:00:36 #1543 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:36 #1544 [Verbose] > │     let v0 : string = $"%A{struct (2, 1)}"                                   │

00:00:36 #1545 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:36 #1546 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (2, 1)} / expected:     │

00:00:36 #1547 [Verbose] > │ %A{struct (2, 1)}"                                                           │

00:00:36 #1548 [Verbose] > │     ()                                                                       │

00:00:36 #1549 [Verbose] > │ method0()                                                                    │

00:00:36 #1550 [Verbose] > │                                                                              │

00:00:36 #1551 [Verbose] > │ struct (2, 1)                                                                │

00:00:36 #1552 [Verbose] > │                                                                              │

00:00:36 #1553 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #1554 [Verbose] >

00:00:36 #1555 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:36 #1556 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:36 #1557 [Verbose] > │ ## join_body                                                                 │

00:00:36 #1558 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #1559 [Verbose] >

00:00:37 #1560 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:37 #1561 [Verbose] > inl join_body body acc x =

00:00:37 #1562 [Verbose] >     if var_is x |> not

00:00:37 #1563 [Verbose] >     then body acc x

00:00:37 #1564 [Verbose] >     else

00:00:37 #1565 [Verbose] >         inl acc = dyn acc

00:00:37 #1566 [Verbose] >         join body acc x

00:00:37 #1567 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3258-5891-5a690105c1fd\main.spi

00:00:37 #1568 [Verbose] >

00:00:37 #1569 [Verbose] > ╭─[ 333.08ms - stdout ]────────────────────────────────────────────────────────╮

00:00:37 #1570 [Verbose] > │ ()                                                                           │

00:00:37 #1571 [Verbose] > │                                                                              │

00:00:37 #1572 [Verbose] > │                                                                              │

00:00:37 #1573 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:37 #1574 [Verbose] >

00:00:37 #1575 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:37 #1576 [Verbose] > // // test

00:00:37 #1577 [Verbose] >

00:00:37 #1578 [Verbose] > inl rec fold_list f s = function

00:00:37 #1579 [Verbose] >     | Cons (x, x') => fold_list f (f s x) x'

00:00:37 #1580 [Verbose] >     | Nil => s

00:00:37 #1581 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3289-8937-83ec96a47a2f\main.spi

00:00:37 #1582 [Verbose] >

00:00:37 #1583 [Verbose] > ╭─[ 296.69ms - stdout ]────────────────────────────────────────────────────────╮

00:00:37 #1584 [Verbose] > │ ()                                                                           │

00:00:37 #1585 [Verbose] > │                                                                              │

00:00:37 #1586 [Verbose] > │                                                                              │

00:00:37 #1587 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:37 #1588 [Verbose] >

00:00:37 #1589 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:37 #1590 [Verbose] > // // test

00:00:37 #1591 [Verbose] >

00:00:37 #1592 [Verbose] > [[5i32; 4; join 3; 2; 1]]

00:00:37 #1593 [Verbose] > |> fold_list (+) 0

00:00:37 #1594 [Verbose] > |> _assert_eq 15

00:00:37 #1595 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3319-1972-1f40346bb1f7\main.spi

00:00:38 #1596 [Verbose] >

00:00:38 #1597 [Verbose] > ╭─[ 478.81ms - stdout ]────────────────────────────────────────────────────────╮

00:00:38 #1598 [Verbose] > │ let rec method1 () : int32 =                                                 │

00:00:38 #1599 [Verbose] > │     3                                                                        │

00:00:38 #1600 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:00:38 #1601 [Verbose] > │     v0                                                                       │

00:00:38 #1602 [Verbose] > │ and method0 () : unit =                                                      │

00:00:38 #1603 [Verbose] > │     let v0 : int32 = method1()                                               │

00:00:38 #1604 [Verbose] > │     let v1 : int32 = 9 + v0                                                  │

00:00:38 #1605 [Verbose] > │     let v2 : int32 = v1 + 2                                                  │

00:00:38 #1606 [Verbose] > │     let v3 : int32 = v2 + 1                                                  │

00:00:38 #1607 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:00:38 #1608 [Verbose] > │     System.Console.WriteLine v4                                              │

00:00:38 #1609 [Verbose] > │     let v5 : bool = v3 = 15                                                  │

00:00:38 #1610 [Verbose] > │     let v7 : bool =                                                          │

00:00:38 #1611 [Verbose] > │         if v5 then                                                           │

00:00:38 #1612 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4}{v3.[v4.Length..]}"             │

00:00:38 #1613 [Verbose] > ╭─[ 687.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:38 #1614 [Verbose] > │     let v6 : string = v5.ToString ()                                         │

00:00:38 #1615 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:38 #1617 [Verbose] > │     v0                                                                       │

00:00:38 #1616 [Verbose] > │     let v7 : (unit -> System.Guid) = closure0()                              │

00:00:38 #1618 [Verbose] > │ and method0 () : unit =                                                      │

00:00:38 #1619 [Verbose] > │     let v8 : string = $"19700101-0000-0000-0000-0{(v7 () |> string).[        │

00:00:38 #1620 [Verbose] > │     let v0 : float = round 0.6                                               │

00:00:38 #1621 [Verbose] > │ ^10..]}"                                                                     │

00:00:38 #1622 [Verbose] > [NbConvertApp] Writing 287018 bytes to testing.dib.html

00:00:38 #1624 [Verbose] > │     let v9 : string = $"%A{v6}"                                              │

00:00:38 #1623 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:38 #1626 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:38 #1625 [Verbose] > │     System.Console.WriteLine v9                                              │

00:00:38 #1627 [Verbose] > │     let v2 : bool = v0 = 1.0                                                 │

00:00:38 #1628 [Verbose] > │     let v10 : bool = v6 = v8                                                 │

00:00:38 #1629 [Verbose] > │     let v4 : bool =                                                          │

00:00:38 #1630 [Verbose] > │     let v12 : bool =                                                         │

00:00:38 #1631 [Verbose] > │         if v2 then                                                           │

00:00:38 #1632 [Verbose] > │         if v10 then                                                          │

00:00:38 #1633 [Verbose] > │             true                                                             │

00:00:38 #1634 [Verbose] > │             true                                                             │

00:00:38 #1635 [Verbose] > │         else                                                                 │

00:00:38 #1636 [Verbose] > │         else                                                                 │

00:00:38 #1637 [Verbose] > │             method1(v10)                                                     │

00:00:38 #1638 [Verbose] > │             method1(v2)                                                      │

00:00:38 #1641 [Verbose] > │     let v5 : string = $"__expect / actual: %A{v0} / expected: %A{1.0}"       │

00:00:38 #1640 [Verbose] > │     let v13 : string = $"__expect / actual: %A{v6} / expected: %A{v8}"       │

00:00:38 #1639 [Debug] executeAsync / exitCode: 0 / output.Length: 10822

00:00:38 #1642 [Verbose] > │     let v6 : bool = v4 = false                                               │

00:00:38 #1643 [Verbose] > │     let v14 : bool = v12 = false                                             │

00:00:38 #1644 [Debug] main / executeCommand / exitCode: 0

00:00:38 #1646 [Verbose] > │     if v14 then                                                              │

00:00:38 #1645 [Verbose] > │     if v6 then                                                               │

00:00:38 #1649 [Verbose] > │         failwith<unit> v5                                                    │

00:00:38 #1648 [Verbose] > │         failwith<unit> v13                                                   │

00:00:38 #1651 [Verbose] > │ method0()                                                                    │

00:00:38 #1650 [Verbose] > │ method0()                                                                    │

00:00:38 #1652 [Verbose] > │                                                                              │

00:00:38 #1653 [Verbose] > │                                                                              │

00:00:38 #1654 [Verbose] > │ "19700101-0000-0000-0000-0a9876543210"                                       │

00:00:38 #1647 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"sm'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:38 #1655 [Verbose] > │ 1.0                                                                          │

00:00:38 #1656 [Verbose] > │                                                                              │

00:00:38 #1657 [Verbose] > │                                                                              │

00:00:38 #1658 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1659 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1660 [Verbose] >

00:00:38 #1661 [Verbose] >

00:00:38 #1662 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:38 #1663 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:38 #1665 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:38 #1664 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:38 #1667 [Verbose] > │ ## date_time_from_guid                                                       │

00:00:38 #1666 [Verbose] > │ ## square                                                                    │

00:00:38 #1668 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1669 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1672 [Verbose] >

00:00:38 #1671 [Verbose] >

00:00:38 #1670 [Verbose] > │             true                                                             │

00:00:38 #1673 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1674 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1675 [Verbose] > inl date_time_from_guid (date_time_guid : date_time_guid) =

00:00:38 #1676 [Verbose] > inl square x =

00:00:38 #1678 [Verbose] >     x ** 2

00:00:38 #1677 [Verbose] >     inl date_time_guid = date_time_guid |> sm'.obj_to_string

00:00:38 #1679 [Verbose] >

00:00:38 #1680 [Verbose] >     inl sm'_replace = join sm'.replace

00:00:38 #1681 [Verbose] > ╭─[ 337.60ms - stdout ]────────────────────────────────────────────────────────╮

00:00:38 #1682 [Verbose] >     run_target function

00:00:38 #1683 [Verbose] > │ ()                                                                           │

00:00:38 #1684 [Verbose] >         | Fsharp => fun () => $'System.DateTime.ParseExact

00:00:38 #1685 [Verbose] > │                                                                              │

00:00:38 #1686 [Verbose] > (!date_time_guid.[[..24]] |> !sm'_replace "-" "", "yyyyMMddHHmmssfffffff",

00:00:38 #1687 [Verbose] > │                                                                              │

00:00:38 #1688 [Verbose] > null)' : date_time

00:00:38 #1689 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1690 [Verbose] >         | Rust _ => fun () =>

00:00:38 #1691 [Verbose] >

00:00:38 #1692 [Verbose] >             $'System.DateTime.Parse (!date_time_guid.[[..24]] |> !sm'_replace

00:00:38 #1693 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1694 [Verbose] > "-" "")' : date_time

00:00:38 #1695 [Verbose] > // // test

00:00:38 #1696 [Verbose] >

00:00:38 #1697 [Verbose] >

00:00:38 #1698 [Verbose] > ╭─[ 772.75ms - stdout ]────────────────────────────────────────────────────────╮

00:00:38 #1699 [Verbose] > 5f64

00:00:38 #1700 [Verbose] > │ ()                                                                           │

00:00:38 #1701 [Verbose] > |> sqrt

00:00:38 #1702 [Verbose] > │                                                                              │

00:00:38 #1703 [Verbose] > |> square

00:00:38 #1704 [Verbose] > │                                                                              │

00:00:38 #1705 [Verbose] > |> _assert_approx_eq None 5

00:00:38 #1706 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1707 [Verbose] >

00:00:38 #1708 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1709 [Verbose] > // // test

00:00:38 #1710 [Verbose] >

00:00:38 #1711 [Verbose] > date_time_from_guid (guid.new_guid "00010101-0000-0000-0000-0a9876543210")

00:00:38 #1712 [Verbose] > |> _assert_eq' $'System.DateTime.MinValue'

00:00:38 #1713 [Verbose] > │         else                                                                 │

00:00:38 #1714 [Verbose] > │             method2(v5)                                                      │

00:00:38 #1715 [Verbose] > │     let v8 : string = $"__expect / actual: %A{v3} / expected: %A{15}"        │

00:00:38 #1716 [Verbose] > │     let v9 : bool = v7 = false                                               │

00:00:38 #1717 [Verbose] > │     if v9 then                                                               │

00:00:38 #1718 [Verbose] > │         failwith<unit> v8                                                    │

00:00:38 #1719 [Verbose] > │ method0()                                                                    │

00:00:38 #1720 [Verbose] > │                                                                              │

00:00:38 #1721 [Verbose] > │ 15                                                                           │

00:00:38 #1722 [Verbose] > │                                                                              │

00:00:38 #1723 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1724 [Verbose] >

00:00:38 #1725 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1726 [Verbose] > // // test

00:00:38 #1727 [Verbose] >

00:00:38 #1728 [Verbose] > [[5i32; 4; join 3; 2; 1]]

00:00:38 #1729 [Verbose] > |> fold_list (join_body (+)) 0

00:00:38 #1730 [Verbose] > |> _assert_eq 15

00:00:38 #1731 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3369-6967-6ae0452c83fa\main.spi

00:00:38 #1732 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3370-7062-77c10957c06b\main.spi

00:00:38 #1733 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3374-7477-7102c9768a9a\main.spi

00:00:38 #1734 [Verbose] >

00:00:38 #1735 [Verbose] > ╭─[ 2.84s - stdout ]───────────────────────────────────────────────────────────╮

00:00:38 #1736 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:38 #1737 [Verbose] > │     let v0 : string = $"%A{5.000000000000001}"                               │

00:00:38 #1738 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:38 #1739 [Verbose] > │     let v1 : string = $"__expect / actual: %A{5.000000000000001} / expected: │

00:00:38 #1740 [Verbose] > │ %A{5.0}"                                                                     │

00:00:38 #1741 [Verbose] > │     ()                                                                       │

00:00:38 #1742 [Verbose] > │ method0()                                                                    │

00:00:38 #1743 [Verbose] >

00:00:38 #1744 [Verbose] > │                                                                              │

00:00:38 #1745 [Verbose] > ╭─[ 453.28ms - stdout ]────────────────────────────────────────────────────────╮

00:00:38 #1746 [Verbose] > │ 5.0                                                                          │

00:00:38 #1747 [Verbose] > │ let rec method1 () : int32 =                                                 │

00:00:38 #1748 [Verbose] > │                                                                              │

00:00:38 #1749 [Verbose] > │     3                                                                        │

00:00:38 #1750 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1751 [Verbose] > │ and method2 (v0 : int32, v1 : int32) : int32 =                               │

00:00:38 #1752 [Verbose] >

00:00:38 #1753 [Verbose] > │     let v2 : int32 = v1 + v0                                                 │

00:00:38 #1754 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1755 [Verbose] > // // test

00:00:38 #1756 [Verbose] >

00:00:38 #1757 [Verbose] > e () |> square

00:00:38 #1758 [Verbose] > │     v2                                                                       │

00:00:38 #1759 [Verbose] > |> _assert_approx_eq None 7.3890560989306495

00:00:38 #1760 [Verbose] > │ and method3 (v0 : bool) : bool =                                             │

00:00:38 #1761 [Verbose] > │     v0                                                                       │

00:00:38 #1762 [Verbose] > │ and method0 () : unit =                                                      │

00:00:38 #1763 [Verbose] > │     let v0 : int32 = method1()                                               │

00:00:38 #1764 [Verbose] > │     let v1 : int32 = 9                                                       │

00:00:38 #1765 [Verbose] > │     let v2 : int32 = method2(v0, v1)                                         │

00:00:38 #1766 [Verbose] > │     let v3 : int32 = v2 + 2                                                  │

00:00:38 #1767 [Verbose] > │     let v4 : int32 = v3 + 1                                                  │

00:00:38 #1768 [Verbose] > │     let v5 : string = $"%A{v4}"                                              │

00:00:38 #1769 [Verbose] > │     System.Console.WriteLine v5                                              │

00:00:38 #1770 [Verbose] > │     let v6 : bool = v4 = 15                                                  │

00:00:38 #1771 [Verbose] > │     let v8 : bool =                                                          │

00:00:38 #1772 [Verbose] > │         if v6 then                                                           │

00:00:38 #1773 [Verbose] > │             true                                                             │

00:00:38 #1774 [Verbose] > │         else                                                                 │

00:00:38 #1775 [Verbose] > │             method3(v6)                                                      │

00:00:38 #1776 [Verbose] > │     let v9 : string = $"__expect / actual: %A{v4} / expected: %A{15}"        │

00:00:38 #1777 [Verbose] > │     let v10 : bool = v8 = false                                              │

00:00:38 #1778 [Verbose] > │     if v10 then                                                              │

00:00:38 #1779 [Verbose] > │         failwith<unit> v9                                                    │

00:00:38 #1780 [Verbose] > │ method0()                                                                    │

00:00:38 #1781 [Verbose] > │                                                                              │

00:00:38 #1782 [Verbose] > │ 15                                                                           │

00:00:38 #1783 [Verbose] > │                                                                              │

00:00:38 #1784 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1785 [Verbose] >

00:00:38 #1786 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:38 #1787 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:38 #1788 [Verbose] > │ ## join_body_unit                                                            │

00:00:38 #1789 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #1790 [Verbose] >

00:00:38 #1791 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #1792 [Verbose] > inl join_body_unit body d x =

00:00:38 #1793 [Verbose] >     if var_is d |> not

00:00:38 #1794 [Verbose] >     then body x

00:00:38 #1795 [Verbose] >     else

00:00:38 #1796 [Verbose] >         inl x = dyn x

00:00:38 #1797 [Verbose] >         join body x

00:00:38 #1798 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3421-2123-2ccc7e51b903\main.spi

00:00:38 #1799 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3427-2736-212ebc35ea3c\main.spi

00:00:39 #1800 [Verbose] >

00:00:39 #1801 [Verbose] >

00:00:39 #1802 [Verbose] > ╭─[ 510.77ms - stdout ]────────────────────────────────────────────────────────╮

00:00:39 #1803 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:39 #1804 [Verbose] > ╭─[ 963.88ms - stdout ]────────────────────────────────────────────────────────╮

00:00:39 #1805 [Verbose] > │     let v0 : string = $"%A{7.3890560989306495}"                              │

00:00:39 #1806 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:39 #1807 [Verbose] > │     let v1 : string = $"__expect / actual: %A{7.3890560989306495} /          │

00:00:39 #1808 [Verbose] > │ expected: %A{7.3890560989306495}"                                            │

00:00:39 #1809 [Verbose] > │     ()                                                                       │

00:00:39 #1810 [Verbose] > │ let rec closure2 (v0 : string, v1 : string) (v2 : string) : string =         │

00:00:39 #1811 [Verbose] > │ method0()                                                                    │

00:00:39 #1812 [Verbose] > │                                                                              │

00:00:39 #1813 [Verbose] > │ 7.389056099                                                                  │

00:00:39 #1814 [Verbose] > │                                                                              │

00:00:39 #1815 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:39 #1816 [Verbose] > │     let v3 : string = v2.Replace (v0, v1)                                    │

00:00:39 #1817 [Verbose] >

00:00:39 #1818 [Verbose] > ╭─[ 464.17ms - stdout ]────────────────────────────────────────────────────────╮

00:00:39 #1820 [Verbose] > │ ()                                                                           │

00:00:39 #1819 [Verbose] > │     v3                                                                       │

00:00:39 #1821 [Verbose] > │                                                                              │

00:00:39 #1822 [Verbose] > │                                                                              │

00:00:39 #1823 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:39 #1824 [Verbose] >

00:00:39 #1825 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:39 #1826 [Verbose] > // // test

00:00:39 #1827 [Verbose] >

00:00:39 #1828 [Verbose] > [[5i32; 4; join 3; 2; 1]]

00:00:39 #1829 [Verbose] > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0

00:00:39 #1830 [Verbose] > |> _assert_eq 15

00:00:39 #1831 [Verbose] > │ and closure1 (v0 : string) (v1 : string) : (string -> string) =              │

00:00:39 #1832 [Verbose] > │     closure2(v0, v1)                                                         │

00:00:39 #1833 [Verbose] > │ and closure0 () (v0 : string) : (string -> (string -> string)) =             │

00:00:39 #1834 [Verbose] > │     closure1(v0)                                                             │

00:00:39 #1835 [Verbose] >

00:00:40 #1836 [Verbose] >

00:00:40 #1837 [Verbose] >

00:00:40 #1838 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:41 #1839 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:41 #1840 [Verbose] > │ # am'                                                                        │

00:00:41 #1841 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:41 #1842 [Verbose] >

00:00:41 #1843 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:41 #1844 [Verbose] > // // test

00:00:41 #1845 [Verbose] >

00:00:41 #1846 [Verbose] > open testing

00:00:41 #1847 [Verbose] >

00:00:41 #1848 [Verbose] > prototype append t : t -> t -> t

00:00:42 #1849 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) =                │

00:00:42 #1850 [Verbose] > │     closure0()                                                               │

00:00:42 #1851 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:00:42 #1852 [Verbose] > │     v0                                                                       │

00:00:42 #1853 [Verbose] > │ and method0 () : unit =                                                      │

00:00:42 #1854 [Verbose] > │     let v0 : string = "00010101-0000-0000-0000-0a9876543210"                 │

00:00:42 #1855 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:42 #1856 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:00:42 #1857 [Verbose] > │     let v3 : (string -> (string -> (string -> string))) = method1()          │

00:00:42 #1858 [Verbose] > │     let mutable result = None                                                │

00:00:42 #1859 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:00:42 #1860 [Verbose] > │     let v4 : System.DateTime = System.DateTime.Parse (v2.[..24] |> v3 "-"    │

00:00:42 #1861 [Verbose] > │ "")                                                                          │

00:00:42 #1862 [Verbose] > │     v4                                                                       │

00:00:42 #1863 [Verbose] > │     #endif                                                                   │

00:00:42 #1864 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:00:42 #1865 [Verbose] > │     let v5 : System.DateTime = System.DateTime.Parse (v2.[..24] |> v3 "-"    │

00:00:42 #1866 [Verbose] > │ "")                                                                          │

00:00:42 #1867 [Verbose] > │     v5                                                                       │

00:00:42 #1868 [Verbose] > │     #endif                                                                   │

00:00:42 #1869 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:00:42 #1870 [Verbose] > │     let v6 : System.DateTime = System.DateTime.ParseExact (v2.[..24] |> v3   │

00:00:42 #1871 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:42 #1872 [Verbose] > │     v6                                                                       │

00:00:42 #1873 [Verbose] > │     #endif                                                                   │

00:00:42 #1874 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:00:42 #1875 [Verbose] > │     let v7 : System.DateTime = System.DateTime.ParseExact (v2.[..24] |> v3   │

00:00:42 #1876 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:42 #1877 [Verbose] > │     v7                                                                       │

00:00:42 #1878 [Verbose] > │     #endif                                                                   │

00:00:42 #1879 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:00:42 #1880 [Verbose] > │     let v8 : System.DateTime = System.DateTime.ParseExact (v2.[..24] |> v3   │

00:00:42 #1881 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:42 #1882 [Verbose] > │     v8                                                                       │

00:00:42 #1883 [Verbose] > │     #endif                                                                   │

00:00:42 #1884 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:00:42 #1885 [Verbose] > │     let v9 : System.DateTime = result |> Option.get                          │

00:00:42 #1886 [Verbose] > │     let v10 : System.DateTime = System.DateTime.MinValue                     │

00:00:42 #1887 [Verbose] > │     let v11 : string = $"%A{v9}"                                             │

00:00:42 #1888 [Verbose] > │     System.Console.WriteLine v11                                             │

00:00:42 #1889 [Verbose] > │     let v12 : bool = v9 = v10                                                │

00:00:42 #1890 [Verbose] > │     let v14 : bool =                                                         │

00:00:42 #1891 [Verbose] > │         if v12 then                                                          │

00:00:42 #1892 [Verbose] > │             true                                                             │

00:00:42 #1893 [Verbose] > │         else                                                                 │

00:00:42 #1894 [Verbose] > │             method2(v12)                                                     │

00:00:42 #1895 [Verbose] > │     let v15 : string = $"__expect / actual: %A{v9} / expected: %A{v10}"      │

00:00:42 #1896 [Verbose] > │     let v16 : bool = v14 = false                                             │

00:00:42 #1897 [Verbose] > │     if v16 then                                                              │

00:00:42 #1898 [Verbose] > │         failwith<unit> v15                                                   │

00:00:42 #1899 [Verbose] > │ method0()                                                                    │

00:00:42 #1900 [Verbose] > │                                                                              │

00:00:42 #1901 [Verbose] > │ 0001-01-01 12:00:00 AM                                                       │

00:00:42 #1902 [Verbose] > │                                                                              │

00:00:42 #1903 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:42 #1904 [Verbose] >

00:00:42 #1905 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:42 #1906 [Verbose] > // // test

00:00:42 #1907 [Verbose] >

00:00:42 #1908 [Verbose] > date_time_from_guid (guid.new_guid $'$"99991231-2359-5999-9999-9{(!test_guid ()

00:00:42 #1909 [Verbose] > |> string).[[^10..]]}"')

00:00:42 #1910 [Verbose] > |> _assert_eq' $'System.DateTime.MaxValue'

00:00:43 #1911 [Verbose] >

00:00:43 #1912 [Verbose] > ╭─[ 408.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:43 #1913 [Verbose] > │ let rec closure0 () () : System.Guid =                                       │

00:00:43 #1914 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:43 #1915 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:43 #1916 [Verbose] > │     v1                                                                       │

00:00:43 #1917 [Verbose] > │ and closure3 (v0 : string, v1 : string) (v2 : string) : string =             │

00:00:43 #1918 [Verbose] > │     let v3 : string = v2.Replace (v0, v1)                                    │

00:00:43 #1919 [Verbose] > │     v3                                                                       │

00:00:43 #1920 [Verbose] > │ and closure2 (v0 : string) (v1 : string) : (string -> string) =              │

00:00:43 #1921 [Verbose] > │     closure3(v0, v1)                                                         │

00:00:43 #1922 [Verbose] > │ and closure1 () (v0 : string) : (string -> (string -> string)) =             │

00:00:43 #1923 [Verbose] > │     closure2(v0)                                                             │

00:00:43 #1924 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) =                │

00:00:43 #1925 [Verbose] > │     closure1()                                                               │

00:00:43 #1926 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:00:43 #1927 [Verbose] > │     v0                                                                       │

00:00:43 #1928 [Verbose] > │ and method0 () : unit =                                                      │

00:00:43 #1929 [Verbose] > │     let v0 : (unit -> System.Guid) = closure0()                              │

00:00:43 #1930 [Verbose] > │     let v1 : string = $"99991231-2359-5999-9999-9{(v0 () |> string).[        │

00:00:43 #1931 [Verbose] > │ ^10..]}"                                                                     │

00:00:43 #1932 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3473-7398-7410b1cf8f5e\main.spi

00:00:43 #1933 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3850-5078-5d1a2b15622a\main.spi

00:00:43 #1934 [Verbose] > │     let v2 : System.Guid = System.Guid v1                                    │

00:00:43 #1935 [Verbose] > │     let v3 : string = v2.ToString ()                                         │

00:00:43 #1936 [Verbose] > │     let v4 : (string -> (string -> (string -> string))) = method1()          │

00:00:43 #1937 [Verbose] > │     let mutable result = None                                                │

00:00:43 #1938 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:00:43 #1939 [Verbose] > │     let v5 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-"    │

00:00:43 #1940 [Verbose] > │ "")                                                                          │

00:00:43 #1941 [Verbose] > │     v5                                                                       │

00:00:43 #1942 [Verbose] > │     #endif                                                                   │

00:00:43 #1943 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:00:43 #1944 [Verbose] > │     let v6 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-"    │

00:00:43 #1945 [Verbose] > │ "")                                                                          │

00:00:43 #1946 [Verbose] > │     v6                                                                       │

00:00:43 #1947 [Verbose] > │     #endif                                                                   │

00:00:43 #1948 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:00:43 #1949 [Verbose] > │     let v7 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4   │

00:00:43 #1950 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:43 #1951 [Verbose] > │     v7                                                                       │

00:00:43 #1952 [Verbose] > │     #endif                                                                   │

00:00:43 #1953 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:00:43 #1954 [Verbose] > │     let v8 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4   │

00:00:43 #1955 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:43 #1956 [Verbose] > │     v8                                                                       │

00:00:43 #1957 [Verbose] > │     #endif                                                                   │

00:00:43 #1958 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:00:43 #1959 [Verbose] > │     let v9 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4   │

00:00:43 #1960 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:43 #1961 [Verbose] > │     v9                                                                       │

00:00:43 #1962 [Verbose] > │     #endif                                                                   │

00:00:43 #1963 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:00:43 #1964 [Verbose] > │     let v10 : System.DateTime = result |> Option.get                         │

00:00:43 #1965 [Verbose] > │     let v11 : System.DateTime = System.DateTime.MaxValue                     │

00:00:43 #1966 [Verbose] > │     let v12 : string = $"%A{v10}"                                            │

00:00:43 #1967 [Verbose] > │     System.Console.WriteLine v12                                             │

00:00:43 #1968 [Verbose] > │     let v13 : bool = v10 = v11                                               │

00:00:43 #1969 [Verbose] > │     let v15 : bool =                                                         │

00:00:43 #1970 [Verbose] > │         if v13 then                                                          │

00:00:43 #1971 [Verbose] > │             true                                                             │

00:00:43 #1972 [Verbose] > │         else                                                                 │

00:00:43 #1973 [Verbose] > │             method2(v13)                                                     │

00:00:43 #1974 [Verbose] > │     let v16 : string = $"__expect / actual: %A{v10} / expected: %A{v11}"     │

00:00:43 #1975 [Verbose] > │     let v17 : bool = v15 = false                                             │

00:00:43 #1976 [Verbose] > │     if v17 then                                                              │

00:00:43 #1977 [Verbose] > │         failwith<unit> v16                                                   │

00:00:43 #1978 [Verbose] > │ method0()                                                                    │

00:00:43 #1979 [Verbose] > │                                                                              │

00:00:43 #1980 [Verbose] > │ 9999-12-31 11:59:59 PM                                                       │

00:00:43 #1981 [Verbose] > │                                                                              │

00:00:43 #1982 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:43 #1983 [Verbose] >

00:00:43 #1984 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:43 #1985 [Verbose] > // // test

00:00:43 #1986 [Verbose] >

00:00:43 #1987 [Verbose] > date_time_from_guid (guid.new_guid $'$"19700101-0000-0000-0000-0{(!test_guid ()

00:00:43 #1988 [Verbose] > |> string).[[^10..]]}"')

00:00:43 #1989 [Verbose] > |> _assert_eq' $'System.DateTime.UnixEpoch'

00:00:43 #1990 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3895-9584-9c3564977382\main.spi

00:00:43 #1991 [Verbose] > ╭─[ 398.21ms - stdout ]────────────────────────────────────────────────────────╮

00:00:43 #1992 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:43 #1993 [Verbose] > │ let rec method1 () : int32 =                                                 │

00:00:43 #1994 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:43 #1995 [Verbose] > │     3                                                                        │

00:00:43 #1996 [Verbose] > │ # optionm                                                                    │

00:00:43 #1997 [Verbose] > │ and method2 (v0 : int32) : int32 =                                           │

00:00:43 #1998 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:43 #1999 [Verbose] > │     let v1 : int32 = 9 + v0                                                  │

00:00:43 #2000 [Verbose] >

00:00:43 #2002 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:43 #2001 [Verbose] > │     v1                                                                       │

00:00:43 #2003 [Verbose] > // // test

00:00:43 #2004 [Verbose] > │ and method3 (v0 : bool) : bool =                                             │

00:00:43 #2005 [Verbose] >

00:00:43 #2006 [Verbose] > │     v0                                                                       │

00:00:43 #2007 [Verbose] > open testing

00:00:43 #2008 [Verbose] > │ and method0 () : unit =                                                      │

00:00:43 #2009 [Verbose] > │     let v0 : int32 = method1()                                               │

00:00:43 #2010 [Verbose] > │     let v1 : int32 = method2(v0)                                             │

00:00:43 #2011 [Verbose] > │     let v2 : int32 = v1 + 2                                                  │

00:00:43 #2012 [Verbose] > │     let v3 : int32 = v2 + 1                                                  │

00:00:43 #2013 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:00:43 #2014 [Verbose] > │     System.Console.WriteLine v4                                              │

00:00:43 #2015 [Verbose] > │     let v5 : bool = v3 = 15                                                  │

00:00:43 #2016 [Verbose] > │     let v7 : bool =                                                          │

00:00:43 #2017 [Verbose] > │         if v5 then                                                           │

00:00:43 #2018 [Verbose] > │             true                                                             │

00:00:43 #2019 [Verbose] > │         else                                                                 │

00:00:43 #2020 [Verbose] > │             method3(v5)                                                      │

00:00:43 #2021 [Verbose] > │     let v8 : string = $"__expect / actual: %A{v3} / expected: %A{15}"        │

00:00:43 #2022 [Verbose] > │     let v9 : bool = v7 = false                                               │

00:00:43 #2023 [Verbose] > │     if v9 then                                                               │

00:00:43 #2024 [Verbose] > │         failwith<unit> v8                                                    │

00:00:43 #2025 [Verbose] > │ method0()                                                                    │

00:00:43 #2026 [Verbose] > │                                                                              │

00:00:43 #2027 [Verbose] > │ 15                                                                           │

00:00:43 #2028 [Verbose] > │                                                                              │

00:00:43 #2029 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:43 #2030 [Verbose] >

00:00:43 #2031 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:43 #2032 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:43 #2033 [Verbose] > │ ## run_target                                                                │

00:00:43 #2034 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:43 #2035 [Verbose] >

00:00:43 #2036 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:43 #2037 [Verbose] > union target_runtime =

00:00:43 #2038 [Verbose] >     | Native

00:00:43 #2039 [Verbose] >     | Wasm

00:00:43 #2040 [Verbose] >     | Fable

00:00:43 #2041 [Verbose] >

00:00:43 #2042 [Verbose] > union target =

00:00:43 #2043 [Verbose] >     | Rust : target_runtime

00:00:43 #2044 [Verbose] >     | Fsharp : target_runtime

00:00:43 #2045 [Verbose] >

00:00:43 #2046 [Verbose] > inl run_target forall t. (fn : target -> (() -> t)) : t =

00:00:43 #2047 [Verbose] >     $"let mutable result = None"

00:00:43 #2048 [Verbose] >     $"#if FABLE_COMPILER_RUST && \!WASM"

00:00:43 #2049 [Verbose] >     fn (Rust Native) () |> fun x => $"!x"

00:00:43 #2050 [Verbose] >     $"#endif"

00:00:43 #2051 [Verbose] >     $"#if FABLE_COMPILER_RUST && WASM"

00:00:43 #2052 [Verbose] >     fn (Rust Wasm) () |> fun x => $"!x"

00:00:43 #2053 [Verbose] >     $"#endif"

00:00:43 #2054 [Verbose] >     $"#if \!FABLE_COMPILER && \!FABLE_COMPILER_RUST && \!WASM"

00:00:43 #2055 [Verbose] >     fn (Fsharp Native) () |> fun x => $"!x"

00:00:43 #2056 [Verbose] >     $"#endif"

00:00:43 #2057 [Verbose] >     $"#if FABLE_COMPILER && \!FABLE_COMPILER_RUST && \!WASM"

00:00:43 #2058 [Verbose] >     fn (Fsharp Fable) () |> fun x => $"!x"

00:00:43 #2059 [Verbose] >     $"#endif"

00:00:43 #2060 [Verbose] >     $"#if \!FABLE_COMPILER_RUST && WASM"

00:00:43 #2061 [Verbose] >     fn (Fsharp Wasm) () |> fun x => $"!x"

00:00:43 #2062 [Verbose] >     $"#endif"

00:00:43 #2063 [Verbose] >     $"|> fun x -> result <- Some x"

00:00:43 #2064 [Verbose] >     $"result |> Option.get"

00:00:43 #2065 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html

00:00:43 #2066 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:43 #2067 [Verbose] >   validate(nb)

00:00:43 #2068 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3912-1258-1ce4f52a1a01\main.spi

00:00:44 #2069 [Verbose] >

00:00:44 #2070 [Verbose] > ╭─[ 663.29ms - stdout ]────────────────────────────────────────────────────────╮

00:00:44 #2071 [Verbose] > │ let rec closure0 () () : System.Guid =                                       │

00:00:44 #2072 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:44 #2073 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:44 #2074 [Verbose] > │     v1                                                                       │

00:00:44 #2075 [Verbose] > │ and closure3 (v0 : string, v1 : string) (v2 : string) : string =             │

00:00:44 #2076 [Verbose] > │     let v3 : string = v2.Replace (v0, v1)                                    │

00:00:44 #2077 [Verbose] > │     v3                                                                       │

00:00:44 #2078 [Verbose] > │ and closure2 (v0 : string) (v1 : string) : (string -> string) =              │

00:00:44 #2079 [Verbose] > │     closure3(v0, v1)                                                         │

00:00:44 #2080 [Verbose] > │ and closure1 () (v0 : string) : (string -> (string -> string)) =             │

00:00:44 #2081 [Verbose] > │     closure2(v0)                                                             │

00:00:44 #2082 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) =                │

00:00:44 #2083 [Verbose] > │     closure1()                                                               │

00:00:44 #2084 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:00:44 #2085 [Verbose] > │     v0                                                                       │

00:00:44 #2086 [Verbose] > │ and method0 () : unit =                                                      │

00:00:44 #2087 [Verbose] > │     let v0 : (unit -> System.Guid) = closure0()                              │

00:00:44 #2088 [Verbose] > │     let v1 : string = $"19700101-0000-0000-0000-0{(v0 () |> string).[        │

00:00:44 #2089 [Verbose] > │ ^10..]}"                                                                     │

00:00:44 #2090 [Verbose] > │     let v2 : System.Guid = System.Guid v1                                    │

00:00:44 #2091 [Verbose] > │     let v3 : string = v2.ToString ()                                         │

00:00:44 #2092 [Verbose] > │     let v4 : (string -> (string -> (string -> string))) = method1()          │

00:00:44 #2093 [Verbose] > │     let mutable result = None                                                │

00:00:44 #2094 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:00:44 #2095 [Verbose] > │     let v5 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-"    │

00:00:44 #2096 [Verbose] > │ "")                                                                          │

00:00:44 #2097 [Verbose] > │     v5                                                                       │

00:00:44 #2098 [Verbose] > │     #endif                                                                   │

00:00:44 #2099 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:00:44 #2100 [Verbose] > │     let v6 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-"    │

00:00:44 #2101 [Verbose] > │ "")                                                                          │

00:00:44 #2102 [Verbose] > │     v6                                                                       │

00:00:44 #2103 [Verbose] > │     #endif                                                                   │

00:00:44 #2104 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:00:44 #2105 [Verbose] >

00:00:44 #2106 [Verbose] > │     let v7 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4   │

00:00:44 #2107 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:44 #2108 [Verbose] > │     v7                                                                       │

00:00:44 #2109 [Verbose] > │     #endif                                                                   │

00:00:44 #2110 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:00:44 #2111 [Verbose] > │     let v8 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4   │

00:00:44 #2112 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:44 #2113 [Verbose] > ╭─[ 4.79s - stdout ]───────────────────────────────────────────────────────────╮

00:00:44 #2114 [Verbose] > │     v8                                                                       │

00:00:44 #2115 [Verbose] > │     #endif                                                                   │

00:00:44 #2116 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:00:44 #2117 [Verbose] > │     let v9 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4   │

00:00:44 #2118 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:44 #2119 [Verbose] > │     v9                                                                       │

00:00:44 #2120 [Verbose] > │ ()                                                                           │

00:00:44 #2121 [Verbose] > │     #endif                                                                   │

00:00:44 #2123 [Verbose] > │                                                                              │

00:00:44 #2122 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:00:44 #2124 [Verbose] > │     let v10 : System.DateTime = result |> Option.get                         │

00:00:44 #2125 [Verbose] > │                                                                              │

00:00:44 #2126 [Verbose] > │     let v11 : System.DateTime = System.DateTime.UnixEpoch                    │

00:00:44 #2127 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:44 #2128 [Verbose] > │     let v12 : string = $"%A{v10}"                                            │

00:00:44 #2129 [Verbose] > │     System.Console.WriteLine v12                                             │

00:00:44 #2130 [Verbose] > │     let v13 : bool = v10 = v11                                               │

00:00:44 #2132 [Verbose] >

00:00:44 #2131 [Verbose] > │     let v15 : bool =                                                         │

00:00:44 #2133 [Verbose] > │         if v13 then                                                          │

00:00:44 #2135 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:44 #2134 [Verbose] > │             true                                                             │

00:00:44 #2136 [Verbose] > │         else                                                                 │

00:00:44 #2137 [Verbose] > // // test

00:00:44 #2138 [Verbose] >

00:00:44 #2139 [Verbose] > run_target function

00:00:44 #2140 [Verbose] >     | Fsharp (Native) => fun () => $"1uy"

00:00:44 #2141 [Verbose] >     | _ => fun () => $"2uy"

00:00:44 #2143 [Verbose] > |> _assert_eq 1u8

00:00:44 #2142 [Verbose] > │             method2(v13)                                                     │

00:00:44 #2144 [Verbose] > │     let v16 : string = $"__expect / actual: %A{v10} / expected: %A{v11}"     │

00:00:44 #2145 [Verbose] > │     let v17 : bool = v15 = false                                             │

00:00:44 #2146 [Verbose] > │     if v17 then                                                              │

00:00:44 #2147 [Verbose] > │         failwith<unit> v16                                                   │

00:00:44 #2148 [Verbose] > │ method0()                                                                    │

00:00:44 #2149 [Verbose] > │                                                                              │

00:00:44 #2150 [Verbose] > │ 1970-01-01 12:00:00 AM                                                       │

00:00:44 #2151 [Verbose] > │                                                                              │

00:00:44 #2152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:44 #2153 [Verbose] >

00:00:44 #2154 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:44 #2155 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:44 #2156 [Verbose] > │ ## ticks_guid_from_ticks                                                     │

00:00:44 #2157 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:44 #2158 [Verbose] >

00:00:44 #2159 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:44 #2160 [Verbose] > inl ticks_guid_from_ticks (guid : guid.guid) (ticks : ticks) : ticks_guid =

00:00:44 #2161 [Verbose] >     inl guid = guid |> sm'.obj_to_string

00:00:44 #2162 [Verbose] >     inl ticks = ticks |> sm'.obj_to_string |> sm'.pad_left 18i32 '0'

00:00:44 #2163 [Verbose] >     $'`ticks_guid

00:00:44 #2164 [Verbose] > $"{!ticks.[[0..7]]}-{!ticks.[[8..11]]}-{!ticks.[[12..15]]}-{!ticks.[[16..17]]}{!

00:00:44 #2165 [Verbose] > guid.[[21..]]}"'

00:00:44 #2166 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3997-9763-930bec72c545\main.spi

00:00:44 #2167 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-3999-9993-933e8be2d2cb\main.spi

00:00:44 #2168 [Verbose] >

00:00:44 #2169 [Verbose] > ╭─[ 344.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:44 #2170 [Verbose] > │ ()                                                                           │

00:00:44 #2171 [Verbose] > │                                                                              │

00:00:44 #2172 [Verbose] > │                                                                              │

00:00:44 #2173 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:44 #2174 [Verbose] >

00:00:44 #2175 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:44 #2176 [Verbose] > // // test

00:00:44 #2177 [Verbose] >

00:00:44 #2178 [Verbose] > ticks_guid_from_ticks (test_guid ()) (ticks 0i64)

00:00:44 #2179 [Verbose] > |> _assert_eq' (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")

00:00:44 #2180 [Verbose] >

00:00:44 #2181 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:44 #2182 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:44 #2183 [Verbose] > │ # sm'                                                                        │

00:00:44 #2184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:44 #2185 [Verbose] >

00:00:44 #2186 [Verbose] > ╭─[ 575.85ms - stdout ]────────────────────────────────────────────────────────╮

00:00:44 #2187 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:44 #2188 [Verbose] > │     v0                                                                       │

00:00:44 #2189 [Verbose] > │ and method0 () : unit =                                                      │

00:00:44 #2190 [Verbose] > │     let mutable result = None                                                │

00:00:44 #2191 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:00:44 #2192 [Verbose] > │     let v0 : uint8 = 2uy                                                     │

00:00:44 #2193 [Verbose] > │     v0                                                                       │

00:00:44 #2194 [Verbose] > │     #endif                                                                   │

00:00:44 #2195 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:00:44 #2196 [Verbose] > │     let v1 : uint8 = 2uy                                                     │

00:00:44 #2197 [Verbose] > │     v1                                                                       │

00:00:44 #2198 [Verbose] > │     #endif                                                                   │

00:00:44 #2199 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:00:44 #2200 [Verbose] > │     let v2 : uint8 = 1uy                                                     │

00:00:44 #2201 [Verbose] > │     v2                                                                       │

00:00:44 #2202 [Verbose] > │     #endif                                                                   │

00:00:44 #2203 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:00:44 #2204 [Verbose] > │     let v3 : uint8 = 2uy                                                     │

00:00:44 #2205 [Verbose] > │     v3                                                                       │

00:00:44 #2206 [Verbose] > │     #endif                                                                   │

00:00:44 #2207 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:00:44 #2208 [Verbose] > │     let v4 : uint8 = 2uy                                                     │

00:00:44 #2209 [Verbose] > │     v4                                                                       │

00:00:44 #2210 [Verbose] > │     #endif                                                                   │

00:00:44 #2211 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:00:44 #2212 [Verbose] > │     let v5 : uint8 = result |> Option.get                                    │

00:00:44 #2213 [Verbose] > │     let v6 : string = $"%A{v5}"                                              │

00:00:44 #2214 [Verbose] > │     System.Console.WriteLine v6                                              │

00:00:44 #2215 [Verbose] > │     let v7 : bool = v5 = 1uy                                                 │

00:00:44 #2216 [Verbose] > │     let v9 : bool =                                                          │

00:00:44 #2217 [Verbose] > │         if v7 then                                                           │

00:00:45 #2218 [Verbose] >

00:00:45 #2219 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:45 #2220 [Verbose] > // // test

00:00:45 #2221 [Verbose] >

00:00:45 #2222 [Verbose] > open testing

00:00:45 #2223 [Verbose] >

00:00:45 #2224 [Verbose] > ╭─[ 483.12ms - stdout ]────────────────────────────────────────────────────────╮

00:00:45 #2225 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:45 #2226 [Verbose] > │     v0                                                                       │

00:00:45 #2227 [Verbose] > │ and method0 () : unit =                                                      │

00:00:45 #2228 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:45 #2229 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:45 #2230 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:00:45 #2231 [Verbose] > │     let v3 : string = 0L.ToString ()                                         │

00:00:45 #2232 [Verbose] > │     let v4 : string = v3.PadLeft (18, '0')                                   │

00:00:45 #2233 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[      │

00:00:45 #2234 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}"                                           │

00:00:45 #2235 [Verbose] > │     let v6 : string = "00000000-0000-0000-00dc-ba9876543210"                 │

00:00:45 #2236 [Verbose] > │     let v7 : System.Guid = System.Guid v6                                    │

00:00:45 #2237 [Verbose] > │     let v8 : string = $"%A{v5}"                                              │

00:00:45 #2238 [Verbose] > │     System.Console.WriteLine v8                                              │

00:00:45 #2239 [Verbose] > │     let v9 : bool = v5 = v7                                                  │

00:00:45 #2240 [Verbose] > │     let v11 : bool =                                                         │

00:00:45 #2241 [Verbose] > │         if v9 then                                                           │

00:00:45 #2242 [Verbose] > │             true                                                             │

00:00:45 #2243 [Verbose] > │         else                                                                 │

00:00:45 #2244 [Verbose] > │             method1(v9)                                                      │

00:00:45 #2245 [Verbose] > │     let v12 : string = $"__expect / actual: %A{v5} / expected: %A{v7}"       │

00:00:45 #2246 [Verbose] > │     let v13 : bool = v11 = false                                             │

00:00:45 #2247 [Verbose] > │     if v13 then                                                              │

00:00:45 #2248 [Verbose] > │         failwith<unit> v12                                                   │

00:00:45 #2249 [Verbose] > │ method0()                                                                    │

00:00:45 #2250 [Verbose] > │                                                                              │

00:00:45 #2251 [Verbose] > │ 00000000-0000-0000-00dc-ba9876543210                                         │

00:00:45 #2252 [Verbose] > │                                                                              │

00:00:45 #2253 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #2254 [Verbose] >

00:00:45 #2255 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:45 #2256 [Verbose] > // // test

00:00:45 #2257 [Verbose] >

00:00:45 #2258 [Verbose] > ticks_guid_from_ticks (test_guid ()) (ticks 999999999999999999i64)

00:00:45 #2259 [Verbose] > |> _assert_eq' (guid.new_guid $'$"99999999-9999-9999-99dc-b{(!test_guid () |>

00:00:45 #2260 [Verbose] > string).[[^10..]]}"')

00:00:45 #2261 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:45 #2262 [Verbose] >   return _pygments_highlight(

00:00:45 #2263 [Verbose] >

00:00:45 #2264 [Verbose] > ╭─[ 653.86ms - stdout ]────────────────────────────────────────────────────────╮

00:00:45 #2265 [Verbose] > │ let rec closure0 () () : System.Guid =                                       │

00:00:45 #2266 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:45 #2267 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:45 #2268 [Verbose] > │     v1                                                                       │

00:00:45 #2269 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:00:45 #2270 [Verbose] > │     v0                                                                       │

00:00:45 #2271 [Verbose] > │ and method0 () : unit =                                                      │

00:00:45 #2272 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:45 #2273 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:45 #2274 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:00:45 #2275 [Verbose] > │     let v3 : string = 999999999999999999L.ToString ()                        │

00:00:45 #2276 [Verbose] > │     let v4 : string = v3.PadLeft (18, '0')                                   │

00:00:45 #2277 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[      │

00:00:45 #2278 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}"                                           │

00:00:45 #2279 [Verbose] > │     let v6 : (unit -> System.Guid) = closure0()                              │

00:00:45 #2280 [Verbose] > │     let v7 : string = $"99999999-9999-9999-99dc-b{(v6 () |> string).[        │

00:00:45 #2281 [Verbose] > │ ^10..]}"                                                                     │

00:00:45 #2282 [Verbose] > │     let v8 : System.Guid = System.Guid v7                                    │

00:00:45 #2283 [Verbose] > │     let v9 : string = $"%A{v5}"                                              │

00:00:45 #2284 [Verbose] > │     System.Console.WriteLine v9                                              │

00:00:45 #2285 [Verbose] > │     let v10 : bool = v5 = v8                                                 │

00:00:45 #2286 [Verbose] > │     let v12 : bool =                                                         │

00:00:45 #2287 [Verbose] > │         if v10 then                                                          │

00:00:45 #2288 [Verbose] > │             true                                                             │

00:00:45 #2289 [Verbose] > │         else                                                                 │

00:00:45 #2290 [Verbose] > │             method1(v10)                                                     │

00:00:45 #2291 [Verbose] > │     let v13 : string = $"__expect / actual: %A{v5} / expected: %A{v8}"       │

00:00:45 #2292 [Verbose] > │     let v14 : bool = v12 = false                                             │

00:00:45 #2293 [Verbose] > │     if v14 then                                                              │

00:00:45 #2294 [Verbose] > │         failwith<unit> v13                                                   │

00:00:45 #2295 [Verbose] > │ method0()                                                                    │

00:00:45 #2296 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4034-3460-3c0b10ce4b0d\main.spi

00:00:45 #2297 [Verbose] > │             true                                                             │

00:00:45 #2298 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4059-5946-516ee13c497a\main.spi

00:00:45 #2299 [Verbose] > │         else                                                                 │

00:00:45 #2301 [Verbose] > │             method1(v7)                                                      │

00:00:45 #2300 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4085-8560-8459cbb80193\main.spi

00:00:45 #2302 [Verbose] > │     let v10 : string = $"__expect / actual: %A{v5} / expected: %A{1uy}"      │

00:00:45 #2303 [Verbose] > │     let v11 : bool = v9 = false                                              │

00:00:45 #2304 [Verbose] > │                                                                              │

00:00:45 #2305 [Verbose] > │     if v11 then                                                              │

00:00:45 #2306 [Verbose] > │         failwith<unit> v10                                                   │

00:00:45 #2307 [Verbose] > │ method0()                                                                    │

00:00:45 #2308 [Verbose] > │                                                                              │

00:00:45 #2309 [Verbose] > │ 1uy                                                                          │

00:00:45 #2310 [Verbose] > │                                                                              │

00:00:45 #2311 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #2312 [Verbose] >

00:00:45 #2313 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:45 #2314 [Verbose] > // // test

00:00:45 #2315 [Verbose] > // // rust=

00:00:45 #2316 [Verbose] >

00:00:45 #2317 [Verbose] > run_target function

00:00:45 #2318 [Verbose] >     | Rust (Native) => fun () => $"1uy"

00:00:45 #2319 [Verbose] >     | _ => fun () => $"2uy"

00:00:45 #2320 [Verbose] > |> (=) 1u8

00:00:45 #2321 [Verbose] > |> _assert_eq true

00:00:45 #2322 [Verbose] > │ 99999999-9999-9999-99dc-ba9876543210                                         │

00:00:45 #2323 [Verbose] > │                                                                              │

00:00:45 #2324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #2325 [Verbose] >

00:00:45 #2326 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:45 #2327 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:45 #2328 [Verbose] > │ ## ticks_from_guid                                                           │

00:00:45 #2329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #2330 [Verbose] >

00:00:45 #2331 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:45 #2332 [Verbose] > inl ticks_from_guid (guid : date_time_guid) : ticks =

00:00:45 #2333 [Verbose] >     inl guid = guid |> sm'.obj_to_string

00:00:45 #2334 [Verbose] >     $'`i64

00:00:45 #2335 [Verbose] > $"{!guid.[[0..7]]}{!guid.[[9..12]]}{!guid.[[14..17]]}{!guid.[[19..20]]}"'

00:00:46 #2336 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4157-5724-56a5f7a8f69b\main.spi

00:00:46 #2337 [Verbose] >

00:00:46 #2338 [Verbose] > ╭─[ 486.16ms - stdout ]────────────────────────────────────────────────────────╮

00:00:46 #2339 [Verbose] > │ ()                                                                           │

00:00:46 #2340 [Verbose] > │                                                                              │

00:00:46 #2341 [Verbose] > │                                                                              │

00:00:46 #2342 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:46 #2343 [Verbose] >

00:00:46 #2344 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:46 #2345 [Verbose] > // // test

00:00:46 #2346 [Verbose] >

00:00:46 #2347 [Verbose] > ticks_from_guid (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")

00:00:46 #2348 [Verbose] > |> _assert_eq (ticks 0)

00:00:46 #2349 [Verbose] > [NbConvertApp] Writing 304029 bytes to math.dib.html

00:00:46 #2350 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4213-1385-1b1d2185eb57\main.spi

00:00:47 #2351 [Verbose] >

00:00:47 #2352 [Verbose] > ╭─[ 546.50ms - stdout ]────────────────────────────────────────────────────────╮

00:00:47 #2353 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:47 #2354 [Verbose] > │     v0                                                                       │

00:00:47 #2355 [Verbose] > │ and method0 () : unit =                                                      │

00:00:47 #2356 [Verbose] > │     let v0 : string = "00000000-0000-0000-00dc-ba9876543210"                 │

00:00:47 #2357 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:47 #2358 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:00:47 #2359 [Verbose] > │     let v3 : int64 = int64 $"{v2.[0..7]}{v2.[9..12]}{v2.[14..17]}{v2.[       │

00:00:47 #2360 [Verbose] > │ 19..20]}"                                                                    │

00:00:47 #2361 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:00:47 #2362 [Verbose] > │     System.Console.WriteLine v4                                              │

00:00:47 #2363 [Verbose] > │     let v5 : bool = v3 = 0L                                                  │

00:00:47 #2364 [Verbose] > │     let v7 : bool =                                                          │

00:00:47 #2365 [Verbose] > │         if v5 then                                                           │

00:00:47 #2366 [Verbose] > │             true                                                             │

00:00:47 #2367 [Verbose] > │         else                                                                 │

00:00:47 #2368 [Verbose] > │             method1(v5)                                                      │

00:00:47 #2369 [Verbose] > │     let v8 : string = $"__expect / actual: %A{v3} / expected: %A{0L}"        │

00:00:47 #2370 [Verbose] > │     let v9 : bool = v7 = false                                               │

00:00:47 #2371 [Verbose] > │     if v9 then                                                               │

00:00:47 #2372 [Verbose] > │         failwith<unit> v8                                                    │

00:00:47 #2373 [Verbose] > │ method0()                                                                    │

00:00:47 #2374 [Verbose] > │                                                                              │

00:00:47 #2375 [Verbose] > │ 0L                                                                           │

00:00:47 #2376 [Verbose] > │                                                                              │

00:00:47 #2377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:47 #2378 [Verbose] >

00:00:47 #2379 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:47 #2380 [Verbose] > // // test

00:00:47 #2381 [Verbose] >

00:00:47 #2382 [Verbose] > ticks_from_guid (guid.new_guid $'$"99999999-9999-9999-99{(!test_guid () |>

00:00:47 #2383 [Verbose] > string).[[^14..]]}"')

00:00:47 #2384 [Verbose] > |> _assert_eq (ticks 999999999999999999)

00:00:47 #2385 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4270-7090-7710a26beeb8\main.spi

00:00:47 #2386 [Verbose] >

00:00:47 #2387 [Verbose] > ╭─[ 417.78ms - stdout ]────────────────────────────────────────────────────────╮

00:00:47 #2388 [Verbose] > │ let rec closure0 () () : System.Guid =                                       │

00:00:47 #2389 [Verbose] > │     let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210"                 │

00:00:47 #2390 [Verbose] > │     let v1 : System.Guid = System.Guid v0                                    │

00:00:47 #2391 [Verbose] > │     v1                                                                       │

00:00:47 #2392 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:00:47 #2393 [Verbose] > │     v0                                                                       │

00:00:47 #2394 [Verbose] > │ and method0 () : unit =                                                      │

00:00:47 #2395 [Verbose] > │     let v0 : (unit -> System.Guid) = closure0()                              │

00:00:47 #2396 [Verbose] > │     let v1 : string = $"99999999-9999-9999-99{(v0 () |> string).[^14..]}"    │

00:00:47 #2397 [Verbose] > │     let v2 : System.Guid = System.Guid v1                                    │

00:00:47 #2398 [Verbose] > │     let v3 : string = v2.ToString ()                                         │

00:00:47 #2399 [Verbose] > │     let v4 : int64 = int64 $"{v3.[0..7]}{v3.[9..12]}{v3.[14..17]}{v3.[       │

00:00:47 #2400 [Verbose] > │ 19..20]}"                                                                    │

00:00:47 #2401 [Verbose] > │     let v5 : string = $"%A{v4}"                                              │

00:00:47 #2402 [Verbose] > │     System.Console.WriteLine v5                                              │

00:00:47 #2403 [Verbose] > │     let v6 : bool = v4 = 999999999999999999L                                 │

00:00:47 #2404 [Verbose] > │     let v8 : bool =                                                          │

00:00:47 #2405 [Verbose] > │         if v6 then                                                           │

00:00:47 #2406 [Verbose] > │             true                                                             │

00:00:47 #2407 [Verbose] > │         else                                                                 │

00:00:47 #2408 [Verbose] > │             method1(v6)                                                      │

00:00:47 #2409 [Verbose] > │     let v9 : string = $"__expect / actual: %A{v4} / expected:                │

00:00:47 #2410 [Verbose] > │ %A{999999999999999999L}"                                                     │

00:00:47 #2411 [Verbose] > │     let v10 : bool = v8 = false                                              │

00:00:47 #2412 [Verbose] > │     if v10 then                                                              │

00:00:47 #2413 [Verbose] > │         failwith<unit> v9                                                    │

00:00:47 #2414 [Verbose] > │ method0()                                                                    │

00:00:47 #2415 [Verbose] > │                                                                              │

00:00:47 #2416 [Verbose] > │ 999999999999999999L                                                          │

00:00:47 #2417 [Verbose] > │                                                                              │

00:00:47 #2418 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:47 #2419 [Verbose] >

00:00:47 #2420 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:47 #2421 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:47 #2422 [Verbose] > │ ## new_guid_from_date_time                                                   │

00:00:47 #2423 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:47 #2424 [Verbose] >

00:00:47 #2425 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:47 #2426 [Verbose] > inl new_guid_from_date_time (date_time : date_time) =

00:00:47 #2427 [Verbose] >     inl guid = guid.new_raw_guid ()

00:00:47 #2428 [Verbose] >     date_time_guid_from_date_time guid date_time

00:00:47 #2429 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4318-1810-1905ec296ae8\main.spi

00:00:47 #2430 [Verbose] >

00:00:47 #2431 [Verbose] > ╭─[ 344.27ms - stdout ]────────────────────────────────────────────────────────╮

00:00:47 #2432 [Verbose] > │ ()                                                                           │

00:00:47 #2433 [Verbose] > │                                                                              │

00:00:47 #2434 [Verbose] > │                                                                              │

00:00:47 #2435 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:47 #2436 [Verbose] >

00:00:47 #2437 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:47 #2438 [Verbose] > // // test

00:00:47 #2439 [Verbose] >

00:00:47 #2440 [Verbose] > new_guid_from_date_time $'System.DateTime.UtcNow'

00:00:47 #2441 [Verbose] > |> date_time_from_guid

00:00:47 #2442 [Verbose] > |> fun date_time => $'(!date_time - System.DateTime.UtcNow).TotalSeconds' : f64

00:00:47 #2443 [Verbose] > |> i32

00:00:47 #2444 [Verbose] > |> _assert_eq 0

00:00:47 #2445 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4198-9857-9787b5e0fb16\main.spi

00:00:48 #2446 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4352-5211-5b0362581800\main.spi

00:00:48 #2447 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4232-3276-3dd433cc029e\main.spi

00:00:48 #2448 [Verbose] >

00:00:48 #2449 [Verbose] > ╭─[ 516.09ms - stdout ]────────────────────────────────────────────────────────╮

00:00:48 #2450 [Verbose] > │ let rec closure2 (v0 : string, v1 : string) (v2 : string) : string =         │

00:00:48 #2451 [Verbose] > │     let v3 : string = v2.Replace (v0, v1)                                    │

00:00:48 #2452 [Verbose] > │     v3                                                                       │

00:00:48 #2453 [Verbose] > │ and closure1 (v0 : string) (v1 : string) : (string -> string) =              │

00:00:48 #2454 [Verbose] > │     closure2(v0, v1)                                                         │

00:00:48 #2455 [Verbose] > │ and closure0 () (v0 : string) : (string -> (string -> string)) =             │

00:00:48 #2456 [Verbose] > │     closure1(v0)                                                             │

00:00:48 #2457 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) =                │

00:00:48 #2458 [Verbose] > │     closure0()                                                               │

00:00:48 #2459 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:00:48 #2460 [Verbose] > │     v0                                                                       │

00:00:48 #2461 [Verbose] > │ and method0 () : unit =                                                      │

00:00:48 #2462 [Verbose] > │     let v0 : System.DateTime = System.DateTime.UtcNow                        │

00:00:48 #2463 [Verbose] > │     let v1 : System.Guid = System.Guid.NewGuid ()                            │

00:00:48 #2464 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:00:48 #2465 [Verbose] > │     let v3 : string = v0.ToString "yyyyMMdd-HHmm-ssff-ffff-f"                │

00:00:48 #2466 [Verbose] > │     let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}"             │

00:00:48 #2467 [Verbose] > │     let v5 : string = v4.ToString ()                                         │

00:00:48 #2468 [Verbose] > │     let v6 : (string -> (string -> (string -> string))) = method1()          │

00:00:48 #2469 [Verbose] > │     let mutable result = None                                                │

00:00:48 #2470 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:00:48 #2471 [Verbose] > │     let v7 : System.DateTime = System.DateTime.Parse (v5.[..24] |> v6 "-"    │

00:00:48 #2472 [Verbose] > │ "")                                                                          │

00:00:48 #2473 [Verbose] > │     v7                                                                       │

00:00:48 #2474 [Verbose] > │     #endif                                                                   │

00:00:48 #2475 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:00:48 #2476 [Verbose] > │     let v8 : System.DateTime = System.DateTime.Parse (v5.[..24] |> v6 "-"    │

00:00:48 #2477 [Verbose] > │ "")                                                                          │

00:00:48 #2478 [Verbose] > │     v8                                                                       │

00:00:48 #2479 [Verbose] > │     #endif                                                                   │

00:00:48 #2480 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:00:48 #2481 [Verbose] > │     let v9 : System.DateTime = System.DateTime.ParseExact (v5.[..24] |> v6   │

00:00:48 #2482 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:48 #2483 [Verbose] > │     v9                                                                       │

00:00:48 #2484 [Verbose] > │     #endif                                                                   │

00:00:48 #2485 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:00:48 #2486 [Verbose] > │     let v10 : System.DateTime = System.DateTime.ParseExact (v5.[..24] |> v6  │

00:00:48 #2487 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:48 #2488 [Verbose] > │     v10                                                                      │

00:00:48 #2489 [Verbose] > │     #endif                                                                   │

00:00:48 #2490 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:00:48 #2491 [Verbose] > │     let v11 : System.DateTime = System.DateTime.ParseExact (v5.[..24] |> v6  │

00:00:48 #2492 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:00:48 #2493 [Verbose] > │     v11                                                                      │

00:00:48 #2494 [Verbose] > │     #endif                                                                   │

00:00:48 #2495 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:00:48 #2496 [Verbose] > │     let v12 : System.DateTime = result |> Option.get                         │

00:00:48 #2497 [Verbose] > │     let v13 : float = (v12 - System.DateTime.UtcNow).TotalSeconds            │

00:00:48 #2498 [Verbose] > │     let v14 : int32 = int32 v13                                              │

00:00:48 #2499 [Verbose] > │     let v15 : string = $"%A{v14}"                                            │

00:00:48 #2500 [Verbose] > │     System.Console.WriteLine v15                                             │

00:00:48 #2501 [Verbose] > │     let v16 : bool = v14 = 0                                                 │

00:00:48 #2502 [Verbose] > │     let v18 : bool =                                                         │

00:00:48 #2503 [Verbose] > │         if v16 then                                                          │

00:00:48 #2504 [Verbose] > │             true                                                             │

00:00:48 #2505 [Verbose] > │         else                                                                 │

00:00:48 #2506 [Verbose] > │             method2(v16)                                                     │

00:00:48 #2507 [Verbose] > │     let v19 : string = $"__expect / actual: %A{v14} / expected: %A{0}"       │

00:00:48 #2508 [Verbose] > │     let v20 : bool = v18 = false                                             │

00:00:48 #2509 [Verbose] > │     if v20 then                                                              │

00:00:48 #2510 [Verbose] > │         failwith<unit> v19                                                   │

00:00:48 #2511 [Verbose] > │ method0()                                                                    │

00:00:48 #2512 [Verbose] > │                                                                              │

00:00:48 #2513 [Verbose] > │ 0                                                                            │

00:00:48 #2514 [Verbose] > │                                                                              │

00:00:48 #2515 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:48 #2516 [Verbose] >

00:00:48 #2517 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:48 #2518 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:48 #2519 [Verbose] > │ ## new_guid_from_ticks                                                       │

00:00:48 #2520 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:48 #2521 [Verbose] >

00:00:48 #2522 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:48 #2523 [Verbose] > inl new_guid_from_ticks (ticks : ticks) =

00:00:48 #2524 [Verbose] >     inl guid = guid.new_raw_guid ()

00:00:48 #2525 [Verbose] >     ticks_guid_from_ticks guid ticks

00:00:48 #2526 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4412-1236-1422e2b40a1f\main.spi

00:00:48 #2527 [Verbose] >

00:00:48 #2528 [Verbose] > ╭─[ 289.24ms - stdout ]────────────────────────────────────────────────────────╮

00:00:48 #2529 [Verbose] > │ ()                                                                           │

00:00:48 #2530 [Verbose] > │                                                                              │

00:00:48 #2531 [Verbose] > │                                                                              │

00:00:48 #2532 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:48 #2533 [Verbose] >

00:00:48 #2534 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:48 #2535 [Verbose] > // // test

00:00:48 #2536 [Verbose] >

00:00:48 #2537 [Verbose] > new_guid_from_ticks $'System.DateTime.UtcNow.Ticks'

00:00:48 #2538 [Verbose] > |> ticks_from_guid

00:00:48 #2539 [Verbose] > |> fun ticks => $'(!ticks - System.DateTime.UtcNow.Ticks) / 100000L'

00:00:48 #2540 [Verbose] > |> _assert_eq 0i64

00:00:48 #2541 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4440-4081-4c2320233741\main.spi

00:00:49 #2542 [Verbose] >

00:00:49 #2543 [Verbose] > ╭─[ 311.94ms - stdout ]────────────────────────────────────────────────────────╮

00:00:49 #2544 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:00:49 #2545 [Verbose] > │     v0                                                                       │

00:00:49 #2546 [Verbose] > │ and method0 () : unit =                                                      │

00:00:49 #2547 [Verbose] > │     let v0 : int64 = System.DateTime.UtcNow.Ticks                            │

00:00:49 #2548 [Verbose] > │     let v1 : System.Guid = System.Guid.NewGuid ()                            │

00:00:49 #2549 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:00:49 #2550 [Verbose] > │     let v3 : string = v0.ToString ()                                         │

00:00:49 #2551 [Verbose] > │     let v4 : string = v3.PadLeft (18, '0')                                   │

00:00:49 #2552 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[      │

00:00:49 #2553 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}"                                           │

00:00:49 #2554 [Verbose] > │     let v6 : string = v5.ToString ()                                         │

00:00:49 #2555 [Verbose] > │     let v7 : int64 = int64 $"{v6.[0..7]}{v6.[9..12]}{v6.[14..17]}{v6.[       │

00:00:49 #2556 [Verbose] > │ 19..20]}"                                                                    │

00:00:49 #2557 [Verbose] > │     let v8 : int64 = (v7 - System.DateTime.UtcNow.Ticks) / 100000L           │

00:00:49 #2558 [Verbose] > │     let v9 : string = $"%A{v8}"                                              │

00:00:49 #2559 [Verbose] > │     System.Console.WriteLine v9                                              │

00:00:49 #2560 [Verbose] > │     let v10 : bool = v8 = 0L                                                 │

00:00:49 #2561 [Verbose] > │     let v12 : bool =                                                         │

00:00:49 #2562 [Verbose] > │         if v10 then                                                          │

00:00:49 #2563 [Verbose] > │             true                                                             │

00:00:49 #2564 [Verbose] > │         else                                                                 │

00:00:49 #2565 [Verbose] > │             method1(v10)                                                     │

00:00:49 #2566 [Verbose] > │     let v13 : string = $"__expect / actual: %A{v8} / expected: %A{0L}"       │

00:00:49 #2567 [Verbose] > │     let v14 : bool = v12 = false                                             │

00:00:49 #2568 [Verbose] > │     if v14 then                                                              │

00:00:49 #2569 [Verbose] > │         failwith<unit> v13                                                   │

00:00:49 #2570 [Verbose] > │ method0()                                                                    │

00:00:49 #2571 [Verbose] > │                                                                              │

00:00:49 #2572 [Verbose] > │ 0L                                                                           │

00:00:49 #2573 [Debug] executeAsync / exitCode: 0 / output.Length: 26372

00:00:49 #2574 [Debug] main / executeCommand / exitCode: 0

00:00:49 #2575 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"listm'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:49 #2576 [Verbose] > │                                                                              │

00:00:49 #2577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:49 #2578 [Verbose] >

00:00:49 #2579 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:49 #2580 [Verbose] > //// test

00:00:49 #2581 [Verbose] >

00:00:49 #2582 [Verbose] > type DateTimeWithZone = {

00:00:49 #2583 [Verbose] >     DateTime: System.DateTimeOffset

00:00:49 #2584 [Verbose] >     TimeZone: System.TimeZoneInfo

00:00:49 #2585 [Verbose] > }

00:00:49 #2586 [Verbose] >

00:00:49 #2587 [Verbose] > try

00:00:49 #2588 [Verbose] >     let now = System.DateTimeOffset.Now

00:00:49 #2589 [Verbose] >     let timeZoneInfo = System.TimeZoneInfo.Local

00:00:49 #2590 [Verbose] >     let dateTimeWithZone = { DateTime = now; TimeZone = timeZoneInfo }

00:00:49 #2591 [Verbose] >

00:00:49 #2592 [Verbose] >     printfn "DateTime: %O" dateTimeWithZone.DateTime

00:00:49 #2593 [Verbose] >     printfn "Time Zone: %s" dateTimeWithZone.TimeZone.DisplayName

00:00:49 #2594 [Verbose] >     printfn "Is DST: %b"

00:00:49 #2595 [Verbose] > (timeZoneInfo.IsDaylightSavingTime(dateTimeWithZone.DateTime.DateTime))

00:00:49 #2596 [Verbose] >     printfn "v1: %s" (dateTimeWithZone.TimeZone.GetUtcOffset(now) |> string)

00:00:49 #2597 [Verbose] >     printfn "v2: %s" (dateTimeWithZone.TimeZone |> string)

00:00:49 #2598 [Verbose] > with ex ->

00:00:49 #2599 [Verbose] >     printfn "error: %A" ex

00:00:49 #2600 [Verbose] >

00:00:49 #2601 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:49 #2602 [Verbose] > #r

00:00:49 #2603 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

00:00:49 #2604 [Verbose] > spNetCore.Html.Abstractions.dll"

00:00:49 #2605 [Verbose] > #r

00:00:49 #2606 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:49 #2607 [Verbose] > otNet.Interactive.dll"

00:00:49 #2608 [Verbose] > #r

00:00:49 #2609 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:49 #2610 [Verbose] > otNet.Interactive.FSharp.dll"

00:00:49 #2611 [Verbose] > #r

00:00:49 #2612 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:49 #2613 [Verbose] > otNet.Interactive.Formatting.dll"

00:00:49 #2614 [Verbose] > open System

00:00:49 #2615 [Verbose] > open System.IO

00:00:49 #2616 [Verbose] > open System.Text

00:00:49 #2617 [Verbose] > open Microsoft.DotNet.Interactive.Formatting

00:00:50 #2618 [Verbose] >

00:00:50 #2619 [Verbose] > ╭─[ 9.90s - stdout ]───────────────────────────────────────────────────────────╮

00:00:50 #2620 [Verbose] > │ ()                                                                           │

00:00:50 #2621 [Verbose] > │                                                                              │

00:00:50 #2622 [Verbose] > │                                                                              │

00:00:50 #2623 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:50 #2624 [Verbose] >

00:00:50 #2625 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:50 #2626 [Verbose] > open rust_operators

00:00:50 #2627 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4627-2766-2e635551c7c5\main.spi

00:00:50 #2628 [Verbose] >

00:00:50 #2629 [Verbose] > ╭─[ 9.90s - stdout ]───────────────────────────────────────────────────────────╮

00:00:50 #2630 [Verbose] > │ ()                                                                           │

00:00:50 #2631 [Verbose] > │                                                                              │

00:00:50 #2632 [Verbose] > │                                                                              │

00:00:50 #2633 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:50 #2634 [Verbose] >

00:00:50 #2635 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:50 #2636 [Verbose] > open rust_operators

00:00:51 #2637 [Verbose] >

00:00:51 #2638 [Verbose] > ╭─[ 373.07ms - stdout ]────────────────────────────────────────────────────────╮

00:00:51 #2639 [Verbose] > │ ()                                                                           │

00:00:51 #2640 [Verbose] > │                                                                              │

00:00:51 #2641 [Verbose] > │                                                                              │

00:00:51 #2642 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:51 #2643 [Verbose] >

00:00:51 #2644 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:51 #2645 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:51 #2646 [Verbose] > │ ## default_value                                                             │

00:00:51 #2647 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:51 #2648 [Verbose] >

00:00:51 #2649 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:51 #2650 [Verbose] > inl default_value d =

00:00:51 #2651 [Verbose] >     optionm.defaultWith d

00:00:51 #2652 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4653-5353-5e7aeaae930c\main.spi

00:00:51 #2653 [Verbose] >

00:00:51 #2654 [Verbose] >

00:00:51 #2655 [Verbose] >

00:00:54 #2656 [Verbose] >

00:00:55 #2657 [Verbose] >

00:00:55 #2658 [Verbose] > ╭─[ 10.13s - stdout ]──────────────────────────────────────────────────────────╮

00:00:55 #2659 [Verbose] > │ ()                                                                           │

00:00:55 #2660 [Verbose] > │                                                                              │

00:00:55 #2661 [Verbose] > │                                                                              │

00:00:55 #2662 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:55 #2663 [Verbose] >

00:00:55 #2664 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:55 #2665 [Verbose] > open rust_operators

00:00:55 #2666 [Verbose] >

00:00:55 #2667 [Verbose] > ╭─[ 272.12ms - stdout ]────────────────────────────────────────────────────────╮

00:00:55 #2668 [Verbose] > │ ()                                                                           │

00:00:55 #2669 [Verbose] > │                                                                              │

00:00:55 #2670 [Verbose] > │                                                                              │

00:00:55 #2671 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:55 #2672 [Verbose] >

00:00:55 #2673 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:55 #2674 [Verbose] > inl types () =

00:00:55 #2675 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class

00:00:55 #2676 [Verbose] > end"

00:00:55 #2677 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"base64::DecodeError\")>]]

00:00:55 #2678 [Verbose] > type base64_DecodeError = class end"

00:00:55 #2679 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"borsh::io::Error\")>]] type

00:00:55 #2680 [Verbose] > borsh_io_Error = class end"

00:00:55 #2681 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"js_sys::JsString\")>]] type

00:00:55 #2682 [Verbose] > js_sys_JsString = class end"

00:00:55 #2683 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Error\")>]] type

00:00:55 #2684 [Verbose] > serde_json_Error = class end"

00:00:55 #2685 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Value\")>]] type

00:00:55 #2686 [Verbose] > serde_json_Value = class end"

00:00:55 #2687 [Verbose] >     global "[[<Fable.Core.Erase;

00:00:55 #2688 [Verbose] > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]] type serde_wasm_bindgen_Error

00:00:55 #2689 [Verbose] > = class end"

00:00:55 #2690 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::str::Utf8Error\")>]]

00:00:55 #2691 [Verbose] > type std_str_Utf8Error = class end"

00:00:55 #2692 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]

00:00:55 #2693 [Verbose] > type std_string_String = class end"

00:00:55 #2694 [Verbose] >

00:00:55 #2695 [Verbose] > ╭─[ 288.50ms - stdout ]────────────────────────────────────────────────────────╮

00:00:55 #2696 [Verbose] > │ ()                                                                           │

00:00:55 #2697 [Verbose] > │                                                                              │

00:00:55 #2698 [Verbose] > │                                                                              │

00:00:55 #2699 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:55 #2700 [Verbose] >

00:00:56 #2701 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4667-6714-67f65238d152\main.spi

00:00:56 #2702 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4689-8953-883f38cb5e85\main.spi

00:00:56 #2703 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4697-9731-9efb6a7c61cc\main.spi

00:00:56 #2704 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4719-1986-129fa090a07c\main.spi

00:00:56 #2705 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4751-5132-5dd091426ecd\main.spi

00:00:56 #2706 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4817-1714-1cc04ee7c0ff\main.spi

00:00:56 #2707 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4735-3505-372bff5375e1\main.spi

00:00:56 #2708 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-4881-8198-8674b01e8667\main.spi

00:00:56 #2709 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5067-6778-6432ca9e9b2f\main.spi

00:00:56 #2710 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5096-9693-940f00f0c538\main.spi

00:00:56 #2711 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5124-2421-22e537cfbbfe\main.spi

00:00:56 #2712 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5155-5557-55a292ac782b\main.spi

00:00:56 #2713 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5191-9185-937e3b62d8b2\main.spi

00:00:57 #2714 [Verbose] > ╭─[ 359.14ms - stdout ]────────────────────────────────────────────────────────╮

00:00:57 #2715 [Verbose] > │ ()                                                                           │

00:00:57 #2716 [Verbose] > │                                                                              │

00:00:57 #2717 [Verbose] > │                                                                              │

00:00:57 #2718 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2719 [Verbose] >

00:00:57 #2720 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #2721 [Verbose] > inl types () =

00:00:57 #2722 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0]]\")>]] type Slice<'T> =

00:00:57 #2723 [Verbose] > class end"

00:00:57 #2724 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0; $1]]\")>]] type

00:00:57 #2725 [Verbose] > Slice'<'T, 'U> = class end"

00:00:57 #2726 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Vec<$0>\")>]] type Vec<'T> =

00:00:57 #2727 [Verbose] > class end"

00:00:57 #2728 [Verbose] >

00:00:57 #2729 [Verbose] > ╭─[ 309.33ms - stdout ]────────────────────────────────────────────────────────╮

00:00:57 #2730 [Verbose] > │ ()                                                                           │

00:00:57 #2731 [Verbose] > │                                                                              │

00:00:57 #2732 [Verbose] > │                                                                              │

00:00:57 #2733 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2734 [Verbose] >

00:00:57 #2735 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #2736 [Verbose] > nominal slice t = $"Slice<`t>"

00:00:57 #2737 [Verbose] > nominal slice' t u = $"Slice'<`t, `u>"

00:00:57 #2738 [Verbose] > nominal vec t = $"Vec<`t>"

00:00:57 #2739 [Verbose] >

00:00:57 #2740 [Verbose] > ╭─[ 306.71ms - stdout ]────────────────────────────────────────────────────────╮

00:00:57 #2741 [Verbose] > │ ()                                                                           │

00:00:57 #2742 [Verbose] > │                                                                              │

00:00:57 #2743 [Verbose] > │                                                                              │

00:00:57 #2744 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2745 [Verbose] >

00:00:57 #2746 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:57 #2747 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:57 #2748 [Verbose] > │ ## append                                                                    │

00:00:57 #2749 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2750 [Verbose] >

00:00:57 #2751 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #2752 [Verbose] > instance append a dim {int; number} t =

00:00:57 #2753 [Verbose] >     am.append

00:00:57 #2754 [Verbose] >

00:00:57 #2755 [Verbose] > ╭─[ 288.53ms - stdout ]────────────────────────────────────────────────────────╮

00:00:57 #2756 [Verbose] > │ ()                                                                           │

00:00:57 #2757 [Verbose] > │                                                                              │

00:00:57 #2758 [Verbose] > │                                                                              │

00:00:57 #2759 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2760 [Verbose] >

00:00:57 #2761 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:57 #2762 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:57 #2763 [Verbose] > │ ## /@                                                                        │

00:00:57 #2764 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2765 [Verbose] >

00:00:57 #2766 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #2767 [Verbose] > inl (/@) a b =

00:00:57 #2768 [Verbose] >     b |> append a

00:00:58 #2769 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5351-5176-5733b13edd62\main.spi

00:00:58 #2770 [Verbose] >

00:00:58 #2771 [Verbose] > ╭─[ 326.75ms - stdout ]────────────────────────────────────────────────────────╮

00:00:58 #2772 [Verbose] > │ ()                                                                           │

00:00:58 #2773 [Verbose] > │                                                                              │

00:00:58 #2774 [Verbose] > │                                                                              │

00:00:58 #2775 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:58 #2776 [Verbose] >

00:00:58 #2777 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:58 #2778 [Verbose] > // // test

00:00:58 #2779 [Verbose] >

00:00:58 #2780 [Verbose] > a ;[[ "a"; "b" ]] /@ a ;[[ "c"; "d" ]]

00:00:58 #2781 [Verbose] > |> _assert_eq (a ;[[ "a"; "b"; "c"; "d" ]] : _ i32 _)

00:00:58 #2782 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5384-8485-82f85a6edfbc\main.spi

00:00:58 #2783 [Verbose] > ╭─[ 303.37ms - stdout ]────────────────────────────────────────────────────────╮

00:00:58 #2784 [Verbose] > │ ()                                                                           │

00:00:58 #2785 [Verbose] > │                                                                              │

00:00:58 #2786 [Verbose] > │                                                                              │

00:00:58 #2787 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:58 #2788 [Verbose] >

00:00:58 #2789 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:58 #2790 [Verbose] > // // test

00:00:58 #2791 [Verbose] >

00:00:58 #2792 [Verbose] > None

00:00:58 #2793 [Verbose] > |> default_value 3i32

00:00:58 #2794 [Verbose] > |> _assert_eq 3i32

00:00:58 #2795 [Verbose] >

00:00:58 #2796 [Verbose] > ╭─[ 1.84s - stdout ]───────────────────────────────────────────────────────────╮

00:00:58 #2797 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:58 #2798 [Verbose] > │     let v0 : string = $"%A{3}"                                               │

00:00:58 #2799 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:58 #2800 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3} / expected: %A{3}"          │

00:00:58 #2801 [Verbose] > │     ()                                                                       │

00:00:58 #2802 [Verbose] > │ method0()                                                                    │

00:00:58 #2803 [Verbose] > │                                                                              │

00:00:58 #2804 [Verbose] > │ 3                                                                            │

00:00:58 #2805 [Verbose] > │                                                                              │

00:00:58 #2806 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:58 #2807 [Verbose] >

00:00:58 #2808 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:58 #2809 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:58 #2810 [Verbose] > │ ## (/??)                                                                     │

00:00:58 #2811 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:58 #2812 [Verbose] >

00:00:58 #2813 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:58 #2814 [Verbose] > inl (/??) a b =

00:00:58 #2815 [Verbose] >     a |> default_value b

00:00:58 #2816 [Verbose] >

00:00:58 #2817 [Verbose] > ╭─[ 297.19ms - stdout ]────────────────────────────────────────────────────────╮

00:00:58 #2818 [Verbose] > │ ()                                                                           │

00:00:58 #2819 [Verbose] > │                                                                              │

00:00:58 #2820 [Verbose] > │                                                                              │

00:00:58 #2821 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:58 #2822 [Verbose] >

00:00:58 #2823 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:58 #2824 [Verbose] > // // test

00:00:58 #2825 [Verbose] >

00:00:58 #2826 [Verbose] > None /?? 3i32

00:00:58 #2827 [Verbose] > |> _assert_eq 3i32

00:00:59 #2828 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5455-5563-565d1277bff6\main.spi

00:00:59 #2829 [Verbose] >

00:00:59 #2830 [Verbose] > ╭─[ 5.79s - stdout ]───────────────────────────────────────────────────────────╮

00:00:59 #2831 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:59 #2832 [Verbose] > │     let v0 : string = $"%A{3}"                                               │

00:00:59 #2833 [Verbose] > │     System.Console.WriteLine v0                                              │

00:00:59 #2834 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3} / expected: %A{3}"          │

00:00:59 #2835 [Verbose] > │     ()                                                                       │

00:00:59 #2836 [Verbose] > │ method0()                                                                    │

00:00:59 #2837 [Verbose] > │                                                                              │

00:00:59 #2838 [Verbose] > │ 3                                                                            │

00:00:59 #2839 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5492-9232-9753ba4aa31b\main.spi

00:00:59 #2840 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5517-1785-1de1df69c5a3\main.spi

00:01:00 #2841 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5494-9402-979a7dcbecb5\main.spi

00:01:00 #2842 [Verbose] >

00:01:00 #2843 [Verbose] > ╭─[ 15.34s - return value ]────────────────────────────────────────────────────╮

00:01:00 #2844 [Verbose] > │ .rs output:                                                                  │

00:01:00 #2845 [Verbose] > │ true                                                                         │

00:01:00 #2846 [Verbose] > │                                                                              │

00:01:00 #2847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2848 [Verbose] >

00:01:00 #2849 [Verbose] > ╭─[ 15.34s - stdout ]──────────────────────────────────────────────────────────╮

00:01:00 #2850 [Verbose] > │                                                                              │

00:01:00 #2851 [Verbose] > │ .fsx:                                                                        │

00:01:00 #2852 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:01:00 #2853 [Verbose] > │     v0                                                                       │

00:01:00 #2854 [Verbose] > │ and method0 () : unit =                                                      │

00:01:00 #2855 [Verbose] > │     let mutable result = None                                                │

00:01:00 #2856 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:00 #2857 [Verbose] > │     let v0 : uint8 = 1uy                                                     │

00:01:00 #2858 [Verbose] > │     v0                                                                       │

00:01:00 #2859 [Verbose] > │     #endif                                                                   │

00:01:00 #2860 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:00 #2861 [Verbose] > │     let v1 : uint8 = 2uy                                                     │

00:01:00 #2862 [Verbose] > │     v1                                                                       │

00:01:00 #2863 [Verbose] > │     #endif                                                                   │

00:01:00 #2864 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:00 #2865 [Verbose] > │     let v2 : uint8 = 2uy                                                     │

00:01:00 #2866 [Verbose] > │     v2                                                                       │

00:01:00 #2867 [Verbose] > │     #endif                                                                   │

00:01:00 #2868 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:00 #2869 [Verbose] > │     let v3 : uint8 = 2uy                                                     │

00:01:00 #2870 [Verbose] > │     v3                                                                       │

00:01:00 #2871 [Verbose] > │     #endif                                                                   │

00:01:00 #2872 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:00 #2873 [Verbose] > │     let v4 : uint8 = 2uy                                                     │

00:01:00 #2874 [Verbose] > │     v4                                                                       │

00:01:00 #2875 [Verbose] > │     #endif                                                                   │

00:01:00 #2876 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:00 #2877 [Verbose] > │     let v5 : uint8 = result |> Option.get                                    │

00:01:00 #2878 [Verbose] > │     let v6 : bool = 1uy = v5                                                 │

00:01:00 #2879 [Verbose] > │     let v7 : string = $"%A{v6}"                                              │

00:01:00 #2880 [Verbose] > │     System.Console.WriteLine v7                                              │

00:01:00 #2881 [Verbose] > │     let v9 : bool =                                                          │

00:01:00 #2882 [Verbose] > │         if v6 then                                                           │

00:01:00 #2883 [Verbose] > │             true                                                             │

00:01:00 #2884 [Verbose] > │         else                                                                 │

00:01:00 #2885 [Verbose] > │             method1(v6)                                                      │

00:01:00 #2886 [Verbose] > │     let v10 : string = $"__expect / actual: %A{v6} / expected: %A{true}"     │

00:01:00 #2887 [Verbose] > │     let v11 : bool = v9 = false                                              │

00:01:00 #2888 [Verbose] > │     if v11 then                                                              │

00:01:00 #2889 [Verbose] > │         failwith<unit> v10                                                   │

00:01:00 #2890 [Verbose] > │ method0()                                                                    │

00:01:00 #2891 [Verbose] > │                                                                              │

00:01:00 #2892 [Verbose] > │                                                                              │

00:01:00 #2893 [Verbose] > │ .rs:                                                                         │

00:01:00 #2894 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:01:00 #2895 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:01:00 #2896 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:01:00 #2898 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #2897 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:01:00 #2899 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #2900 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #2901 [Verbose] > #r

00:01:00 #2902 [Verbose] > // // test

00:01:00 #2903 [Verbose] > │ # listm                                                                      │

00:01:00 #2904 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:01:00 #2905 [Verbose] >

00:01:00 #2907 [Verbose] > otNet.Interactive.FSharp.dll"

00:01:00 #2906 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2908 [Verbose] > inl types () =

00:01:00 #2909 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

00:01:00 #2910 [Verbose] >

00:01:00 #2911 [Verbose] >     rust.types ()

00:01:00 #2912 [Verbose] > #r

00:01:00 #2913 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #2914 [Verbose] >     types ()

00:01:00 #2915 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:01:00 #2916 [Verbose] > // // test

00:01:00 #2917 [Verbose] >

00:01:00 #2918 [Verbose] > otNet.Interactive.dll"

00:01:00 #2919 [Verbose] >

00:01:00 #2920 [Verbose] > ╭─[ 309.48ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #2921 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel

00:01:00 #2922 [Verbose] > open testing

00:01:00 #2923 [Verbose] > │ ()                                                                           │

00:01:00 #2924 [Verbose] >

00:01:00 #2925 [Verbose] >

00:01:00 #2926 [Verbose] > │                                                                              │

00:01:00 #2927 [Verbose] > ╭─[ 3.41s - stdout ]───────────────────────────────────────────────────────────╮

00:01:00 #2928 [Verbose] > prototype append t : t -> t -> t

00:01:00 #2929 [Verbose] > │                                                                              │

00:01:00 #2930 [Verbose] > │ DateTime: 2024-03-30 1:36:48 AM -04:00                                       │

00:01:00 #2932 [Verbose] > │ Time Zone: (UTC-04:00) Cuiaba                                                │

00:01:00 #2931 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2933 [Verbose] > │                                                                              │

00:01:00 #2934 [Verbose] > │ Is DST: false                                                                │

00:01:00 #2935 [Verbose] >

00:01:00 #2936 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2937 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #2938 [Verbose] >

00:01:00 #2939 [Verbose] > │ v1: -04:00:00                                                                │

00:01:00 #2940 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #2941 [Verbose] > │ v2: (UTC-04:00) Cuiaba                                                       │

00:01:00 #2942 [Verbose] > nominal base64_decode_error = $"base64_DecodeError"

00:01:00 #2943 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #2944 [Verbose] > │                                                                              │

00:01:00 #2945 [Verbose] > nominal borsh_io_error = $"borsh_io_Error"

00:01:00 #2946 [Verbose] > │ ## default_with                                                              │

00:01:00 #2947 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2948 [Verbose] > nominal utf8_error = $"std_str_Utf8Error"

00:01:00 #2949 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:01:00 #2952 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2950 [Verbose] >

00:01:00 #2951 [Verbose] > nominal json_value = $"serde_json_Value"

00:01:00 #2953 [Verbose] >

00:01:00 #2954 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #2955 [Verbose] > nominal json_error = $"serde_json_Error"

00:01:00 #2956 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #2957 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #2958 [Verbose] > nominal serde_wasm_bindgen_error = $"serde_wasm_bindgen_Error"

00:01:00 #2959 [Verbose] > inl default_with fn =

00:01:00 #2960 [Verbose] > │ ## main                                                                      │

00:01:00 #2961 [Verbose] > nominal std_string = $"std_string_String"

00:01:00 #2962 [Verbose] >     function Some x => x | None => fn ()

00:01:00 #2963 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2964 [Verbose] > nominal js_string = $"js_sys_JsString"

00:01:00 #2965 [Verbose] >

00:01:00 #2966 [Verbose] >

00:01:00 #2967 [Verbose] > nominal str = $"Str"

00:01:00 #2968 [Verbose] > ╭─[ 256.60ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #2969 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #2970 [Verbose] >

00:01:00 #2971 [Verbose] > │ ()                                                                           │

00:01:00 #2972 [Verbose] > inl main () =

00:01:00 #2973 [Verbose] > ╭─[ 355.59ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #2974 [Verbose] > │                                                                              │

00:01:00 #2975 [Verbose] >     $"let date_time_guid_from_date_time x = !date_time_guid_from_date_time x" :

00:01:00 #2976 [Verbose] > │ ()                                                                           │

00:01:00 #2977 [Verbose] > │                                                                              │

00:01:00 #2978 [Verbose] > ()

00:01:00 #2979 [Verbose] > │                                                                              │

00:01:00 #2980 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2981 [Verbose] >     $"let date_time_from_guid x = !date_time_from_guid x" : ()

00:01:00 #2982 [Verbose] > │                                                                              │

00:01:00 #2983 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:01:00 #2984 [Verbose] >

00:01:00 #2985 [Verbose] >     $"let ticks_guid_from_ticks x = !ticks_guid_from_ticks x" : ()

00:01:00 #2986 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #2987 [Verbose] >     $"let ticks_from_guid x = !ticks_from_guid x" : ()

00:01:00 #2988 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #2989 [Verbose] >

00:01:00 #2990 [Verbose] >     $"let new_guid_from_date_time x = !new_guid_from_date_time x" : ()

00:01:00 #2991 [Verbose] > // // test

00:01:00 #2992 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #2993 [Verbose] >     $"let new_guid_from_ticks x = !new_guid_from_ticks x" : ()

00:01:00 #2994 [Verbose] >

00:01:00 #2995 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #2996 [Verbose] >

00:01:00 #2997 [Verbose] > None

00:01:00 #2998 [Verbose] > │ ## contains                                                                  │

00:01:00 #2999 [Verbose] > |> default_with (fun () => 3i32)

00:01:00 #3000 [Verbose] > ╭─[ 582.99ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #3001 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3002 [Verbose] > |> _assert_eq 3i32

00:01:00 #3003 [Verbose] > │ let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =   │

00:01:00 #3004 [Verbose] >

00:01:00 #3005 [Verbose] >

00:01:00 #3006 [Verbose] > │     let v2 : string = v0.ToString ()                                         │

00:01:00 #3007 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #3008 [Verbose] > ╭─[ 240.84ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #3009 [Verbose] > │     let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"                │

00:01:00 #3010 [Verbose] > inl contains (value : string) (s : string) : bool =

00:01:00 #3011 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:00 #3012 [Verbose] > │     let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}"             │

00:01:00 #3014 [Verbose] > │     let v0 : string = $"%A{3}"                                               │

00:01:00 #3013 [Verbose] >     $"!s.Contains !value"

00:01:00 #3015 [Verbose] > │     v4                                                                       │

00:01:00 #3016 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:00 #3017 [Verbose] >

00:01:00 #3018 [Verbose] > │ and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =      │

00:01:00 #3019 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3} / expected: %A{3}"          │

00:01:00 #3020 [Verbose] > ╭─[ 356.63ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #3021 [Verbose] > │     closure1(v0)                                                             │

00:01:00 #3022 [Verbose] > │     ()                                                                       │

00:01:00 #3023 [Verbose] > │ ()                                                                           │

00:01:00 #3024 [Verbose] > │ and closure5 (v0 : string, v1 : string) (v2 : string) : string =             │

00:01:00 #3025 [Verbose] > │ method0()                                                                    │

00:01:00 #3026 [Verbose] > │                                                                              │

00:01:00 #3027 [Verbose] > │     let v3 : string = v2.Replace (v0, v1)                                    │

00:01:00 #3028 [Verbose] > │                                                                              │

00:01:00 #3029 [Verbose] > │                                                                              │

00:01:00 #3030 [Verbose] > │     v3                                                                       │

00:01:00 #3032 [Verbose] > │ 3                                                                            │

00:01:00 #3031 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3033 [Verbose] > │ and closure4 (v0 : string) (v1 : string) : (string -> string) =              │

00:01:00 #3034 [Verbose] > │                                                                              │

00:01:00 #3035 [Verbose] >

00:01:00 #3036 [Verbose] > │     closure5(v0, v1)                                                         │

00:01:00 #3037 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3039 [Verbose] > │ and closure3 () (v0 : string) : (string -> (string -> string)) =             │

00:01:00 #3038 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #3040 [Verbose] >

00:01:00 #3041 [Verbose] > │     closure4(v0)                                                             │

00:01:00 #3042 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #3043 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #3044 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #3045 [Verbose] > │ ## choose                                                                    │

00:01:00 #3046 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3047 [Verbose] > │ ## ends_with                                                                 │

00:01:00 #3048 [Verbose] >

00:01:00 #3049 [Verbose] > │ and method0 () : (string -> (string -> (string -> string))) =                │

00:01:00 #3051 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #3051 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:01:00 #3052 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3053 [Verbose] > inl choose fn a b =

00:01:00 #3054 [Verbose] >     match a, b with

00:01:00 #3055 [Verbose] >     | Some x, Some y => fn x y |> Some

00:01:00 #3056 [Verbose] >     | _ => None

00:01:00 #3057 [Verbose] > │     closure3()                                                               │

00:01:00 #3058 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:01:00 #3059 [Verbose] > │ and closure2 () (v0 : System.Guid) : System.DateTime =                       │

00:01:00 #3060 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:01:00 #3061 [Verbose] > │     let v1 : string = v0.ToString ()                                         │

00:01:00 #3062 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:01:00 #3063 [Verbose] > │     let v2 : (string -> (string -> (string -> string))) = method0()          │

00:01:00 #3064 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:01:00 #3066 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:01:00 #3066 [Verbose] > │     let mutable result = None                                                │

00:01:00 #3068 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:01:00 #3068 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:00 #3069 [Verbose] > │     let v3 : System.DateTime = System.DateTime.Parse (v1.[..24] |> v2 "-"    │

00:01:00 #3070 [Verbose] > │         use super::*;                                                        │

00:01:00 #3071 [Verbose] > │ "")                                                                          │

00:01:00 #3072 [Verbose] > │         use fable_library_rust::Native_::MutCell;                            │

00:01:00 #3073 [Verbose] > │     v3                                                                       │

00:01:00 #3074 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:01:00 #3075 [Verbose] >

00:01:00 #3076 [Verbose] > │     #endif                                                                   │

00:01:00 #3077 [Verbose] > │         use fable_library_rust::Option_::getValue;                           │

00:01:00 #3078 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:00 #3079 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:01:00 #3080 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #3081 [Verbose] > │     let v4 : System.DateTime = System.DateTime.Parse (v1.[..24] |> v2 "-"    │

00:01:00 #3082 [Verbose] > │         use fable_library_rust::String_::sprintf;                            │

00:01:00 #3083 [Verbose] > │ "")                                                                          │

00:01:00 #3084 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:01:00 #3085 [Verbose] > inl ends_with (value : string) (s : string) : bool =

00:01:00 #3086 [Verbose] > │     v4                                                                       │

00:01:00 #3087 [Verbose] > │         pub fn method1(v0: bool) -> bool { v0 }                              │

00:01:00 #3088 [Verbose] >     $"!s.EndsWith !value"

00:01:00 #3089 [Verbose] > │     #endif                                                                   │

00:01:00 #3090 [Verbose] > │         pub fn method0() {                                                   │

00:01:00 #3091 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:00 #3092 [Verbose] > │             let result: MutCell<Option<u8>> = MutCell::new(None::<u8>);      │

00:01:00 #3093 [Verbose] > │     let v5 : System.DateTime = System.DateTime.ParseExact (v1.[..24] |> v2   │

00:01:00 #3094 [Verbose] > │             result.set(Some(1_u8));                                          │

00:01:00 #3095 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:01:00 #3096 [Verbose] > │             {                                                                │

00:01:00 #3097 [Verbose] > │     v5                                                                       │

00:01:00 #3098 [Verbose] > │                 let v6: bool = 1_u8 == getValue(result.get().clone());       │

00:01:00 #3099 [Verbose] > │     #endif                                                                   │

00:01:00 #3100 [Verbose] > │                 let v7: string = sprintf!("{:?}", v6);                       │

00:01:00 #3101 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:00 #3102 [Verbose] > │                 printfn!("{0}", v7);                                         │

00:01:00 #3103 [Verbose] > │     let v6 : System.DateTime = System.DateTime.ParseExact (v1.[..24] |> v2   │

00:01:00 #3104 [Verbose] > │                 if (if v6 { true } else { Spiral_eval::method1(v6) }) ==     │

00:01:00 #3105 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:01:00 #3106 [Verbose] > │ false                                                                        │

00:01:00 #3107 [Verbose] > │     v6                                                                       │

00:01:00 #3108 [Verbose] > │                    {                                                         │

00:01:00 #3109 [Verbose] > │     #endif                                                                   │

00:01:00 #3110 [Verbose] > │                     panic!("{}",                                             │

00:01:00 #3111 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:00 #3112 [Verbose] > │                            sprintf!("__expect / actual: {:?} / expected:     │

00:01:00 #3113 [Verbose] > │     let v7 : System.DateTime = System.DateTime.ParseExact (v1.[..24] |> v2   │

00:01:00 #3114 [Verbose] > │ {:?}", v6, true));                                                           │

00:01:00 #3115 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null)                                       │

00:01:00 #3116 [Verbose] > │                 }                                                            │

00:01:00 #3117 [Verbose] > │     v7                                                                       │

00:01:00 #3118 [Verbose] > │             }                                                                │

00:01:00 #3119 [Verbose] > │     #endif                                                                   │

00:01:00 #3120 [Verbose] > │         }                                                                    │

00:01:00 #3121 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:00 #3122 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:01:00 #3123 [Verbose] > │     let v8 : System.DateTime = result |> Option.get                          │

00:01:00 #3124 [Verbose] > │     }                                                                        │

00:01:00 #3125 [Verbose] > │     v8                                                                       │

00:01:00 #3126 [Verbose] > │ }                                                                            │

00:01:00 #3127 [Verbose] > │ and closure7 (v0 : System.Guid) (v1 : int64) : System.Guid =                 │

00:01:00 #3128 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:01:00 #3129 [Verbose] > │     let v2 : string = v0.ToString ()                                         │

00:01:00 #3130 [Verbose] > │                                                                              │

00:01:00 #3131 [Verbose] > │     let v3 : string = v1.ToString ()                                         │

00:01:00 #3132 [Verbose] > │                                                                              │

00:01:00 #3133 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3134 [Verbose] > │     let v4 : string = v3.PadLeft (18, '0')                                   │

00:01:00 #3135 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[      │

00:01:00 #3136 [Verbose] >

00:01:00 #3137 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}"                                           │

00:01:00 #3139 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:00 #3138 [Verbose] > │     v5                                                                       │

00:01:00 #3140 [Verbose] > │ and closure6 () (v0 : System.Guid) : (int64 -> System.Guid) =                │

00:01:00 #3141 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:00 #3142 [Verbose] > │     closure7(v0)                                                             │

00:01:00 #3143 [Verbose] > │ ## nameof                                                                    │

00:01:00 #3144 [Verbose] > │ and closure8 () (v0 : System.Guid) : int64 =                                 │

00:01:00 #3145 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3146 [Verbose] > │     let v1 : string = v0.ToString ()                                         │

00:01:00 #3147 [Verbose] > │     let v2 : int64 = int64 $"{v1.[0..7]}{v1.[9..12]}{v1.[14..17]}{v1.[       │

00:01:00 #3148 [Verbose] > │ 19..20]}"                                                                    │

00:01:00 #3149 [Verbose] > │     v2                                                                       │

00:01:00 #3150 [Verbose] > │ and closure9 () (v0 : System.DateTime) : System.Guid =                       │

00:01:00 #3151 [Verbose] > │     let v1 : System.Guid = System.Guid.NewGuid ()                            │

00:01:00 #3152 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:01:00 #3153 [Verbose] > │     let v3 : string = v0.ToString "yyyyMMdd-HHmm-ssff-ffff-f"                │

00:01:00 #3154 [Verbose] > │     let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}"             │

00:01:00 #3155 [Verbose] > │     v4                                                                       │

00:01:00 #3156 [Verbose] >

00:01:00 #3157 [Verbose] > │ and closure10 () (v0 : int64) : System.Guid =                                │

00:01:00 #3158 [Verbose] > │     let v1 : System.Guid = System.Guid.NewGuid ()                            │

00:01:00 #3159 [Verbose] > │     let v2 : string = v1.ToString ()                                         │

00:01:00 #3160 [Verbose] > │     let v3 : string = v0.ToString ()                                         │

00:01:00 #3161 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #3162 [Verbose] > │     let v4 : string = v3.PadLeft (18, '0')                                   │

00:01:00 #3163 [Verbose] > │     let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[      │

00:01:00 #3164 [Verbose] > inl nameof x : string =

00:01:00 #3165 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}"                                           │

00:01:00 #3166 [Verbose] > │     v5                                                                       │

00:01:00 #3167 [Verbose] >     $"nameof !x"

00:01:00 #3168 [Verbose] > │ let v0 : (System.Guid -> (System.DateTime -> System.Guid)) = closure0()      │

00:01:00 #3169 [Verbose] > │ let date_time_guid_from_date_time x = v0 x                                   │

00:01:00 #3170 [Verbose] > │ let v1 : (System.Guid -> System.DateTime) = closure2()                       │

00:01:00 #3171 [Verbose] > │ let date_time_from_guid x = v1 x                                             │

00:01:00 #3172 [Verbose] > │ let v2 : (System.Guid -> (int64 -> System.Guid)) = closure6()                │

00:01:00 #3173 [Verbose] > │ let ticks_guid_from_ticks x = v2 x                                           │

00:01:00 #3174 [Verbose] > │ let v3 : (System.Guid -> int64) = closure8()                                 │

00:01:00 #3175 [Verbose] > │ let ticks_from_guid x = v3 x                                                 │

00:01:00 #3176 [Verbose] > │ let v4 : (System.DateTime -> System.Guid) = closure9()                       │

00:01:00 #3177 [Verbose] > │ let new_guid_from_date_time x = v4 x                                         │

00:01:00 #3178 [Verbose] > │ let v5 : (int64 -> System.Guid) = closure10()                                │

00:01:00 #3179 [Verbose] > │ let new_guid_from_ticks x = v5 x                                             │

00:01:00 #3180 [Verbose] >

00:01:00 #3181 [Verbose] >

00:01:00 #3182 [Verbose] >

00:01:00 #3183 [Verbose] > ╭─[ 372.80ms - stdout ]────────────────────────────────────────────────────────╮

00:01:00 #3184 [Verbose] > │ ()                                                                           │

00:01:00 #3185 [Verbose] > │                                                                              │

00:01:00 #3186 [Verbose] > │                                                                              │

00:01:00 #3187 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:00 #3188 [Verbose] >

00:01:00 #3189 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:00 #3190 [Verbose] > // // test

00:01:00 #3191 [Verbose] >

00:01:00 #3192 [Verbose] > (Some 2i32, Some 3)

00:01:00 #3193 [Verbose] > ||> choose (+)

00:01:00 #3194 [Verbose] > |> _assert_eq (Some 5)

00:01:01 #3195 [Verbose] >

00:01:01 #3196 [Verbose] > ╭─[ 3.40s - stdout ]───────────────────────────────────────────────────────────╮

00:01:01 #3197 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:01 #3198 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) =                           │

00:01:01 #3199 [Verbose] > │     v0                                                                       │

00:01:01 #3200 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:01:01 #3201 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:01 #3202 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:01 #3203 [Verbose] > │     v3                                                                       │

00:01:01 #3204 [Verbose] > │ and method3 (v0 : (string []), v1 : (string []), v2 : int32) : bool =        │

00:01:01 #3205 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:01:01 #3206 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:01 #3207 [Verbose] > │     if v4 then                                                               │

00:01:01 #3208 [Verbose] > │         let v5 : string = v0.[int v2]                                        │

00:01:01 #3209 [Verbose] > │         let v6 : string = v1.[int v2]                                        │

00:01:01 #3210 [Verbose] > │         let v7 : bool = v5 = v6                                              │

00:01:01 #3211 [Verbose] > │         if v7 then                                                           │

00:01:01 #3212 [Verbose] > │             let v8 : int32 = v2 + 1                                          │

00:01:01 #3213 [Verbose] > │             method3(v0, v1, v8)                                              │

00:01:01 #3214 [Verbose] > │         else                                                                 │

00:01:01 #3215 [Verbose] > │             false                                                            │

00:01:01 #3216 [Verbose] > │     else                                                                     │

00:01:01 #3217 [Verbose] > │         true                                                                 │

00:01:01 #3218 [Verbose] > │ and method4 (v0 : bool) : bool =                                             │

00:01:01 #3219 [Verbose] > │     v0                                                                       │

00:01:01 #3220 [Verbose] > │ and method0 () : unit =                                                      │

00:01:01 #3221 [Verbose] > │     let v0 : string = "a"                                                    │

00:01:01 #3222 [Verbose] > │     let v1 : string = "b"                                                    │

00:01:01 #3223 [Verbose] > │     let v2 : (string []) = [|v0; v1|]                                        │

00:01:01 #3224 [Verbose] > │     let v3 : (string []) = method1(v2)                                       │

00:01:01 #3225 [Verbose] > │     let v4 : string = "c"                                                    │

00:01:01 #3226 [Verbose] > │     let v5 : string = "d"                                                    │

00:01:01 #3227 [Verbose] > │     let v6 : (string []) = [|v4; v5|]                                        │

00:01:01 #3228 [Verbose] > │     let v7 : (string []) = method1(v6)                                       │

00:01:01 #3229 [Verbose] > │     let v8 : int32 = v3.Length                                               │

00:01:01 #3230 [Verbose] > │     let v9 : int32 = v7.Length                                               │

00:01:01 #3231 [Verbose] > │     let v10 : int32 = v8 + v9                                                │

00:01:01 #3232 [Verbose] > │     let v11 : (string []) = Array.zeroCreate<string> (v10)                   │

00:01:01 #3233 [Verbose] > │     let v12 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:01 #3234 [Verbose] > │     while method2(v10, v12) do                                               │

00:01:01 #3235 [Verbose] > │         let v14 : int32 = v12.l0                                             │

00:01:01 #3236 [Verbose] > │         let v15 : bool = v14 < v8                                            │

00:01:01 #3237 [Verbose] > │         let v19 : string =                                                   │

00:01:01 #3238 [Verbose] > │             if v15 then                                                      │

00:01:01 #3239 [Verbose] > │                 let v16 : string = v3.[int v14]                              │

00:01:01 #3240 [Verbose] > │                 v16                                                          │

00:01:01 #3241 [Verbose] > │             else                                                             │

00:01:01 #3242 [Verbose] > │                 let v17 : int32 = v14 - v8                                   │

00:01:01 #3243 [Verbose] > │                 let v18 : string = v7.[int v17]                              │

00:01:01 #3244 [Verbose] > │                 v18                                                          │

00:01:01 #3245 [Verbose] > │         v11.[int v14] <- v19                                                 │

00:01:01 #3246 [Verbose] > │         let v20 : int32 = v14 + 1                                            │

00:01:01 #3247 [Verbose] > │         v12.l0 <- v20                                                        │

00:01:01 #3248 [Verbose] > │         ()                                                                   │

00:01:01 #3249 [Verbose] > │     let v21 : (string []) = [|v0; v1; v4; v5|]                               │

00:01:01 #3250 [Verbose] > │     let v22 : (string []) = method1(v21)                                     │

00:01:01 #3251 [Verbose] > │     let v23 : string = $"%A{v11}"                                            │

00:01:01 #3252 [Verbose] > │     System.Console.WriteLine v23                                             │

00:01:01 #3253 [Verbose] > │     let v24 : int32 = v11.Length                                             │

00:01:01 #3254 [Verbose] > │     let v25 : int32 = v22.Length                                             │

00:01:01 #3255 [Verbose] > │     let v26 : bool = v24 = v25                                               │

00:01:01 #3256 [Verbose] > │     let v27 : bool = v26 <> true                                             │

00:01:01 #3257 [Verbose] > │     let v30 : bool =                                                         │

00:01:01 #3258 [Verbose] > │         if v27 then                                                          │

00:01:01 #3259 [Verbose] > │             false                                                            │

00:01:01 #3260 [Verbose] > │         else                                                                 │

00:01:01 #3261 [Verbose] > │             let v28 : int32 = 0                                              │

00:01:01 #3262 [Verbose] > │             method3(v11, v22, v28)                                           │

00:01:01 #3263 [Verbose] > │     let v32 : bool =                                                         │

00:01:01 #3264 [Verbose] > │         if v30 then                                                          │

00:01:01 #3265 [Verbose] > │             true                                                             │

00:01:01 #3266 [Verbose] > │         else                                                                 │

00:01:01 #3267 [Verbose] > │             method4(v30)                                                     │

00:01:01 #3268 [Verbose] > │     let v33 : string = $"__expect / actual: %A{v11} / expected: %A{v22}"     │

00:01:01 #3269 [Verbose] > │     let v34 : bool = v32 = false                                             │

00:01:01 #3270 [Verbose] > │     if v34 then                                                              │

00:01:01 #3271 [Verbose] > │         failwith<unit> v33                                                   │

00:01:01 #3272 [Verbose] > │ method0()                                                                    │

00:01:01 #3273 [Verbose] > │                                                                              │

00:01:01 #3274 [Verbose] > │ [|"a"; "b"; "c"; "d"|]                                                       │

00:01:01 #3275 [Verbose] > │                                                                              │

00:01:01 #3276 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:01 #3277 [Verbose] >

00:01:01 #3278 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:01 #3279 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:01 #3280 [Verbose] > │ ## collect                                                                   │

00:01:01 #3281 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:01 #3282 [Verbose] >

00:01:01 #3283 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:01 #3284 [Verbose] > inl collect forall t r. (fn : t -> a i32 r) (items : a i32 t) : a i32 r =

00:01:01 #3285 [Verbose] >     items

00:01:01 #3286 [Verbose] >     |> am.map fn

00:01:01 #3287 [Verbose] >     |> am.fold (/@) (a ;[[]])

00:01:02 #3288 [Verbose] >

00:01:02 #3289 [Verbose] > │ ()                                                                           │

00:01:02 #3290 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5601-0127-0ca0ed209bba\main.spi

00:01:02 #3291 [Verbose] > │                                                                              │

00:01:02 #3292 [Verbose] > ╭─[ 326.72ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3293 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5597-9771-9e68e5569345\main.spi

00:01:02 #3294 [Verbose] > │                                                                              │

00:01:02 #3295 [Verbose] > │ ()                                                                           │

00:01:02 #3297 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3296 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5598-9862-9bc08b10790e\main.spi

00:01:02 #3298 [Verbose] > │                                                                              │

00:01:02 #3299 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5634-3472-34e9791d1236\main.spi

00:01:02 #3300 [Verbose] > │                                                                              │

00:01:02 #3301 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5634-3451-326074061b46\main.spi

00:01:02 #3302 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3303 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5634-3467-375cef5c51fc\main.spi

00:01:02 #3304 [Verbose] >

00:01:02 #3305 [Verbose] > 00:00:33 #7 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_56_169_BuildFile.json' because it is being used by another process.)

00:01:02 #3306 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3307 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5664-6432-6e5cd339b81b\main.spi

00:01:02 #3308 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3309 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5667-6720-619902303e6c\main.spi

00:01:02 #3310 [Verbose] > │ ## get_environment_variable                                                  │

00:01:02 #3311 [Verbose] > 00:00:33 #8 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_56_423_FileOpen.json' because it is being used by another process.)

00:01:02 #3312 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3313 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5730-3047-31622bb67dea\main.spi

00:01:02 #3314 [Verbose] >

00:01:02 #3315 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3316 [Verbose] > inl get_environment_variable (var : string) : string =

00:01:02 #3317 [Verbose] >     $"System.Environment.GetEnvironmentVariable !var"

00:01:02 #3318 [Verbose] >

00:01:02 #3319 [Verbose] > ╭─[ 298.68ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3320 [Verbose] > ╭─[ 283.86ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3321 [Verbose] > │ ()                                                                           │

00:01:02 #3322 [Verbose] > │ ()                                                                           │

00:01:02 #3323 [Verbose] > │                                                                              │

00:01:02 #3324 [Verbose] > │                                                                              │

00:01:02 #3325 [Verbose] > │                                                                              │

00:01:02 #3326 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3327 [Verbose] >

00:01:02 #3328 [Verbose] > │                                                                              │

00:01:02 #3329 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3330 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3331 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3332 [Verbose] > │ ## memoize                                                                   │

00:01:02 #3333 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3334 [Verbose] >

00:01:02 #3335 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3336 [Verbose] > nominal lazy t = $'Lazy<`t>'

00:01:02 #3337 [Verbose] >

00:01:02 #3338 [Verbose] >

00:01:02 #3339 [Verbose] > ╭─[ 359.83ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3340 [Verbose] > inl memoize forall t. (fn : () -> t) : () -> t =

00:01:02 #3341 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3342 [Verbose] > │ ()                                                                           │

00:01:02 #3343 [Verbose] >     inl result : lazy t = $'lazy !fn ()'

00:01:02 #3344 [Verbose] > │                                                                              │

00:01:02 #3345 [Verbose] >     fun () => $'!result.Value'

00:01:02 #3346 [Verbose] > │                                                                              │

00:01:02 #3347 [Verbose] >

00:01:02 #3348 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3349 [Verbose] > ╭─[ 305.20ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3350 [Verbose] >

00:01:02 #3351 [Verbose] > │ ()                                                                           │

00:01:02 #3352 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3353 [Verbose] > │                                                                              │

00:01:02 #3354 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3355 [Verbose] > │                                                                              │

00:01:02 #3356 [Verbose] > │ ## pad_left                                                                  │

00:01:02 #3357 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3358 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3359 [Verbose] >

00:01:02 #3360 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3361 [Verbose] > inl pad_left (total_width : i32) (padding_char : char) (s : string) : string =

00:01:02 #3362 [Verbose] >     $"!s.PadLeft (!total_width, !padding_char)"

00:01:02 #3363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3364 [Verbose] >

00:01:02 #3365 [Verbose] > │ ## choose                                                                    │

00:01:02 #3366 [Verbose] > ╭─[ 299.64ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3367 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3368 [Verbose] > │ ()                                                                           │

00:01:02 #3369 [Verbose] > │                                                                              │

00:01:02 #3370 [Verbose] > │                                                                              │

00:01:02 #3372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3371 [Verbose] >

00:01:02 #3373 [Verbose] >

00:01:02 #3374 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3375 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3376 [Verbose] > │ ## pad_right                                                                 │

00:01:02 #3377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3378 [Verbose] >

00:01:02 #3379 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3380 [Verbose] > inl pad_right (pad : i32) (s : string) : string =

00:01:02 #3381 [Verbose] >

00:01:02 #3382 [Verbose] >     $"!s.PadRight !pad"

00:01:02 #3383 [Verbose] >

00:01:02 #3384 [Verbose] > ╭─[ 324.30ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3385 [Verbose] > │ ()                                                                           │

00:01:02 #3386 [Verbose] > │                                                                              │

00:01:02 #3387 [Verbose] > │                                                                              │

00:01:02 #3388 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3389 [Verbose] >

00:01:02 #3390 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3391 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3392 [Verbose] > │ ## replace                                                                   │

00:01:02 #3393 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3394 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3395 [Verbose] > // // test

00:01:02 #3396 [Verbose] >

00:01:02 #3397 [Verbose] >

00:01:02 #3398 [Verbose] > inl count = mut 0i32

00:01:02 #3399 [Verbose] > inl add =

00:01:02 #3401 [Verbose] >     fun () => count <- *count + 1

00:01:02 #3401 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3402 [Verbose] >     |> memoize

00:01:02 #3403 [Verbose] >

00:01:02 #3404 [Verbose] > add ()

00:01:02 #3405 [Verbose] > add ()

00:01:02 #3406 [Verbose] > add ()

00:01:02 #3407 [Verbose] >

00:01:02 #3408 [Verbose] > *count

00:01:02 #3409 [Verbose] > |> _assert_eq 1

00:01:02 #3410 [Verbose] > inl choose f l =

00:01:02 #3411 [Verbose] >     (l, [[]])

00:01:02 #3412 [Verbose] >     ||> am.foldBack fun x acc =>

00:01:02 #3413 [Verbose] >         match f x with

00:01:02 #3414 [Verbose] >         | Some y => y :: acc

00:01:02 #3415 [Verbose] >         | None => acc

00:01:02 #3416 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3417 [Verbose] >     |> listm.toArray

00:01:02 #3418 [Verbose] > inl replace (old_value : string) (new_value : string) (s : string) : string =

00:01:02 #3419 [Verbose] >     $"!s.Replace (!old_value, !new_value)"

00:01:02 #3420 [Verbose] >

00:01:02 #3421 [Verbose] > ╭─[ 1.39s - stdout ]───────────────────────────────────────────────────────────╮

00:01:02 #3422 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:02 #3423 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5761-6171-60aaf7dac58f\main.spi

00:01:02 #3424 [Verbose] > │     | US0_0                                                                  │

00:01:02 #3425 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:02 #3426 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:02 #3427 [Verbose] > │     let v0 : US0 = US0_1(5)                                                  │

00:01:02 #3428 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:02 #3429 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:02 #3430 [Verbose] > │     let v5 : US0 = US0_1(5)                                                  │

00:01:02 #3431 [Verbose] > │     let v6 : US0 = US0_1(5)                                                  │

00:01:02 #3432 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:02 #3433 [Verbose] > │     ()                                                                       │

00:01:02 #3434 [Verbose] > │ method0()                                                                    │

00:01:02 #3435 [Verbose] > │                                                                              │

00:01:02 #3436 [Verbose] > │ US0_1 5                                                                      │

00:01:02 #3437 [Verbose] > │                                                                              │

00:01:02 #3438 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3439 [Verbose] >

00:01:02 #3440 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3441 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3442 [Verbose] > │ ## iter                                                                      │

00:01:02 #3443 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3444 [Verbose] >

00:01:02 #3445 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3446 [Verbose] > inl iter fn = function

00:01:02 #3447 [Verbose] >     | Some x => fn x

00:01:02 #3448 [Verbose] >     | None => ()

00:01:02 #3449 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5762-6240-6585dbbdb300\main.spi

00:01:02 #3450 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5762-6217-6a3c39f8e669\main.spi

00:01:02 #3451 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5777-7709-787c30b2fac7\main.spi

00:01:02 #3452 [Verbose] >

00:01:02 #3453 [Verbose] >

00:01:02 #3454 [Verbose] > ╭─[ 352.54ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3455 [Verbose] > ╭─[ 359.27ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3456 [Verbose] > │ ()                                                                           │

00:01:02 #3457 [Verbose] > │ ()                                                                           │

00:01:02 #3458 [Verbose] > │                                                                              │

00:01:02 #3459 [Verbose] > │                                                                              │

00:01:02 #3460 [Verbose] > │                                                                              │

00:01:02 #3461 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3462 [Verbose] > │                                                                              │

00:01:02 #3463 [Verbose] >

00:01:02 #3464 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3465 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3466 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3467 [Verbose] >

00:01:02 #3468 [Verbose] > │ ## starts_with                                                               │

00:01:02 #3469 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3470 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3471 [Verbose] > // // test

00:01:02 #3472 [Verbose] >

00:01:02 #3473 [Verbose] > (am.init 10i32 id : a _ _)

00:01:02 #3474 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)

00:01:02 #3475 [Verbose] > |> _assert_eq (a ;[[ 0; 2; 4; 6; 8 ]] : _ i32 _)

00:01:02 #3476 [Verbose] >

00:01:02 #3477 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3478 [Verbose] > inl starts_with (value : string) (s : string) : bool =

00:01:02 #3479 [Verbose] >     $"!s.StartsWith !value"

00:01:02 #3480 [Verbose] >

00:01:02 #3481 [Verbose] > ╭─[ 317.33ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3482 [Verbose] > │ ()                                                                           │

00:01:02 #3483 [Verbose] > │                                                                              │

00:01:02 #3484 [Verbose] > │                                                                              │

00:01:02 #3485 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3486 [Verbose] >

00:01:02 #3487 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3488 [Verbose] > // // test

00:01:02 #3489 [Verbose] >

00:01:02 #3490 [Verbose] > inl n = mut 1i32

00:01:02 #3491 [Verbose] > inl fn =

00:01:02 #3492 [Verbose] >     fun n' =>

00:01:02 #3493 [Verbose] >         n <- *n + n'

00:01:02 #3494 [Verbose] > Some 1i32 |> iter fn

00:01:02 #3495 [Verbose] > None |> iter fn

00:01:02 #3496 [Verbose] > *n

00:01:02 #3497 [Verbose] > |> _assert_eq 2i32

00:01:02 #3498 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5798-9873-9c28b1e743a0\main.spi

00:01:02 #3499 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5798-9817-98ebe04d1ebb\main.spi

00:01:02 #3500 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5808-0881-0ad35829cc23\main.spi

00:01:02 #3501 [Verbose] >

00:01:02 #3502 [Verbose] > ╭─[ 257.55ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3503 [Verbose] > │ ()                                                                           │

00:01:02 #3504 [Verbose] > │                                                                              │

00:01:02 #3505 [Verbose] > │                                                                              │

00:01:02 #3506 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3507 [Verbose] >

00:01:02 #3508 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3509 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3510 [Verbose] > │ ## substring                                                                 │

00:01:02 #3511 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3512 [Verbose] >

00:01:02 #3513 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3514 [Verbose] > inl substring (start : i32) (len : i32) (str : string) : string =

00:01:02 #3515 [Verbose] >     $"!str.Substring (!start, !len)"

00:01:02 #3516 [Verbose] > 00:00:35 #9 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_57_778_BuildFile.json' because it is being used by another process.)

00:01:02 #3517 [Verbose] >

00:01:02 #3518 [Verbose] > ╭─[ 7.69s - stdout ]───────────────────────────────────────────────────────────╮

00:01:02 #3519 [Verbose] > │ ()                                                                           │

00:01:02 #3520 [Verbose] > │                                                                              │

00:01:02 #3521 [Verbose] > │                                                                              │

00:01:02 #3522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3523 [Verbose] >

00:01:02 #3524 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3525 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3526 [Verbose] > │ ## append                                                                    │

00:01:02 #3527 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3528 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5825-2508-22850473ffe8\main.spi

00:01:02 #3529 [Verbose] >

00:01:02 #3530 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3531 [Verbose] > instance append list t =

00:01:02 #3532 [Verbose] >     listm.append

00:01:02 #3533 [Verbose] >

00:01:02 #3534 [Verbose] > ╭─[ 284.74ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #3535 [Verbose] > │ ()                                                                           │

00:01:02 #3536 [Verbose] > │                                                                              │

00:01:02 #3537 [Verbose] > │                                                                              │

00:01:02 #3538 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3539 [Verbose] >

00:01:02 #3540 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #3541 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #3542 [Verbose] > │ ## to_lower                                                                  │

00:01:02 #3543 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #3544 [Verbose] >

00:01:02 #3545 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #3546 [Verbose] > inl to_lower (input : string) : string =

00:01:02 #3547 [Verbose] >     $"!input.ToLower ()"

00:01:02 #3548 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5842-4257-4e882abd381a\main.spi

00:01:03 #3549 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5854-5428-514e5338e5bb\main.spi

00:01:03 #3550 [Verbose] >

00:01:03 #3551 [Verbose] >

00:01:03 #3552 [Verbose] >

00:01:03 #3553 [Verbose] > ╭─[ 1.20s - stdout ]───────────────────────────────────────────────────────────╮

00:01:03 #3554 [Verbose] >

00:01:03 #3555 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:03 #3556 [Verbose] > ╭─[ 269.14ms - stdout ]────────────────────────────────────────────────────────╮

00:01:03 #3557 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit =                                     │

00:01:03 #3558 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:03 #3559 [Verbose] > │ ()                                                                           │

00:01:03 #3560 [Verbose] > │     let v2 : int32 = v1 + 1                                                  │

00:01:03 #3561 [Verbose] > │                                                                              │

00:01:03 #3562 [Verbose] > │     v0.l0 <- v2                                                              │

00:01:03 #3563 [Verbose] > │                                                                              │

00:01:03 #3564 [Verbose] > │     ()                                                                       │

00:01:03 #3565 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3566 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:01:03 #3567 [Verbose] > │     v0                                                                       │

00:01:03 #3568 [Verbose] >

00:01:03 #3569 [Verbose] > │ and method0 () : unit =                                                      │

00:01:03 #3570 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:03 #3571 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:03 #3572 [Verbose] > │     let v1 : (unit -> unit) = closure0(v0)                                   │

00:01:03 #3573 [Verbose] > │     let v2 : Lazy<unit> = lazy v1 ()                                         │

00:01:03 #3574 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:03 #3575 [Verbose] > │     v2.Value                                                                 │

00:01:03 #3576 [Verbose] > │ ## to_upper                                                                  │

00:01:03 #3577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3578 [Verbose] > │     v2.Value                                                                 │

00:01:03 #3579 [Verbose] > │     v2.Value                                                                 │

00:01:03 #3580 [Verbose] > │     let v3 : int32 = v0.l0                                                   │

00:01:03 #3581 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:01:03 #3582 [Verbose] >

00:01:03 #3583 [Verbose] > │     System.Console.WriteLine v4                                              │

00:01:03 #3584 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3585 [Verbose] > │     let v5 : bool = v3 = 1                                                   │

00:01:03 #3586 [Verbose] > │     let v7 : bool =                                                          │

00:01:03 #3587 [Verbose] > inl to_upper (input : string) : string =

00:01:03 #3588 [Verbose] >     $"!input.ToUpper ()"

00:01:03 #3589 [Verbose] > │         if v5 then                                                           │

00:01:03 #3590 [Verbose] > │             true                                                             │

00:01:03 #3591 [Verbose] > │         else                                                                 │

00:01:03 #3592 [Verbose] > │             method1(v5)                                                      │

00:01:03 #3593 [Verbose] > │     let v8 : string = $"__expect / actual: %A{v3} / expected: %A{1}"         │

00:01:03 #3594 [Verbose] > │     let v9 : bool = v7 = false                                               │

00:01:03 #3595 [Verbose] > │     if v9 then                                                               │

00:01:03 #3596 [Verbose] > │         failwith<unit> v8                                                    │

00:01:03 #3597 [Verbose] > │ method0()                                                                    │

00:01:03 #3598 [Verbose] > │                                                                              │

00:01:03 #3599 [Verbose] > │ 1                                                                            │

00:01:03 #3600 [Verbose] > │                                                                              │

00:01:03 #3601 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3602 [Verbose] >

00:01:03 #3603 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3604 [Verbose] > // // test

00:01:03 #3605 [Verbose] >

00:01:03 #3606 [Verbose] > fun () => failwith "test"

00:01:03 #3607 [Verbose] > |> _throws

00:01:03 #3608 [Verbose] > |> optionm.map sm'.format_exception

00:01:03 #3609 [Verbose] > |> _assert_eq (Some "System.Exception: test")

00:01:03 #3610 [Verbose] >

00:01:03 #3611 [Verbose] > ╭─[ 289.19ms - stdout ]────────────────────────────────────────────────────────╮

00:01:03 #3612 [Verbose] > │ ()                                                                           │

00:01:03 #3613 [Verbose] > │                                                                              │

00:01:03 #3614 [Verbose] > │                                                                              │

00:01:03 #3615 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3616 [Verbose] >

00:01:03 #3617 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:03 #3618 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:03 #3619 [Verbose] > │ ## trim                                                                      │

00:01:03 #3620 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3621 [Verbose] >

00:01:03 #3622 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3623 [Verbose] > inl trim (input : string) : string =

00:01:03 #3624 [Verbose] >     $"!input.Trim ()"

00:01:03 #3625 [Verbose] >

00:01:03 #3626 [Verbose] > ╭─[ 1.15s - stdout ]───────────────────────────────────────────────────────────╮

00:01:03 #3627 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:03 #3628 [Verbose] > │ and UH0 =                                                                    │

00:01:03 #3629 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:01:03 #3630 [Verbose] > │     | UH0_1                                                                  │

00:01:03 #3631 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0}                            │

00:01:03 #3632 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:03 #3633 [Verbose] > │     | US0_0                                                                  │

00:01:03 #3634 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:03 #3635 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:03 #3636 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:03 #3637 [Verbose] > │     let v2 : bool = v1 < 10                                                  │

00:01:03 #3638 [Verbose] > │     v2                                                                       │

00:01:03 #3639 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:01:03 #3640 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:03 #3641 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:03 #3642 [Verbose] > │     v3                                                                       │

00:01:03 #3643 [Verbose] > │ and method4 (v0 : UH0, v1 : int32) : int32 =                                 │

00:01:03 #3644 [Verbose] > │     match v0 with                                                            │

00:01:03 #3645 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:01:03 #3646 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5872-7294-7e28111e2443\main.spi

00:01:03 #3647 [Verbose] > ╭─[ 620.39ms - stdout ]────────────────────────────────────────────────────────╮

00:01:03 #3648 [Verbose] > ╭─[ 285.59ms - stdout ]────────────────────────────────────────────────────────╮

00:01:03 #3649 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5871-7180-7217d0e768e9\main.spi

00:01:03 #3650 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:03 #3651 [Verbose] > │ ()                                                                           │

00:01:03 #3652 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5882-8237-8ee9b6f4769e\main.spi

00:01:03 #3653 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:01:03 #3654 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5883-8355-8c8f7fa42df1\main.spi

00:01:03 #3655 [Verbose] > │     v0                                                                       │

00:01:03 #3656 [Verbose] > │                                                                              │

00:01:03 #3657 [Verbose] > │ and method0 () : unit =                                                      │

00:01:03 #3658 [Verbose] > │                                                                              │

00:01:03 #3659 [Verbose] > │     let v0 : Mut0 = {l0 = 1} : Mut0                                          │

00:01:03 #3660 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3661 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:03 #3662 [Verbose] >

00:01:03 #3663 [Verbose] > │     let v2 : int32 = v1 + 1                                                  │

00:01:03 #3664 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:03 #3665 [Verbose] > │     v0.l0 <- v2                                                              │

00:01:03 #3666 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:03 #3667 [Verbose] > │     let v3 : int32 = v0.l0                                                   │

00:01:03 #3669 [Verbose] > │ ## /@                                                                        │

00:01:03 #3668 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:01:03 #3670 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3670 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:01:03 #3671 [Verbose] > │         method4(v3, v4)                                                      │

00:01:03 #3672 [Verbose] >

00:01:03 #3673 [Verbose] > │     System.Console.WriteLine v4                                              │

00:01:03 #3674 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:03 #3676 [Verbose] > │     let v5 : bool = v3 = 2                                                   │

00:01:03 #3675 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3677 [Verbose] > │         v1                                                                   │

00:01:03 #3678 [Verbose] > │     let v7 : bool =                                                          │

00:01:03 #3680 [Verbose] > │ and method5 (v0 : (int32 []), v1 : UH0, v2 : int32) : int32 =                │

00:01:03 #3679 [Verbose] > inl (/@) a b =

00:01:03 #3681 [Verbose] > │         if v5 then                                                           │

00:01:03 #3682 [Verbose] > │     match v1 with                                                            │

00:01:03 #3683 [Verbose] >     b |> append a

00:01:03 #3684 [Verbose] > │             true                                                             │

00:01:03 #3686 [Verbose] >

00:01:03 #3685 [Verbose] > │     | UH0_0(v3, v4) -> (* Cons *)                                            │

00:01:03 #3688 [Verbose] > ╭─[ 317.05ms - stdout ]────────────────────────────────────────────────────────╮

00:01:03 #3687 [Verbose] > │         else                                                                 │

00:01:03 #3689 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:01:03 #3690 [Verbose] > │ ()                                                                           │

00:01:03 #3691 [Verbose] > │             method1(v5)                                                      │

00:01:03 #3692 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:01:03 #3693 [Verbose] > │     let v8 : string = $"__expect / actual: %A{v3} / expected: %A{2}"         │

00:01:03 #3694 [Verbose] > │         method5(v0, v4, v5)                                                  │

00:01:03 #3695 [Verbose] > │                                                                              │

00:01:03 #3696 [Verbose] > │     let v9 : bool = v7 = false                                               │

00:01:03 #3697 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:03 #3698 [Verbose] > │                                                                              │

00:01:03 #3699 [Verbose] > │     if v9 then                                                               │

00:01:03 #3700 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3701 [Verbose] > │         v2                                                                   │

00:01:03 #3703 [Verbose] >

00:01:03 #3702 [Verbose] > │         failwith<unit> v8                                                    │

00:01:03 #3704 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3705 [Verbose] > │ method0()                                                                    │

00:01:03 #3706 [Verbose] > // // test

00:01:03 #3707 [Verbose] > │                                                                              │

00:01:03 #3708 [Verbose] > │ and method3 (v0 : UH0) : (int32 []) =                                        │

00:01:03 #3710 [Verbose] > │ 2                                                                            │

00:01:03 #3709 [Verbose] >

00:01:03 #3711 [Verbose] > │                                                                              │

00:01:03 #3712 [Verbose] > [[ "a"; "b" ]] /@ [[ "c"; "d" ]]

00:01:03 #3713 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3714 [Verbose] > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]

00:01:03 #3715 [Verbose] >

00:01:03 #3716 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:03 #3717 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:03 #3718 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:03 #3719 [Verbose] > │ ## option'                                                                   │

00:01:03 #3720 [Verbose] > │     let v2 : int32 = method4(v0, v1)                                         │

00:01:03 #3721 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3722 [Verbose] >

00:01:03 #3723 [Verbose] > │     let v3 : (int32 []) = Array.zeroCreate<int32> (v2)                       │

00:01:03 #3724 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3725 [Verbose] > nominal option' t = $"`t option"

00:01:03 #3726 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:03 #3727 [Verbose] >

00:01:03 #3729 [Verbose] > │     let v5 : int32 = method5(v3, v0, v4)                                     │

00:01:03 #3728 [Verbose] > inl unbox forall t. (x : option' t) : option t =

00:01:03 #3730 [Verbose] >     inl some x : option t = Some x

00:01:03 #3731 [Verbose] > │     v3                                                                       │

00:01:03 #3732 [Verbose] >     inl none : option t = None

00:01:03 #3733 [Verbose] >     $"!x |> Option.map !some |> Option.defaultValue !none"

00:01:03 #3734 [Verbose] >

00:01:03 #3735 [Verbose] > │ and method6 (v0 : (int32 [])) : (int32 []) =                                 │

00:01:03 #3736 [Verbose] > inl box forall t. (x : option t) : option' t =

00:01:03 #3737 [Verbose] >     match x with

00:01:03 #3739 [Verbose] >     | Some x => $"Some !x"

00:01:03 #3738 [Verbose] > │     v0                                                                       │

00:01:03 #3740 [Verbose] >     | None => $"None"

00:01:03 #3741 [Verbose] >

00:01:03 #3742 [Verbose] > ╭─[ 304.17ms - stdout ]────────────────────────────────────────────────────────╮

00:01:03 #3743 [Verbose] > │ and method7 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool =          │

00:01:03 #3744 [Verbose] > │ ()                                                                           │

00:01:03 #3745 [Verbose] > │                                                                              │

00:01:03 #3746 [Verbose] > │                                                                              │

00:01:03 #3747 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:01:03 #3748 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3750 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:03 #3749 [Verbose] >

00:01:03 #3751 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3752 [Verbose] > // // test

00:01:03 #3753 [Verbose] > │     if v4 then                                                               │

00:01:03 #3754 [Verbose] >

00:01:03 #3755 [Verbose] > inl x = Some 3i32

00:01:03 #3756 [Verbose] > │         let v5 : int32 = v0.[int v2]                                         │

00:01:03 #3757 [Verbose] > inl y : option i32 = None

00:01:03 #3758 [Verbose] > inl x' = x |> box |> unbox

00:01:03 #3759 [Verbose] > inl y' = y |> box |> unbox

00:01:03 #3760 [Verbose] > │         let v6 : int32 = v1.[int v2]                                         │

00:01:03 #3761 [Verbose] > (x', y') |> _assert_eq (x, y)

00:01:03 #3762 [Verbose] > │         let v7 : bool = v5 = v6                                              │

00:01:03 #3763 [Verbose] > │         if v7 then                                                           │

00:01:03 #3764 [Verbose] > │             let v8 : int32 = v2 + 1                                          │

00:01:03 #3765 [Verbose] > │             method7(v0, v1, v8)                                              │

00:01:03 #3766 [Verbose] > │         else                                                                 │

00:01:03 #3767 [Verbose] > │             false                                                            │

00:01:03 #3768 [Verbose] > │     else                                                                     │

00:01:03 #3769 [Verbose] > │         true                                                                 │

00:01:03 #3770 [Verbose] > │ and method8 (v0 : bool) : bool =                                             │

00:01:03 #3771 [Verbose] > │     v0                                                                       │

00:01:03 #3772 [Verbose] > │ and method0 () : unit =                                                      │

00:01:03 #3773 [Verbose] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (10)                       │

00:01:03 #3774 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:03 #3775 [Verbose] > │     while method1(v1) do                                                     │

00:01:03 #3776 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:03 #3777 [Verbose] > │         v0.[int v3] <- v3                                                    │

00:01:03 #3778 [Verbose] > │         let v4 : int32 = v3 + 1                                              │

00:01:03 #3779 [Verbose] > │         v1.l0 <- v4                                                          │

00:01:03 #3780 [Verbose] > │         ()                                                                   │

00:01:03 #3781 [Verbose] > │     let v5 : int32 = v0.Length                                               │

00:01:03 #3782 [Verbose] > │     let v6 : UH0 = UH0_1                                                     │

00:01:03 #3783 [Verbose] > │     let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1                                 │

00:01:03 #3784 [Verbose] > │     while method2(v5, v7) do                                                 │

00:01:03 #3785 [Verbose] > │         let v9 : int32 = v7.l0                                               │

00:01:03 #3786 [Verbose] > │         let v10 : int32 =  -v9                                               │

00:01:03 #3787 [Verbose] > │         let v11 : int32 = v10 + v5                                           │

00:01:03 #3788 [Verbose] > │         let v12 : int32 = v11 - 1                                            │

00:01:03 #3789 [Verbose] > │         let v13 : UH0 = v7.l1                                                │

00:01:03 #3790 [Verbose] > │         let v14 : int32 = v0.[int v12]                                       │

00:01:03 #3791 [Verbose] > │         let v15 : int32 = v14 % 2                                            │

00:01:03 #3792 [Verbose] > │         let v16 : bool = v15 = 0                                             │

00:01:03 #3793 [Verbose] > │         let v19 : US0 =                                                      │

00:01:03 #3794 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5904-0400-0a8c7a8d8dda\main.spi

00:01:03 #3795 [Verbose] > │             if v16 then                                                      │

00:01:03 #3796 [Verbose] > │                 US0_1(v14)                                                   │

00:01:03 #3797 [Verbose] > │             else                                                             │

00:01:03 #3798 [Verbose] > │                 US0_0                                                        │

00:01:03 #3799 [Verbose] > │         let v23 : UH0 =                                                      │

00:01:03 #3800 [Verbose] > │             match v19 with                                                   │

00:01:03 #3801 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:01:03 #3802 [Verbose] > │                 v13                                                          │

00:01:03 #3803 [Verbose] > │             | US0_1(v20) -> (* Some *)                                       │

00:01:03 #3804 [Verbose] > │                 UH0_0(v20, v13)                                              │

00:01:03 #3805 [Verbose] > │         let v24 : int32 = v9 + 1                                             │

00:01:03 #3806 [Verbose] > │         v7.l0 <- v24                                                         │

00:01:03 #3807 [Verbose] > │         v7.l1 <- v23                                                         │

00:01:03 #3808 [Verbose] > │         ()                                                                   │

00:01:03 #3809 [Verbose] > │     let v25 : UH0 = v7.l1                                                    │

00:01:03 #3810 [Verbose] > │     let v26 : (int32 []) = method3(v25)                                      │

00:01:03 #3811 [Verbose] > │     let v27 : (int32 []) = [|0; 2; 4; 6; 8|]                                 │

00:01:03 #3812 [Verbose] > │     let v28 : (int32 []) = method6(v27)                                      │

00:01:03 #3813 [Verbose] > │     let v29 : string = $"%A{v26}"                                            │

00:01:03 #3814 [Verbose] > │     System.Console.WriteLine v29                                             │

00:01:03 #3815 [Verbose] > │     let v30 : int32 = v26.Length                                             │

00:01:03 #3816 [Verbose] > │     let v31 : int32 = v28.Length                                             │

00:01:03 #3817 [Verbose] > │     let v32 : bool = v30 = v31                                               │

00:01:03 #3818 [Verbose] > │     let v33 : bool = v32 <> true                                             │

00:01:03 #3819 [Verbose] > │     let v36 : bool =                                                         │

00:01:03 #3820 [Verbose] > │         if v33 then                                                          │

00:01:03 #3821 [Verbose] > │             false                                                            │

00:01:03 #3822 [Verbose] > │         else                                                                 │

00:01:03 #3823 [Verbose] > │             let v34 : int32 = 0                                              │

00:01:03 #3824 [Verbose] > │             method7(v26, v28, v34)                                           │

00:01:03 #3825 [Verbose] > │     let v38 : bool =                                                         │

00:01:03 #3826 [Verbose] > │         if v36 then                                                          │

00:01:03 #3827 [Verbose] > │             true                                                             │

00:01:03 #3828 [Verbose] > │         else                                                                 │

00:01:03 #3829 [Verbose] > │             method8(v36)                                                     │

00:01:03 #3830 [Verbose] > │     let v39 : string = $"__expect / actual: %A{v26} / expected: %A{v28}"     │

00:01:03 #3831 [Verbose] > │     let v40 : bool = v38 = false                                             │

00:01:03 #3832 [Verbose] > │     if v40 then                                                              │

00:01:03 #3833 [Verbose] > │         failwith<unit> v39                                                   │

00:01:03 #3834 [Verbose] > │ method0()                                                                    │

00:01:03 #3835 [Verbose] > │                                                                              │

00:01:03 #3836 [Verbose] > │ [|0; 2; 4; 6; 8|]                                                            │

00:01:03 #3837 [Verbose] > │                                                                              │

00:01:03 #3838 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3839 [Verbose] >

00:01:03 #3840 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:03 #3841 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:03 #3842 [Verbose] > │ ## sum                                                                       │

00:01:03 #3843 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:03 #3844 [Verbose] >

00:01:03 #3845 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:03 #3846 [Verbose] > inl sum (a' : a _ _) =

00:01:03 #3847 [Verbose] >     a' |> am.fold (+) 0

00:01:03 #3848 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5912-1229-17dad85a0199\main.spi

00:01:03 #3849 [Verbose] > 00:00:36 #10 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_36_58_802_FileOpen.json' because it is being used by another process.)

00:01:03 #3850 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5915-1578-1f68abb435ce\main.spi

00:01:03 #3851 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5923-2342-230d45456e3a\main.spi

00:01:03 #3852 [Verbose] >

00:01:03 #3853 [Verbose] > ╭─[ 372.84ms - stdout ]────────────────────────────────────────────────────────╮

00:01:04 #3854 [Verbose] > │ ()                                                                           │

00:01:04 #3855 [Verbose] > │                                                                              │

00:01:04 #3856 [Verbose] > │                                                                              │

00:01:04 #3857 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:04 #3858 [Verbose] >

00:01:04 #3859 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:04 #3860 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:04 #3861 [Verbose] > │ ## trim_end                                                                  │

00:01:04 #3862 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:04 #3863 [Verbose] >

00:01:04 #3864 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:04 #3865 [Verbose] > inl trim_end (trim_chars : array_base char) (input : string) : string =

00:01:04 #3866 [Verbose] >     $"!input.TrimEnd !trim_chars"

00:01:04 #3867 [Verbose] >

00:01:04 #3868 [Verbose] > ╭─[ 447.18ms - stdout ]────────────────────────────────────────────────────────╮

00:01:04 #3869 [Verbose] > │ ()                                                                           │

00:01:04 #3870 [Verbose] > │                                                                              │

00:01:04 #3871 [Verbose] > │                                                                              │

00:01:04 #3872 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:04 #3873 [Verbose] >

00:01:04 #3874 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:04 #3875 [Verbose] > // // test

00:01:04 #3876 [Verbose] >

00:01:04 #3877 [Verbose] > am.init 10i32 id

00:01:04 #3878 [Verbose] > |> sum

00:01:04 #3879 [Verbose] > |> _assert_eq 45

00:01:04 #3880 [Verbose] >

00:01:04 #3881 [Verbose] > ╭─[ 883.25ms - stdout ]────────────────────────────────────────────────────────╮

00:01:04 #3882 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:04 #3883 [Verbose] > │     | US0_0                                                                  │

00:01:04 #3884 [Verbose] > │     | US0_1 of f1_0 : exn                                                    │

00:01:04 #3885 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:04 #3886 [Verbose] > │     | US1_0                                                                  │

00:01:04 #3887 [Verbose] > │     | US1_1 of f1_0 : string                                                 │

00:01:04 #3888 [Verbose] > │ let rec closure0 () () : unit =                                              │

00:01:04 #3889 [Verbose] > │     failwith<unit> "test"                                                    │

00:01:04 #3890 [Verbose] > │ and closure1 () (v0 : exn) : US0 =                                           │

00:01:04 #3891 [Verbose] > │     US0_1(v0)                                                                │

00:01:04 #3892 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:01:04 #3893 [Verbose] > │     v0                                                                       │

00:01:04 #3894 [Verbose] > │ and method0 () : unit =                                                      │

00:01:04 #3895 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:01:04 #3896 [Verbose] > │     let v1 : US0 = US0_0                                                     │

00:01:04 #3897 [Verbose] > │     let v2 : (exn -> US0) = closure1()                                       │

00:01:04 #3898 [Verbose] > │     let v3 : US0 = try v0 (); v1 with ex -> ex |> v2                         │

00:01:04 #3899 [Verbose] > │     let v14 : US1 =                                                          │

00:01:04 #3900 [Verbose] > │         match v3 with                                                        │

00:01:04 #3901 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:01:04 #3902 [Verbose] > │             US1_0                                                            │

00:01:04 #3903 [Verbose] > │         | US0_1(v4) -> (* Some *)                                            │

00:01:04 #3904 [Verbose] > │             let mutable result = None                                        │

00:01:04 #3905 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:04 #3906 [Verbose] > │             let v5 : string = $"%A{v4}"                                      │

00:01:04 #3907 [Verbose] > │             v5                                                               │

00:01:04 #3908 [Verbose] > │             #endif                                                           │

00:01:04 #3909 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:04 #3910 [Verbose] > │             let v6 : string = $"%A{v4}"                                      │

00:01:04 #3911 [Verbose] > │             v6                                                               │

00:01:04 #3912 [Verbose] > │             #endif                                                           │

00:01:04 #3913 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:04 #3914 [Verbose] > │             let v7 : string = $"{v4.GetType ()}: {v4.Message}"               │

00:01:04 #3915 [Verbose] > │             v7                                                               │

00:01:04 #3916 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5960-6005-60aabf31a991\main.spi

00:01:04 #3917 [Verbose] > │             #endif                                                           │

00:01:04 #3918 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:04 #3919 [Verbose] > │             let v8 : string = $"%A{v4}"                                      │

00:01:04 #3920 [Verbose] > │             v8                                                               │

00:01:04 #3921 [Verbose] > │             #endif                                                           │

00:01:04 #3922 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:04 #3923 [Verbose] > │             let v9 : string = $"%A{v4}"                                      │

00:01:04 #3924 [Verbose] > │             v9                                                               │

00:01:04 #3925 [Verbose] > │             #endif                                                           │

00:01:04 #3926 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:04 #3927 [Verbose] > │             let v10 : string = result |> Option.get                          │

00:01:04 #3928 [Verbose] > │             US1_1(v10)                                                       │

00:01:04 #3929 [Verbose] > │     let v15 : string = $"%A{v14}"                                            │

00:01:04 #3930 [Verbose] > │     System.Console.WriteLine v15                                             │

00:01:04 #3931 [Verbose] > │     let v20 : bool =                                                         │

00:01:04 #3932 [Verbose] >

00:01:04 #3933 [Verbose] >

00:01:04 #3934 [Verbose] > ╭─[ 310.95ms - stdout ]────────────────────────────────────────────────────────╮

00:01:04 #3935 [Verbose] > │ ()                                                                           │

00:01:04 #3936 [Verbose] > │                                                                              │

00:01:04 #3937 [Verbose] > │                                                                              │

00:01:04 #3938 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:04 #3939 [Verbose] >

00:01:04 #3940 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:04 #3941 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:04 #3942 [Verbose] > │ ## trim_start                                                                │

00:01:04 #3943 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:04 #3944 [Verbose] >

00:01:04 #3945 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:04 #3946 [Verbose] > inl trim_start (trim_chars : array_base char) (input : string) : string =

00:01:04 #3947 [Verbose] >     $"!input.TrimStart !trim_chars"

00:01:05 #3948 [Verbose] >

00:01:05 #3949 [Verbose] > ╭─[ 789.34ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #3950 [Verbose] > │ ()                                                                           │

00:01:05 #3951 [Verbose] > │                                                                              │

00:01:05 #3952 [Verbose] > │                                                                              │

00:01:05 #3953 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #3954 [Verbose] >

00:01:05 #3955 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #3956 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #3957 [Verbose] > │ ## ellipsis                                                                  │

00:01:05 #3958 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #3960 [Verbose] >

00:01:05 #3959 [Verbose] >

00:01:05 #3961 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #3962 [Verbose] > inl ellipsis (max : i32) (s : string) =

00:01:05 #3963 [Verbose] >     if sm.length s <= max

00:01:05 #3964 [Verbose] >     then s

00:01:05 #3965 [Verbose] >     else s |> substring 0 max |> fun x => $'!x + "..."'

00:01:05 #3966 [Verbose] > ╭─[ 1.04s - stdout ]───────────────────────────────────────────────────────────╮

00:01:05 #3967 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:05 #3968 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32}                          │

00:01:05 #3969 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:05 #3970 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:05 #3971 [Verbose] > │     let v2 : bool = v1 < 10                                                  │

00:01:05 #3972 [Verbose] > │     v2                                                                       │

00:01:05 #3973 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:01:05 #3974 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:05 #3975 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:05 #3976 [Verbose] > │     v3                                                                       │

00:01:05 #3977 [Verbose] > │ and method3 (v0 : bool) : bool =                                             │

00:01:05 #3978 [Verbose] > │     v0                                                                       │

00:01:05 #3979 [Verbose] > │ and method0 () : unit =                                                      │

00:01:05 #3980 [Verbose] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (10)                       │

00:01:05 #3981 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:05 #3982 [Verbose] > │     while method1(v1) do                                                     │

00:01:05 #3983 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:05 #3984 [Verbose] > │         v0.[int v3] <- v3                                                    │

00:01:05 #3985 [Verbose] > │         let v4 : int32 = v3 + 1                                              │

00:01:05 #3986 [Verbose] > │         v1.l0 <- v4                                                          │

00:01:05 #3987 [Verbose] > │         ()                                                                   │

00:01:05 #3988 [Verbose] > │     let v5 : int32 = v0.Length                                               │

00:01:05 #3989 [Verbose] > │     let v6 : Mut1 = {l0 = 0; l1 = 0} : Mut1                                  │

00:01:05 #3990 [Verbose] > │     while method2(v5, v6) do                                                 │

00:01:05 #3991 [Verbose] > │         let v8 : int32 = v6.l0                                               │

00:01:05 #3992 [Verbose] > │         let v9 : int32 = v6.l1                                               │

00:01:05 #3993 [Verbose] > │         let v10 : int32 = v0.[int v8]                                        │

00:01:05 #3994 [Verbose] > │         let v11 : int32 = v9 + v10                                           │

00:01:05 #3995 [Verbose] > │         let v12 : int32 = v8 + 1                                             │

00:01:05 #3996 [Verbose] > │         v6.l0 <- v12                                                         │

00:01:05 #3997 [Verbose] > │         v6.l1 <- v11                                                         │

00:01:05 #3998 [Verbose] > │         ()                                                                   │

00:01:05 #3999 [Verbose] > │     let v13 : int32 = v6.l1                                                  │

00:01:05 #4000 [Verbose] > │     let v14 : string = $"%A{v13}"                                            │

00:01:05 #4001 [Verbose] > │     System.Console.WriteLine v14                                             │

00:01:05 #4002 [Verbose] > │     let v15 : bool = v13 = 45                                                │

00:01:05 #4003 [Verbose] > │     let v17 : bool =                                                         │

00:01:05 #4004 [Verbose] > │         if v15 then                                                          │

00:01:05 #4005 [Verbose] > │             true                                                             │

00:01:05 #4006 [Verbose] > │         else                                                                 │

00:01:05 #4007 [Verbose] > │             method3(v15)                                                     │

00:01:05 #4008 [Verbose] > │     let v18 : string = $"__expect / actual: %A{v13} / expected: %A{45}"      │

00:01:05 #4009 [Verbose] > │     let v19 : bool = v17 = false                                             │

00:01:05 #4010 [Verbose] > │     if v19 then                                                              │

00:01:05 #4011 [Verbose] > │         failwith<unit> v18                                                   │

00:01:05 #4012 [Verbose] > │ method0()                                                                    │

00:01:05 #4013 [Verbose] > │                                                                              │

00:01:05 #4014 [Verbose] > │ 45                                                                           │

00:01:05 #4015 [Verbose] > │                                                                              │

00:01:05 #4016 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4017 [Verbose] >

00:01:05 #4018 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4019 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4020 [Verbose] > │ ## init_series                                                               │

00:01:05 #4021 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4022 [Verbose] >

00:01:05 #4023 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4024 [Verbose] > inl init_series start end inc =

00:01:05 #4025 [Verbose] >     inl total = conv ((end - start) / inc) + 1

00:01:05 #4026 [Verbose] >     am.init total (conv >> (*) inc >> (+) start) : a i32 _

00:01:05 #4027 [Verbose] > [NbConvertApp] Converting notebook date_time.dib.ipynb to html

00:01:05 #4028 [Verbose] > │         match v14 with                                                       │

00:01:05 #4029 [Verbose] > ╭─[ 635.53ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4031 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:05 #4030 [Verbose] > │         | US1_1(v18) -> (* Some *)                                           │

00:01:05 #4032 [Verbose] > │     | US0_0                                                                  │

00:01:05 #4033 [Verbose] > │             let v19 : bool = v18 = "System.Exception: test"                  │

00:01:05 #4034 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:05 #4035 [Verbose] > │             v19                                                              │

00:01:05 #4036 [Verbose] > │ let rec closure0 () (v0 : int32) : US0 =                                     │

00:01:05 #4037 [Verbose] > │         | _ ->                                                               │

00:01:05 #4038 [Verbose] > │     US0_1(v0)                                                                │

00:01:05 #4039 [Verbose] > │             false                                                            │

00:01:05 #4040 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:01:05 #4041 [Verbose] > │     let v22 : bool =                                                         │

00:01:05 #4042 [Verbose] > │     v0                                                                       │

00:01:05 #4043 [Verbose] > │         if v20 then                                                          │

00:01:05 #4044 [Verbose] > │ and method0 () : unit =                                                      │

00:01:05 #4045 [Verbose] > │             true                                                             │

00:01:05 #4046 [Verbose] > │     let v0 : int32 option = Some 3                                           │

00:01:05 #4047 [Verbose] > │         else                                                                 │

00:01:05 #4049 [Verbose] > │     let v1 : (int32 -> US0) = closure0()                                     │

00:01:05 #4048 [Verbose] > │             method1(v20)                                                     │

00:01:05 #4050 [Verbose] > │     let v2 : US0 = US0_0                                                     │

00:01:05 #4051 [Verbose] > │     let v23 : string = "System.Exception: test"                              │

00:01:05 #4052 [Verbose] > │     let v3 : US0 = v0 |> Option.map v1 |> Option.defaultValue v2             │

00:01:05 #4053 [Verbose] > │     let v24 : US1 = US1_1(v23)                                               │

00:01:05 #4054 [Verbose] > │     let v4 : int32 option = None                                             │

00:01:05 #4055 [Verbose] > │     let v25 : string = $"__expect / actual: %A{v14} / expected: %A{v24}"     │

00:01:05 #4056 [Verbose] > │     let v5 : US0 = US0_0                                                     │

00:01:05 #4058 [Verbose] > │     let v6 : US0 = v4 |> Option.map v1 |> Option.defaultValue v5             │

00:01:05 #4057 [Verbose] > │     let v26 : bool = v22 = false                                             │

00:01:05 #4059 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5968-6830-63443ab5bbe6\main.spi

00:01:05 #4060 [Verbose] > │     let v7 : string = $"%A{struct (v3, v6)}"                                 │

00:01:05 #4061 [Verbose] > │     if v26 then                                                              │

00:01:05 #4062 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5976-7634-731bfc3f440b\main.spi

00:01:05 #4063 [Verbose] > │     System.Console.WriteLine v7                                              │

00:01:05 #4064 [Verbose] > │         failwith<unit> v25                                                   │

00:01:05 #4065 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0136-5992-9215-90983170e739\main.spi

00:01:05 #4066 [Verbose] > │     let v12 : bool =                                                         │

00:01:05 #4067 [Verbose] > │ method0()                                                                    │

00:01:05 #4068 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0072-7212-7a67ba8cfc15\main.spi

00:01:05 #4069 [Verbose] > │         match v3 with                                                        │

00:01:05 #4070 [Verbose] > │                                                                              │

00:01:05 #4071 [Verbose] > │         | US0_1(v10) -> (* Some *)                                           │

00:01:05 #4072 [Verbose] > │ US1_1 "System.Exception: test"                                               │

00:01:05 #4073 [Verbose] > │             let v11 : bool = v10 = 3                                         │

00:01:05 #4074 [Verbose] > │                                                                              │

00:01:05 #4075 [Verbose] > │             v11                                                              │

00:01:05 #4076 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4077 [Verbose] > │         | _ ->                                                               │

00:01:05 #4078 [Verbose] >

00:01:05 #4079 [Verbose] > │             false                                                            │

00:01:05 #4080 [Verbose] > │     let v14 : bool =                                                         │

00:01:05 #4081 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4082 [Verbose] > │         if v12 then                                                          │

00:01:05 #4083 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4084 [Verbose] > │             match v6 with                                                    │

00:01:05 #4085 [Verbose] > │ ## use_disposable                                                            │

00:01:05 #4086 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:01:05 #4087 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4088 [Verbose] > │                 true                                                         │

00:01:05 #4089 [Verbose] >

00:01:05 #4090 [Verbose] > │             | _ ->                                                           │

00:01:05 #4091 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4092 [Verbose] > │                 false                                                        │

00:01:05 #4093 [Verbose] > inl use_disposable (disposable : disposable) : disposable =

00:01:05 #4094 [Verbose] > │         else                                                                 │

00:01:05 #4095 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:05 #4096 [Verbose] > │             false                                                            │

00:01:05 #4097 [Verbose] >     $"use !disposable = !disposable" : ()

00:01:05 #4098 [Verbose] >   validate(nb)

00:01:05 #4099 [Verbose] >     $"!disposable"

00:01:05 #4100 [Verbose] > │     let v16 : bool =                                                         │

00:01:05 #4102 [Verbose] > │         if v14 then                                                          │

00:01:05 #4101 [Verbose] >

00:01:05 #4103 [Verbose] > │             true                                                             │

00:01:05 #4104 [Verbose] > ╭─[ 764.06ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4106 [Verbose] > │ ()                                                                           │

00:01:05 #4105 [Verbose] > │         else                                                                 │

00:01:05 #4107 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0076-7641-7b7ffe9dd565\main.spi

00:01:05 #4108 [Verbose] > │                                                                              │

00:01:05 #4109 [Verbose] > │             method1(v14)                                                     │

00:01:05 #4110 [Verbose] > │                                                                              │

00:01:05 #4111 [Verbose] > │     let v17 : US0 = US0_1(3)                                                 │

00:01:05 #4112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4113 [Verbose] > │     let v18 : US0 = US0_0                                                    │

00:01:05 #4114 [Verbose] >

00:01:05 #4115 [Verbose] > │     let v19 : string = $"__expect / actual: %A{struct (v3, v6)} / expected:  │

00:01:05 #4116 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4117 [Verbose] > │ %A{struct (v17, v18)}"                                                       │

00:01:05 #4118 [Verbose] > │     let v20 : bool = v16 = false                                             │

00:01:05 #4119 [Verbose] > │     if v20 then                                                              │

00:01:05 #4120 [Verbose] > │         failwith<unit> v19                                                   │

00:01:05 #4121 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4122 [Verbose] > │ method0()                                                                    │

00:01:05 #4123 [Verbose] > │ ## new_disposable                                                            │

00:01:05 #4124 [Verbose] > │                                                                              │

00:01:05 #4125 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4126 [Verbose] > │ struct (US0_1 3, US0_0)                                                      │

00:01:05 #4127 [Verbose] > │                                                                              │

00:01:05 #4128 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4129 [Verbose] >

00:01:05 #4130 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4131 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4132 [Verbose] > │ ## map                                                                       │

00:01:05 #4133 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4134 [Verbose] >

00:01:05 #4135 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4136 [Verbose] > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =

00:01:05 #4137 [Verbose] >     inl x = join x

00:01:05 #4138 [Verbose] >     inl fn = join fn

00:01:05 #4139 [Verbose] >     !\($'"!x.map(|x| !fn(x))"')

00:01:05 #4140 [Verbose] >

00:01:05 #4141 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4142 [Verbose] >

00:01:05 #4143 [Verbose] > inl new_disposable (fn : () -> ()) : disposable =

00:01:05 #4144 [Verbose] >     run_target function

00:01:05 #4145 [Verbose] >         | Fsharp _ => fun () => $'{ new System.IDisposable with member _.Dispose

00:01:05 #4146 [Verbose] > () = !fn () }'

00:01:05 #4147 [Verbose] >         | Rust _ =>

00:01:05 #4148 [Verbose] >             inl fn = join fn

00:01:05 #4149 [Verbose] >             fun () => $'{ new System.IDisposable with member _.Dispose () =

00:01:05 #4150 [Verbose] > ╭─[ 273.46ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4151 [Verbose] > │ ()                                                                           │

00:01:05 #4152 [Verbose] > Fable.Core.RustInterop.emitRustExpr () "!fn()" }'

00:01:05 #4153 [Verbose] > │                                                                              │

00:01:05 #4154 [Verbose] > │                                                                              │

00:01:05 #4155 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4156 [Verbose] >

00:01:05 #4157 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4158 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4159 [Verbose] > │ ## raw_string_literal                                                        │

00:01:05 #4160 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4161 [Verbose] >

00:01:05 #4162 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4163 [Verbose] > inl raw_string_literal (s : string) : rust.ref' str =

00:01:05 #4164 [Verbose] >     !\($"\"r#\\\"\" + !s + \"\\\"#\"")

00:01:05 #4165 [Verbose] >

00:01:05 #4166 [Verbose] > ╭─[ 333.17ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4167 [Verbose] > │ ()                                                                           │

00:01:05 #4168 [Verbose] > │                                                                              │

00:01:05 #4169 [Verbose] > │                                                                              │

00:01:05 #4170 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4171 [Verbose] >

00:01:05 #4172 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4173 [Verbose] > // // test

00:01:05 #4174 [Verbose] >

00:01:05 #4175 [Verbose] > init_series 0 1 0.5

00:01:05 #4176 [Verbose] > |> _assert_eq (a ;[[0f64; 0.5; 1]])

00:01:05 #4177 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0094-9491-90b07bd3f442\main.spi

00:01:05 #4178 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0099-9972-9288d8cce183\main.spi

00:01:05 #4179 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0105-0586-073c36017874\main.spi

00:01:05 #4180 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0110-1000-184da9ec0143\main.spi

00:01:05 #4181 [Verbose] >

00:01:05 #4182 [Verbose] > ╭─[ 431.83ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4183 [Verbose] >

00:01:05 #4184 [Verbose] > ╭─[ 439.21ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4185 [Verbose] > │ ()                                                                           │

00:01:05 #4186 [Verbose] > │                                                                              │

00:01:05 #4187 [Verbose] > │                                                                              │

00:01:05 #4188 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4189 [Verbose] > │ ()                                                                           │

00:01:05 #4190 [Verbose] >

00:01:05 #4191 [Verbose] > │                                                                              │

00:01:05 #4192 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4194 [Verbose] > // // test

00:01:05 #4193 [Verbose] > │                                                                              │

00:01:05 #4195 [Verbose] >

00:01:05 #4196 [Verbose] > inl new_disposable_test = mut 0i32

00:01:05 #4197 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4198 [Verbose] > new_disposable (fun () => new_disposable_test <- *new_disposable_test + 1)

00:01:05 #4199 [Verbose] > |> $'_.Dispose()'

00:01:05 #4200 [Verbose] > *new_disposable_test |> _assert_eq 1

00:01:05 #4201 [Verbose] >

00:01:05 #4202 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4203 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4204 [Verbose] > │ ## flatten                                                                   │

00:01:05 #4205 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4206 [Verbose] >

00:01:05 #4207 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4208 [Verbose] > inl flatten x =

00:01:05 #4209 [Verbose] >     match x with

00:01:05 #4210 [Verbose] >     | Some (Some x) => Some x

00:01:05 #4211 [Verbose] >     | _ => None

00:01:05 #4212 [Verbose] >

00:01:05 #4213 [Verbose] > ╭─[ 374.17ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4214 [Verbose] > │ ()                                                                           │

00:01:05 #4215 [Verbose] > │                                                                              │

00:01:05 #4216 [Verbose] > │                                                                              │

00:01:05 #4217 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4218 [Verbose] >

00:01:05 #4219 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:05 #4220 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:05 #4221 [Verbose] > │ ## raw_string_literal_static                                                 │

00:01:05 #4222 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:05 #4223 [Verbose] >

00:01:05 #4224 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:05 #4225 [Verbose] > inl raw_string_literal_static (s : string) : rust.static_ref' str =

00:01:05 #4226 [Verbose] >     !\($"\"r#\\\"\" + !s + \"\\\"#\"")

00:01:05 #4227 [Verbose] >

00:01:05 #4228 [Verbose] > ╭─[ 445.09ms - stdout ]────────────────────────────────────────────────────────╮

00:01:05 #4229 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0139-3922-32ede38ea996\main.spi

00:01:05 #4230 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0140-4035-4bf25c31f7e4\main.spi

00:01:05 #4231 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:05 #4232 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:05 #4233 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:05 #4234 [Verbose] > │     let v2 : bool = v1 < 3                                                   │

00:01:05 #4235 [Verbose] > │     v2                                                                       │

00:01:05 #4236 [Verbose] > │ and method2 (v0 : (float [])) : (float []) =                                 │

00:01:05 #4237 [Verbose] > │     v0                                                                       │

00:01:05 #4238 [Verbose] > │ and method3 (v0 : (float []), v1 : (float []), v2 : int32) : bool =          │

00:01:05 #4239 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:01:05 #4240 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:05 #4241 [Verbose] > │     if v4 then                                                               │

00:01:05 #4242 [Verbose] > │         let v5 : float = v0.[int v2]                                         │

00:01:05 #4243 [Verbose] > │         let v6 : float = v1.[int v2]                                         │

00:01:05 #4244 [Verbose] > │         let v7 : bool = v5 = v6                                              │

00:01:05 #4245 [Verbose] > │         if v7 then                                                           │

00:01:05 #4246 [Verbose] > │             let v8 : int32 = v2 + 1                                          │

00:01:05 #4247 [Verbose] > │             method3(v0, v1, v8)                                              │

00:01:05 #4248 [Verbose] > │         else                                                                 │

00:01:05 #4249 [Verbose] > │             false                                                            │

00:01:05 #4250 [Verbose] > │     else                                                                     │

00:01:05 #4251 [Verbose] > │         true                                                                 │

00:01:05 #4252 [Verbose] > │ and method4 (v0 : bool) : bool =                                             │

00:01:05 #4253 [Verbose] > │     v0                                                                       │

00:01:05 #4254 [Verbose] > │ and method0 () : unit =                                                      │

00:01:05 #4255 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (3)                        │

00:01:05 #4256 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:05 #4257 [Verbose] > │     while method1(v1) do                                                     │

00:01:05 #4258 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0142-4222-4f95d86688cf\main.spi

00:01:05 #4259 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:05 #4260 [Verbose] > │         let v4 : float = float v3                                            │

00:01:05 #4261 [Verbose] > │         let v5 : float = 0.5 * v4                                            │

00:01:06 #4262 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:01:06 #4263 [Verbose] >

00:01:06 #4264 [Verbose] >

00:01:06 #4265 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0174-7436-72fab274078e\main.spi

00:01:06 #4266 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0173-7305-7e9c52d9d992\main.spi

00:01:06 #4267 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0175-7547-7161b2c87e05\main.spi

00:01:06 #4268 [Verbose] >

00:01:06 #4269 [Verbose] > 00:00:38 #11 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_01_486_FileOpen.json' because it is being used by another process.)

00:01:06 #4270 [Verbose] > ╭─[ 594.33ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4271 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:06 #4272 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit =                                     │

00:01:06 #4273 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:06 #4274 [Verbose] > │     let v2 : int32 = v1 + 1                                                  │

00:01:06 #4275 [Verbose] > │     v0.l0 <- v2                                                              │

00:01:06 #4276 [Verbose] > │     ()                                                                       │

00:01:06 #4277 [Verbose] > │ and method1 (v0 : Mut0) : (unit -> unit) =                                   │

00:01:06 #4278 [Verbose] > │     closure0(v0)                                                             │

00:01:06 #4279 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:06 #4280 [Verbose] > │     v0                                                                       │

00:01:06 #4281 [Verbose] > 00:00:39 #12 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_01_542_BuildFile.json' because it is being used by another process.)

00:01:06 #4282 [Verbose] > │ and method0 () : unit =                                                      │

00:01:06 #4283 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:06 #4284 [Verbose] > │     let mutable result = None                                                │

00:01:06 #4285 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:06 #4286 [Verbose] > │     let v1 : (unit -> unit) = method1(v0)                                    │

00:01:06 #4287 [Verbose] > │     let v2 : System.IDisposable = { new System.IDisposable with member       │

00:01:06 #4288 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }               │

00:01:06 #4289 [Verbose] > │     v2                                                                       │

00:01:06 #4290 [Verbose] > │     #endif                                                                   │

00:01:06 #4291 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:06 #4292 [Verbose] > │     let v3 : (unit -> unit) = method1(v0)                                    │

00:01:06 #4293 [Verbose] > │     let v4 : System.IDisposable = { new System.IDisposable with member       │

00:01:06 #4294 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }               │

00:01:06 #4295 [Verbose] > │     v4                                                                       │

00:01:06 #4296 [Verbose] > │     #endif                                                                   │

00:01:06 #4297 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:06 #4298 [Verbose] > │     let v5 : (unit -> unit) = closure0(v0)                                   │

00:01:06 #4299 [Verbose] > │     let v6 : System.IDisposable = { new System.IDisposable with member       │

00:01:06 #4300 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:06 #4301 [Verbose] > │     v6                                                                       │

00:01:06 #4302 [Verbose] > │     #endif                                                                   │

00:01:06 #4303 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:06 #4304 [Verbose] > │     let v7 : System.IDisposable = { new System.IDisposable with member       │

00:01:06 #4305 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:06 #4306 [Verbose] > │     v7                                                                       │

00:01:06 #4307 [Verbose] > │     #endif                                                                   │

00:01:06 #4308 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:06 #4309 [Verbose] > │     let v8 : System.IDisposable = { new System.IDisposable with member       │

00:01:06 #4310 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:06 #4311 [Verbose] > │     v8                                                                       │

00:01:06 #4312 [Verbose] > │     #endif                                                                   │

00:01:06 #4313 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:06 #4314 [Verbose] > │     let v9 : System.IDisposable = result |> Option.get                       │

00:01:06 #4315 [Verbose] > │     let v10 : (System.IDisposable -> unit) = _.Dispose()                     │

00:01:06 #4316 [Verbose] > │     v10 v9                                                                   │

00:01:06 #4317 [Verbose] > │     let v11 : int32 = v0.l0                                                  │

00:01:06 #4318 [Verbose] > │     let v12 : string = $"%A{v11}"                                            │

00:01:06 #4319 [Verbose] > │     System.Console.WriteLine v12                                             │

00:01:06 #4320 [Verbose] > │     let v13 : bool = v11 = 1                                                 │

00:01:06 #4321 [Verbose] > │     let v15 : bool =                                                         │

00:01:06 #4322 [Verbose] > │         if v13 then                                                          │

00:01:06 #4323 [Verbose] > │             true                                                             │

00:01:06 #4324 [Verbose] > │         else                                                                 │

00:01:06 #4325 [Verbose] > │             method2(v13)                                                     │

00:01:06 #4326 [Verbose] > │     let v16 : string = $"__expect / actual: %A{v11} / expected: %A{1}"       │

00:01:06 #4327 [Verbose] > │     let v17 : bool = v15 = false                                             │

00:01:06 #4328 [Verbose] > │     if v17 then                                                              │

00:01:06 #4329 [Verbose] > │         failwith<unit> v16                                                   │

00:01:06 #4330 [Verbose] > │ method0()                                                                    │

00:01:06 #4331 [Verbose] > │                                                                              │

00:01:06 #4332 [Verbose] > │ 1                                                                            │

00:01:06 #4333 [Verbose] > │                                                                              │

00:01:06 #4334 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4335 [Verbose] >

00:01:06 #4336 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4337 [Verbose] > // // test

00:01:06 #4338 [Verbose] >

00:01:06 #4339 [Verbose] > inl new_disposable_test = mut 0i32

00:01:06 #4340 [Verbose] > fun () =>

00:01:06 #4341 [Verbose] >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1

00:01:06 #4342 [Verbose] >     |> use_disposable

00:01:06 #4343 [Verbose] >     |> ignore

00:01:06 #4344 [Verbose] > |> async.new_task

00:01:06 #4345 [Verbose] > |> async.await_task

00:01:06 #4346 [Verbose] > |> async.run_synchronously

00:01:06 #4347 [Verbose] > *new_disposable_test |> _assert_eq 1

00:01:06 #4348 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0207-0748-0c6b30c41672\main.spi

00:01:06 #4349 [Verbose] > ╭─[ 307.31ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4350 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:01:06 #4352 [Verbose] > │ ()                                                                           │

00:01:06 #4353 [Verbose] > │         v1.l0 <- v6                                                          │

00:01:06 #4354 [Verbose] > │                                                                              │

00:01:06 #4356 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0207-0740-004ae2775400\main.spi

00:01:06 #4357 [Verbose] > │                                                                              │

00:01:06 #4358 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4359 [Verbose] >

00:01:06 #4351 [Verbose] > ╭─[ 322.15ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4355 [Verbose] > │         ()                                                                   │

00:01:06 #4360 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4362 [Verbose] > │     let v7 : (float []) = [|0.0; 0.5; 1.0|]                                  │

00:01:06 #4363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4361 [Verbose] > │ ()                                                                           │

00:01:06 #4364 [Verbose] > │     let v8 : (float []) = method2(v7)                                        │

00:01:06 #4365 [Verbose] > │ ## unwrap                                                                    │

00:01:06 #4366 [Verbose] > │                                                                              │

00:01:06 #4367 [Verbose] > │     let v9 : string = $"%A{v0}"                                              │

00:01:06 #4368 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4369 [Verbose] > │                                                                              │

00:01:06 #4370 [Verbose] > │     System.Console.WriteLine v9                                              │

00:01:06 #4371 [Verbose] >

00:01:06 #4372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4373 [Verbose] > │     let v10 : int32 = v0.Length                                              │

00:01:06 #4374 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4375 [Verbose] >

00:01:06 #4376 [Verbose] > │     let v11 : int32 = v8.Length                                              │

00:01:06 #4377 [Verbose] > inl unwrap forall t. (x : option' t) : t =

00:01:06 #4378 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4379 [Verbose] > │     let v12 : bool = v10 = v11                                               │

00:01:06 #4380 [Verbose] >     !\($'"!x.unwrap()"')

00:01:06 #4382 [Verbose] > │     let v13 : bool = v12 <> true                                             │

00:01:06 #4381 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4383 [Verbose] >

00:01:06 #4385 [Verbose] > ╭─[ 338.46ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4384 [Verbose] > │ ## include_str                                                               │

00:01:06 #4386 [Verbose] > │     let v16 : bool =                                                         │

00:01:06 #4387 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4388 [Verbose] > │ ()                                                                           │

00:01:06 #4389 [Verbose] > │         if v13 then                                                          │

00:01:06 #4391 [Verbose] > │                                                                              │

00:01:06 #4390 [Verbose] >

00:01:06 #4392 [Verbose] > │             false                                                            │

00:01:06 #4393 [Verbose] > │                                                                              │

00:01:06 #4394 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4395 [Verbose] > │         else                                                                 │

00:01:06 #4396 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4398 [Verbose] > │             let v14 : int32 = 0                                              │

00:01:06 #4397 [Verbose] > inl include_str (path : string) : rust.ref' str =

00:01:06 #4399 [Verbose] >

00:01:06 #4400 [Verbose] > │             method3(v0, v8, v14)                                             │

00:01:06 #4402 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4403 [Verbose] > │     let v18 : bool =                                                         │

00:01:06 #4404 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4405 [Verbose] > │         if v16 then                                                          │

00:01:06 #4401 [Verbose] >     !\($'"include_str\!(\\\"" + !path + "\\\")"')

00:01:06 #4406 [Verbose] > │ ## unwrap_or                                                                 │

00:01:06 #4407 [Verbose] > │             true                                                             │

00:01:06 #4408 [Verbose] >

00:01:06 #4409 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4410 [Verbose] > │         else                                                                 │

00:01:06 #4411 [Verbose] > ╭─[ 315.97ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4412 [Verbose] >

00:01:06 #4413 [Verbose] > │             method4(v16)                                                     │

00:01:06 #4414 [Verbose] > │ ()                                                                           │

00:01:06 #4415 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4416 [Verbose] > │     let v19 : string = $"__expect / actual: %A{v0} / expected: %A{v8}"       │

00:01:06 #4417 [Verbose] > │                                                                              │

00:01:06 #4418 [Verbose] > inl unwrap_or forall t. (def : t) (x : option' t) : t =

00:01:06 #4419 [Verbose] > │     let v20 : bool = v18 = false                                             │

00:01:06 #4420 [Verbose] > │                                                                              │

00:01:06 #4421 [Verbose] >     !\($'"!x.unwrap_or(!def)"')

00:01:06 #4422 [Verbose] > │     if v20 then                                                              │

00:01:06 #4423 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4424 [Verbose] > │         failwith<unit> v19                                                   │

00:01:06 #4425 [Verbose] >

00:01:06 #4426 [Verbose] > │ method0()                                                                    │

00:01:06 #4427 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4428 [Verbose] > │                                                                              │

00:01:06 #4429 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4430 [Verbose] > │ [|0.0; 0.5; 1.0|]                                                            │

00:01:06 #4431 [Verbose] > │ ## as_str                                                                    │

00:01:06 #4432 [Verbose] > │                                                                              │

00:01:06 #4433 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4434 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4435 [Verbose] >

00:01:06 #4436 [Verbose] >

00:01:06 #4437 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4438 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4439 [Verbose] > inl as_str (s : string) : rust.ref' str =

00:01:06 #4440 [Verbose] >     inl s = join s

00:01:06 #4441 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4442 [Verbose] >     !\($'$"fable_library_rust::String_::LrcStr::as_str(&!s)"')

00:01:06 #4443 [Verbose] > │ ## head                                                                      │

00:01:06 #4444 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4445 [Verbose] >

00:01:06 #4446 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4447 [Verbose] > inl head (ar : a _ _) =

00:01:06 #4448 [Verbose] >     if var_is ar || length ar > 0

00:01:06 #4449 [Verbose] >     then index ar 0

00:01:06 #4450 [Verbose] >     else error_type "The length of the array should be greater than 0."

00:01:06 #4451 [Verbose] >

00:01:06 #4452 [Verbose] > ╭─[ 321.59ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4453 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0210-1038-1169833f1024\main.spi

00:01:06 #4454 [Verbose] > │ ()                                                                           │

00:01:06 #4455 [Verbose] > │                                                                              │

00:01:06 #4456 [Verbose] > │                                                                              │

00:01:06 #4457 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4458 [Verbose] >

00:01:06 #4459 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4460 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4461 [Verbose] > │ ## last                                                                      │

00:01:06 #4462 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4463 [Verbose] >

00:01:06 #4464 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4465 [Verbose] > inl last (ar : a _ _) =

00:01:06 #4466 [Verbose] >     inl len = length ar

00:01:06 #4467 [Verbose] >     if var_is ar || len > 0

00:01:06 #4468 [Verbose] >     then index ar (len - 1)

00:01:06 #4469 [Verbose] >     else error_type "The length of the array should be greater than 0."

00:01:06 #4470 [Verbose] > 00:00:39 #13 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_01_817_FileOpen.json' because it is being used by another process.)

00:01:06 #4471 [Verbose] > 00:00:39 #14 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_01_887_BuildFile.json' because it is being used by another process.)

00:01:06 #4472 [Verbose] >

00:01:06 #4473 [Verbose] >

00:01:06 #4474 [Verbose] > ╭─[ 322.38ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4475 [Verbose] > ╭─[ 324.13ms - stdout ]────────────────────────────────────────────────────────╮

00:01:06 #4476 [Verbose] > │ ()                                                                           │

00:01:06 #4478 [Verbose] > │                                                                              │

00:01:06 #4477 [Verbose] > │ ()                                                                           │

00:01:06 #4479 [Verbose] > │                                                                              │

00:01:06 #4480 [Verbose] > │                                                                              │

00:01:06 #4481 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4483 [Verbose] > │                                                                              │

00:01:06 #4482 [Verbose] >

00:01:06 #4484 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4485 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4486 [Verbose] >

00:01:06 #4487 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4488 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:06 #4489 [Verbose] > │ ## from_std_string                                                           │

00:01:06 #4490 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4491 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:06 #4492 [Verbose] > │ ## rc_upgrade                                                                │

00:01:06 #4493 [Verbose] >

00:01:06 #4494 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:06 #4495 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4496 [Verbose] >

00:01:06 #4497 [Verbose] > inl from_std_string (str : std_string) : string =

00:01:06 #4498 [Verbose] >     inl str = join str

00:01:06 #4499 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:06 #4500 [Verbose] >     !\($'"fable_library_rust::String_::fromString(!str)"')

00:01:06 #4501 [Verbose] > inl rc_upgrade forall t. (x : rust.weak_rc t) : option (rust.rc t) =

00:01:06 #4502 [Verbose] >     inl x = join x

00:01:06 #4503 [Verbose] >     !\($'"std::rc::Weak::upgrade(&!x)"')

00:01:06 #4504 [Verbose] >     |> unbox

00:01:06 #4505 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0228-2834-21fa1d7215b2\main.spi

00:01:06 #4506 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0241-4150-46dce0eb3799\main.spi

00:01:06 #4507 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0241-4192-4b2d43e4b225\main.spi

00:01:07 #4508 [Verbose] > 00:00:39 #15 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_02_160_FileOpen.json' because it is being used by another process.)

00:01:07 #4509 [Verbose] >

00:01:07 #4510 [Verbose] >

00:01:07 #4511 [Verbose] >

00:01:07 #4512 [Verbose] > ╭─[ 409.33ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4513 [Verbose] > ╭─[ 300.86ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4514 [Verbose] > │ ()                                                                           │

00:01:07 #4515 [Verbose] > │ ()                                                                           │

00:01:07 #4516 [Verbose] > │                                                                              │

00:01:07 #4517 [Verbose] > │                                                                              │

00:01:07 #4518 [Verbose] > │                                                                              │

00:01:07 #4519 [Verbose] > │                                                                              │

00:01:07 #4520 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4521 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4522 [Verbose] >

00:01:07 #4523 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:07 #4524 [Verbose] >

00:01:07 #4525 [Verbose] > ╭─[ 3.68s - stdout ]───────────────────────────────────────────────────────────╮

00:01:07 #4526 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:07 #4527 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4528 [Verbose] > │ ## ref_to_std_string                                                         │

00:01:07 #4529 [Verbose] > // // test

00:01:07 #4530 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4531 [Verbose] >

00:01:07 #4532 [Verbose] > │ type UH0 =                                                                   │

00:01:07 #4533 [Verbose] > am.init 10i32 id

00:01:07 #4534 [Verbose] > |> last

00:01:07 #4535 [Verbose] > |> _assert_eq 9

00:01:07 #4536 [Verbose] > │     | UH0_0 of string * UH0                                                  │

00:01:07 #4537 [Verbose] >

00:01:07 #4538 [Verbose] > │     | UH0_1                                                                  │

00:01:07 #4539 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4540 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:07 #4541 [Verbose] > inl ref_to_std_string (str : rust.ref' str) : std_string =

00:01:07 #4542 [Verbose] >     !\($'"String::from(!str)"')

00:01:07 #4543 [Verbose] > │     let v0 : string = "a"                                                    │

00:01:07 #4544 [Verbose] > │     let v1 : string = "b"                                                    │

00:01:07 #4545 [Verbose] > │     let v2 : string = "c"                                                    │

00:01:07 #4546 [Verbose] > │     let v3 : string = "d"                                                    │

00:01:07 #4547 [Verbose] > │     let v4 : UH0 = UH0_1                                                     │

00:01:07 #4548 [Verbose] > │     let v5 : UH0 = UH0_0(v3, v4)                                             │

00:01:07 #4549 [Verbose] > │     let v6 : UH0 = UH0_0(v2, v5)                                             │

00:01:07 #4550 [Verbose] > │     let v7 : UH0 = UH0_0(v1, v6)                                             │

00:01:07 #4551 [Verbose] > │     let v8 : UH0 = UH0_0(v0, v7)                                             │

00:01:07 #4552 [Verbose] > │     let v9 : string = $"%A{v8}"                                              │

00:01:07 #4553 [Verbose] > │     System.Console.WriteLine v9                                              │

00:01:07 #4554 [Verbose] > │     let v35 : UH0 = UH0_1                                                    │

00:01:07 #4555 [Verbose] > │     let v36 : UH0 = UH0_0(v3, v35)                                           │

00:01:07 #4556 [Verbose] > │     let v37 : UH0 = UH0_0(v2, v36)                                           │

00:01:07 #4557 [Verbose] > │     let v38 : UH0 = UH0_0(v1, v37)                                           │

00:01:07 #4558 [Verbose] > │     let v39 : UH0 = UH0_0(v0, v38)                                           │

00:01:07 #4559 [Verbose] > 00:00:39 #16 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_02_231_BuildFile.json' because it is being used by another process.)

00:01:07 #4560 [Verbose] > │     let v40 : UH0 = UH0_1                                                    │

00:01:07 #4561 [Verbose] > │     let v41 : UH0 = UH0_0(v3, v40)                                           │

00:01:07 #4562 [Verbose] > │     let v42 : UH0 = UH0_0(v2, v41)                                           │

00:01:07 #4563 [Verbose] > │     let v43 : UH0 = UH0_0(v1, v42)                                           │

00:01:07 #4564 [Verbose] > │     let v44 : UH0 = UH0_0(v0, v43)                                           │

00:01:07 #4565 [Verbose] > │     let v45 : string = $"__expect / actual: %A{v39} / expected: %A{v44}"     │

00:01:07 #4566 [Verbose] >

00:01:07 #4567 [Verbose] > │     ()                                                                       │

00:01:07 #4568 [Verbose] > ╭─[ 337.30ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4569 [Verbose] > │ method0()                                                                    │

00:01:07 #4570 [Verbose] > │ ()                                                                           │

00:01:07 #4571 [Verbose] > │                                                                              │

00:01:07 #4572 [Verbose] > │                                                                              │

00:01:07 #4573 [Verbose] > │ UH0_0 ("a", UH0_0 ("b", UH0_0 ("c", UH0_0 ("d", UH0_1))))                    │

00:01:07 #4574 [Verbose] > │                                                                              │

00:01:07 #4575 [Verbose] > │                                                                              │

00:01:07 #4576 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4578 [Verbose] >

00:01:07 #4579 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:07 #4580 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:07 #4581 [Verbose] > │ ## init_series                                                               │

00:01:07 #4582 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4583 [Verbose] >

00:01:07 #4584 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4585 [Verbose] > inl init_series start end inc =

00:01:07 #4586 [Verbose] >     inl total : f64 = conv ((end - start) / inc) + 1

00:01:07 #4587 [Verbose] >     listm.init total (conv >> (*) inc >> (+) start)

00:01:07 #4588 [Verbose] >

00:01:07 #4589 [Verbose] > ╭─[ 721.28ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4590 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:07 #4591 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit =                                     │

00:01:07 #4592 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:07 #4593 [Verbose] > │     let v2 : int32 = v1 + 1                                                  │

00:01:07 #4594 [Verbose] > │     v0.l0 <- v2                                                              │

00:01:07 #4595 [Verbose] > │     ()                                                                       │

00:01:07 #4596 [Verbose] > │ and method1 (v0 : Mut0) : (unit -> unit) =                                   │

00:01:07 #4597 [Verbose] > │     closure0(v0)                                                             │

00:01:07 #4598 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:07 #4599 [Verbose] > │     v0                                                                       │

00:01:07 #4600 [Verbose] > │ and method0 () : unit =                                                      │

00:01:07 #4601 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:07 #4602 [Verbose] > │     let mutable result = None                                                │

00:01:07 #4603 [Verbose] > │     task {                                                                   │

00:01:07 #4604 [Verbose] > │     let mutable result = None                                                │

00:01:07 #4605 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:07 #4606 [Verbose] > │     let v1 : (unit -> unit) = method1(v0)                                    │

00:01:07 #4607 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:07 #4608 [Verbose] >   return _pygments_highlight(

00:01:07 #4609 [Verbose] >

00:01:07 #4610 [Verbose] > ╭─[ 295.79ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4611 [Verbose] > │ ()                                                                           │

00:01:07 #4612 [Verbose] > │                                                                              │

00:01:07 #4613 [Verbose] > │                                                                              │

00:01:07 #4614 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4615 [Verbose] >

00:01:07 #4616 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:07 #4617 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:07 #4618 [Verbose] > │ ## to_std_string                                                             │

00:01:07 #4619 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4620 [Verbose] >

00:01:07 #4621 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4622 [Verbose] >

00:01:07 #4623 [Verbose] > inl to_std_string (s : string) : std_string =

00:01:07 #4624 [Verbose] >     inl s = join s

00:01:07 #4625 [Verbose] >     s |> as_str |> ref_to_std_string

00:01:07 #4626 [Verbose] > ╭─[ 312.95ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4627 [Verbose] > │ ()                                                                           │

00:01:07 #4628 [Verbose] > │                                                                              │

00:01:07 #4629 [Verbose] > │                                                                              │

00:01:07 #4630 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4631 [Verbose] >

00:01:07 #4632 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4633 [Verbose] > // // test

00:01:07 #4634 [Verbose] >

00:01:07 #4635 [Verbose] > init_series 0 1 0.5

00:01:07 #4636 [Verbose] > |> _assert_eq [[ 0f64; 0.5; 1 ]]

00:01:07 #4637 [Verbose] >

00:01:07 #4638 [Verbose] > ╭─[ 462.35ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4639 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:07 #4640 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:07 #4641 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:07 #4642 [Verbose] > │     let v2 : bool = v1 < 10                                                  │

00:01:07 #4643 [Verbose] > │     v2                                                                       │

00:01:07 #4644 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:07 #4645 [Verbose] > │     v0                                                                       │

00:01:07 #4646 [Verbose] > │ and method0 () : unit =                                                      │

00:01:07 #4647 [Verbose] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (10)                       │

00:01:07 #4648 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:07 #4649 [Verbose] > │     while method1(v1) do                                                     │

00:01:07 #4650 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:07 #4651 [Verbose] > │         v0.[int v3] <- v3                                                    │

00:01:07 #4652 [Verbose] > │         let v4 : int32 = v3 + 1                                              │

00:01:07 #4653 [Verbose] > │         v1.l0 <- v4                                                          │

00:01:07 #4654 [Verbose] > │         ()                                                                   │

00:01:07 #4655 [Verbose] > │     let v5 : int32 = v0.Length                                               │

00:01:07 #4656 [Verbose] > │     let v6 : int32 = v5 - 1                                                  │

00:01:07 #4657 [Verbose] > │     let v7 : int32 = v0.[int v6]                                             │

00:01:07 #4658 [Verbose] > │     let v8 : string = $"%A{v7}"                                              │

00:01:07 #4659 [Verbose] > │     System.Console.WriteLine v8                                              │

00:01:07 #4660 [Verbose] > │     let v9 : bool = v7 = 9                                                   │

00:01:07 #4661 [Verbose] > │     let v11 : bool =                                                         │

00:01:07 #4662 [Verbose] > │         if v9 then                                                           │

00:01:07 #4663 [Verbose] > │             true                                                             │

00:01:07 #4664 [Verbose] > │         else                                                                 │

00:01:07 #4665 [Verbose] > │             method2(v9)                                                      │

00:01:07 #4666 [Verbose] > │     let v12 : string = $"__expect / actual: %A{v7} / expected: %A{9}"        │

00:01:07 #4667 [Verbose] > │     let v13 : bool = v11 = false                                             │

00:01:07 #4668 [Verbose] > │     if v13 then                                                              │

00:01:07 #4669 [Verbose] > │         failwith<unit> v12                                                   │

00:01:07 #4670 [Verbose] > │ method0()                                                                    │

00:01:07 #4671 [Verbose] > │                                                                              │

00:01:07 #4672 [Verbose] > │ 9                                                                            │

00:01:07 #4673 [Verbose] > │                                                                              │

00:01:07 #4674 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4675 [Verbose] >

00:01:07 #4676 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:07 #4677 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:07 #4678 [Verbose] > │ ## try_pick                                                                  │

00:01:07 #4679 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4680 [Verbose] >

00:01:07 #4681 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4682 [Verbose] > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =

00:01:07 #4683 [Verbose] >     (array, None)

00:01:07 #4684 [Verbose] >     ||> am.foldBack fun x acc =>

00:01:07 #4685 [Verbose] >         match acc with

00:01:07 #4686 [Verbose] >         | Some _ => acc

00:01:07 #4687 [Verbose] >         | None => x |> fn

00:01:07 #4688 [Verbose] >

00:01:07 #4689 [Verbose] > │     let v2 : System.IDisposable = { new System.IDisposable with member       │

00:01:07 #4690 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0272-7227-7e5ce23364a4\main.spi

00:01:07 #4691 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }               │

00:01:07 #4692 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0272-7278-73960c7de86d\main.spi

00:01:07 #4693 [Verbose] > │     v2                                                                       │

00:01:07 #4694 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0276-7635-7163cc636c74\main.spi

00:01:07 #4695 [Verbose] > │     #endif                                                                   │

00:01:07 #4697 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:07 #4696 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0307-0742-087710a0990e\main.spi

00:01:07 #4698 [Verbose] > │     let v3 : (unit -> unit) = method1(v0)                                    │

00:01:07 #4699 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0309-0924-0ac46b650bda\main.spi

00:01:07 #4700 [Verbose] > │     let v4 : System.IDisposable = { new System.IDisposable with member       │

00:01:07 #4701 [Verbose] > 00:00:40 #17 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_02_872_BuildFile.json' because it is being used by another process.)

00:01:07 #4702 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }               │

00:01:07 #4703 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0321-2192-2517104c91b4\main.spi

00:01:07 #4704 [Verbose] > │     v4                                                                       │

00:01:07 #4705 [Verbose] > │     #endif                                                                   │

00:01:07 #4706 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:07 #4707 [Verbose] > │     let v5 : (unit -> unit) = closure0(v0)                                   │

00:01:07 #4708 [Verbose] > │     let v6 : System.IDisposable = { new System.IDisposable with member       │

00:01:07 #4709 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:07 #4710 [Verbose] > │     v6                                                                       │

00:01:07 #4711 [Verbose] > │     #endif                                                                   │

00:01:07 #4712 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:07 #4713 [Verbose] > │     let v7 : System.IDisposable = { new System.IDisposable with member       │

00:01:07 #4714 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:07 #4715 [Verbose] > │     v7                                                                       │

00:01:07 #4716 [Verbose] > │     #endif                                                                   │

00:01:07 #4717 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:07 #4718 [Verbose] > │     let v8 : System.IDisposable = { new System.IDisposable with member       │

00:01:07 #4719 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:07 #4720 [Verbose] > │     v8                                                                       │

00:01:07 #4721 [Verbose] > │     #endif                                                                   │

00:01:07 #4722 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:07 #4723 [Verbose] > │     let v9 : System.IDisposable = result |> Option.get                       │

00:01:07 #4724 [Verbose] > │     use v9 = v9                                                              │

00:01:07 #4725 [Verbose] > │     let v10 : System.IDisposable = v9                                        │

00:01:07 #4726 [Verbose] > │     return ()                                                                │

00:01:07 #4727 [Verbose] > │     }                                                                        │

00:01:07 #4728 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:07 #4729 [Verbose] > │     let v11 : System.Threading.Tasks.Task<unit> = result |> Option.get       │

00:01:07 #4730 [Verbose] > │     let v12 : (System.Threading.Tasks.Task<unit> -> Async<unit>) =           │

00:01:07 #4731 [Verbose] > │ Async.AwaitTask                                                              │

00:01:07 #4732 [Verbose] > │     let v13 : Async<unit> = v12 v11                                          │

00:01:07 #4733 [Verbose] > │     let v14 : (Async<unit> -> unit) = Async.RunSynchronously                 │

00:01:07 #4734 [Verbose] > │     v14 v13                                                                  │

00:01:07 #4735 [Verbose] > │     let v15 : int32 = v0.l0                                                  │

00:01:07 #4736 [Verbose] > │     let v16 : string = $"%A{v15}"                                            │

00:01:07 #4737 [Verbose] > │     System.Console.WriteLine v16                                             │

00:01:07 #4738 [Verbose] > │     let v17 : bool = v15 = 1                                                 │

00:01:07 #4739 [Verbose] > │     let v19 : bool =                                                         │

00:01:07 #4740 [Verbose] > │         if v17 then                                                          │

00:01:07 #4741 [Verbose] > │             true                                                             │

00:01:07 #4742 [Verbose] > │         else                                                                 │

00:01:07 #4743 [Verbose] > │             method2(v17)                                                     │

00:01:07 #4744 [Verbose] > │     let v20 : string = $"__expect / actual: %A{v15} / expected: %A{1}"       │

00:01:07 #4745 [Verbose] > │     let v21 : bool = v19 = false                                             │

00:01:07 #4746 [Verbose] > │     if v21 then                                                              │

00:01:07 #4747 [Verbose] > │         failwith<unit> v20                                                   │

00:01:07 #4748 [Verbose] > │ method0()                                                                    │

00:01:07 #4749 [Verbose] > │                                                                              │

00:01:07 #4750 [Verbose] > │ 1                                                                            │

00:01:07 #4751 [Verbose] > │                                                                              │

00:01:07 #4752 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4753 [Verbose] >

00:01:07 #4754 [Verbose] > ╭─[ 350.69ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4755 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4757 [Verbose] > │ ()                                                                           │

00:01:07 #4756 [Verbose] > // // test

00:01:07 #4758 [Verbose] >

00:01:07 #4759 [Verbose] > inl new_disposable_test = mut 0i32

00:01:07 #4760 [Verbose] > fun () =>

00:01:07 #4761 [Verbose] >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1

00:01:07 #4762 [Verbose] >     |> use_disposable

00:01:07 #4763 [Verbose] >     |> ignore

00:01:07 #4764 [Verbose] > |> async.new_async

00:01:07 #4765 [Verbose] > |> async.run_synchronously

00:01:07 #4766 [Verbose] > *new_disposable_test |> _assert_eq 1

00:01:07 #4767 [Verbose] > │                                                                              │

00:01:07 #4768 [Verbose] > │                                                                              │

00:01:07 #4769 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4770 [Verbose] >

00:01:07 #4771 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:07 #4772 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:07 #4773 [Verbose] > │ ## as_str_std                                                                │

00:01:07 #4774 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4775 [Verbose] >

00:01:07 #4776 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4777 [Verbose] > inl as_str_std (s : std_string) : rust.ref' str =

00:01:07 #4778 [Verbose] >     inl s = join s

00:01:07 #4779 [Verbose] >     !\($'"!s.as_str()"')

00:01:07 #4780 [Verbose] >

00:01:07 #4781 [Verbose] > ╭─[ 341.94ms - stdout ]────────────────────────────────────────────────────────╮

00:01:07 #4782 [Verbose] > │ ()                                                                           │

00:01:07 #4783 [Verbose] > │                                                                              │

00:01:07 #4784 [Verbose] > │                                                                              │

00:01:07 #4785 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:07 #4786 [Verbose] >

00:01:07 #4787 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:07 #4788 [Verbose] > // // test

00:01:07 #4789 [Verbose] >

00:01:07 #4790 [Verbose] > am.init 10i32 id

00:01:07 #4791 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)

00:01:07 #4792 [Verbose] > |> _assert_eq (Some 5i32)

00:01:08 #4793 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0341-4146-465120fbaf03\main.spi

00:01:08 #4794 [Verbose] >

00:01:08 #4795 [Verbose] > ╭─[ 561.42ms - stdout ]────────────────────────────────────────────────────────╮

00:01:08 #4796 [Verbose] > │ type UH0 =                                                                   │

00:01:08 #4797 [Verbose] > │     | UH0_0 of float * UH0                                                   │

00:01:08 #4798 [Verbose] > │     | UH0_1                                                                  │

00:01:08 #4799 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:08 #4800 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:08 #4801 [Verbose] > │     let v1 : UH0 = UH0_0(1.0, v0)                                            │

00:01:08 #4802 [Verbose] > │     let v2 : UH0 = UH0_0(0.5, v1)                                            │

00:01:08 #4803 [Verbose] > │     let v3 : UH0 = UH0_0(0.0, v2)                                            │

00:01:08 #4804 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:01:08 #4805 [Verbose] > │     System.Console.WriteLine v4                                              │

00:01:08 #4806 [Verbose] > │     let v23 : UH0 = UH0_1                                                    │

00:01:08 #4807 [Verbose] > │     let v24 : UH0 = UH0_0(1.0, v23)                                          │

00:01:08 #4808 [Verbose] > │     let v25 : UH0 = UH0_0(0.5, v24)                                          │

00:01:08 #4809 [Verbose] > │     let v26 : UH0 = UH0_0(0.0, v25)                                          │

00:01:08 #4810 [Verbose] > │     let v27 : UH0 = UH0_1                                                    │

00:01:08 #4811 [Verbose] > │     let v28 : UH0 = UH0_0(1.0, v27)                                          │

00:01:08 #4812 [Verbose] > │     let v29 : UH0 = UH0_0(0.5, v28)                                          │

00:01:08 #4813 [Verbose] > │     let v30 : UH0 = UH0_0(0.0, v29)                                          │

00:01:08 #4814 [Verbose] > │     let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}"     │

00:01:08 #4815 [Verbose] > │     ()                                                                       │

00:01:08 #4816 [Verbose] > │ method0()                                                                    │

00:01:08 #4817 [Verbose] > │                                                                              │

00:01:08 #4818 [Verbose] > │ UH0_0 (0.0, UH0_0 (0.5, UH0_0 (1.0, UH0_1)))                                 │

00:01:08 #4819 [Verbose] > │                                                                              │

00:01:08 #4820 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0343-4353-464a2561f8e4\main.spi

00:01:08 #4821 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #4822 [Verbose] >

00:01:08 #4823 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:08 #4824 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:08 #4825 [Verbose] > │ ## try_item                                                                  │

00:01:08 #4826 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #4827 [Verbose] >

00:01:08 #4828 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:08 #4829 [Verbose] > inl rec try_item i = function

00:01:08 #4830 [Verbose] >     | Cons (x, _) when i = 0 => Some x

00:01:08 #4831 [Verbose] >     | Cons (_, xs) => try_item (i - 1) xs

00:01:08 #4832 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0357-5755-5cdada1bd462\main.spi

00:01:08 #4833 [Verbose] >     | Nil => None

00:01:08 #4834 [Verbose] >

00:01:08 #4835 [Verbose] >

00:01:08 #4836 [Verbose] > ╭─[ 471.44ms - stdout ]────────────────────────────────────────────────────────╮

00:01:08 #4837 [Verbose] > │ ()                                                                           │

00:01:08 #4838 [Verbose] > ╭─[ 503.10ms - stdout ]────────────────────────────────────────────────────────╮

00:01:08 #4839 [Verbose] > │                                                                              │

00:01:08 #4840 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:08 #4841 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit =                                     │

00:01:08 #4842 [Verbose] > │                                                                              │

00:01:08 #4843 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:08 #4844 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #4845 [Verbose] >

00:01:08 #4846 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:08 #4847 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:08 #4848 [Verbose] > │ ## into_boxed_str                                                            │

00:01:08 #4849 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #4850 [Verbose] > │     let v2 : int32 = v1 + 1                                                  │

00:01:08 #4851 [Verbose] >

00:01:08 #4852 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0374-7421-798dd65e3f90\main.spi

00:01:08 #4853 [Verbose] > │     v0.l0 <- v2                                                              │

00:01:08 #4854 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:08 #4855 [Verbose] > │     ()                                                                       │

00:01:08 #4856 [Verbose] > inl into_boxed_str (s : std_string) : rust.box str =

00:01:08 #4857 [Verbose] >     !\($'"!s.into_boxed_str()"')

00:01:08 #4858 [Verbose] > │ and method1 (v0 : Mut0) : (unit -> unit) =                                   │

00:01:08 #4859 [Verbose] > │     closure0(v0)                                                             │

00:01:08 #4860 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:08 #4861 [Verbose] > │     v0                                                                       │

00:01:08 #4862 [Verbose] > │ and method0 () : unit =                                                      │

00:01:08 #4863 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:08 #4864 [Verbose] > │     let mutable result = None                                                │

00:01:08 #4865 [Verbose] > │     async {                                                                  │

00:01:08 #4866 [Verbose] > │     let mutable result = None                                                │

00:01:08 #4867 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:08 #4868 [Verbose] > │     let v1 : (unit -> unit) = method1(v0)                                    │

00:01:08 #4869 [Verbose] > │     let v2 : System.IDisposable = { new System.IDisposable with member       │

00:01:08 #4870 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }               │

00:01:08 #4871 [Verbose] > │     v2                                                                       │

00:01:08 #4872 [Verbose] > │     #endif                                                                   │

00:01:08 #4873 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:08 #4874 [Verbose] > │     let v3 : (unit -> unit) = method1(v0)                                    │

00:01:08 #4875 [Verbose] > │     let v4 : System.IDisposable = { new System.IDisposable with member       │

00:01:08 #4876 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }               │

00:01:08 #4877 [Verbose] > │     v4                                                                       │

00:01:08 #4878 [Verbose] > │     #endif                                                                   │

00:01:08 #4879 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:08 #4880 [Verbose] > │     let v5 : (unit -> unit) = closure0(v0)                                   │

00:01:08 #4881 [Verbose] > │     let v6 : System.IDisposable = { new System.IDisposable with member       │

00:01:08 #4882 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:08 #4883 [Verbose] > │     v6                                                                       │

00:01:08 #4884 [Verbose] > │     #endif                                                                   │

00:01:08 #4885 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:08 #4886 [Verbose] > │     let v7 : System.IDisposable = { new System.IDisposable with member       │

00:01:08 #4887 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:08 #4888 [Verbose] > │     v7                                                                       │

00:01:08 #4889 [Verbose] > │     #endif                                                                   │

00:01:08 #4890 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:08 #4891 [Verbose] > │     let v8 : System.IDisposable = { new System.IDisposable with member       │

00:01:08 #4892 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:08 #4893 [Verbose] > │     v8                                                                       │

00:01:08 #4894 [Verbose] > │     #endif                                                                   │

00:01:08 #4895 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:08 #4896 [Verbose] > [NbConvertApp] Writing 356598 bytes to date_time.dib.html

00:01:08 #4897 [Verbose] >

00:01:08 #4898 [Verbose] > ╭─[ 430.57ms - stdout ]────────────────────────────────────────────────────────╮

00:01:08 #4899 [Verbose] > │ ()                                                                           │

00:01:08 #4900 [Verbose] > │                                                                              │

00:01:08 #4901 [Verbose] > │                                                                              │

00:01:08 #4902 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #4903 [Verbose] >

00:01:08 #4904 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:08 #4905 [Verbose] > // // test

00:01:08 #4906 [Verbose] >

00:01:08 #4907 [Verbose] > listm.init 10i32 id

00:01:08 #4908 [Verbose] > |> try_item 9i32

00:01:08 #4909 [Verbose] > |> _assert_eq (Some 9)

00:01:08 #4910 [Verbose] >

00:01:08 #4911 [Verbose] > ╭─[ 595.54ms - stdout ]────────────────────────────────────────────────────────╮

00:01:08 #4912 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:08 #4913 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:08 #4914 [Verbose] > │     | US0_0                                                                  │

00:01:08 #4915 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:08 #4916 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : US0}                            │

00:01:08 #4917 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:08 #4918 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:08 #4919 [Verbose] > │     let v2 : bool = v1 < 10                                                  │

00:01:08 #4920 [Verbose] > │     v2                                                                       │

00:01:08 #4921 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:01:08 #4922 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:08 #4923 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:08 #4924 [Verbose] > │     v3                                                                       │

00:01:08 #4925 [Verbose] > │ and method3 (v0 : bool) : bool =                                             │

00:01:08 #4926 [Verbose] > │     v0                                                                       │

00:01:08 #4927 [Verbose] > │ and method0 () : unit =                                                      │

00:01:08 #4928 [Verbose] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (10)                       │

00:01:08 #4929 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:08 #4930 [Verbose] > │     while method1(v1) do                                                     │

00:01:08 #4931 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:08 #4932 [Verbose] > │         v0.[int v3] <- v3                                                    │

00:01:08 #4933 [Verbose] > │         let v4 : int32 = v3 + 1                                              │

00:01:08 #4934 [Verbose] > │         v1.l0 <- v4                                                          │

00:01:08 #4935 [Verbose] > │         ()                                                                   │

00:01:08 #4936 [Verbose] > │     let v5 : int32 = v0.Length                                               │

00:01:08 #4937 [Verbose] > │     let v6 : US0 = US0_0                                                     │

00:01:08 #4938 [Verbose] > │     let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1                                 │

00:01:08 #4939 [Verbose] > │     while method2(v5, v7) do                                                 │

00:01:08 #4940 [Verbose] > │         let v9 : int32 = v7.l0                                               │

00:01:08 #4941 [Verbose] > │         let v10 : int32 =  -v9                                               │

00:01:08 #4942 [Verbose] > │         let v11 : int32 = v10 + v5                                           │

00:01:08 #4943 [Verbose] > │         let v12 : int32 = v11 - 1                                            │

00:01:08 #4944 [Verbose] > │         let v13 : US0 = v7.l1                                                │

00:01:08 #4945 [Verbose] > │         let v14 : int32 = v0.[int v12]                                       │

00:01:08 #4946 [Verbose] > │         let v21 : US0 =                                                      │

00:01:08 #4947 [Verbose] > │             match v13 with                                                   │

00:01:08 #4948 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:01:08 #4949 [Verbose] > │                 let v16 : bool = v14 = 5                                     │

00:01:08 #4950 [Verbose] > │     let v9 : System.IDisposable = result |> Option.get                       │

00:01:08 #4951 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0394-9437-931464d2d8b7\main.spi

00:01:08 #4952 [Verbose] > │     use v9 = v9                                                              │

00:01:08 #4953 [Verbose] > │     let v10 : System.IDisposable = v9                                        │

00:01:08 #4954 [Verbose] > │     return ()                                                                │

00:01:08 #4955 [Verbose] > │     }                                                                        │

00:01:08 #4956 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:08 #4957 [Verbose] > │     let v11 : Async<unit> = result |> Option.get                             │

00:01:08 #4958 [Verbose] > │     let v12 : (Async<unit> -> unit) = Async.RunSynchronously                 │

00:01:08 #4959 [Verbose] > │     v12 v11                                                                  │

00:01:08 #4960 [Verbose] > │     let v13 : int32 = v0.l0                                                  │

00:01:08 #4961 [Verbose] > │     let v14 : string = $"%A{v13}"                                            │

00:01:08 #4962 [Verbose] > │     System.Console.WriteLine v14                                             │

00:01:08 #4963 [Verbose] > │     let v15 : bool = v13 = 1                                                 │

00:01:08 #4964 [Verbose] > │     let v17 : bool =                                                         │

00:01:08 #4965 [Verbose] > │         if v15 then                                                          │

00:01:08 #4966 [Verbose] > │             true                                                             │

00:01:08 #4967 [Verbose] > │         else                                                                 │

00:01:08 #4968 [Verbose] > │             method2(v15)                                                     │

00:01:08 #4969 [Verbose] > │     let v18 : string = $"__expect / actual: %A{v13} / expected: %A{1}"       │

00:01:08 #4970 [Verbose] > │     let v19 : bool = v17 = false                                             │

00:01:08 #4971 [Verbose] > │     if v19 then                                                              │

00:01:08 #4972 [Verbose] > │         failwith<unit> v18                                                   │

00:01:08 #4973 [Verbose] > │ method0()                                                                    │

00:01:08 #4974 [Verbose] > │                                                                              │

00:01:08 #4975 [Verbose] > │ 1                                                                            │

00:01:08 #4976 [Verbose] > │                                                                              │

00:01:08 #4977 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #4978 [Verbose] >

00:01:08 #4979 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:08 #4980 [Verbose] > // // test

00:01:08 #4981 [Verbose] >

00:01:08 #4982 [Verbose] > inl new_disposable_test = mut 0i32

00:01:08 #4983 [Verbose] > fun () =>

00:01:08 #4984 [Verbose] >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1

00:01:08 #4985 [Verbose] >     |> ignore

00:01:08 #4986 [Verbose] > |> async.new_async

00:01:08 #4987 [Verbose] > |> async.run_synchronously

00:01:08 #4988 [Verbose] > *new_disposable_test |> _assert_eq 0

00:01:08 #4989 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0407-0799-0614381e818c\main.spi

00:01:08 #4990 [Verbose] > │                 if v16 then                                                  │

00:01:08 #4991 [Verbose] > │                     US0_1(v14)                                               │

00:01:08 #4992 [Verbose] > │                 else                                                         │

00:01:08 #4993 [Verbose] > │                     US0_0                                                    │

00:01:08 #4994 [Verbose] > │             | US0_1(v15) -> (* Some *)                                       │

00:01:08 #4995 [Verbose] > │                 v13                                                          │

00:01:08 #4996 [Verbose] > │         let v22 : int32 = v9 + 1                                             │

00:01:08 #4997 [Verbose] > │         v7.l0 <- v22                                                         │

00:01:08 #4998 [Verbose] > │         v7.l1 <- v21                                                         │

00:01:08 #4999 [Verbose] > │         ()                                                                   │

00:01:08 #5000 [Verbose] > │     let v23 : US0 = v7.l1                                                    │

00:01:08 #5001 [Verbose] > │     let v24 : string = $"%A{v23}"                                            │

00:01:08 #5002 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0415-1553-1a37d5d90fb6\main.spi

00:01:08 #5003 [Verbose] > │     System.Console.WriteLine v24                                             │

00:01:08 #5004 [Verbose] > │     let v28 : bool =                                                         │

00:01:08 #5005 [Verbose] > │         match v23 with                                                       │

00:01:08 #5006 [Verbose] > │         | US0_1(v26) -> (* Some *)                                           │

00:01:08 #5007 [Verbose] > │             let v27 : bool = v26 = 5                                         │

00:01:08 #5008 [Verbose] > │             v27                                                              │

00:01:08 #5009 [Verbose] > │         | _ ->                                                               │

00:01:08 #5010 [Verbose] > │             false                                                            │

00:01:08 #5011 [Verbose] > │     let v30 : bool =                                                         │

00:01:08 #5012 [Verbose] >

00:01:08 #5013 [Verbose] > │         if v28 then                                                          │

00:01:08 #5014 [Verbose] > │             true                                                             │

00:01:08 #5015 [Verbose] > ╭─[ 417.21ms - stdout ]────────────────────────────────────────────────────────╮

00:01:08 #5016 [Verbose] > │         else                                                                 │

00:01:08 #5017 [Verbose] > │ ()                                                                           │

00:01:08 #5018 [Verbose] > │             method3(v28)                                                     │

00:01:08 #5019 [Verbose] > │                                                                              │

00:01:08 #5020 [Verbose] > │     let v31 : US0 = US0_1(5)                                                 │

00:01:08 #5021 [Verbose] > │                                                                              │

00:01:08 #5022 [Verbose] > │     let v32 : string = $"__expect / actual: %A{v23} / expected: %A{v31}"     │

00:01:08 #5023 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #5024 [Verbose] >

00:01:08 #5025 [Verbose] > │     let v33 : bool = v30 = false                                             │

00:01:08 #5026 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:08 #5027 [Verbose] > │     if v33 then                                                              │

00:01:08 #5028 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:08 #5029 [Verbose] > │         failwith<unit> v32                                                   │

00:01:08 #5030 [Verbose] > │ ## format'                                                                   │

00:01:08 #5031 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #5032 [Verbose] > │ method0()                                                                    │

00:01:08 #5033 [Verbose] >

00:01:08 #5034 [Verbose] > │                                                                              │

00:01:08 #5035 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:08 #5036 [Verbose] > │ US0_1 5                                                                      │

00:01:08 #5037 [Verbose] > inl format' x : std_string =

00:01:08 #5038 [Verbose] >     !\\(x, $'@@$"format\!(""{{}}"", $0)"')

00:01:08 #5039 [Verbose] > │                                                                              │

00:01:08 #5040 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #5041 [Verbose] >

00:01:08 #5042 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:08 #5043 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:08 #5044 [Verbose] > │ ## indexed'                                                                  │

00:01:08 #5045 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:08 #5046 [Verbose] >

00:01:08 #5047 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:08 #5048 [Verbose] > inl indexed' forall t dim {int; number} dim' {int; number} u {number}. (ar : a

00:01:08 #5049 [Verbose] > dim t) : a dim' (u * t) =

00:01:08 #5050 [Verbose] >     ((0, a ;[[]]), ar)

00:01:08 #5051 [Verbose] >     ||> am.fold fun (i, acc) x =>

00:01:08 #5052 [Verbose] >         i + 1, acc /@ a ;[[i, x]]

00:01:08 #5053 [Verbose] >     |> snd

00:01:10 #5054 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0437-3779-3dc99d5d69fc\main.spi

00:01:10 #5055 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0435-3577-3df2cd1b85e0\main.spi

00:01:10 #5056 [Verbose] >

00:01:10 #5057 [Verbose] >

00:01:10 #5058 [Verbose] >

00:01:10 #5059 [Verbose] > ╭─[ 1.73s - stdout ]───────────────────────────────────────────────────────────╮

00:01:10 #5060 [Verbose] > ╭─[ 1.75s - stdout ]───────────────────────────────────────────────────────────╮

00:01:10 #5062 [Verbose] > │ ()                                                                           │

00:01:10 #5062 [Verbose] > │ ()                                                                           │

00:01:10 #5063 [Verbose] > │                                                                              │

00:01:10 #5064 [Verbose] > │                                                                              │

00:01:10 #5065 [Verbose] > ╭─[ 1.98s - stdout ]───────────────────────────────────────────────────────────╮

00:01:10 #5066 [Verbose] > │                                                                              │

00:01:10 #5067 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:10 #5068 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:10 #5069 [Verbose] >

00:01:10 #5070 [Verbose] > │     | US0_0                                                                  │

00:01:10 #5071 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:10 #5072 [Verbose] > // // test

00:01:10 #5073 [Verbose] >

00:01:10 #5074 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:10 #5075 [Verbose] > am.init 3i32 ((*) 2)

00:01:10 #5076 [Verbose] > |> indexed'

00:01:10 #5077 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)

00:01:10 #5078 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:10 #5079 [Verbose] > │     let v0 : US0 = US0_1(9)                                                  │

00:01:10 #5080 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:10 #5081 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:10 #5082 [Verbose] > │     let v5 : US0 = US0_1(9)                                                  │

00:01:10 #5083 [Verbose] > │     let v6 : US0 = US0_1(9)                                                  │

00:01:10 #5084 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:10 #5085 [Verbose] > │     ()                                                                       │

00:01:10 #5086 [Verbose] > │ method0()                                                                    │

00:01:10 #5087 [Verbose] > │                                                                              │

00:01:10 #5088 [Verbose] > │ US0_1 9                                                                      │

00:01:10 #5089 [Verbose] > │                                                                              │

00:01:10 #5090 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:10 #5091 [Verbose] >

00:01:10 #5092 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:10 #5093 [Verbose] > // // test

00:01:10 #5094 [Verbose] >

00:01:10 #5095 [Verbose] > listm.init 10i32 id

00:01:10 #5096 [Verbose] > │                                                                              │

00:01:10 #5097 [Verbose] > |> try_item 10i32

00:01:10 #5098 [Verbose] > |> _assert_eq None

00:01:10 #5099 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:10 #5100 [Verbose] >

00:01:10 #5101 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:10 #5102 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:10 #5103 [Verbose] > │ ## format_debug                                                              │

00:01:10 #5104 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:10 #5105 [Verbose] >

00:01:10 #5106 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:10 #5107 [Verbose] > inl format_debug x : string =

00:01:10 #5108 [Verbose] >     $'$"%A{!x}"'

00:01:10 #5109 [Verbose] >

00:01:10 #5110 [Verbose] > ╭─[ 2.18s - stdout ]───────────────────────────────────────────────────────────╮

00:01:10 #5111 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:10 #5112 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit =                                     │

00:01:10 #5113 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:10 #5114 [Verbose] > │     let v2 : int32 = v1 + 1                                                  │

00:01:10 #5115 [Verbose] > │     v0.l0 <- v2                                                              │

00:01:10 #5116 [Verbose] > │     ()                                                                       │

00:01:10 #5117 [Verbose] > │ and method1 (v0 : Mut0) : (unit -> unit) =                                   │

00:01:10 #5118 [Verbose] > │     closure0(v0)                                                             │

00:01:10 #5119 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:10 #5120 [Verbose] > │     v0                                                                       │

00:01:10 #5121 [Verbose] > │ and method0 () : unit =                                                      │

00:01:10 #5122 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:10 #5123 [Verbose] > │     let mutable result = None                                                │

00:01:10 #5124 [Verbose] > │     async {                                                                  │

00:01:10 #5125 [Verbose] > │     let mutable result = None                                                │

00:01:10 #5126 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:10 #5127 [Verbose] > │     let v1 : (unit -> unit) = method1(v0)                                    │

00:01:10 #5128 [Verbose] > │     let v2 : System.IDisposable = { new System.IDisposable with member       │

00:01:10 #5129 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }               │

00:01:10 #5130 [Verbose] > │     v2                                                                       │

00:01:10 #5131 [Verbose] > │     #endif                                                                   │

00:01:10 #5132 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:10 #5133 [Verbose] > │     let v3 : (unit -> unit) = method1(v0)                                    │

00:01:10 #5134 [Verbose] > │     let v4 : System.IDisposable = { new System.IDisposable with member       │

00:01:10 #5135 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }               │

00:01:10 #5136 [Verbose] > │     v4                                                                       │

00:01:10 #5137 [Verbose] > │     #endif                                                                   │

00:01:10 #5138 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:10 #5139 [Verbose] > │     let v5 : (unit -> unit) = closure0(v0)                                   │

00:01:10 #5140 [Verbose] > │     let v6 : System.IDisposable = { new System.IDisposable with member       │

00:01:10 #5141 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:10 #5142 [Verbose] > │     v6                                                                       │

00:01:10 #5143 [Verbose] > │     #endif                                                                   │

00:01:10 #5144 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:10 #5145 [Verbose] > │     let v7 : System.IDisposable = { new System.IDisposable with member       │

00:01:10 #5146 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:10 #5147 [Verbose] > │     v7                                                                       │

00:01:10 #5148 [Verbose] > │     #endif                                                                   │

00:01:10 #5149 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:10 #5150 [Verbose] > │     let v8 : System.IDisposable = { new System.IDisposable with member       │

00:01:10 #5151 [Verbose] > │ _.Dispose () = v5 () }                                                       │

00:01:11 #5152 [Verbose] > │     v8                                                                       │

00:01:11 #5153 [Verbose] > │     #endif                                                                   │

00:01:11 #5154 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:11 #5155 [Verbose] > │     let v9 : System.IDisposable = result |> Option.get                       │

00:01:11 #5156 [Verbose] > │     return ()                                                                │

00:01:11 #5157 [Verbose] > │     }                                                                        │

00:01:11 #5158 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:11 #5159 [Verbose] > │     let v10 : Async<unit> = result |> Option.get                             │

00:01:11 #5160 [Verbose] > │     let v11 : (Async<unit> -> unit) = Async.RunSynchronously                 │

00:01:11 #5161 [Verbose] > │     v11 v10                                                                  │

00:01:11 #5162 [Verbose] > │     let v12 : int32 = v0.l0                                                  │

00:01:11 #5163 [Verbose] > │     let v13 : string = $"%A{v12}"                                            │

00:01:11 #5164 [Verbose] > │     System.Console.WriteLine v13                                             │

00:01:11 #5165 [Verbose] > │     let v14 : bool = v12 = 0                                                 │

00:01:11 #5166 [Verbose] > │     let v16 : bool =                                                         │

00:01:11 #5167 [Verbose] > │         if v14 then                                                          │

00:01:11 #5168 [Verbose] > │             true                                                             │

00:01:11 #5169 [Verbose] > │         else                                                                 │

00:01:11 #5170 [Verbose] > │             method2(v14)                                                     │

00:01:11 #5171 [Verbose] > │     let v17 : string = $"__expect / actual: %A{v12} / expected: %A{0}"       │

00:01:11 #5172 [Verbose] > │     let v18 : bool = v16 = false                                             │

00:01:11 #5173 [Verbose] > │     if v18 then                                                              │

00:01:11 #5174 [Verbose] > │         failwith<unit> v17                                                   │

00:01:11 #5175 [Verbose] > │ method0()                                                                    │

00:01:11 #5176 [Verbose] > │                                                                              │

00:01:11 #5177 [Verbose] > │ 0                                                                            │

00:01:11 #5178 [Verbose] > │                                                                              │

00:01:11 #5179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5180 [Verbose] >

00:01:11 #5181 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:11 #5182 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:11 #5183 [Verbose] > │ ## try                                                                       │

00:01:11 #5184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5185 [Verbose] >

00:01:11 #5186 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5187 [Verbose] > inl try forall t. (fn : () -> t) (ex_fn : exn -> ()) : option t =

00:01:11 #5188 [Verbose] >     inl none = None : option t

00:01:11 #5189 [Verbose] >     inl some (s : t) = Some s

00:01:11 #5190 [Verbose] >     $'try !fn () |> !some with ex -> !ex_fn ex; !none '

00:01:11 #5191 [Verbose] >

00:01:11 #5192 [Verbose] > ╭─[ 616.81ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5193 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:11 #5194 [Verbose] > │     | US0_0                                                                  │

00:01:11 #5195 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:11 #5196 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:11 #5197 [Verbose] > │     let v0 : US0 = US0_0                                                     │

00:01:11 #5198 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:11 #5199 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:11 #5200 [Verbose] > │     let v5 : US0 = US0_0                                                     │

00:01:11 #5201 [Verbose] > │     let v6 : US0 = US0_0                                                     │

00:01:11 #5202 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:11 #5203 [Verbose] > │     ()                                                                       │

00:01:11 #5204 [Verbose] > │ method0()                                                                    │

00:01:11 #5205 [Verbose] > │                                                                              │

00:01:11 #5206 [Verbose] > │ US0_0                                                                        │

00:01:11 #5207 [Verbose] > │                                                                              │

00:01:11 #5208 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5209 [Verbose] >

00:01:11 #5210 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:11 #5211 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:11 #5212 [Verbose] > │ ## list_item                                                                 │

00:01:11 #5213 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5214 [Verbose] >

00:01:11 #5215 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5216 [Verbose] > inl item i =

00:01:11 #5217 [Verbose] >     try_item i >> optionm.value

00:01:11 #5218 [Verbose] >

00:01:11 #5219 [Verbose] > ╭─[ 569.68ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5220 [Verbose] > │ ()                                                                           │

00:01:11 #5221 [Verbose] > │                                                                              │

00:01:11 #5222 [Verbose] > │                                                                              │

00:01:11 #5223 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5224 [Verbose] >

00:01:11 #5225 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:11 #5226 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:11 #5227 [Verbose] > │ ## format_debug'                                                             │

00:01:11 #5228 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5229 [Verbose] >

00:01:11 #5230 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5231 [Verbose] > inl format_debug' x : std_string =

00:01:11 #5232 [Verbose] >     !\\(x, $'@@$"format\!(""{{:?}}"", $0)"')

00:01:11 #5233 [Verbose] >

00:01:11 #5234 [Verbose] > ╭─[ 811.28ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5235 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:11 #5236 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32; mutable l2 : (struct     │

00:01:11 #5237 [Verbose] > │ (int32 * int32) [])}                                                         │

00:01:11 #5238 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:11 #5239 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:11 #5240 [Verbose] > │     let v2 : bool = v1 < 3                                                   │

00:01:11 #5241 [Verbose] > │     v2                                                                       │

00:01:11 #5242 [Verbose] > │ and method2 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │

00:01:11 #5243 [Verbose] > │ =                                                                            │

00:01:11 #5244 [Verbose] > │     v0                                                                       │

00:01:11 #5245 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool =                                 │

00:01:11 #5246 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0613-1366-1dc2dd84e6f9\main.spi

00:01:11 #5247 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0615-1569-1e6dac7b87b0\main.spi

00:01:11 #5248 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0624-2408-230b07a859e5\main.spi

00:01:11 #5249 [Debug] executeAsync / exitCode: 0 / output.Length: 75788

00:01:11 #5250 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0675-7500-7eae9d956b21\main.spi

00:01:11 #5251 [Debug] main / executeCommand / exitCode: 0

00:01:11 #5252 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0680-8086-8a4c8111bac6\main.spi

00:01:11 #5253 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0679-7949-73e98c5e4f72\main.spi

00:01:11 #5254 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 benchmark.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:01:11 #5255 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:11 #5256 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:11 #5257 [Verbose] >

00:01:11 #5258 [Verbose] > │     v3                                                                       │

00:01:11 #5259 [Verbose] > ╭─[ 421.84ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5260 [Verbose] > │ and method4 (v0 : int32, v1 : Mut0) : bool =                                 │

00:01:11 #5261 [Verbose] > │ ()                                                                           │

00:01:11 #5262 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:11 #5263 [Verbose] > │                                                                              │

00:01:11 #5264 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:11 #5265 [Verbose] > │                                                                              │

00:01:11 #5266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5267 [Verbose] > │     v3                                                                       │

00:01:11 #5268 [Verbose] >

00:01:11 #5269 [Verbose] > │ and method5 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32)  │

00:01:11 #5270 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:11 #5271 [Verbose] > │ []), v2 : int32) : bool =                                                    │

00:01:11 #5272 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:11 #5273 [Verbose] > │ ## sleep                                                                     │

00:01:11 #5274 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5275 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:01:11 #5276 [Verbose] >

00:01:11 #5277 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:11 #5278 [Verbose] > │     if v4 then                                                               │

00:01:11 #5279 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5280 [Verbose] > │         let struct (v5 : int32, v6 : int32) = v0.[int v2]                    │

00:01:11 #5281 [Verbose] > inl sleep (n : i32) : () =

00:01:11 #5282 [Verbose] >     run_target function

00:01:11 #5283 [Verbose] >         | Fsharp (Native) => fun () => $'System.Threading.Thread.Sleep' n

00:01:11 #5284 [Verbose] > │         let struct (v7 : int32, v8 : int32) = v1.[int v2]                    │

00:01:11 #5285 [Verbose] >         | _ => fun () => ()

00:01:11 #5286 [Verbose] > │         let v9 : bool = v5 = v7                                              │

00:01:11 #5287 [Verbose] > │         let v11 : bool =                                                     │

00:01:11 #5288 [Verbose] >

00:01:11 #5289 [Verbose] > │             if v9 then                                                       │

00:01:11 #5290 [Verbose] > ╭─[ 322.91ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5291 [Verbose] > │                 let v10 : bool = v6 = v8                                     │

00:01:11 #5292 [Verbose] > │ ()                                                                           │

00:01:11 #5293 [Verbose] > │                 v10                                                          │

00:01:11 #5294 [Verbose] > │                                                                              │

00:01:11 #5295 [Verbose] > │             else                                                             │

00:01:11 #5296 [Verbose] > │                                                                              │

00:01:11 #5297 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5298 [Verbose] > │                 false                                                        │

00:01:11 #5299 [Verbose] >

00:01:11 #5300 [Verbose] > │         if v11 then                                                          │

00:01:11 #5301 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:11 #5302 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:11 #5303 [Verbose] > │             let v12 : int32 = v2 + 1                                         │

00:01:11 #5304 [Verbose] > │ ## format_pretty'                                                            │

00:01:11 #5305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5306 [Verbose] > │             method5(v0, v1, v12)                                             │

00:01:11 #5307 [Verbose] > │         else                                                                 │

00:01:11 #5308 [Verbose] >

00:01:11 #5309 [Verbose] > │             false                                                            │

00:01:11 #5310 [Verbose] > │     else                                                                     │

00:01:11 #5311 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5312 [Verbose] > inl format_pretty' x : std_string =

00:01:11 #5312 [Verbose] > │         true                                                                 │

00:01:11 #5313 [Verbose] >     !\\(x, $'@@$"format\!(""{{:#?}}"", $0)"')

00:01:11 #5314 [Verbose] > │ and method6 (v0 : bool) : bool =                                             │

00:01:11 #5315 [Verbose] > │     v0                                                                       │

00:01:11 #5316 [Verbose] > │ and method0 () : unit =                                                      │

00:01:11 #5317 [Verbose] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (3)                        │

00:01:11 #5318 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:11 #5319 [Verbose] > │     while method1(v1) do                                                     │

00:01:11 #5320 [Verbose] >

00:01:11 #5321 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:11 #5322 [Verbose] > │         let v4 : int32 = 2 * v3                                              │

00:01:11 #5323 [Verbose] > ╭─[ 358.62ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5324 [Verbose] > │ ()                                                                           │

00:01:11 #5325 [Verbose] > │         v0.[int v3] <- v4                                                    │

00:01:11 #5326 [Verbose] > │                                                                              │

00:01:11 #5327 [Verbose] > │         let v5 : int32 = v3 + 1                                              │

00:01:11 #5328 [Verbose] > │                                                                              │

00:01:11 #5329 [Verbose] > │         v1.l0 <- v5                                                          │

00:01:11 #5330 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5331 [Verbose] > │         ()                                                                   │

00:01:11 #5332 [Verbose] > │     let v6 : (struct (int32 * int32) []) = [||]                              │

00:01:11 #5333 [Verbose] >

00:01:11 #5334 [Verbose] > │     let v7 : (struct (int32 * int32) []) = method2(v6)                       │

00:01:11 #5335 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5336 [Verbose] > │     let v8 : int32 = v0.Length                                               │

00:01:11 #5337 [Verbose] > // // test

00:01:11 #5338 [Verbose] >

00:01:11 #5339 [Verbose] > listm.init 10i32 id

00:01:11 #5340 [Verbose] > |> item 9i32

00:01:11 #5341 [Verbose] > |> _assert_eq 9

00:01:11 #5342 [Verbose] > │     let v9 : Mut1 = {l0 = 0; l1 = 0; l2 = v7} : Mut1                         │

00:01:11 #5343 [Verbose] > │     while method3(v8, v9) do                                                 │

00:01:11 #5344 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:01:11 #5345 [Verbose] > │         let struct (v12 : int32, v13 : (struct (int32 * int32) [])) = v9.l1, │

00:01:11 #5346 [Verbose] > │ v9.l2                                                                        │

00:01:11 #5347 [Verbose] > │         let v14 : int32 = v0.[int v11]                                       │

00:01:11 #5348 [Verbose] > │         let v15 : int32 = v12 + 1                                            │

00:01:11 #5349 [Verbose] > │         let v16 : (struct (int32 * int32) []) = [|struct (v12, v14)|]        │

00:01:11 #5350 [Verbose] > │         let v17 : (struct (int32 * int32) []) = method2(v16)                 │

00:01:11 #5351 [Verbose] > │         let v18 : int32 = v13.Length                                         │

00:01:11 #5352 [Verbose] > │         let v19 : int32 = v17.Length                                         │

00:01:11 #5353 [Verbose] > │         let v20 : int32 = v18 + v19                                          │

00:01:11 #5354 [Verbose] > │         let v21 : (struct (int32 * int32) []) = Array.zeroCreate<struct      │

00:01:11 #5355 [Verbose] > │ (int32 * int32)> (v20)                                                       │

00:01:11 #5356 [Verbose] > │         let v22 : Mut0 = {l0 = 0} : Mut0                                     │

00:01:11 #5357 [Verbose] > │         while method4(v20, v22) do                                           │

00:01:11 #5358 [Verbose] > │             let v24 : int32 = v22.l0                                         │

00:01:11 #5359 [Verbose] > │             let v25 : bool = v24 < v18                                       │

00:01:11 #5360 [Verbose] > │             let struct (v31 : int32, v32 : int32) =                          │

00:01:11 #5361 [Verbose] > │                 if v25 then                                                  │

00:01:11 #5362 [Verbose] > │                     let struct (v26 : int32, v27 : int32) = v13.[int v24]    │

00:01:11 #5363 [Verbose] > │                     struct (v26, v27)                                        │

00:01:11 #5364 [Verbose] > │                 else                                                         │

00:01:11 #5365 [Verbose] > │                     let v28 : int32 = v24 - v18                              │

00:01:11 #5366 [Verbose] > │                     let struct (v29 : int32, v30 : int32) = v17.[int v28]    │

00:01:11 #5367 [Verbose] > │                     struct (v29, v30)                                        │

00:01:11 #5368 [Verbose] > │             v21.[int v24] <- struct (v31, v32)                               │

00:01:11 #5369 [Verbose] > │             let v33 : int32 = v24 + 1                                        │

00:01:11 #5370 [Verbose] > │             v22.l0 <- v33                                                    │

00:01:11 #5371 [Verbose] > │             ()                                                               │

00:01:11 #5372 [Verbose] > │         let v34 : int32 = v11 + 1                                            │

00:01:11 #5373 [Verbose] > │         v9.l0 <- v34                                                         │

00:01:11 #5374 [Verbose] > │         v9.l1 <- v15                                                         │

00:01:11 #5375 [Verbose] > │         v9.l2 <- v21                                                         │

00:01:11 #5376 [Verbose] > │         ()                                                                   │

00:01:11 #5377 [Verbose] > │     let struct (v35 : int32, v36 : (struct (int32 * int32) [])) = v9.l1,     │

00:01:11 #5378 [Verbose] > │ v9.l2                                                                        │

00:01:11 #5379 [Verbose] > │     let v37 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2);  │

00:01:11 #5380 [Verbose] > │ struct (2, 4)|]                                                              │

00:01:11 #5381 [Verbose] > │     let v38 : (struct (int32 * int32) []) = method2(v37)                     │

00:01:11 #5382 [Verbose] > │     let v39 : string = $"%A{v36}"                                            │

00:01:11 #5383 [Verbose] > │     System.Console.WriteLine v39                                             │

00:01:11 #5384 [Verbose] > │     let v40 : int32 = v36.Length                                             │

00:01:11 #5385 [Verbose] > │     let v41 : int32 = v38.Length                                             │

00:01:11 #5386 [Verbose] > │     let v42 : bool = v40 = v41                                               │

00:01:11 #5387 [Verbose] > │     let v43 : bool = v42 <> true                                             │

00:01:11 #5388 [Verbose] > │     let v46 : bool =                                                         │

00:01:11 #5389 [Verbose] > │         if v43 then                                                          │

00:01:11 #5390 [Verbose] > │             false                                                            │

00:01:11 #5391 [Verbose] > │         else                                                                 │

00:01:11 #5392 [Verbose] > │             let v44 : int32 = 0                                              │

00:01:11 #5393 [Verbose] > │             method5(v36, v38, v44)                                           │

00:01:11 #5394 [Verbose] > │     let v48 : bool =                                                         │

00:01:11 #5395 [Verbose] > │         if v46 then                                                          │

00:01:11 #5396 [Verbose] > │             true                                                             │

00:01:11 #5397 [Verbose] > │         else                                                                 │

00:01:11 #5398 [Verbose] > │             method6(v46)                                                     │

00:01:11 #5399 [Verbose] > │     let v49 : string = $"__expect / actual: %A{v36} / expected: %A{v38}"     │

00:01:11 #5400 [Verbose] > │     let v50 : bool = v48 = false                                             │

00:01:11 #5401 [Verbose] > │     if v50 then                                                              │

00:01:11 #5402 [Verbose] > │         failwith<unit> v49                                                   │

00:01:11 #5403 [Verbose] > │ method0()                                                                    │

00:01:11 #5404 [Verbose] > │                                                                              │

00:01:11 #5405 [Verbose] > │ [|struct (0, 0); struct (1, 2); struct (2, 4)|]                              │

00:01:11 #5406 [Verbose] > │                                                                              │

00:01:11 #5407 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5408 [Verbose] >

00:01:11 #5409 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:11 #5410 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:11 #5411 [Verbose] > │ ## map_base                                                                  │

00:01:11 #5412 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5413 [Verbose] >

00:01:11 #5414 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5415 [Verbose] > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =

00:01:11 #5416 [Verbose] >     a x

00:01:11 #5417 [Verbose] >     |> am.map fn

00:01:11 #5418 [Verbose] >     |> fun (a x : _ i64 _) => x

00:01:11 #5419 [Verbose] >

00:01:11 #5420 [Verbose] >

00:01:11 #5421 [Verbose] >

00:01:11 #5422 [Verbose] > ╭─[ 342.38ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5423 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:11 #5424 [Verbose] > │     let v0 : string = $"%A{9}"                                               │

00:01:11 #5425 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:11 #5426 [Verbose] > │     let v1 : string = $"__expect / actual: %A{9} / expected: %A{9}"          │

00:01:11 #5427 [Verbose] > │     ()                                                                       │

00:01:11 #5428 [Verbose] > │ method0()                                                                    │

00:01:11 #5429 [Verbose] > │                                                                              │

00:01:11 #5430 [Verbose] > │ 9                                                                            │

00:01:11 #5431 [Verbose] > │                                                                              │

00:01:11 #5432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5433 [Verbose] >

00:01:11 #5434 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5435 [Verbose] > // // test

00:01:11 #5436 [Verbose] >

00:01:11 #5437 [Verbose] > fun () =>

00:01:11 #5438 [Verbose] >     listm.init 10i32 id

00:01:11 #5439 [Verbose] >     |> item 10i32

00:01:11 #5440 [Verbose] >     |> ignore

00:01:11 #5441 [Verbose] > |> _throws

00:01:11 #5442 [Verbose] > |> optionm.map sm'.format_exception

00:01:11 #5443 [Verbose] > |> _assert_eq (Some "System.Exception: Option does not have a value.")

00:01:11 #5444 [Verbose] >

00:01:11 #5445 [Verbose] > ╭─[ 352.57ms - stdout ]────────────────────────────────────────────────────────╮

00:01:11 #5446 [Verbose] > │ ()                                                                           │

00:01:11 #5447 [Verbose] > │                                                                              │

00:01:11 #5448 [Verbose] > │                                                                              │

00:01:11 #5449 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:11 #5450 [Verbose] >

00:01:11 #5451 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:11 #5452 [Verbose] > inl average forall el {number}. (array : a _ el) : el =

00:01:11 #5453 [Verbose] >     $"!array |> Array.average"

00:01:11 #5454 [Verbose] >

00:01:11 #5455 [Verbose] > inl length forall dim el {number}. (array : a dim el) : dim =

00:01:11 #5456 [Verbose] >     $"!array |> Array.length"

00:01:11 #5457 [Verbose] >

00:01:11 #5458 [Verbose] > inl parallel_map forall dim el el'. (fn : el -> el') (array : a dim el) : a dim

00:01:11 #5459 [Verbose] > el' =

00:01:11 #5460 [Verbose] >     $"!array |> Array.Parallel.map !fn"

00:01:11 #5461 [Verbose] >

00:01:11 #5462 [Verbose] > inl sort_by forall dim el. (fn : el -> _) (array : a dim el) : a dim el =

00:01:11 #5463 [Verbose] >     $"!array |> Array.sortBy !fn"

00:01:11 #5464 [Verbose] >

00:01:11 #5465 [Verbose] > inl sort_descending forall dim el. (array : a dim el) : a dim el =

00:01:11 #5466 [Verbose] >     $"!array |> Array.sortDescending"

00:01:11 #5467 [Verbose] >

00:01:11 #5468 [Verbose] > inl transpose forall dim el. (array : a dim (a dim el)) : a dim (a dim el) =

00:01:11 #5469 [Verbose] >     $"!array |> Array.transpose"

00:01:11 #5470 [Verbose] >

00:01:11 #5471 [Verbose] > inl try_item forall dim el. (i : i32) (array : a dim el) : option el =

00:01:11 #5472 [Verbose] >     $"!array |> Array.tryItem !i" |> optionm'.unbox

00:01:12 #5473 [Verbose] >

00:01:12 #5474 [Verbose] > ╭─[ 399.59ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5475 [Verbose] > │ ()                                                                           │

00:01:12 #5476 [Verbose] > │                                                                              │

00:01:12 #5477 [Verbose] > │                                                                              │

00:01:12 #5478 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5479 [Verbose] >

00:01:12 #5480 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:12 #5481 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:12 #5482 [Verbose] > │ ## indexed                                                                   │

00:01:12 #5483 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5484 [Verbose] >

00:01:12 #5485 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #5486 [Verbose] > inl indexed (array : a _ _) =

00:01:12 #5487 [Verbose] >     (([[]], 0), array)

00:01:12 #5488 [Verbose] >     ||> am.fold fun (acc, i) x =>

00:01:12 #5489 [Verbose] >         (i, x) :: acc, i + 1

00:01:12 #5490 [Verbose] >     |> fst

00:01:12 #5491 [Verbose] >     |> listm.rev

00:01:12 #5492 [Verbose] >     |> listm.toArray

00:01:12 #5493 [Verbose] >

00:01:12 #5494 [Verbose] > ╭─[ 371.39ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5495 [Verbose] > │ ()                                                                           │

00:01:12 #5496 [Verbose] > │                                                                              │

00:01:12 #5497 [Verbose] > │                                                                              │

00:01:12 #5498 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5499 [Verbose] >

00:01:12 #5500 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #5501 [Verbose] > // // test

00:01:12 #5502 [Verbose] >

00:01:12 #5503 [Verbose] > am.init 3i32 ((*) 2)

00:01:12 #5504 [Verbose] > |> indexed

00:01:12 #5505 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)

00:01:12 #5506 [Verbose] >

00:01:12 #5507 [Verbose] > ╭─[ 975.86ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5508 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:12 #5509 [Verbose] > │     | US0_0                                                                  │

00:01:12 #5510 [Verbose] > │     | US0_1 of f1_0 : exn                                                    │

00:01:12 #5511 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:12 #5512 [Verbose] > │     | US1_0                                                                  │

00:01:12 #5513 [Verbose] > │     | US1_1 of f1_0 : string                                                 │

00:01:12 #5514 [Verbose] > │ let rec closure0 () () : unit =                                              │

00:01:12 #5515 [Verbose] > │     let v0 : int32 = failwith<int32> "Option does not have a value."         │

00:01:12 #5516 [Verbose] > │     ()                                                                       │

00:01:12 #5517 [Verbose] > │ and closure1 () (v0 : exn) : US0 =                                           │

00:01:12 #5518 [Verbose] > │     US0_1(v0)                                                                │

00:01:12 #5519 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:01:12 #5520 [Verbose] > │     v0                                                                       │

00:01:12 #5521 [Verbose] > │ and method0 () : unit =                                                      │

00:01:12 #5522 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:01:12 #5523 [Verbose] > │     let v1 : US0 = US0_0                                                     │

00:01:12 #5524 [Verbose] > │     let v2 : (exn -> US0) = closure1()                                       │

00:01:12 #5525 [Verbose] > │     let v3 : US0 = try v0 (); v1 with ex -> ex |> v2                         │

00:01:12 #5526 [Verbose] > │     let v14 : US1 =                                                          │

00:01:12 #5527 [Verbose] > │         match v3 with                                                        │

00:01:12 #5528 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:01:12 #5529 [Verbose] > │             US1_0                                                            │

00:01:12 #5530 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0712-1222-102f34d1c3b8\main.spi

00:01:12 #5531 [Verbose] > │         | US0_1(v4) -> (* Some *)                                            │

00:01:12 #5532 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0715-1529-16a0b736627a\main.spi

00:01:12 #5534 [Verbose] > ╭─[ 325.32ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5534 [Verbose] > ╭─[ 306.29ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5535 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0713-1392-1068aaeb9ca8\main.spi

00:01:12 #5536 [Verbose] > │ ()                                                                           │

00:01:12 #5537 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0720-2058-2348159411d5\main.spi

00:01:12 #5539 [Verbose] > │                                                                              │

00:01:12 #5538 [Verbose] > │ ()                                                                           │

00:01:12 #5540 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0744-4477-49b140ed8910\main.spi

00:01:12 #5541 [Verbose] > │                                                                              │

00:01:12 #5544 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5544 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0745-4518-4643f63bd01c\main.spi

00:01:12 #5542 [Verbose] > │                                                                              │

00:01:12 #5545 [Verbose] >

00:01:12 #5547 [Verbose] > │                                                                              │

00:01:12 #5546 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0750-5035-5137728e23bf\main.spi

00:01:12 #5549 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5548 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:12 #5550 [Verbose] > 00:00:44 #18 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_07_229_FileOpen.json' because it is being used by another process.)

00:01:12 #5551 [Verbose] >

00:01:12 #5552 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:12 #5553 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0756-5674-598a2587bf49\main.spi

00:01:12 #5554 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:12 #5555 [Verbose] > │ ## retry_fn                                                                  │

00:01:12 #5556 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0785-8589-8936ceb51824\main.spi

00:01:12 #5557 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:12 #5558 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5559 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0787-8713-87b5ae7e9c98\main.spi

00:01:12 #5560 [Verbose] > │ ## format_exception                                                          │

00:01:12 #5561 [Verbose] >

00:01:12 #5562 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0798-9843-95f6b2f978dd\main.spi

00:01:12 #5563 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5564 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #5565 [Verbose] >

00:01:12 #5567 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #5566 [Verbose] > inl retry_fn forall t. retries (fn : () -> t) : option t =

00:01:12 #5568 [Verbose] > inl format_exception (ex : exn) : string =

00:01:12 #5569 [Verbose] >     let rec loop retry =

00:01:12 #5570 [Verbose] >     run_target function

00:01:12 #5571 [Verbose] >         try

00:01:12 #5572 [Verbose] >         | Fsharp (Native) => fun () => $'$"{!ex.GetType ()}: {!ex.Message}"'

00:01:12 #5573 [Verbose] >             fun () =>

00:01:12 #5574 [Verbose] >         | _ => fun () => ex |> format_debug

00:01:12 #5575 [Verbose] >                 if retry < retries

00:01:12 #5576 [Verbose] >

00:01:12 #5577 [Verbose] >                 then fn () |> Some

00:01:12 #5578 [Verbose] >                 else None

00:01:12 #5579 [Verbose] > ╭─[ 352.31ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5580 [Verbose] >             fun ex =>

00:01:12 #5581 [Verbose] > │ ()                                                                           │

00:01:12 #5583 [Verbose] > │                                                                              │

00:01:12 #5582 [Verbose] >                 let getLocals () = $"retry: {retry} / ex: {ex |>

00:01:12 #5584 [Verbose] > │                                                                              │

00:01:12 #5585 [Verbose] > Sm.format_exception} / {getLocals ()}"

00:01:12 #5586 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5587 [Verbose] >                 // trace Warning (fun () => "retry_fn") getLocals

00:01:12 #5588 [Verbose] >

00:01:12 #5589 [Verbose] >                 sleep 1

00:01:12 #5590 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #5591 [Verbose] >         |> function

00:01:12 #5592 [Verbose] > // // test

00:01:12 #5593 [Verbose] >             | Some x => x

00:01:12 #5594 [Verbose] >

00:01:12 #5595 [Verbose] >             | None => loop (retry + 1)

00:01:12 #5596 [Verbose] > fun () => failwith "test"

00:01:12 #5597 [Verbose] >     loop 0

00:01:12 #5598 [Verbose] > |> _throws

00:01:12 #5599 [Verbose] >

00:01:12 #5600 [Verbose] > |> optionm.map sm'.format_exception

00:01:12 #5601 [Verbose] > ╭─[ 350.15ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5602 [Verbose] > |> _assert_eq (Some "System.Exception: test")

00:01:12 #5603 [Verbose] > │ ()                                                                           │

00:01:12 #5604 [Verbose] > │                                                                              │

00:01:12 #5605 [Verbose] > │                                                                              │

00:01:12 #5606 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #5607 [Verbose] >

00:01:12 #5608 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #5609 [Verbose] > // // test

00:01:12 #5610 [Verbose] >

00:01:12 #5611 [Verbose] > inl retry_fn_test = mut 0i32

00:01:12 #5612 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0836-3612-3f302307fddf\main.spi

00:01:12 #5613 [Verbose] > fun () =>

00:01:12 #5614 [Verbose] >     retry_fn_test <- *retry_fn_test + 1

00:01:12 #5615 [Verbose] >     *retry_fn_test

00:01:12 #5616 [Verbose] > |> retry_fn 3i32

00:01:12 #5617 [Verbose] > |> _assert_eq (Some 1i32)

00:01:12 #5618 [Verbose] >

00:01:12 #5619 [Verbose] > ╭─[ 549.84ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #5620 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:12 #5621 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:12 #5622 [Verbose] > │     | US0_0                                                                  │

00:01:12 #5623 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:12 #5624 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:12 #5625 [Verbose] > │     | US1_0                                                                  │

00:01:12 #5626 [Verbose] > │     | US1_1 of f1_0 : US0                                                    │

00:01:12 #5627 [Verbose] > │ let rec closure0 (v0 : Mut0, v1 : int32) () : US0 =                          │

00:01:12 #5628 [Verbose] > │     let v2 : bool = v1 < 3                                                   │

00:01:12 #5629 [Verbose] > │     if v2 then                                                               │

00:01:12 #5630 [Verbose] > │         let v3 : int32 = v0.l0                                               │

00:01:12 #5631 [Verbose] > │         let v4 : int32 = v3 + 1                                              │

00:01:12 #5632 [Verbose] > │         v0.l0 <- v4                                                          │

00:01:12 #5633 [Verbose] > │         let v5 : int32 = v0.l0                                               │

00:01:12 #5634 [Verbose] > │         US0_1(v5)                                                            │

00:01:12 #5635 [Verbose] > │     else                                                                     │

00:01:12 #5636 [Verbose] > │         US0_0                                                                │

00:01:12 #5637 [Verbose] > │ and closure1 () (v0 : US0) : US1 =                                           │

00:01:12 #5638 [Verbose] > │     US1_1(v0)                                                                │

00:01:12 #5639 [Verbose] > │ and closure2 () (v0 : exn) : unit =                                          │

00:01:12 #5640 [Verbose] > │     let mutable result = None                                                │

00:01:12 #5641 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:12 #5642 [Verbose] > │     ()                                                                       │

00:01:12 #5643 [Verbose] > │     #endif                                                                   │

00:01:12 #5644 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:12 #5645 [Verbose] > │     ()                                                                       │

00:01:12 #5646 [Verbose] > │     #endif                                                                   │

00:01:12 #5647 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:12 #5648 [Verbose] > │     let v1 : (int32 -> unit) = System.Threading.Thread.Sleep                 │

00:01:12 #5649 [Verbose] > │     v1 1                                                                     │

00:01:12 #5650 [Verbose] > │     ()                                                                       │

00:01:12 #5651 [Verbose] > │     #endif                                                                   │

00:01:12 #5652 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:12 #5653 [Verbose] > │     ()                                                                       │

00:01:12 #5654 [Verbose] > │     #endif                                                                   │

00:01:12 #5655 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:12 #5656 [Verbose] > │     ()                                                                       │

00:01:12 #5657 [Verbose] > │     #endif                                                                   │

00:01:12 #5658 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:12 #5659 [Verbose] > │     result |> Option.get                                                     │

00:01:12 #5660 [Verbose] > │     ()                                                                       │

00:01:12 #5661 [Verbose] > │ and method1 (v0 : Mut0, v1 : int32) : US0 =                                  │

00:01:12 #5662 [Verbose] > │     let v2 : (unit -> US0) = closure0(v0, v1)                                │

00:01:12 #5663 [Verbose] > │     let v3 : (US0 -> US1) = closure1()                                       │

00:01:12 #5664 [Verbose] > │     let v4 : (exn -> unit) = closure2()                                      │

00:01:12 #5665 [Verbose] > │     let v5 : US1 = US1_0                                                     │

00:01:12 #5666 [Verbose] > │     let v6 : US1 = try v2 () |> v3 with ex -> v4 ex; v5                      │

00:01:12 #5667 [Verbose] > │     match v6 with                                                            │

00:01:12 #5668 [Verbose] > │     | US1_0 -> (* None *)                                                    │

00:01:12 #5669 [Verbose] > │         let v8 : int32 = v1 + 1                                              │

00:01:12 #5670 [Verbose] > │         method1(v0, v8)                                                      │

00:01:12 #5671 [Verbose] > │     | US1_1(v7) -> (* Some *)                                                │

00:01:12 #5672 [Verbose] > │         v7                                                                   │

00:01:12 #5673 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:12 #5674 [Verbose] > │     v0                                                                       │

00:01:12 #5675 [Verbose] > │ and method0 () : unit =                                                      │

00:01:12 #5676 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:12 #5677 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:12 #5678 [Verbose] > │     let v2 : US0 = method1(v0, v1)                                           │

00:01:12 #5679 [Verbose] > │     let v3 : string = $"%A{v2}"                                              │

00:01:12 #5680 [Verbose] > │             let mutable result = None                                        │

00:01:12 #5681 [Verbose] > │     System.Console.WriteLine v3                                              │

00:01:12 #5682 [Verbose] > │     let v7 : bool =                                                          │

00:01:12 #5683 [Verbose] > │         match v2 with                                                        │

00:01:12 #5684 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:12 #5685 [Verbose] > │         | US0_1(v5) -> (* Some *)                                            │

00:01:12 #5686 [Verbose] > │             let v6 : bool = v5 = 1                                           │

00:01:12 #5687 [Verbose] > │             v6                                                               │

00:01:12 #5688 [Verbose] > │             let v5 : string = $"%A{v4}"                                      │

00:01:12 #5689 [Verbose] > │         | _ ->                                                               │

00:01:12 #5690 [Verbose] > │             false                                                            │

00:01:12 #5691 [Verbose] > │     let v9 : bool =                                                          │

00:01:12 #5692 [Verbose] > [NbConvertApp] Converting notebook optionm'.dib.ipynb to html

00:01:12 #5693 [Verbose] > │         if v7 then                                                           │

00:01:12 #5694 [Verbose] > │             v5                                                               │

00:01:12 #5695 [Verbose] > │             true                                                             │

00:01:12 #5696 [Verbose] > │         else                                                                 │

00:01:12 #5697 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:12 #5698 [Verbose] >   validate(nb)

00:01:12 #5699 [Verbose] > │             method2(v7)                                                      │

00:01:12 #5700 [Verbose] > │     let v10 : US0 = US0_1(1)                                                 │

00:01:12 #5701 [Verbose] > │     let v11 : string = $"__expect / actual: %A{v2} / expected: %A{v10}"      │

00:01:12 #5702 [Verbose] > │             #endif                                                           │

00:01:12 #5703 [Verbose] > │     let v12 : bool = v9 = false                                              │

00:01:12 #5704 [Verbose] > │     if v12 then                                                              │

00:01:12 #5705 [Verbose] > │         failwith<unit> v11                                                   │

00:01:12 #5706 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:12 #5707 [Verbose] > │ method0()                                                                    │

00:01:12 #5708 [Verbose] > │                                                                              │

00:01:12 #5709 [Verbose] > │ US0_1 1                                                                      │

00:01:12 #5710 [Verbose] > │             let v6 : string = $"%A{v4}"                                      │

00:01:12 #5711 [Verbose] > │                                                                              │

00:01:12 #5712 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:13 #5713 [Verbose] > │             v6                                                               │

00:01:13 #5714 [Verbose] > │             #endif                                                           │

00:01:13 #5715 [Verbose] >

00:01:13 #5716 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:13 #5717 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:13 #5718 [Verbose] > │             let v7 : string = $"{v4.GetType ()}: {v4.Message}"               │

00:01:13 #5719 [Verbose] > // // test

00:01:13 #5720 [Verbose] >

00:01:13 #5721 [Verbose] > inl retry_fn_test = mut 0i32

00:01:13 #5722 [Verbose] > fun () =>

00:01:13 #5723 [Verbose] >     if *retry_fn_test >= 2

00:01:13 #5724 [Verbose] >     then *retry_fn_test

00:01:13 #5725 [Verbose] >     else

00:01:13 #5726 [Verbose] >         retry_fn_test <- *retry_fn_test + 1

00:01:13 #5727 [Verbose] >         failwith "test"

00:01:13 #5728 [Verbose] > |> retry_fn 3i32

00:01:13 #5729 [Verbose] > |> _assert_eq (Some 2i32)

00:01:13 #5730 [Verbose] > │             v7                                                               │

00:01:13 #5731 [Verbose] > │             #endif                                                           │

00:01:13 #5732 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:13 #5733 [Verbose] > │             let v8 : string = $"%A{v4}"                                      │

00:01:13 #5734 [Verbose] > │             v8                                                               │

00:01:13 #5735 [Verbose] > │             #endif                                                           │

00:01:13 #5736 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:13 #5737 [Verbose] > │             let v9 : string = $"%A{v4}"                                      │

00:01:13 #5738 [Verbose] > │             v9                                                               │

00:01:13 #5739 [Verbose] > │             #endif                                                           │

00:01:13 #5740 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:13 #5741 [Verbose] > │             let v10 : string = result |> Option.get                          │

00:01:13 #5742 [Verbose] > │             US1_1(v10)                                                       │

00:01:13 #5743 [Verbose] > │     let v15 : string = $"%A{v14}"                                            │

00:01:13 #5744 [Verbose] > │     System.Console.WriteLine v15                                             │

00:01:13 #5745 [Verbose] > │     let v20 : bool =                                                         │

00:01:13 #5746 [Verbose] > │         match v14 with                                                       │

00:01:13 #5747 [Verbose] > │         | US1_1(v18) -> (* Some *)                                           │

00:01:13 #5748 [Verbose] > │             let v19 : bool = v18 = "System.Exception: Option does not have a │

00:01:13 #5749 [Verbose] > │ value."                                                                      │

00:01:13 #5750 [Verbose] > │             v19                                                              │

00:01:13 #5751 [Verbose] > │         | _ ->                                                               │

00:01:13 #5752 [Verbose] > │             false                                                            │

00:01:13 #5753 [Verbose] > │     let v22 : bool =                                                         │

00:01:13 #5754 [Verbose] > │         if v20 then                                                          │

00:01:13 #5755 [Verbose] > │             true                                                             │

00:01:13 #5756 [Verbose] > │         else                                                                 │

00:01:13 #5757 [Verbose] > │             method1(v20)                                                     │

00:01:13 #5758 [Verbose] > │     let v23 : string = "System.Exception: Option does not have a value."     │

00:01:13 #5759 [Verbose] > │     let v24 : US1 = US1_1(v23)                                               │

00:01:13 #5760 [Verbose] > │     let v25 : string = $"__expect / actual: %A{v14} / expected: %A{v24}"     │

00:01:13 #5761 [Verbose] > │     let v26 : bool = v22 = false                                             │

00:01:13 #5762 [Verbose] > │     if v26 then                                                              │

00:01:13 #5763 [Verbose] > │         failwith<unit> v25                                                   │

00:01:13 #5764 [Verbose] > │ method0()                                                                    │

00:01:13 #5765 [Verbose] > │                                                                              │

00:01:13 #5766 [Verbose] > │ US1_1 "System.Exception: Option does not have a value."                      │

00:01:13 #5767 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0859-5959-5cdba8e3c767\main.spi

00:01:13 #5768 [Verbose] > │                                                                              │

00:01:13 #5769 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:13 #5770 [Verbose] >

00:01:13 #5771 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:13 #5772 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:13 #5773 [Verbose] > │ ## try_item_                                                                 │

00:01:13 #5774 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:13 #5775 [Verbose] >

00:01:13 #5776 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:13 #5777 [Verbose] > let rec try_item_ i = function

00:01:13 #5778 [Verbose] >     | Cons (x, _) when i = 0 => Some x

00:01:13 #5779 [Verbose] >     | Cons (_, xs) => try_item_ (i - 1) xs

00:01:13 #5780 [Verbose] >     | Nil => None

00:01:13 #5781 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0894-9408-925be77c32cd\main.spi

00:01:13 #5782 [Verbose] >

00:01:13 #5783 [Verbose] > ╭─[ 576.06ms - stdout ]────────────────────────────────────────────────────────╮

00:01:13 #5784 [Verbose] > │ ()                                                                           │

00:01:13 #5785 [Verbose] > │                                                                              │

00:01:13 #5786 [Verbose] > │                                                                              │

00:01:13 #5787 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:13 #5788 [Verbose] >

00:01:13 #5789 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:13 #5790 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:13 #5791 [Verbose] > │ ## item_                                                                     │

00:01:13 #5792 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:13 #5793 [Verbose] >

00:01:13 #5794 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:13 #5795 [Verbose] > inl item_ i =

00:01:13 #5796 [Verbose] >     try_item_ i >> optionm.value

00:01:13 #5797 [Verbose] >

00:01:13 #5798 [Verbose] > ╭─[ 1.07s - stdout ]───────────────────────────────────────────────────────────╮

00:01:13 #5799 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:13 #5800 [Verbose] > │ and UH0 =                                                                    │

00:01:13 #5801 [Verbose] > │     | UH0_0 of int32 * int32 * UH0                                           │

00:01:13 #5802 [Verbose] > │     | UH0_1                                                                  │

00:01:13 #5803 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0; mutable l2 : int32}        │

00:01:13 #5804 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:13 #5805 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:13 #5806 [Verbose] > │     let v2 : bool = v1 < 3                                                   │

00:01:13 #5807 [Verbose] >

00:01:13 #5808 [Verbose] > │     v2                                                                       │

00:01:13 #5809 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:01:13 #5810 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:13 #5811 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:13 #5812 [Verbose] > │     v3                                                                       │

00:01:13 #5813 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:01:13 #5814 [Verbose] > │     match v0 with                                                            │

00:01:13 #5815 [Verbose] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:13 #5816 [Verbose] > │         let v5 : UH0 = UH0_0(v2, v3, v1)                                     │

00:01:13 #5817 [Verbose] > │         method3(v4, v5)                                                      │

00:01:13 #5818 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:13 #5819 [Verbose] > ╭─[ 860.26ms - stdout ]────────────────────────────────────────────────────────╮

00:01:13 #5820 [Verbose] > │         v1                                                                   │

00:01:13 #5821 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:13 #5822 [Verbose] > │ and method5 (v0 : UH0, v1 : int32) : int32 =                                 │

00:01:13 #5823 [Verbose] > │     match v0 with                                                            │

00:01:13 #5824 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:13 #5825 [Verbose] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:13 #5826 [Verbose] > │     | US0_0                                                                  │

00:01:13 #5827 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:01:13 #5829 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:13 #5829 [Verbose] > │         method5(v4, v5)                                                      │

00:01:13 #5830 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:13 #5831 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:13 #5832 [Verbose] > │         v1                                                                   │

00:01:13 #5834 [Verbose] > │ and method6 (v0 : (struct (int32 * int32) []), v1 : UH0, v2 : int32) : int32 │

00:01:13 #5833 [Verbose] > │     | US1_0                                                                  │

00:01:13 #5835 [Verbose] > │ =                                                                            │

00:01:13 #5836 [Verbose] > │     | US1_1 of f1_0 : US0                                                    │

00:01:13 #5837 [Verbose] > │     match v1 with                                                            │

00:01:13 #5838 [Verbose] > │ let rec closure0 (v0 : Mut0, v1 : int32) () : US0 =                          │

00:01:13 #5839 [Verbose] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:13 #5840 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:13 #5841 [Verbose] > │     let v2 : bool = v1 < 3                                                   │

00:01:14 #5842 [Verbose] >

00:01:14 #5843 [Verbose] > ╭─[ 320.84ms - stdout ]────────────────────────────────────────────────────────╮

00:01:14 #5844 [Verbose] > │ ()                                                                           │

00:01:14 #5845 [Verbose] > │                                                                              │

00:01:14 #5846 [Verbose] > │                                                                              │

00:01:14 #5847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:14 #5848 [Verbose] >

00:01:14 #5849 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:14 #5850 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:14 #5851 [Verbose] > │ ## sum                                                                       │

00:01:14 #5852 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:14 #5853 [Verbose] >

00:01:14 #5854 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:14 #5855 [Verbose] > inl sum list =

00:01:14 #5856 [Verbose] >     list |> listm.fold (+) 0

00:01:14 #5857 [Verbose] >

00:01:14 #5858 [Verbose] > ╭─[ 322.91ms - stdout ]────────────────────────────────────────────────────────╮

00:01:14 #5859 [Verbose] > │ ()                                                                           │

00:01:14 #5860 [Verbose] > │                                                                              │

00:01:14 #5861 [Verbose] > │                                                                              │

00:01:14 #5862 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:14 #5863 [Verbose] >

00:01:14 #5864 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:14 #5865 [Verbose] > // // test

00:01:14 #5866 [Verbose] >

00:01:14 #5867 [Verbose] > listm.init 10i32 id

00:01:14 #5868 [Verbose] > |> sum

00:01:14 #5869 [Verbose] > |> _assert_eq 45

00:01:14 #5870 [Verbose] >

00:01:14 #5871 [Verbose] > ╭─[ 392.64ms - stdout ]────────────────────────────────────────────────────────╮

00:01:14 #5872 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:14 #5873 [Verbose] > │     let v0 : string = $"%A{45}"                                              │

00:01:14 #5874 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:14 #5875 [Verbose] > │     let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:01:14 #5876 [Verbose] > │     ()                                                                       │

00:01:14 #5877 [Verbose] > │ method0()                                                                    │

00:01:14 #5878 [Verbose] > │                                                                              │

00:01:14 #5879 [Verbose] > │ 45                                                                           │

00:01:14 #5880 [Verbose] > │                                                                              │

00:01:14 #5881 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:14 #5882 [Verbose] >

00:01:14 #5883 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:14 #5884 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:14 #5885 [Verbose] > │ ## unzip                                                                     │

00:01:14 #5886 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:14 #5887 [Verbose] >

00:01:14 #5888 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:14 #5889 [Verbose] > inl unzip list =

00:01:14 #5890 [Verbose] >     (([[]], [[]]), list)

00:01:14 #5891 [Verbose] >     ||> listm.fold fun (acc_x, acc_y) (x, y) =>

00:01:14 #5892 [Verbose] >         x :: acc_x, y :: acc_y

00:01:14 #5893 [Verbose] >     |> fun x, y =>

00:01:14 #5894 [Verbose] >         x |> listm.rev, y |> listm.rev

00:01:14 #5895 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:14 #5896 [Verbose] >   return _pygments_highlight(

00:01:15 #5897 [Verbose] >

00:01:15 #5898 [Verbose] > ╭─[ 315.67ms - stdout ]────────────────────────────────────────────────────────╮

00:01:15 #5899 [Verbose] > │ ()                                                                           │

00:01:15 #5900 [Verbose] > │                                                                              │

00:01:15 #5901 [Verbose] > │                                                                              │

00:01:15 #5902 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #5903 [Verbose] >

00:01:15 #5904 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:15 #5905 [Verbose] > // // test

00:01:15 #5906 [Verbose] >

00:01:15 #5907 [Verbose] > listm.init 10i32 id

00:01:15 #5908 [Verbose] > |> listm.map (fun x => x, x)

00:01:15 #5909 [Verbose] > |> unzip

00:01:15 #5910 [Verbose] > |> fun x, y =>

00:01:15 #5911 [Verbose] >     x |> sum

00:01:15 #5912 [Verbose] >     |> _assert_eq 45

00:01:15 #5913 [Verbose] >

00:01:15 #5914 [Verbose] >     y |> sum

00:01:15 #5915 [Verbose] >     |> _assert_eq 45

00:01:15 #5916 [Verbose] >

00:01:15 #5917 [Verbose] > ╭─[ 365.45ms - stdout ]────────────────────────────────────────────────────────╮

00:01:15 #5918 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:15 #5919 [Verbose] > │     let v0 : string = $"%A{45}"                                              │

00:01:15 #5920 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:15 #5921 [Verbose] > │     let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:01:15 #5922 [Verbose] > │     let v2 : string = $"%A{45}"                                              │

00:01:15 #5923 [Verbose] > │     System.Console.WriteLine v2                                              │

00:01:15 #5924 [Verbose] > │     let v3 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:01:15 #5925 [Verbose] > │     ()                                                                       │

00:01:15 #5926 [Verbose] > │ method0()                                                                    │

00:01:15 #5927 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:01:15 #5928 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0937-3777-3122424df619\main.spi

00:01:15 #5929 [Verbose] > │     if v2 then                                                               │

00:01:15 #5930 [Verbose] > │         method6(v0, v5, v6)                                                  │

00:01:15 #5931 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-0972-7223-7c5a798a82b4\main.spi

00:01:15 #5932 [Verbose] > │         let v3 : int32 = v0.l0                                               │

00:01:15 #5933 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:15 #5934 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1005-0547-0406c6024042\main.spi

00:01:15 #5935 [Verbose] > │         let v4 : bool = v3 >= 2                                              │

00:01:15 #5936 [Verbose] > │         v2                                                                   │

00:01:15 #5937 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1047-4794-481aa8bb095a\main.spi

00:01:15 #5938 [Verbose] > │         let v9 : int32 =                                                     │

00:01:15 #5939 [Verbose] > │ and method4 (v0 : UH0) : (struct (int32 * int32) []) =                       │

00:01:15 #5940 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1079-7903-7a91927e17b0\main.spi

00:01:15 #5941 [Verbose] > │             if v4 then                                                       │

00:01:15 #5942 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:15 #5943 [Verbose] > │                 let v5 : int32 = v0.l0                                       │

00:01:15 #5944 [Verbose] > │     let v2 : int32 = method5(v0, v1)                                         │

00:01:15 #5945 [Verbose] > │                 v5                                                           │

00:01:15 #5946 [Verbose] > │     let v3 : (struct (int32 * int32) []) = Array.zeroCreate<struct (int32 *  │

00:01:15 #5947 [Verbose] > │             else                                                             │

00:01:15 #5948 [Verbose] > │ int32)> (v2)                                                                 │

00:01:15 #5949 [Verbose] > │                 let v6 : int32 = v0.l0                                       │

00:01:15 #5950 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:15 #5951 [Verbose] > │                 let v7 : int32 = v6 + 1                                      │

00:01:15 #5952 [Verbose] > │     let v5 : int32 = method6(v3, v0, v4)                                     │

00:01:15 #5953 [Verbose] > │                 v0.l0 <- v7                                                  │

00:01:15 #5954 [Verbose] > │     v3                                                                       │

00:01:15 #5955 [Verbose] > │                 failwith<int32> "test"                                       │

00:01:15 #5956 [Verbose] > │ and method7 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │

00:01:15 #5957 [Verbose] > │         US0_1(v9)                                                            │

00:01:15 #5958 [Verbose] > │ =                                                                            │

00:01:15 #5959 [Verbose] > │     else                                                                     │

00:01:15 #5960 [Verbose] > │     v0                                                                       │

00:01:15 #5961 [Verbose] > │         US0_0                                                                │

00:01:15 #5962 [Verbose] > │ and method8 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32)  │

00:01:15 #5963 [Verbose] > │ and closure1 () (v0 : US0) : US1 =                                           │

00:01:15 #5964 [Verbose] > │ []), v2 : int32) : bool =                                                    │

00:01:15 #5965 [Verbose] > │     US1_1(v0)                                                                │

00:01:15 #5966 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:01:15 #5967 [Verbose] > │ and closure2 () (v0 : exn) : unit =                                          │

00:01:15 #5968 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:15 #5969 [Verbose] > │     let mutable result = None                                                │

00:01:15 #5970 [Verbose] > │     if v4 then                                                               │

00:01:15 #5971 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:15 #5972 [Verbose] > │         let struct (v5 : int32, v6 : int32) = v0.[int v2]                    │

00:01:15 #5973 [Verbose] > │     ()                                                                       │

00:01:15 #5974 [Verbose] > │         let struct (v7 : int32, v8 : int32) = v1.[int v2]                    │

00:01:15 #5975 [Verbose] > │     #endif                                                                   │

00:01:15 #5976 [Verbose] > │         let v9 : bool = v5 = v7                                              │

00:01:15 #5977 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:15 #5978 [Verbose] > │         let v11 : bool =                                                     │

00:01:15 #5979 [Verbose] > │     ()                                                                       │

00:01:15 #5980 [Verbose] > │             if v9 then                                                       │

00:01:15 #5981 [Verbose] > │     #endif                                                                   │

00:01:15 #5982 [Verbose] > │                 let v10 : bool = v6 = v8                                     │

00:01:15 #5983 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:15 #5984 [Verbose] > │                 v10                                                          │

00:01:15 #5985 [Verbose] > │     let v1 : (int32 -> unit) = System.Threading.Thread.Sleep                 │

00:01:15 #5986 [Verbose] > │             else                                                             │

00:01:15 #5987 [Verbose] > │     v1 1                                                                     │

00:01:15 #5989 [Verbose] > │     ()                                                                       │

00:01:15 #5988 [Verbose] > │                 false                                                        │

00:01:15 #5990 [Verbose] > │     #endif                                                                   │

00:01:15 #5991 [Verbose] > │         if v11 then                                                          │

00:01:15 #5992 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:15 #5993 [Verbose] > │             let v12 : int32 = v2 + 1                                         │

00:01:15 #5994 [Verbose] > │     ()                                                                       │

00:01:15 #5995 [Verbose] > │             method8(v0, v1, v12)                                             │

00:01:15 #5996 [Verbose] > │     #endif                                                                   │

00:01:15 #5997 [Verbose] > │         else                                                                 │

00:01:15 #5998 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:15 #5999 [Verbose] > │             false                                                            │

00:01:15 #6000 [Verbose] > │     ()                                                                       │

00:01:15 #6001 [Verbose] > │     else                                                                     │

00:01:15 #6002 [Verbose] > │     #endif                                                                   │

00:01:15 #6003 [Verbose] > │         true                                                                 │

00:01:15 #6004 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:15 #6005 [Verbose] > │ and method9 (v0 : bool) : bool =                                             │

00:01:15 #6006 [Verbose] > │     result |> Option.get                                                     │

00:01:15 #6007 [Verbose] > │     v0                                                                       │

00:01:15 #6008 [Verbose] > │     ()                                                                       │

00:01:15 #6009 [Verbose] > │ and method0 () : unit =                                                      │

00:01:15 #6010 [Verbose] > │ and method1 (v0 : Mut0, v1 : int32) : US0 =                                  │

00:01:15 #6011 [Verbose] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (3)                        │

00:01:15 #6012 [Verbose] > │     let v2 : (unit -> US0) = closure0(v0, v1)                                │

00:01:15 #6013 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:15 #6014 [Verbose] > │     let v3 : (US0 -> US1) = closure1()                                       │

00:01:15 #6015 [Verbose] > │     while method1(v1) do                                                     │

00:01:15 #6016 [Verbose] > │     let v4 : (exn -> unit) = closure2()                                      │

00:01:15 #6017 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:01:15 #6018 [Verbose] > │     let v5 : US1 = US1_0                                                     │

00:01:15 #6019 [Verbose] > │         let v4 : int32 = 2 * v3                                              │

00:01:15 #6020 [Verbose] > │     let v6 : US1 = try v2 () |> v3 with ex -> v4 ex; v5                      │

00:01:15 #6021 [Verbose] > │         v0.[int v3] <- v4                                                    │

00:01:15 #6022 [Verbose] > │     match v6 with                                                            │

00:01:15 #6023 [Verbose] > │         let v5 : int32 = v3 + 1                                              │

00:01:15 #6024 [Verbose] > │     | US1_0 -> (* None *)                                                    │

00:01:15 #6025 [Verbose] > │         v1.l0 <- v5                                                          │

00:01:15 #6026 [Verbose] > │         let v8 : int32 = v1 + 1                                              │

00:01:15 #6027 [Verbose] > │         ()                                                                   │

00:01:15 #6028 [Verbose] > │         method1(v0, v8)                                                      │

00:01:15 #6029 [Verbose] > │     | US1_1(v7) -> (* Some *)                                                │

00:01:15 #6030 [Verbose] > │         v7                                                                   │

00:01:15 #6031 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:15 #6032 [Verbose] > │     v0                                                                       │

00:01:15 #6033 [Verbose] > │ and method0 () : unit =                                                      │

00:01:15 #6034 [Verbose] > │     let v0 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:15 #6035 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:15 #6036 [Verbose] > │     let v2 : US0 = method1(v0, v1)                                           │

00:01:15 #6037 [Verbose] > │     let v3 : string = $"%A{v2}"                                              │

00:01:15 #6038 [Verbose] > │     System.Console.WriteLine v3                                              │

00:01:15 #6039 [Verbose] > │     let v7 : bool =                                                          │

00:01:15 #6040 [Verbose] > │         match v2 with                                                        │

00:01:15 #6041 [Verbose] > │         | US0_1(v5) -> (* Some *)                                            │

00:01:15 #6042 [Verbose] > │             let v6 : bool = v5 = 2                                           │

00:01:15 #6043 [Verbose] > │     let v6 : int32 = v0.Length                                               │

00:01:15 #6044 [Verbose] > │             v6                                                               │

00:01:15 #6045 [Verbose] > │                                                                              │

00:01:15 #6046 [Verbose] > │     let v7 : UH0 = UH0_1                                                     │

00:01:15 #6047 [Verbose] > │         | _ ->                                                               │

00:01:15 #6048 [Verbose] > │             false                                                            │

00:01:15 #6049 [Verbose] > │     let v8 : Mut1 = {l0 = 0; l1 = v7; l2 = 0} : Mut1                         │

00:01:15 #6050 [Verbose] > │     let v9 : bool =                                                          │

00:01:15 #6051 [Verbose] > │     while method2(v6, v8) do                                                 │

00:01:15 #6052 [Verbose] > │         if v7 then                                                           │

00:01:15 #6053 [Verbose] > │         let v10 : int32 = v8.l0                                              │

00:01:15 #6054 [Verbose] > │             true                                                             │

00:01:15 #6055 [Verbose] > │         else                                                                 │

00:01:15 #6056 [Verbose] > │         let struct (v11 : UH0, v12 : int32) = v8.l1, v8.l2                   │

00:01:15 #6057 [Verbose] > │             method2(v7)                                                      │

00:01:15 #6058 [Verbose] > │     let v10 : US0 = US0_1(2)                                                 │

00:01:15 #6059 [Verbose] > │     let v11 : string = $"__expect / actual: %A{v2} / expected: %A{v10}"      │

00:01:15 #6060 [Verbose] > │         let v13 : int32 = v0.[int v10]                                       │

00:01:15 #6061 [Verbose] > │     let v12 : bool = v9 = false                                              │

00:01:15 #6062 [Verbose] > │ 45                                                                           │

00:01:15 #6063 [Verbose] > │     if v12 then                                                              │

00:01:15 #6064 [Verbose] > │         let v14 : int32 = v12 + 1                                            │

00:01:15 #6065 [Verbose] > │         failwith<unit> v11                                                   │

00:01:15 #6066 [Verbose] > │         let v15 : int32 = v10 + 1                                            │

00:01:15 #6067 [Verbose] > │ method0()                                                                    │

00:01:15 #6068 [Verbose] > │                                                                              │

00:01:15 #6069 [Verbose] > │         let v16 : UH0 = UH0_0(v12, v13, v11)                                 │

00:01:15 #6070 [Verbose] > │ US0_1 2                                                                      │

00:01:15 #6071 [Verbose] > │                                                                              │

00:01:15 #6072 [Verbose] > │         v8.l0 <- v15                                                         │

00:01:15 #6073 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #6074 [Verbose] > │         v8.l1 <- v16                                                         │

00:01:15 #6075 [Verbose] >

00:01:15 #6076 [Verbose] > │         v8.l2 <- v14                                                         │

00:01:15 #6077 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:15 #6078 [Verbose] > │         ()                                                                   │

00:01:15 #6079 [Verbose] > │ 45                                                                           │

00:01:15 #6080 [Verbose] > │     let struct (v17 : UH0, v18 : int32) = v8.l1, v8.l2                       │

00:01:15 #6081 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:15 #6082 [Verbose] > │                                                                              │

00:01:15 #6083 [Verbose] > │     let v19 : UH0 = UH0_1                                                    │

00:01:15 #6084 [Verbose] > │ ## main                                                                      │

00:01:15 #6085 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #6086 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #6087 [Verbose] > │     let v20 : UH0 = method3(v17, v19)                                        │

00:01:15 #6088 [Verbose] > │     let v21 : (struct (int32 * int32) []) = method4(v20)                     │

00:01:15 #6089 [Verbose] >

00:01:15 #6090 [Verbose] > │     let v22 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2);  │

00:01:15 #6091 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:15 #6092 [Verbose] > │ struct (2, 4)|]                                                              │

00:01:15 #6093 [Verbose] > │     let v23 : (struct (int32 * int32) []) = method7(v22)                     │

00:01:15 #6094 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:15 #6095 [Verbose] > │     let v24 : string = $"%A{v21}"                                            │

00:01:15 #6096 [Verbose] > │ ## try_index_of                                                              │

00:01:15 #6097 [Verbose] >

00:01:15 #6098 [Verbose] > │     System.Console.WriteLine v24                                             │

00:01:15 #6099 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #6100 [Verbose] > │     let v25 : int32 = v21.Length                                             │

00:01:15 #6101 [Verbose] > │     let v26 : int32 = v23.Length                                             │

00:01:15 #6102 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:15 #6103 [Verbose] >

00:01:15 #6104 [Verbose] > │     let v27 : bool = v25 = v26                                               │

00:01:15 #6105 [Verbose] > inl main () =

00:01:15 #6106 [Verbose] > │     let v28 : bool = v27 <> true                                             │

00:01:15 #6107 [Verbose] >     inl retry_fn (r : i32) (x : () -> _) : optionm'.option' () =

00:01:15 #6108 [Verbose] >         retry_fn r x |> optionm'.box

00:01:15 #6109 [Verbose] >     $"let new_disposable x = !new_disposable x" : ()

00:01:15 #6110 [Verbose] > │     let v31 : bool =                                                         │

00:01:15 #6111 [Verbose] > │         if v28 then                                                          │

00:01:15 #6112 [Verbose] >     $"let retry_fn x = !retry_fn x" : ()

00:01:15 #6113 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:15 #6114 [Verbose] > │             false                                                            │

00:01:15 #6115 [Verbose] > │         else                                                                 │

00:01:15 #6116 [Verbose] > │             let v29 : int32 = 0                                              │

00:01:15 #6117 [Verbose] > │             method8(v21, v23, v29)                                           │

00:01:15 #6118 [Verbose] > │     let v33 : bool =                                                         │

00:01:15 #6119 [Verbose] > │         if v31 then                                                          │

00:01:15 #6120 [Verbose] > │             true                                                             │

00:01:15 #6121 [Verbose] > │         else                                                                 │

00:01:15 #6122 [Verbose] > inl try_index_of item list =

00:01:15 #6123 [Verbose] >     inl rec loop i = function

00:01:15 #6124 [Verbose] >         | [[]] => None

00:01:15 #6125 [Verbose] >         | x :: xs =>

00:01:15 #6126 [Verbose] >             if x = item

00:01:15 #6127 [Verbose] >             then Some i

00:01:15 #6128 [Verbose] >             else loop (i + 1) xs

00:01:15 #6129 [Verbose] >     loop 0 list

00:01:15 #6130 [Verbose] >

00:01:15 #6131 [Verbose] > inl index_of item =

00:01:15 #6132 [Verbose] >     try_index_of item >> optionm.value

00:01:15 #6133 [Verbose] >

00:01:15 #6134 [Verbose] > inl try_index_of_ item list =

00:01:15 #6135 [Verbose] >     let rec loop i = function

00:01:15 #6136 [Verbose] >         | [[]] => None

00:01:15 #6137 [Verbose] >         | x :: xs =>

00:01:15 #6138 [Verbose] >             if x = item

00:01:15 #6139 [Verbose] >             then Some i

00:01:15 #6140 [Verbose] >             else loop (i + 1) xs

00:01:15 #6141 [Verbose] > [NbConvertApp] Writing 307155 bytes to optionm'.dib.html

00:01:15 #6142 [Verbose] >     loop 0 list

00:01:15 #6143 [Verbose] > │             method9(v31)                                                     │

00:01:15 #6144 [Verbose] >

00:01:15 #6145 [Verbose] > inl index_of_ item =

00:01:15 #6146 [Verbose] >     try_index_of_ item >> optionm.value

00:01:15 #6147 [Verbose] >

00:01:15 #6148 [Verbose] > inl try_index_of__ item list =

00:01:15 #6149 [Verbose] >     inl i = mut 0

00:01:15 #6150 [Verbose] >     inl list = mut list

00:01:15 #6151 [Verbose] >     inl result = mut None

00:01:15 #6152 [Verbose] >     let rec loop () =

00:01:15 #6153 [Verbose] >         match *list with

00:01:15 #6154 [Verbose] >         | [[]] => result <- None

00:01:15 #6155 [Verbose] >         | x :: xs =>

00:01:15 #6156 [Verbose] >             if x = item

00:01:15 #6157 [Verbose] >             then result <- Some *i

00:01:15 #6158 [Verbose] >             else

00:01:15 #6159 [Verbose] >                 i <- *i + 1

00:01:15 #6160 [Verbose] >                 list <- xs

00:01:15 #6161 [Verbose] >                 loop ()

00:01:15 #6162 [Verbose] > │     let v34 : string = $"__expect / actual: %A{v21} / expected: %A{v23}"     │

00:01:15 #6163 [Verbose] >     loop ()

00:01:15 #6164 [Verbose] >     *result

00:01:15 #6165 [Verbose] >

00:01:15 #6166 [Verbose] > inl index_of__ item =

00:01:15 #6167 [Verbose] >     try_index_of__ item >> optionm.value

00:01:15 #6168 [Verbose] > │     let v35 : bool = v33 = false                                             │

00:01:15 #6169 [Verbose] > │     if v35 then                                                              │

00:01:15 #6170 [Verbose] > │         failwith<unit> v34                                                   │

00:01:15 #6171 [Verbose] > │ method0()                                                                    │

00:01:15 #6172 [Verbose] > │                                                                              │

00:01:15 #6173 [Verbose] > │ [|struct (0, 0); struct (1, 2); struct (2, 4)|]                              │

00:01:15 #6174 [Verbose] > │                                                                              │

00:01:15 #6175 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #6176 [Verbose] >

00:01:15 #6177 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:15 #6178 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:15 #6179 [Verbose] > │ ## from_vec                                                                  │

00:01:15 #6180 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:15 #6181 [Verbose] >

00:01:15 #6182 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:15 #6183 [Verbose] > inl from_vec forall dim el. (vec : vec el) : a dim el =

00:01:15 #6184 [Verbose] >     inl vec = join vec

00:01:15 #6185 [Verbose] >     !\($'"fable_library_rust::NativeArray_::array_from(!vec)"')

00:01:15 #6186 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1122-2294-2ee81caa7cfa\main.spi

00:01:15 #6187 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1124-2453-2ae5bf3e180b\main.spi

00:01:15 #6188 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1120-2088-2adf7538a057\main.spi

00:01:16 #6189 [Verbose] >

00:01:16 #6190 [Verbose] > ╭─[ 3.85s - stdout ]───────────────────────────────────────────────────────────╮

00:01:16 #6191 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:16 #6192 [Verbose] > │     | US0_0                                                                  │

00:01:16 #6193 [Verbose] > │     | US0_1 of f1_0 : exn                                                    │

00:01:16 #6194 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:16 #6195 [Verbose] > │     | US1_0                                                                  │

00:01:16 #6196 [Verbose] > │     | US1_1 of f1_0 : string                                                 │

00:01:16 #6197 [Verbose] > │ let rec closure0 () () : unit =                                              │

00:01:16 #6198 [Verbose] > │     failwith<unit> "test"                                                    │

00:01:16 #6199 [Verbose] > │ and closure1 () (v0 : exn) : US0 =                                           │

00:01:16 #6200 [Verbose] > │     US0_1(v0)                                                                │

00:01:16 #6201 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:01:16 #6202 [Verbose] > │     v0                                                                       │

00:01:16 #6203 [Verbose] > │ and method0 () : unit =                                                      │

00:01:16 #6204 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:01:16 #6205 [Verbose] > │     let v1 : US0 = US0_0                                                     │

00:01:16 #6206 [Verbose] > │     let v2 : (exn -> US0) = closure1()                                       │

00:01:16 #6207 [Verbose] > │     let v3 : US0 = try v0 (); v1 with ex -> ex |> v2                         │

00:01:16 #6208 [Verbose] > │     let v14 : US1 =                                                          │

00:01:16 #6209 [Verbose] > │         match v3 with                                                        │

00:01:16 #6210 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:01:16 #6211 [Verbose] > │             US1_0                                                            │

00:01:16 #6212 [Verbose] > │         | US0_1(v4) -> (* Some *)                                            │

00:01:16 #6213 [Verbose] > │             let mutable result = None                                        │

00:01:16 #6214 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:16 #6215 [Verbose] > │             let v5 : string = $"%A{v4}"                                      │

00:01:16 #6216 [Verbose] > │             v5                                                               │

00:01:16 #6217 [Verbose] > │             #endif                                                           │

00:01:16 #6218 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:16 #6219 [Verbose] > │             let v6 : string = $"%A{v4}"                                      │

00:01:16 #6220 [Verbose] > │             v6                                                               │

00:01:16 #6221 [Verbose] > │             #endif                                                           │

00:01:16 #6222 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:16 #6223 [Verbose] > │             let v7 : string = $"{v4.GetType ()}: {v4.Message}"               │

00:01:16 #6224 [Verbose] > │             v7                                                               │

00:01:16 #6225 [Verbose] > │             #endif                                                           │

00:01:16 #6226 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:16 #6227 [Verbose] > │             let v8 : string = $"%A{v4}"                                      │

00:01:16 #6228 [Verbose] > │             v8                                                               │

00:01:16 #6229 [Verbose] > │             #endif                                                           │

00:01:16 #6230 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:16 #6231 [Verbose] > │             let v9 : string = $"%A{v4}"                                      │

00:01:16 #6232 [Verbose] > │             v9                                                               │

00:01:16 #6233 [Verbose] > │             #endif                                                           │

00:01:16 #6234 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:16 #6235 [Verbose] > │             let v10 : string = result |> Option.get                          │

00:01:16 #6236 [Verbose] > │             US1_1(v10)                                                       │

00:01:16 #6237 [Verbose] > │     let v15 : string = $"%A{v14}"                                            │

00:01:16 #6238 [Verbose] > │     System.Console.WriteLine v15                                             │

00:01:16 #6239 [Verbose] >

00:01:16 #6240 [Verbose] >

00:01:16 #6241 [Verbose] >

00:01:16 #6242 [Verbose] > ╭─[ 1.11s - stdout ]───────────────────────────────────────────────────────────╮

00:01:16 #6243 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:16 #6244 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1212-1210-1e98faeff3c3\main.spi

00:01:16 #6245 [Verbose] > │     | US0_0                                                                  │

00:01:16 #6246 [Verbose] > │     | US0_1                                                                  │

00:01:16 #6247 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:16 #6248 [Verbose] > │     | US1_0                                                                  │

00:01:16 #6249 [Verbose] > │     | US1_1 of f1_0 : US0                                                    │

00:01:16 #6250 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1217-1744-17b20d01544d\main.spi

00:01:16 #6251 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1217-1715-184f02968c95\main.spi

00:01:16 #6252 [Verbose] > │ let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =                     │

00:01:16 #6253 [Verbose] > │     v0                                                                       │

00:01:16 #6254 [Verbose] > │ and closure0 () (v0 : (unit -> unit)) : System.IDisposable =                 │

00:01:16 #6255 [Verbose] > │     let mutable result = None                                                │

00:01:16 #6256 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:16 #6257 [Verbose] > │     let v1 : (unit -> unit) = method0(v0)                                    │

00:01:16 #6258 [Verbose] > │     let v2 : System.IDisposable = { new System.IDisposable with member       │

00:01:16 #6259 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }               │

00:01:16 #6260 [Verbose] > │     v2                                                                       │

00:01:16 #6261 [Verbose] > │     #endif                                                                   │

00:01:16 #6262 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:16 #6263 [Verbose] > │     let v3 : (unit -> unit) = method0(v0)                                    │

00:01:16 #6264 [Verbose] > │     let v4 : System.IDisposable = { new System.IDisposable with member       │

00:01:17 #6265 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }               │

00:01:17 #6266 [Verbose] > │     v4                                                                       │

00:01:17 #6267 [Verbose] > │     #endif                                                                   │

00:01:17 #6268 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:17 #6269 [Verbose] > │     let v5 : System.IDisposable = { new System.IDisposable with member       │

00:01:17 #6270 [Verbose] > │ _.Dispose () = v0 () }                                                       │

00:01:17 #6271 [Verbose] > │     v5                                                                       │

00:01:17 #6272 [Verbose] > │     #endif                                                                   │

00:01:17 #6273 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:17 #6274 [Verbose] > │     let v6 : System.IDisposable = { new System.IDisposable with member       │

00:01:17 #6275 [Verbose] > │ _.Dispose () = v0 () }                                                       │

00:01:17 #6276 [Verbose] > │     v6                                                                       │

00:01:17 #6277 [Verbose] > │     #endif                                                                   │

00:01:17 #6278 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:17 #6279 [Verbose] > │     let v7 : System.IDisposable = { new System.IDisposable with member       │

00:01:17 #6280 [Verbose] > │ _.Dispose () = v0 () }                                                       │

00:01:17 #6281 [Verbose] > │     v7                                                                       │

00:01:17 #6282 [Verbose] > │     #endif                                                                   │

00:01:17 #6283 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:17 #6284 [Verbose] > │     let v8 : System.IDisposable = result |> Option.get                       │

00:01:17 #6285 [Verbose] > │     v8                                                                       │

00:01:17 #6286 [Verbose] > │ and closure3 (v0 : int32, v1 : (unit -> unit), v2 : int32) () : US0 =        │

00:01:17 #6287 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:17 #6288 [Verbose] > │     if v3 then                                                               │

00:01:17 #6289 [Verbose] > │         v1 ()                                                                │

00:01:17 #6290 [Verbose] > │         US0_1                                                                │

00:01:17 #6291 [Verbose] > │     else                                                                     │

00:01:17 #6292 [Verbose] > │         US0_0                                                                │

00:01:17 #6293 [Verbose] > │ and closure4 () (v0 : US0) : US1 =                                           │

00:01:17 #6294 [Verbose] > │     US1_1(v0)                                                                │

00:01:17 #6295 [Verbose] > │ and closure5 () (v0 : exn) : unit =                                          │

00:01:17 #6296 [Verbose] > │     let mutable result = None                                                │

00:01:17 #6297 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:01:17 #6298 [Verbose] > │     ()                                                                       │

00:01:17 #6299 [Verbose] > │     #endif                                                                   │

00:01:17 #6300 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:01:17 #6301 [Verbose] > │     ()                                                                       │

00:01:17 #6302 [Verbose] > │     #endif                                                                   │

00:01:17 #6303 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:01:17 #6304 [Verbose] > │     let v1 : (int32 -> unit) = System.Threading.Thread.Sleep                 │

00:01:17 #6305 [Verbose] > │     v1 1                                                                     │

00:01:17 #6306 [Verbose] > │     ()                                                                       │

00:01:17 #6307 [Verbose] > │     #endif                                                                   │

00:01:17 #6308 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:01:17 #6309 [Verbose] > │     ()                                                                       │

00:01:17 #6310 [Verbose] > │     #endif                                                                   │

00:01:17 #6311 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:01:17 #6312 [Verbose] > │     ()                                                                       │

00:01:17 #6313 [Verbose] > │     #endif                                                                   │

00:01:17 #6314 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:01:17 #6315 [Verbose] > │     result |> Option.get                                                     │

00:01:17 #6316 [Verbose] > │     ()                                                                       │

00:01:17 #6317 [Verbose] > │ and method1 (v0 : int32, v1 : (unit -> unit), v2 : int32) : US0 =            │

00:01:17 #6318 [Verbose] > │     let v3 : (unit -> US0) = closure3(v0, v1, v2)                            │

00:01:17 #6319 [Verbose] > │     let v4 : (US0 -> US1) = closure4()                                       │

00:01:17 #6320 [Verbose] > │     let v5 : (exn -> unit) = closure5()                                      │

00:01:17 #6321 [Verbose] > │     let v6 : US1 = US1_0                                                     │

00:01:17 #6322 [Verbose] > │     let v7 : US1 = try v3 () |> v4 with ex -> v5 ex; v6                      │

00:01:17 #6323 [Verbose] > │     match v7 with                                                            │

00:01:17 #6324 [Verbose] > │     | US1_0 -> (* None *)                                                    │

00:01:17 #6325 [Verbose] > │         let v9 : int32 = v2 + 1                                              │

00:01:17 #6326 [Verbose] > │         method1(v0, v1, v9)                                                  │

00:01:17 #6327 [Verbose] > │     | US1_1(v8) -> (* Some *)                                                │

00:01:17 #6328 [Verbose] > │         v8                                                                   │

00:01:17 #6329 [Verbose] > │ and closure2 (v0 : int32) (v1 : (unit -> unit)) : unit option =              │

00:01:17 #6330 [Verbose] > │     let v2 : int32 = 0                                                       │

00:01:17 #6331 [Verbose] > │     let v3 : US0 = method1(v0, v1, v2)                                       │

00:01:17 #6332 [Verbose] > │     match v3 with                                                            │

00:01:17 #6333 [Verbose] > │     | US0_0 -> (* None *)                                                    │

00:01:17 #6334 [Verbose] > │         let v5 : unit option = None                                          │

00:01:17 #6335 [Verbose] > │         v5                                                                   │

00:01:17 #6336 [Verbose] > │     | US0_1 -> (* Some *)                                                    │

00:01:17 #6337 [Verbose] > │         let v4 : unit option = Some ()                                       │

00:01:17 #6338 [Verbose] > │         v4                                                                   │

00:01:17 #6339 [Verbose] > │ and closure1 () (v0 : int32) : ((unit -> unit) -> unit option) =             │

00:01:17 #6340 [Verbose] > │     closure2(v0)                                                             │

00:01:17 #6341 [Verbose] > │ let v0 : ((unit -> unit) -> System.IDisposable) = closure0()                 │

00:01:17 #6342 [Verbose] > │ let new_disposable x = v0 x                                                  │

00:01:17 #6343 [Verbose] > │ let v1 : (int32 -> ((unit -> unit) -> unit option)) = closure1()             │

00:01:17 #6344 [Verbose] > │ let retry_fn x = v1 x                                                        │

00:01:17 #6345 [Verbose] > │ ()                                                                           │

00:01:17 #6346 [Verbose] > │                                                                              │

00:01:17 #6347 [Verbose] > │                                                                              │

00:01:17 #6348 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6349 [Verbose] > 00:00:49 #19 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_12_268_FileOpen.json' because it is being used by another process.)

00:01:17 #6350 [Verbose] > │     let v20 : bool =                                                         │

00:01:17 #6351 [Verbose] > ╭─[ 924.17ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6352 [Verbose] > │         match v14 with                                                       │

00:01:17 #6353 [Verbose] > │ ()                                                                           │

00:01:17 #6354 [Verbose] > │         | US1_1(v18) -> (* Some *)                                           │

00:01:17 #6355 [Verbose] > │                                                                              │

00:01:17 #6356 [Verbose] > │             let v19 : bool = v18 = "System.Exception: test"                  │

00:01:17 #6357 [Verbose] > │                                                                              │

00:01:17 #6358 [Verbose] > │             v19                                                              │

00:01:17 #6359 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6360 [Verbose] > │         | _ ->                                                               │

00:01:17 #6361 [Verbose] >

00:01:17 #6362 [Verbose] > │             false                                                            │

00:01:17 #6363 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:17 #6364 [Verbose] > │     let v22 : bool =                                                         │

00:01:17 #6365 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:17 #6367 [Verbose] > │ ## to_vec                                                                    │

00:01:17 #6366 [Verbose] > │         if v20 then                                                          │

00:01:17 #6368 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6369 [Verbose] > │             true                                                             │

00:01:17 #6370 [Verbose] >

00:01:17 #6371 [Verbose] > │         else                                                                 │

00:01:17 #6372 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6373 [Verbose] > inl to_vec forall t. (ar : array_base t) : vec t =

00:01:17 #6374 [Verbose] > │             method1(v20)                                                     │

00:01:17 #6375 [Verbose] >     inl ar = join ar

00:01:17 #6376 [Verbose] > │     let v23 : string = "System.Exception: test"                              │

00:01:17 #6377 [Verbose] >     !\($'"!ar.to_vec()"')

00:01:17 #6379 [Verbose] >

00:01:17 #6378 [Verbose] > │     let v24 : US1 = US1_1(v23)                                               │

00:01:17 #6380 [Verbose] > ╭─[ 379.71ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6381 [Verbose] > │     let v25 : string = $"__expect / actual: %A{v14} / expected: %A{v24}"     │

00:01:17 #6382 [Verbose] > │ ()                                                                           │

00:01:17 #6383 [Verbose] > │     let v26 : bool = v22 = false                                             │

00:01:17 #6384 [Verbose] > │                                                                              │

00:01:17 #6385 [Verbose] > │     if v26 then                                                              │

00:01:17 #6386 [Verbose] > │                                                                              │

00:01:17 #6388 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6387 [Verbose] > │         failwith<unit> v25                                                   │

00:01:17 #6389 [Verbose] >

00:01:17 #6390 [Verbose] > │ method0()                                                                    │

00:01:17 #6391 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:17 #6392 [Verbose] > │                                                                              │

00:01:17 #6393 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:17 #6394 [Verbose] > │ US1_1 "System.Exception: test"                                               │

00:01:17 #6395 [Verbose] > │ ## vec_push                                                                  │

00:01:17 #6397 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6396 [Verbose] > │                                                                              │

00:01:17 #6398 [Verbose] >

00:01:17 #6399 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6400 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6402 [Verbose] > inl vec_push forall el. (el : el) (vec : vec el) : vec el =

00:01:17 #6401 [Verbose] >

00:01:17 #6403 [Verbose] >     inl el = join el

00:01:17 #6404 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:17 #6405 [Verbose] >     inl vec = join vec

00:01:17 #6406 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:17 #6407 [Verbose] >     !\($'"let mut !vec = !vec"')

00:01:17 #6408 [Verbose] > │ ## format_ellipsis'                                                          │

00:01:17 #6409 [Verbose] >     // inl vec = vec |> rust.to_mut

00:01:17 #6410 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6411 [Verbose] >     !\($'"!vec.push(!el)"')

00:01:17 #6412 [Verbose] >

00:01:17 #6413 [Verbose] >     !\($'"!vec"')

00:01:17 #6414 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6415 [Verbose] > inl format_ellipsis' s =

00:01:17 #6416 [Verbose] >     s

00:01:17 #6417 [Verbose] >     |> format_debug

00:01:17 #6419 [Verbose] >     |> ellipsis 400i32

00:01:17 #6419 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1258-5831-5f6ae09899d6\main.spi

00:01:17 #6420 [Verbose] > ╭─[ 958.21ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6421 [Verbose] >

00:01:17 #6422 [Verbose] > │ ()                                                                           │

00:01:17 #6423 [Verbose] > ╭─[ 473.32ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6424 [Verbose] > │                                                                              │

00:01:17 #6425 [Verbose] > │ ()                                                                           │

00:01:17 #6426 [Verbose] > │                                                                              │

00:01:17 #6427 [Verbose] > │                                                                              │

00:01:17 #6428 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6430 [Verbose] >

00:01:17 #6429 [Verbose] > │                                                                              │

00:01:17 #6431 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6433 [Verbose] > // // test

00:01:17 #6434 [Verbose] >

00:01:17 #6435 [Verbose] >

00:01:17 #6436 [Verbose] > listm.init 10i32 id

00:01:17 #6437 [Verbose] > |> index_of 5i32

00:01:17 #6439 [Verbose] > |> _assert_eq 5i32

00:01:17 #6438 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:17 #6440 [Verbose] >

00:01:17 #6441 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:17 #6442 [Verbose] > │ ## obj_to_string                                                             │

00:01:17 #6443 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6444 [Verbose] >

00:01:17 #6445 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6446 [Verbose] > inl obj_to_string x : string =

00:01:17 #6447 [Verbose] > ╭─[ 625.57ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6448 [Verbose] >     $"!x.ToString ()"

00:01:17 #6449 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:17 #6450 [Verbose] > │     let v0 : string = $"%A{5}"                                               │

00:01:17 #6451 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:17 #6452 [Verbose] > │     let v1 : string = $"__expect / actual: %A{5} / expected: %A{5}"          │

00:01:17 #6453 [Verbose] > │     ()                                                                       │

00:01:17 #6454 [Verbose] > │ method0()                                                                    │

00:01:17 #6455 [Verbose] > │                                                                              │

00:01:17 #6456 [Verbose] > │ 5                                                                            │

00:01:17 #6457 [Verbose] > │                                                                              │

00:01:17 #6458 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6459 [Verbose] >

00:01:17 #6460 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6461 [Verbose] > // // test

00:01:17 #6462 [Verbose] >

00:01:17 #6463 [Verbose] > listm.init 10i32 id

00:01:17 #6464 [Verbose] > |> try_index_of 10i32

00:01:17 #6465 [Verbose] >

00:01:17 #6466 [Verbose] > |> _assert_eq (None : option i32)

00:01:17 #6467 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1284-8488-8995bac70b64\main.spi

00:01:17 #6468 [Verbose] > ╭─[ 430.97ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6469 [Verbose] > │ ()                                                                           │

00:01:17 #6470 [Verbose] > │                                                                              │

00:01:17 #6471 [Verbose] >

00:01:17 #6472 [Verbose] > │                                                                              │

00:01:17 #6473 [Verbose] > ╭─[ 477.69ms - stdout ]────────────────────────────────────────────────────────╮

00:01:17 #6474 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6475 [Verbose] >

00:01:17 #6476 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:17 #6477 [Verbose] > │ ()                                                                           │

00:01:17 #6478 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:17 #6479 [Verbose] > │ ## vec_reverse                                                               │

00:01:17 #6480 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6481 [Verbose] > │                                                                              │

00:01:17 #6482 [Verbose] >

00:01:17 #6483 [Verbose] > │                                                                              │

00:01:17 #6484 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:17 #6485 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:17 #6486 [Verbose] > inl vec_reverse forall el. (vec : vec el) : vec el =

00:01:17 #6487 [Verbose] >     inl vec = join vec

00:01:17 #6488 [Verbose] >     !\($'"let mut !vec = !vec"')

00:01:17 #6489 [Verbose] >     !\($'"!vec.reverse()"')

00:01:17 #6490 [Verbose] >

00:01:17 #6491 [Verbose] >     !\($'"!vec"')

00:01:17 #6492 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:17 #6493 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1306-0697-0b99e90b4b1d\main.spi

00:01:18 #6494 [Debug] executeAsync / exitCode: 0 / output.Length: 23557

00:01:18 #6495 [Debug] main / executeCommand / exitCode: 0

00:01:18 #6496 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 stream.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:01:18 #6497 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:18 #6498 [Verbose] > │ ## to_string any                                                             │

00:01:18 #6499 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:18 #6500 [Verbose] >

00:01:18 #6501 [Verbose] >

00:01:18 #6502 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:18 #6503 [Verbose] > instance to_string any =

00:01:18 #6504 [Verbose] > ╭─[ 1.12s - stdout ]───────────────────────────────────────────────────────────╮

00:01:18 #6505 [Verbose] >     obj_to_string

00:01:18 #6506 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:18 #6507 [Verbose] > │     | US0_0                                                                  │

00:01:18 #6508 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:18 #6509 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:18 #6510 [Verbose] > │     let v0 : US0 = US0_0                                                     │

00:01:18 #6511 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1411-1175-140501a3b57f\main.spi

00:01:18 #6512 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:18 #6513 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:18 #6514 [Verbose] > │     let v5 : US0 = US0_0                                                     │

00:01:18 #6515 [Verbose] >

00:01:19 #6516 [Verbose] > │     let v6 : US0 = US0_0                                                     │

00:01:19 #6517 [Verbose] > ╭─[ 774.50ms - stdout ]────────────────────────────────────────────────────────╮

00:01:19 #6518 [Verbose] > │ ()                                                                           │

00:01:19 #6519 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:19 #6520 [Verbose] > │     ()                                                                       │

00:01:19 #6521 [Verbose] > │                                                                              │

00:01:19 #6522 [Verbose] > │                                                                              │

00:01:19 #6523 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6524 [Verbose] >

00:01:19 #6525 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:19 #6526 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:19 #6527 [Verbose] > │ ## to_string result t u                                                      │

00:01:19 #6528 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6529 [Verbose] >

00:01:19 #6530 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:19 #6531 [Verbose] > instance to_string result t u = fun x =>

00:01:19 #6532 [Verbose] >     real

00:01:19 #6533 [Verbose] >         open rust

00:01:19 #6534 [Verbose] >         typecase (t * u) with

00:01:19 #6535 [Verbose] >         | string * string =>

00:01:19 #6536 [Verbose] >             match x with

00:01:19 #6537 [Verbose] >             | Ok x => x

00:01:19 #6538 [Verbose] >             | Error x => $'"Error: " + !x + ""' : string

00:01:19 #6539 [Verbose] >         | std_string * std_string =>

00:01:19 #6540 [Verbose] >             match x with

00:01:19 #6541 [Verbose] >             | Ok x => from_std_string x

00:01:19 #6542 [Verbose] >             | Error x => $'"Error: " + string !x + ""' : string

00:01:19 #6543 [Verbose] >         | _ => obj_to_string `u x

00:01:19 #6544 [Verbose] > │ method0()                                                                    │

00:01:19 #6545 [Verbose] > │                                                                              │

00:01:19 #6546 [Verbose] > │ US0_0                                                                        │

00:01:19 #6547 [Verbose] > │                                                                              │

00:01:19 #6548 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1473-7382-7b8995d64c62\main.spi

00:01:19 #6549 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6550 [Verbose] >

00:01:19 #6551 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1346-4695-4c5c708a5b25\main.spi

00:01:19 #6552 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:19 #6553 [Verbose] >

00:01:19 #6554 [Verbose] > ╭─[ 421.56ms - stdout ]────────────────────────────────────────────────────────╮

00:01:19 #6555 [Verbose] > │ ()                                                                           │

00:01:19 #6556 [Verbose] > │                                                                              │

00:01:19 #6557 [Verbose] > │                                                                              │

00:01:19 #6558 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6559 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:19 #6560 [Verbose] >

00:01:19 #6561 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:19 #6562 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:19 #6563 [Verbose] > │ ## serialize                                                                 │

00:01:19 #6564 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6565 [Verbose] >

00:01:19 #6566 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:19 #6567 [Verbose] > inl serialize forall t. (x : t) : resultm.result' std_string json_error =

00:01:19 #6568 [Verbose] >     !\($'"serde_json::to_string(&!x)"')

00:01:19 #6569 [Verbose] > │ ## try_find                                                                  │

00:01:19 #6570 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6571 [Verbose] >

00:01:19 #6572 [Verbose] >

00:01:19 #6573 [Verbose] > ╭─[ 1.91s - stdout ]───────────────────────────────────────────────────────────╮

00:01:19 #6574 [Verbose] > │ ()                                                                           │

00:01:19 #6575 [Verbose] > │                                                                              │

00:01:19 #6576 [Verbose] > │                                                                              │

00:01:19 #6577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6578 [Verbose] >

00:01:19 #6579 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:19 #6580 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:19 #6581 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:19 #6582 [Verbose] > │ ## vec_retain                                                                │

00:01:19 #6583 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:19 #6584 [Verbose] > inl try_find fn list =

00:01:19 #6585 [Verbose] >     inl rec loop = function

00:01:19 #6586 [Verbose] >         | [[]] => None

00:01:19 #6587 [Verbose] >         | x :: xs =>

00:01:19 #6588 [Verbose] >             if fn x

00:01:19 #6589 [Verbose] >             then Some x

00:01:19 #6590 [Verbose] >             else loop xs

00:01:19 #6591 [Verbose] >     loop list

00:01:19 #6592 [Verbose] >

00:01:19 #6593 [Verbose] >

00:01:19 #6594 [Verbose] > inl try_find_ fn list =

00:01:19 #6595 [Verbose] >     let rec loop = function

00:01:19 #6596 [Verbose] >         | [[]] => None

00:01:19 #6597 [Verbose] >         | x :: xs =>

00:01:19 #6598 [Verbose] >             if fn x

00:01:19 #6599 [Verbose] >             then Some x

00:01:19 #6600 [Verbose] >             else loop xs

00:01:19 #6601 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:19 #6602 [Verbose] >     loop list

00:01:19 #6603 [Verbose] > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =

00:01:19 #6604 [Verbose] >     inl vec = join vec

00:01:19 #6605 [Verbose] >     inl fn = join fn

00:01:19 #6606 [Verbose] >     !\($'"let mut !vec = !vec"')

00:01:19 #6607 [Verbose] >     // inl vec = vec |> rust.to_mut

00:01:19 #6608 [Verbose] >     !\($'"!vec.retain(|x| !fn(x.clone()))"')

00:01:19 #6609 [Verbose] >     !\($'"!vec"')

00:01:19 #6610 [Verbose] >

00:01:19 #6611 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1517-1795-1407b16745f9\main.spi

00:01:19 #6612 [Verbose] >

00:01:20 #6613 [Verbose] >

00:01:20 #6614 [Verbose] > ╭─[ 512.79ms - stdout ]────────────────────────────────────────────────────────╮

00:01:20 #6615 [Verbose] > │ ()                                                                           │

00:01:20 #6616 [Verbose] >

00:01:20 #6617 [Verbose] > │                                                                              │

00:01:20 #6618 [Verbose] > ╭─[ 510.14ms - stdout ]────────────────────────────────────────────────────────╮

00:01:20 #6619 [Verbose] > │                                                                              │

00:01:20 #6620 [Verbose] > │ ()                                                                           │

00:01:20 #6621 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:20 #6622 [Verbose] >

00:01:20 #6623 [Verbose] > │                                                                              │

00:01:20 #6624 [Verbose] > │                                                                              │

00:01:20 #6625 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:20 #6626 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:20 #6627 [Verbose] >

00:01:20 #6628 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:20 #6629 [Verbose] > // // test

00:01:20 #6630 [Verbose] >

00:01:20 #6631 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:20 #6632 [Verbose] > listm.init 10i32 id

00:01:20 #6633 [Verbose] > |> try_find ((=) 5i32)

00:01:20 #6634 [Verbose] > │ ## vec_sort_by_key                                                           │

00:01:20 #6635 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:20 #6636 [Verbose] > |> _assert_eq (Some 5i32)

00:01:20 #6637 [Verbose] >

00:01:20 #6638 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:20 #6639 [Verbose] > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =

00:01:20 #6640 [Verbose] >     inl vec = join vec

00:01:20 #6641 [Verbose] >     inl fn = join fn

00:01:20 #6642 [Verbose] >     !\($'"let mut !vec = !vec"')

00:01:20 #6643 [Verbose] >     // inl vec = vec |> rust.to_mut

00:01:20 #6644 [Verbose] >     !\($'"!vec.sort_by_key(|x| !fn(x.clone()))"')

00:01:20 #6645 [Verbose] >     !\($'"!vec"')

00:01:20 #6646 [Verbose] >

00:01:20 #6647 [Verbose] > ╭─[ 499.49ms - stdout ]────────────────────────────────────────────────────────╮

00:01:20 #6648 [Verbose] > │ ()                                                                           │

00:01:20 #6649 [Verbose] > │                                                                              │

00:01:20 #6650 [Verbose] > │                                                                              │

00:01:20 #6651 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:20 #6652 [Verbose] >

00:01:20 #6653 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:20 #6654 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:20 #6655 [Verbose] > │ ## vec_extend                                                                │

00:01:20 #6656 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:20 #6657 [Verbose] >

00:01:20 #6658 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:20 #6659 [Verbose] > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =

00:01:20 #6660 [Verbose] >     inl el = join el

00:01:20 #6661 [Verbose] >     inl vec = join vec

00:01:20 #6662 [Verbose] >     !\($'"let mut !vec = !vec"')

00:01:20 #6663 [Verbose] >     // inl vec = vec |> rust.to_mut

00:01:20 #6664 [Verbose] >     !\($'"!vec.extend(!el)"')

00:01:20 #6665 [Verbose] >     !\($'"!vec"')

00:01:20 #6666 [Verbose] >

00:01:20 #6667 [Verbose] > ╭─[ 626.51ms - stdout ]────────────────────────────────────────────────────────╮

00:01:20 #6668 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:20 #6669 [Verbose] > │     | US0_0                                                                  │

00:01:20 #6670 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:20 #6671 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:20 #6672 [Verbose] > │     let v0 : US0 = US0_1(5)                                                  │

00:01:20 #6673 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:20 #6674 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:20 #6675 [Verbose] > │     let v5 : US0 = US0_1(5)                                                  │

00:01:20 #6676 [Verbose] > │     let v6 : US0 = US0_1(5)                                                  │

00:01:20 #6677 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:20 #6678 [Verbose] > │     ()                                                                       │

00:01:20 #6679 [Verbose] > │ method0()                                                                    │

00:01:20 #6680 [Verbose] > │                                                                              │

00:01:20 #6681 [Verbose] > │ US0_1 5                                                                      │

00:01:20 #6682 [Verbose] > │                                                                              │

00:01:20 #6683 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:20 #6684 [Verbose] >

00:01:20 #6685 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:20 #6686 [Verbose] > inl find x =

00:01:20 #6687 [Verbose] >     try_find x >> optionm.value

00:01:20 #6688 [Verbose] >

00:01:20 #6689 [Verbose] > inl find_ x =

00:01:20 #6690 [Verbose] >     try_find_ x >> optionm.value

00:01:21 #6691 [Verbose] >

00:01:21 #6693 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1527-2758-29a97f974eb1\main.spi

00:01:21 #6694 [Verbose] > ╭─[ 379.43ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6695 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1527-2768-298bc57c85af\main.spi

00:01:21 #6692 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6697 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1557-5716-5389e9049813\main.spi

00:01:21 #6696 [Verbose] > │ ()                                                                           │

00:01:21 #6698 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6699 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1581-8184-818eba5b8b40\main.spi

00:01:21 #6700 [Verbose] > │                                                                              │

00:01:21 #6701 [Verbose] > │ ## benchmark (Polyglot)                                                      │

00:01:21 #6702 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1587-8773-839b8e34dc98\main.spi

00:01:21 #6703 [Verbose] > │                                                                              │

00:01:21 #6705 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1638-3865-3abd028a8cd5\main.spi

00:01:21 #6704 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6706 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6707 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1614-1477-15b8b81bc493\main.spi

00:01:21 #6708 [Verbose] >

00:01:21 #6709 [Verbose] >

00:01:21 #6710 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1646-4625-479bed2a710f\main.spi

00:01:21 #6711 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6712 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6713 [Verbose] > // // test

00:01:21 #6714 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6715 [Verbose] >

00:01:21 #6716 [Verbose] > │ ## deserialize                                                               │

00:01:21 #6717 [Verbose] > open testing

00:01:21 #6718 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6719 [Verbose] >

00:01:21 #6720 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6721 [Verbose] > inl deserialize forall t. (json : string) : resultm.result' t std_string =

00:01:21 #6722 [Verbose] >     inl json = json |> as_str

00:01:21 #6723 [Verbose] >     !\($'"serde_json::from_str(&!json)"')

00:01:21 #6724 [Verbose] >     |> resultm.map_error' fun (x : json_error) => x |> format'

00:01:21 #6725 [Verbose] >

00:01:21 #6726 [Verbose] > ╭─[ 421.27ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6727 [Verbose] > │ ()                                                                           │

00:01:21 #6728 [Verbose] > │                                                                              │

00:01:21 #6729 [Verbose] > │                                                                              │

00:01:21 #6730 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6731 [Verbose] >

00:01:21 #6732 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6733 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6734 [Verbose] > │ ## borsh_deserialize                                                         │

00:01:21 #6735 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6736 [Verbose] >

00:01:21 #6737 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6738 [Verbose] > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t

00:01:21 #6739 [Verbose] > std_string =

00:01:21 #6740 [Verbose] >     inl data = data |> am'.as_slice

00:01:21 #6741 [Verbose] >     !\($'"let mut !data = !data"')

00:01:21 #6742 [Verbose] >     inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')

00:01:21 #6743 [Verbose] >     result

00:01:21 #6744 [Verbose] >     |> resultm.map_error' fun (x : borsh_io_error) => x |> format'

00:01:21 #6745 [Verbose] > ╭─[ 365.32ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6746 [Verbose] > │ ()                                                                           │

00:01:21 #6747 [Verbose] > │                                                                              │

00:01:21 #6748 [Verbose] >

00:01:21 #6749 [Verbose] > ╭─[ 689.41ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6750 [Verbose] > │ ()                                                                           │

00:01:21 #6751 [Verbose] > │                                                                              │

00:01:21 #6752 [Verbose] > │                                                                              │

00:01:21 #6753 [Verbose] > │                                                                              │

00:01:21 #6754 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6755 [Verbose] >

00:01:21 #6756 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6757 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6758 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6759 [Verbose] >

00:01:21 #6760 [Verbose] > │ ## deserialize_vec                                                           │

00:01:21 #6761 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6762 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6763 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6764 [Verbose] >

00:01:21 #6765 [Verbose] > │ ## vec_collect                                                               │

00:01:21 #6766 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6767 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6768 [Verbose] > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)

00:01:21 #6769 [Verbose] > std_string =

00:01:21 #6770 [Verbose] >     inl value = join value

00:01:21 #6771 [Verbose] >     !\($'"serde_json::from_value(!value)"')

00:01:21 #6772 [Verbose] >     |> resultm.map_error' fun (x : json_error) => x |> format'

00:01:21 #6773 [Verbose] >

00:01:21 #6774 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6775 [Verbose] > inl vec_collect fn vec =

00:01:21 #6776 [Verbose] >     ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))

00:01:21 #6777 [Verbose] >     ||> am.fold fun acc x =>

00:01:21 #6778 [Verbose] >         acc |> vec_extend (fn x)

00:01:21 #6779 [Verbose] >

00:01:21 #6780 [Verbose] > ╭─[ 406.91ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6781 [Verbose] > │ ()                                                                           │

00:01:21 #6782 [Verbose] > │                                                                              │

00:01:21 #6783 [Verbose] > │                                                                              │

00:01:21 #6784 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6785 [Verbose] >

00:01:21 #6786 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6787 [Verbose] > // // test

00:01:21 #6788 [Verbose] >

00:01:21 #6789 [Verbose] > listm.init 10i32 id

00:01:21 #6790 [Verbose] > |> find ((=) 5i32)

00:01:21 #6791 [Verbose] > |> _assert_eq 5i32

00:01:21 #6792 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1682-8288-8536f2a2a7d4\main.spi

00:01:21 #6793 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1681-8193-872053e1db7c\main.spi

00:01:21 #6794 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1687-8700-8990de2b7cc8\main.spi

00:01:21 #6795 [Verbose] >

00:01:21 #6796 [Verbose] >

00:01:21 #6797 [Verbose] > ╭─[ 397.42ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6798 [Verbose] > ╭─[ 406.41ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6799 [Verbose] > │ ()                                                                           │

00:01:21 #6800 [Verbose] > │                                                                              │

00:01:21 #6801 [Verbose] > │ ()                                                                           │

00:01:21 #6802 [Verbose] > │                                                                              │

00:01:21 #6803 [Verbose] > │                                                                              │

00:01:21 #6804 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6805 [Verbose] >

00:01:21 #6806 [Verbose] > │                                                                              │

00:01:21 #6807 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6808 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6809 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6810 [Verbose] >

00:01:21 #6811 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6812 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6813 [Verbose] >

00:01:21 #6814 [Verbose] > │ ## vec_collect_option                                                        │

00:01:21 #6815 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6816 [Verbose] > │ ## encode_uri_component                                                      │

00:01:21 #6817 [Verbose] > ╭─[ 399.03ms - stdout ]────────────────────────────────────────────────────────╮

00:01:21 #6818 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6819 [Verbose] >

00:01:21 #6820 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:21 #6821 [Verbose] >

00:01:21 #6822 [Verbose] > │     let v0 : string = $"%A{5}"                                               │

00:01:21 #6823 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6824 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6825 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:21 #6826 [Verbose] > inl vec_collect_option vec =

00:01:21 #6827 [Verbose] >     ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))

00:01:21 #6828 [Verbose] >     ||> am.fold fun acc x =>

00:01:21 #6829 [Verbose] >         x

00:01:21 #6830 [Verbose] >         |> resultm.unbox

00:01:21 #6831 [Verbose] >         |> fun x =>

00:01:21 #6832 [Verbose] >             match acc, x |> resultm.map optionm'.unbox with

00:01:21 #6833 [Verbose] >             | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok

00:01:21 #6834 [Verbose] >             | _, Error error => error |> Error

00:01:21 #6835 [Verbose] > inl encode_uri_component (s : std_string) : js_string =

00:01:21 #6836 [Verbose] >             | _ => acc

00:01:21 #6837 [Verbose] > │     let v1 : string = $"__expect / actual: %A{5} / expected: %A{5}"          │

00:01:21 #6838 [Verbose] >     !\($'"js_sys::encode_uri_component(&!s)"')

00:01:21 #6839 [Verbose] > │     ()                                                                       │

00:01:21 #6840 [Verbose] > │ method0()                                                                    │

00:01:21 #6841 [Verbose] > │                                                                              │

00:01:21 #6842 [Verbose] > │ 5                                                                            │

00:01:21 #6843 [Verbose] > │                                                                              │

00:01:21 #6844 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6845 [Verbose] >

00:01:21 #6846 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:21 #6847 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:21 #6848 [Verbose] > │ ## choose                                                                    │

00:01:21 #6849 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:21 #6850 [Verbose] >

00:01:21 #6851 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:21 #6852 [Verbose] > inl choose f l =

00:01:21 #6853 [Verbose] >     (l, [[]])

00:01:21 #6854 [Verbose] >     ||> listm.foldBack fun x acc =>

00:01:21 #6855 [Verbose] >         match f x with

00:01:21 #6856 [Verbose] >         | Some y => y :: acc

00:01:21 #6857 [Verbose] >         | None => acc

00:01:21 #6858 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1728-2857-24bc2fcc83d9\main.spi

00:01:21 #6859 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1728-2880-284d80407976\main.spi

00:01:21 #6860 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1730-3089-3dd38810701a\main.spi

00:01:22 #6861 [Verbose] >

00:01:22 #6862 [Verbose] > ╭─[ 388.43ms - stdout ]────────────────────────────────────────────────────────╮

00:01:22 #6863 [Verbose] > │ ()                                                                           │

00:01:22 #6864 [Verbose] > │                                                                              │

00:01:22 #6865 [Verbose] > │                                                                              │

00:01:22 #6866 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #6867 [Verbose] >

00:01:22 #6868 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:22 #6869 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:22 #6870 [Verbose] > │ ## strip_prefix                                                              │

00:01:22 #6871 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #6872 [Verbose] >

00:01:22 #6873 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:22 #6874 [Verbose] > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref'

00:01:22 #6875 [Verbose] > str) =

00:01:22 #6876 [Verbose] >     inl s = join s

00:01:22 #6877 [Verbose] >     !\($'"!s.strip_prefix(!prefix)"')

00:01:22 #6878 [Verbose] >

00:01:22 #6879 [Verbose] > ╭─[ 439.34ms - stdout ]────────────────────────────────────────────────────────╮

00:01:22 #6880 [Verbose] > │ ()                                                                           │

00:01:22 #6881 [Verbose] > │                                                                              │

00:01:22 #6882 [Verbose] > │                                                                              │

00:01:22 #6883 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #6884 [Verbose] >

00:01:22 #6885 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:22 #6886 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:22 #6887 [Verbose] > │ ## vec_collect_into                                                          │

00:01:22 #6888 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #6889 [Verbose] >

00:01:22 #6890 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:22 #6891 [Verbose] > inl vec_collect_into forall (c : * -> * -> *) t e.

00:01:22 #6892 [Verbose] >     (x : vec (c t e))

00:01:22 #6893 [Verbose] >     : c (vec t) e

00:01:22 #6894 [Verbose] >     =

00:01:22 #6895 [Verbose] >     !\($'"!x.into_iter().collect()"')

00:01:22 #6896 [Verbose] >

00:01:22 #6897 [Verbose] > ╭─[ 418.29ms - stdout ]────────────────────────────────────────────────────────╮

00:01:22 #6898 [Verbose] > │ ()                                                                           │

00:01:22 #6899 [Verbose] > │                                                                              │

00:01:22 #6900 [Verbose] > │                                                                              │

00:01:22 #6901 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #6902 [Verbose] >

00:01:22 #6903 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:22 #6904 [Verbose] > // // test

00:01:22 #6905 [Verbose] >

00:01:22 #6906 [Verbose] > listm.init 10i32 id

00:01:22 #6907 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)

00:01:22 #6908 [Verbose] > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]

00:01:22 #6909 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1769-6921-6854a1840a66\main.spi

00:01:22 #6910 [Verbose] >

00:01:22 #6911 [Verbose] >

00:01:22 #6912 [Verbose] >

00:01:22 #6913 [Verbose] > [NbConvertApp] Converting notebook common.dib.ipynb to html

00:01:22 #6914 [Verbose] > ╭─[ 665.05ms - stdout ]────────────────────────────────────────────────────────╮

00:01:22 #6915 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:22 #6916 [Verbose] >   validate(nb)

00:01:22 #6917 [Verbose] > │ type UH0 =                                                                   │

00:01:22 #6918 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:01:22 #6919 [Verbose] > │     | UH0_1                                                                  │

00:01:23 #6920 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:23 #6921 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:23 #6922 [Verbose] > │     let v1 : UH0 = UH0_0(8, v0)                                              │

00:01:23 #6923 [Verbose] > │     let v2 : UH0 = UH0_0(6, v1)                                              │

00:01:23 #6924 [Verbose] > │     let v3 : UH0 = UH0_0(4, v2)                                              │

00:01:23 #6925 [Verbose] > │     let v4 : UH0 = UH0_0(2, v3)                                              │

00:01:23 #6926 [Verbose] > │     let v5 : UH0 = UH0_0(0, v4)                                              │

00:01:23 #6927 [Verbose] > │     let v6 : string = $"%A{v5}"                                              │

00:01:23 #6928 [Verbose] > │     System.Console.WriteLine v6                                              │

00:01:23 #6929 [Verbose] > │     let v40 : UH0 = UH0_1                                                    │

00:01:23 #6930 [Verbose] > │     let v41 : UH0 = UH0_0(8, v40)                                            │

00:01:23 #6931 [Verbose] > │     let v42 : UH0 = UH0_0(6, v41)                                            │

00:01:23 #6932 [Verbose] > │     let v43 : UH0 = UH0_0(4, v42)                                            │

00:01:23 #6933 [Verbose] > │     let v44 : UH0 = UH0_0(2, v43)                                            │

00:01:23 #6934 [Verbose] > │     let v45 : UH0 = UH0_0(0, v44)                                            │

00:01:23 #6935 [Verbose] > │     let v46 : UH0 = UH0_1                                                    │

00:01:23 #6936 [Verbose] > │     let v47 : UH0 = UH0_0(8, v46)                                            │

00:01:23 #6937 [Verbose] > │     let v48 : UH0 = UH0_0(6, v47)                                            │

00:01:23 #6938 [Verbose] > │     let v49 : UH0 = UH0_0(4, v48)                                            │

00:01:23 #6939 [Verbose] > │     let v50 : UH0 = UH0_0(2, v49)                                            │

00:01:23 #6940 [Verbose] > │     let v51 : UH0 = UH0_0(0, v50)                                            │

00:01:23 #6941 [Verbose] > │     let v52 : string = $"__expect / actual: %A{v45} / expected: %A{v51}"     │

00:01:23 #6942 [Verbose] > │     ()                                                                       │

00:01:23 #6943 [Verbose] > │ method0()                                                                    │

00:01:23 #6944 [Verbose] > │                                                                              │

00:01:23 #6945 [Verbose] > │ UH0_0 (0, UH0_0 (2, UH0_0 (4, UH0_0 (6, UH0_0 (8, UH0_1)))))                 │

00:01:23 #6946 [Verbose] > │                                                                              │

00:01:23 #6947 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #6948 [Verbose] >

00:01:23 #6949 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:23 #6950 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:23 #6951 [Verbose] > │ ## zip_with                                                                  │

00:01:23 #6952 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #6953 [Verbose] >

00:01:23 #6954 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #6955 [Verbose] > inl zip_with fn xs ys =

00:01:23 #6956 [Verbose] >     inl rec loop acc xs ys =

00:01:23 #6957 [Verbose] >         match xs, ys with

00:01:23 #6958 [Verbose] >         | Cons (x, xs), Cons (y, ys) =>

00:01:23 #6959 [Verbose] >             loop (fn x y :: acc) xs ys

00:01:23 #6960 [Verbose] >         | _ => listm.rev acc

00:01:23 #6961 [Verbose] >     loop [[]] xs ys

00:01:23 #6962 [Verbose] >

00:01:23 #6963 [Verbose] > inl zip_with_ fn xs ys =

00:01:23 #6964 [Verbose] >     let rec loop acc xs ys =

00:01:23 #6965 [Verbose] >         match xs, ys with

00:01:23 #6966 [Verbose] >         | Cons (x, xs), Cons (y, ys) =>

00:01:23 #6967 [Verbose] >             loop (fn x y :: acc) xs ys

00:01:23 #6968 [Verbose] >         | _ => listm.rev acc

00:01:23 #6969 [Verbose] >     loop [[]] xs ys

00:01:23 #6970 [Verbose] >

00:01:23 #6971 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1772-7217-72b964dbdb54\main.spi

00:01:23 #6972 [Verbose] > ╭─[ 475.48ms - stdout ]────────────────────────────────────────────────────────╮

00:01:23 #6973 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1773-7351-74ad8b285633\main.spi

00:01:23 #6974 [Verbose] > │ ()                                                                           │

00:01:23 #6975 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1817-1792-12ee144187da\main.spi

00:01:23 #6976 [Verbose] > │                                                                              │

00:01:23 #6977 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1818-1887-1343438f3794\main.spi

00:01:23 #6978 [Verbose] > │                                                                              │

00:01:23 #6979 [Verbose] > 00:00:56 #20 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_37_18_443_BuildFile.json' because it is being used by another process.)

00:01:23 #6980 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #6981 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1917-1757-1712d0f3dba7\main.spi

00:01:23 #6982 [Verbose] >

00:01:23 #6983 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1919-1967-1e75d9cef46c\main.spi

00:01:23 #6984 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:23 #6985 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:23 #6986 [Verbose] > │ ## base64_decode                                                             │

00:01:23 #6987 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #6988 [Verbose] >

00:01:23 #6989 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #6990 [Verbose] > inl base64_decode (s : std_string) : result std_string std_string =

00:01:23 #6991 [Verbose] >     fun () =>

00:01:23 #6992 [Verbose] >         inl s = join s

00:01:23 #6993 [Verbose] >         inl bytes : resultm.result' (am'.vec u8) base64_decode_error =

00:01:23 #6994 [Verbose] >

00:01:23 #6995 [Verbose] > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')

00:01:23 #6996 [Verbose] >         inl bytes =

00:01:23 #6997 [Verbose] >             bytes

00:01:23 #6998 [Verbose] >             |> resultm.map_error' format'

00:01:23 #6999 [Verbose] >             |> resultm.try'

00:01:23 #7000 [Verbose] >         inl result : resultm.result' std_string utf8_error =

00:01:23 #7001 [Verbose] >             !\($'"std::str::from_utf8(&!bytes).map(String::from)"')

00:01:23 #7002 [Verbose] >         result

00:01:23 #7003 [Verbose] >         |> resultm.map_error' format'

00:01:23 #7004 [Verbose] >     |> fun x =>

00:01:23 #7005 [Verbose] >         join x ()

00:01:23 #7006 [Verbose] >         |> resultm.unbox

00:01:23 #7007 [Verbose] >

00:01:23 #7008 [Verbose] > ╭─[ 969.54ms - stdout ]────────────────────────────────────────────────────────╮

00:01:23 #7009 [Verbose] > │ ()                                                                           │

00:01:23 #7010 [Verbose] > │                                                                              │

00:01:23 #7011 [Verbose] > │                                                                              │

00:01:23 #7012 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7013 [Verbose] >

00:01:23 #7014 [Verbose] > ╭─[ 431.80ms - stdout ]────────────────────────────────────────────────────────╮

00:01:23 #7015 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:23 #7016 [Verbose] > │ ()                                                                           │

00:01:23 #7017 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:23 #7018 [Verbose] > │                                                                              │

00:01:23 #7019 [Verbose] > │ ## concat_array_trailing                                                     │

00:01:23 #7020 [Verbose] > │                                                                              │

00:01:23 #7021 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7022 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7023 [Verbose] >

00:01:23 #7024 [Verbose] >

00:01:23 #7025 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #7026 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:23 #7027 [Verbose] > inl concat_array_trailing (separator : string) (input : a i32 string) =

00:01:23 #7028 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:23 #7030 [Verbose] > │ ## vec_mapi                                                                  │

00:01:23 #7029 [Verbose] >     ("", input)

00:01:23 #7031 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7032 [Verbose] >     ||> am.fold fun acc (x : string) =>

00:01:23 #7033 [Verbose] >

00:01:23 #7034 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #7035 [Verbose] > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =

00:01:23 #7036 [Verbose] >     inl fn = join fn

00:01:23 #7037 [Verbose] >     inl ar = join ar

00:01:23 #7038 [Verbose] >     !\($'"!ar.iter().enumerate().map(|(i, x)|

00:01:23 #7039 [Verbose] > !fn(i.try_into().unwrap())(x.clone())).collect()"')

00:01:23 #7040 [Verbose] >

00:01:23 #7041 [Verbose] > ╭─[ 976.09ms - stdout ]────────────────────────────────────────────────────────╮

00:01:23 #7042 [Verbose] > │ ()                                                                           │

00:01:23 #7043 [Verbose] > │                                                                              │

00:01:23 #7044 [Verbose] > │                                                                              │

00:01:23 #7045 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7046 [Verbose] >

00:01:23 #7047 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:23 #7048 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:23 #7049 [Verbose] > │ ## vec_map                                                                   │

00:01:23 #7050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7051 [Verbose] >

00:01:23 #7052 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #7053 [Verbose] > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =

00:01:23 #7054 [Verbose] >     inl fn = join fn

00:01:23 #7055 [Verbose] >     inl ar = join ar

00:01:23 #7056 [Verbose] >     !\($'"!ar.iter().map(|x| !fn(x.clone())).collect()"')

00:01:23 #7057 [Verbose] >

00:01:23 #7058 [Verbose] > ╭─[ 347.03ms - stdout ]────────────────────────────────────────────────────────╮

00:01:23 #7059 [Verbose] >         $'!acc + !x + !separator + ""'

00:01:23 #7060 [Verbose] > │ ()                                                                           │

00:01:23 #7061 [Verbose] > ╭─[ 344.54ms - stdout ]────────────────────────────────────────────────────────╮

00:01:23 #7062 [Verbose] > │                                                                              │

00:01:23 #7063 [Verbose] > │                                                                              │

00:01:23 #7064 [Verbose] > │ ()                                                                           │

00:01:23 #7065 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7066 [Verbose] >

00:01:23 #7067 [Verbose] > │                                                                              │

00:01:23 #7068 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:23 #7069 [Verbose] > │                                                                              │

00:01:23 #7070 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:23 #7071 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7072 [Verbose] > │ ## vec_filter                                                                │

00:01:23 #7073 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:23 #7074 [Verbose] >

00:01:23 #7075 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #7076 [Verbose] > // // test

00:01:23 #7077 [Verbose] >

00:01:23 #7078 [Verbose] >

00:01:23 #7079 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])

00:01:23 #7080 [Verbose] > ||> zip_with (+)

00:01:23 #7081 [Verbose] > |> _assert_eq [[ 5; 7; 9 ]]

00:01:23 #7082 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:23 #7083 [Verbose] > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =

00:01:23 #7084 [Verbose] >     inl fn = join fn

00:01:23 #7085 [Verbose] >     inl ar = join ar

00:01:23 #7086 [Verbose] >     !\($'"!ar.into_iter().filter(|x| !fn(x.clone().clone())).collect()"')

00:01:24 #7087 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1955-5513-574dc7467d4a\main.spi

00:01:24 #7088 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1956-5657-5fd16c89f6be\main.spi

00:01:24 #7089 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1956-5639-598785fd701a\main.spi

00:01:24 #7090 [Verbose] >

00:01:24 #7091 [Verbose] > ╭─[ 730.29ms - stdout ]────────────────────────────────────────────────────────╮

00:01:24 #7092 [Verbose] > │ ()                                                                           │

00:01:24 #7093 [Verbose] > │                                                                              │

00:01:24 #7094 [Verbose] > │                                                                              │

00:01:24 #7095 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7096 [Verbose] >

00:01:24 #7097 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:24 #7098 [Verbose] > // // test

00:01:24 #7099 [Verbose] > // // rust=

00:01:24 #7100 [Verbose] >

00:01:24 #7101 [Verbose] > ;[[

00:01:24 #7102 [Verbose] >     "1"

00:01:24 #7103 [Verbose] >     "2"

00:01:24 #7104 [Verbose] >     "3"

00:01:24 #7105 [Verbose] > ]]

00:01:24 #7106 [Verbose] > |> fun x =>

00:01:24 #7107 [Verbose] >     inl code = (a x : _ i32 _) |> concat_array_trailing "\n"

00:01:24 #7108 [Verbose] >     code

00:01:24 #7109 [Verbose] >     |> _assert_eq "1\n2\n3\n"

00:01:24 #7110 [Verbose] >

00:01:24 #7111 [Verbose] > ╭─[ 349.53ms - stdout ]────────────────────────────────────────────────────────╮

00:01:24 #7112 [Verbose] > │ ()                                                                           │

00:01:24 #7113 [Verbose] > │                                                                              │

00:01:24 #7114 [Verbose] > │                                                                              │

00:01:24 #7115 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7116 [Verbose] >

00:01:24 #7117 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:24 #7118 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:24 #7119 [Verbose] > │ ## enumerate                                                                 │

00:01:24 #7120 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7121 [Verbose] >

00:01:24 #7122 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:24 #7123 [Verbose] > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *

00:01:24 #7124 [Verbose] > t) =

00:01:24 #7125 [Verbose] >     inl (a ar) = ar

00:01:24 #7126 [Verbose] >     inl ar = ar |> to_vec

00:01:24 #7127 [Verbose] >     !\($'"!ar.into_iter().enumerate().map(std::rc::Rc::new).collect()"')

00:01:24 #7128 [Verbose] >     |> vec_map from_pair

00:01:24 #7129 [Verbose] >     |> from_vec

00:01:24 #7130 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1990-9026-925ad03f3c25\main.spi

00:01:24 #7131 [Verbose] >

00:01:24 #7132 [Verbose] > ╭─[ 492.96ms - stdout ]────────────────────────────────────────────────────────╮

00:01:24 #7133 [Verbose] > │ type UH0 =                                                                   │

00:01:24 #7134 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:01:24 #7135 [Verbose] > │     | UH0_1                                                                  │

00:01:24 #7136 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:24 #7137 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:24 #7138 [Verbose] > │     let v1 : UH0 = UH0_0(9, v0)                                              │

00:01:24 #7139 [Verbose] > │     let v2 : UH0 = UH0_0(7, v1)                                              │

00:01:24 #7140 [Verbose] > │     let v3 : UH0 = UH0_0(5, v2)                                              │

00:01:24 #7141 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:01:24 #7142 [Verbose] > │     System.Console.WriteLine v4                                              │

00:01:24 #7143 [Verbose] > │     let v23 : UH0 = UH0_1                                                    │

00:01:24 #7144 [Verbose] > │     let v24 : UH0 = UH0_0(9, v23)                                            │

00:01:24 #7145 [Verbose] > │     let v25 : UH0 = UH0_0(7, v24)                                            │

00:01:24 #7146 [Verbose] > │     let v26 : UH0 = UH0_0(5, v25)                                            │

00:01:24 #7147 [Verbose] > │     let v27 : UH0 = UH0_1                                                    │

00:01:24 #7148 [Verbose] > │     let v28 : UH0 = UH0_0(9, v27)                                            │

00:01:24 #7149 [Verbose] > │     let v29 : UH0 = UH0_0(7, v28)                                            │

00:01:24 #7150 [Verbose] > │     let v30 : UH0 = UH0_0(5, v29)                                            │

00:01:24 #7151 [Verbose] > │     let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}"     │

00:01:24 #7152 [Verbose] > │     ()                                                                       │

00:01:24 #7153 [Verbose] > │ method0()                                                                    │

00:01:24 #7154 [Verbose] > │                                                                              │

00:01:24 #7155 [Verbose] > │ UH0_0 (5, UH0_0 (7, UH0_0 (9, UH0_1)))                                       │

00:01:24 #7156 [Verbose] > │                                                                              │

00:01:24 #7157 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7158 [Verbose] >

00:01:24 #7159 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:24 #7160 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:24 #7161 [Verbose] > │ ## zip                                                                       │

00:01:24 #7162 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7163 [Verbose] >

00:01:24 #7164 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:24 #7165 [Verbose] > inl zip xs ys =

00:01:24 #7166 [Verbose] >     zip_with pair xs ys

00:01:24 #7167 [Verbose] >

00:01:24 #7168 [Verbose] > inl zip_ xs ys =

00:01:24 #7169 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-1991-9191-96737241b994\main.spi

00:01:24 #7170 [Verbose] >     zip_with_ pair xs ys

00:01:24 #7171 [Verbose] >

00:01:24 #7172 [Verbose] > ╭─[ 343.94ms - stdout ]────────────────────────────────────────────────────────╮

00:01:24 #7173 [Verbose] > │ ()                                                                           │

00:01:24 #7174 [Verbose] > │                                                                              │

00:01:24 #7175 [Verbose] > │                                                                              │

00:01:24 #7176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7177 [Verbose] >

00:01:24 #7178 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:24 #7179 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:24 #7180 [Verbose] > │ ## slice'                                                                    │

00:01:24 #7181 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7182 [Verbose] >

00:01:24 #7183 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:24 #7184 [Verbose] > inl slice' forall dim el. (x : option el) : slice' el dim =

00:01:24 #7185 [Verbose] >     match x with

00:01:24 #7186 [Verbose] >     | Some x => !\($'"[[!x]]"')

00:01:24 #7187 [Verbose] >     | None =>

00:01:24 #7188 [Verbose] >         !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim

00:01:24 #7189 [Verbose] >             // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :

00:01:24 #7190 [Verbose] > slice' el 10

00:01:24 #7191 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2010-1003-1fd0511e6c0a\main.spi

00:01:24 #7192 [Verbose] >             // !\( : string) : slice' el i32 // !\($'"[[]]"')

00:01:24 #7193 [Verbose] >

00:01:24 #7194 [Verbose] > ╭─[ 374.61ms - stdout ]────────────────────────────────────────────────────────╮

00:01:24 #7195 [Verbose] > │ ()                                                                           │

00:01:24 #7196 [Verbose] > │                                                                              │

00:01:24 #7197 [Verbose] > │                                                                              │

00:01:24 #7198 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:24 #7199 [Verbose] >

00:01:24 #7200 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:24 #7201 [Verbose] > // // test

00:01:24 #7202 [Verbose] >

00:01:24 #7203 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])

00:01:24 #7204 [Verbose] > ||> zip

00:01:24 #7205 [Verbose] > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]

00:01:24 #7206 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2032-3228-34b280877b3e\main.spi

00:01:25 #7207 [Verbose] >

00:01:25 #7208 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2046-4681-42a20b14b7b1\main.spi

00:01:25 #7209 [Verbose] > ╭─[ 397.36ms - stdout ]────────────────────────────────────────────────────────╮

00:01:25 #7210 [Verbose] > │ ()                                                                           │

00:01:25 #7211 [Verbose] > │                                                                              │

00:01:25 #7212 [Verbose] > │                                                                              │

00:01:25 #7213 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:25 #7214 [Verbose] >

00:01:25 #7215 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:25 #7216 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:25 #7217 [Verbose] > │ ## as_slice                                                                  │

00:01:25 #7218 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:25 #7219 [Verbose] >

00:01:25 #7220 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:25 #7221 [Verbose] > inl as_slice forall t. (x : array_base t) : rust.ref' (slice t) =

00:01:25 #7222 [Verbose] >     inl x = x |> to_vec

00:01:25 #7223 [Verbose] >     !\($'"!x.as_slice()"')

00:01:25 #7224 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:25 #7225 [Verbose] >   return _pygments_highlight(

00:01:25 #7226 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2076-7661-79d28f70c869\main.spi

00:01:25 #7227 [Verbose] >

00:01:25 #7228 [Verbose] >

00:01:25 #7229 [Verbose] > ╭─[ 645.13ms - stdout ]────────────────────────────────────────────────────────╮

00:01:25 #7231 [Verbose] > │ type UH0 =                                                                   │

00:01:25 #7230 [Verbose] > ╭─[ 392.55ms - stdout ]────────────────────────────────────────────────────────╮

00:01:25 #7233 [Verbose] > │     | UH0_0 of int32 * int32 * UH0                                           │

00:01:25 #7232 [Verbose] > │ ()                                                                           │

00:01:25 #7234 [Verbose] >

00:01:26 #7235 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2151-5158-536a560f3adc\main.spi

00:01:26 #7236 [Verbose] > [NbConvertApp] Writing 394373 bytes to common.dib.html

00:01:27 #7237 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2207-0782-017e0e03bc76\main.spi

00:01:28 #7238 [Verbose] > │     | UH0_1                                                                  │

00:01:28 #7239 [Verbose] > │                                                                              │

00:01:28 #7240 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:28 #7241 [Verbose] > │                                                                              │

00:01:28 #7242 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:28 #7243 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:28 #7244 [Verbose] > │     let v1 : UH0 = UH0_0(3, 6, v0)                                           │

00:01:28 #7245 [Verbose] > │     let v2 : UH0 = UH0_0(2, 5, v1)                                           │

00:01:28 #7246 [Verbose] > │     let v3 : UH0 = UH0_0(1, 4, v2)                                           │

00:01:28 #7247 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:01:28 #7248 [Verbose] > │     System.Console.WriteLine v4                                              │

00:01:28 #7249 [Verbose] > │     let v23 : UH0 = UH0_1                                                    │

00:01:28 #7250 [Verbose] > │     let v24 : UH0 = UH0_0(3, 6, v23)                                         │

00:01:28 #7251 [Verbose] > │     let v25 : UH0 = UH0_0(2, 5, v24)                                         │

00:01:28 #7252 [Verbose] > │     let v26 : UH0 = UH0_0(1, 4, v25)                                         │

00:01:28 #7253 [Verbose] > │     let v27 : UH0 = UH0_1                                                    │

00:01:28 #7254 [Verbose] > │     let v28 : UH0 = UH0_0(3, 6, v27)                                         │

00:01:28 #7255 [Verbose] > │     let v29 : UH0 = UH0_0(2, 5, v28)                                         │

00:01:28 #7256 [Verbose] > │     let v30 : UH0 = UH0_0(1, 4, v29)                                         │

00:01:28 #7257 [Verbose] > │     let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}"     │

00:01:28 #7258 [Verbose] > │     ()                                                                       │

00:01:28 #7259 [Verbose] > │ method0()                                                                    │

00:01:28 #7260 [Verbose] > │                                                                              │

00:01:28 #7261 [Verbose] > │ UH0_0 (1, 4, UH0_0 (2, 5, UH0_0 (3, 6, UH0_1)))                              │

00:01:28 #7262 [Verbose] > │                                                                              │

00:01:28 #7263 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:28 #7264 [Verbose] >

00:01:28 #7265 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:28 #7266 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:28 #7267 [Verbose] > │ ## indexed                                                                   │

00:01:28 #7268 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:28 #7269 [Verbose] >

00:01:28 #7270 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:28 #7271 [Verbose] > inl indexed list =

00:01:28 #7272 [Verbose] >     (([[]], 0), list)

00:01:28 #7273 [Verbose] >     ||> listm.fold fun (acc, i) x =>

00:01:28 #7274 [Verbose] >         (i, x) :: acc, i + 1

00:01:28 #7275 [Verbose] >     |> fst

00:01:28 #7276 [Verbose] >     |> listm.rev

00:01:28 #7277 [Verbose] >

00:01:28 #7278 [Verbose] > ╭─[ 381.42ms - stdout ]────────────────────────────────────────────────────────╮

00:01:28 #7279 [Verbose] > │ ()                                                                           │

00:01:28 #7280 [Verbose] > │                                                                              │

00:01:28 #7281 [Verbose] > │                                                                              │

00:01:28 #7282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:28 #7283 [Verbose] >

00:01:28 #7284 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:28 #7285 [Verbose] > // // test

00:01:28 #7286 [Verbose] >

00:01:28 #7287 [Verbose] > listm.init 5i32 ((*) 2)

00:01:28 #7288 [Verbose] > |> indexed

00:01:28 #7289 [Verbose] > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]

00:01:28 #7290 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2439-3912-31252fda7a7f\main.spi

00:01:29 #7291 [Verbose] >

00:01:29 #7292 [Verbose] > ╭─[ 2.85s - stdout ]───────────────────────────────────────────────────────────╮

00:01:29 #7293 [Verbose] > │ type UH0 =                                                                   │

00:01:29 #7294 [Verbose] > │     | UH0_0 of int32 * int32 * UH0                                           │

00:01:29 #7295 [Verbose] > │     | UH0_1                                                                  │

00:01:29 #7296 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:29 #7297 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:29 #7298 [Verbose] > │     let v1 : UH0 = UH0_0(4, 8, v0)                                           │

00:01:29 #7299 [Verbose] > │     let v2 : UH0 = UH0_0(3, 6, v1)                                           │

00:01:29 #7300 [Verbose] > │     let v3 : UH0 = UH0_0(2, 4, v2)                                           │

00:01:29 #7301 [Verbose] > │     let v4 : UH0 = UH0_0(1, 2, v3)                                           │

00:01:29 #7302 [Verbose] > │     let v5 : UH0 = UH0_0(0, 0, v4)                                           │

00:01:29 #7303 [Verbose] > │     let v6 : string = $"%A{v5}"                                              │

00:01:29 #7304 [Verbose] > │     System.Console.WriteLine v6                                              │

00:01:29 #7305 [Verbose] > │     let v40 : UH0 = UH0_1                                                    │

00:01:29 #7306 [Verbose] > │     let v41 : UH0 = UH0_0(4, 8, v40)                                         │

00:01:29 #7307 [Verbose] > │     let v42 : UH0 = UH0_0(3, 6, v41)                                         │

00:01:29 #7308 [Verbose] > │     let v43 : UH0 = UH0_0(2, 4, v42)                                         │

00:01:29 #7309 [Verbose] > │     let v44 : UH0 = UH0_0(1, 2, v43)                                         │

00:01:29 #7310 [Verbose] > │     let v45 : UH0 = UH0_0(0, 0, v44)                                         │

00:01:29 #7311 [Verbose] > │     let v46 : UH0 = UH0_1                                                    │

00:01:29 #7312 [Verbose] > │     let v47 : UH0 = UH0_0(4, 8, v46)                                         │

00:01:29 #7313 [Verbose] > │     let v48 : UH0 = UH0_0(3, 6, v47)                                         │

00:01:29 #7314 [Verbose] > │     let v49 : UH0 = UH0_0(2, 4, v48)                                         │

00:01:29 #7315 [Verbose] > │     let v50 : UH0 = UH0_0(1, 2, v49)                                         │

00:01:29 #7316 [Verbose] > │     let v51 : UH0 = UH0_0(0, 0, v50)                                         │

00:01:29 #7317 [Verbose] > │     let v52 : string = $"__expect / actual: %A{v45} / expected: %A{v51}"     │

00:01:29 #7318 [Verbose] > │     ()                                                                       │

00:01:29 #7319 [Verbose] > │ method0()                                                                    │

00:01:29 #7320 [Verbose] > │                                                                              │

00:01:29 #7321 [Verbose] > │ UH0_0 (0, 0, UH0_0 (1, 2, UH0_0 (2, 4, UH0_0 (3, 6, UH0_0 (4, 8, UH0_1)))))  │

00:01:29 #7322 [Verbose] > │                                                                              │

00:01:29 #7323 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:29 #7324 [Verbose] >

00:01:29 #7325 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:29 #7326 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:29 #7327 [Verbose] > │ ## group_by                                                                  │

00:01:29 #7328 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:29 #7329 [Verbose] >

00:01:29 #7330 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:29 #7331 [Verbose] > inl group_by fn list =

00:01:29 #7332 [Verbose] >     (list, [[]])

00:01:29 #7333 [Verbose] >     ||> listm.foldBack fun x acc =>

00:01:29 #7334 [Verbose] >         inl xk = fn x

00:01:29 #7335 [Verbose] >         inl found, new_acc =

00:01:29 #7336 [Verbose] >             ((false, [[]]), acc)

00:01:29 #7337 [Verbose] >             ||> listm.fold fun (found, acc') (k, xs) =>

00:01:29 #7338 [Verbose] >                 if k = xk

00:01:29 #7339 [Verbose] >                 then true, (k, x :: xs) :: acc'

00:01:29 #7340 [Verbose] >                 else found, (k, xs) :: acc'

00:01:29 #7341 [Verbose] >         if found

00:01:29 #7342 [Verbose] >         then new_acc

00:01:29 #7343 [Verbose] >         else (xk, [[ x ]]) :: new_acc

00:01:29 #7344 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2485-8557-8b5ede0553b2\main.spi

00:01:29 #7345 [Verbose] >

00:01:29 #7346 [Verbose] > ╭─[ 305.37ms - stdout ]────────────────────────────────────────────────────────╮

00:01:29 #7347 [Verbose] > │ ()                                                                           │

00:01:29 #7348 [Verbose] > │                                                                              │

00:01:29 #7349 [Verbose] > │                                                                              │

00:01:29 #7350 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:29 #7351 [Verbose] >

00:01:29 #7352 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:29 #7353 [Verbose] > // // test

00:01:29 #7354 [Verbose] >

00:01:29 #7355 [Verbose] > listm.init 10i32 id

00:01:29 #7356 [Verbose] > |> group_by (fun x => x % 2 = 0)

00:01:29 #7357 [Verbose] > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]

00:01:29 #7358 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2516-1638-19dd9449ade5\main.spi

00:01:30 #7359 [Verbose] >

00:01:30 #7360 [Verbose] > ╭─[ 487.85ms - stdout ]────────────────────────────────────────────────────────╮

00:01:30 #7361 [Verbose] > │ type UH0 =                                                                   │

00:01:30 #7362 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:01:30 #7363 [Verbose] > │     | UH0_1                                                                  │

00:01:30 #7364 [Verbose] > │ and UH1 =                                                                    │

00:01:30 #7365 [Verbose] > │     | UH1_0 of bool * UH0 * UH1                                              │

00:01:30 #7366 [Verbose] > │     | UH1_1                                                                  │

00:01:30 #7367 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:30 #7368 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:30 #7369 [Verbose] > │     let v1 : UH0 = UH0_0(8, v0)                                              │

00:01:30 #7370 [Verbose] > │     let v2 : UH0 = UH0_0(6, v1)                                              │

00:01:30 #7371 [Verbose] > │     let v3 : UH0 = UH0_0(4, v2)                                              │

00:01:30 #7372 [Verbose] > │     let v4 : UH0 = UH0_0(2, v3)                                              │

00:01:30 #7373 [Verbose] > │     let v5 : UH0 = UH0_0(0, v4)                                              │

00:01:30 #7374 [Verbose] > │     let v6 : UH0 = UH0_1                                                     │

00:01:30 #7375 [Verbose] > │     let v7 : UH0 = UH0_0(9, v6)                                              │

00:01:30 #7376 [Verbose] > │     let v8 : UH0 = UH0_0(7, v7)                                              │

00:01:30 #7377 [Verbose] > │     let v9 : UH0 = UH0_0(5, v8)                                              │

00:01:30 #7378 [Verbose] > │     let v10 : UH0 = UH0_0(3, v9)                                             │

00:01:30 #7379 [Verbose] > │     let v11 : UH0 = UH0_0(1, v10)                                            │

00:01:30 #7380 [Verbose] > │     let v12 : UH1 = UH1_1                                                    │

00:01:30 #7381 [Verbose] > │     let v13 : UH1 = UH1_0(false, v11, v12)                                   │

00:01:30 #7382 [Verbose] > │     let v14 : UH1 = UH1_0(true, v5, v13)                                     │

00:01:30 #7383 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:30 #7384 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:30 #7385 [Verbose] > │ # stream                                                                     │

00:01:30 #7386 [Debug] executeAsync / exitCode: 0 / output.Length: 112185

00:01:30 #7387 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7388 [Verbose] >

00:01:30 #7389 [Debug] main / executeCommand / exitCode: 0

00:01:30 #7390 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:30 #7392 [Verbose] > // // test

00:01:30 #7393 [Verbose] >

00:01:30 #7394 [Verbose] > open testing

00:01:30 #7391 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 seq.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:01:30 #7395 [Verbose] > │     let v15 : string = $"%A{v14}"                                            │

00:01:30 #7396 [Verbose] > │     System.Console.WriteLine v15                                             │

00:01:30 #7397 [Verbose] > │     let v112 : UH0 = UH0_1                                                   │

00:01:30 #7398 [Verbose] > │     let v113 : UH0 = UH0_0(8, v112)                                          │

00:01:30 #7399 [Verbose] > │     let v114 : UH0 = UH0_0(6, v113)                                          │

00:01:30 #7400 [Verbose] > │     let v115 : UH0 = UH0_0(4, v114)                                          │

00:01:30 #7401 [Verbose] > │     let v116 : UH0 = UH0_0(2, v115)                                          │

00:01:30 #7402 [Verbose] > │     let v117 : UH0 = UH0_0(0, v116)                                          │

00:01:30 #7403 [Verbose] > │     let v118 : UH0 = UH0_1                                                   │

00:01:30 #7404 [Verbose] > │     let v119 : UH0 = UH0_0(9, v118)                                          │

00:01:30 #7405 [Verbose] > │     let v120 : UH0 = UH0_0(7, v119)                                          │

00:01:30 #7406 [Verbose] > │     let v121 : UH0 = UH0_0(5, v120)                                          │

00:01:30 #7407 [Verbose] > │     let v122 : UH0 = UH0_0(3, v121)                                          │

00:01:30 #7408 [Verbose] > │     let v123 : UH0 = UH0_0(1, v122)                                          │

00:01:30 #7409 [Verbose] > │     let v124 : UH1 = UH1_1                                                   │

00:01:30 #7410 [Verbose] > │     let v125 : UH1 = UH1_0(false, v123, v124)                                │

00:01:30 #7411 [Verbose] > │     let v126 : UH1 = UH1_0(true, v117, v125)                                 │

00:01:30 #7412 [Verbose] > │     let v127 : UH0 = UH0_1                                                   │

00:01:30 #7413 [Verbose] > │     let v128 : UH0 = UH0_0(8, v127)                                          │

00:01:30 #7414 [Verbose] > │     let v129 : UH0 = UH0_0(6, v128)                                          │

00:01:30 #7415 [Verbose] > │     let v130 : UH0 = UH0_0(4, v129)                                          │

00:01:30 #7416 [Verbose] > │     let v131 : UH0 = UH0_0(2, v130)                                          │

00:01:30 #7417 [Verbose] > │     let v132 : UH0 = UH0_0(0, v131)                                          │

00:01:30 #7418 [Verbose] > │     let v133 : UH0 = UH0_1                                                   │

00:01:30 #7419 [Verbose] > │     let v134 : UH0 = UH0_0(9, v133)                                          │

00:01:30 #7420 [Verbose] > │     let v135 : UH0 = UH0_0(7, v134)                                          │

00:01:30 #7421 [Verbose] > │     let v136 : UH0 = UH0_0(5, v135)                                          │

00:01:30 #7422 [Verbose] > │     let v137 : UH0 = UH0_0(3, v136)                                          │

00:01:30 #7423 [Verbose] > │     let v138 : UH0 = UH0_0(1, v137)                                          │

00:01:30 #7424 [Verbose] > │     let v139 : UH1 = UH1_1                                                   │

00:01:30 #7425 [Verbose] > │     let v140 : UH1 = UH1_0(false, v138, v139)                                │

00:01:30 #7426 [Verbose] > │     let v141 : UH1 = UH1_0(true, v132, v140)                                 │

00:01:30 #7427 [Verbose] > │     let v142 : string = $"__expect / actual: %A{v126} / expected: %A{v141}"  │

00:01:30 #7428 [Verbose] > │     ()                                                                       │

00:01:30 #7429 [Verbose] > │ method0()                                                                    │

00:01:30 #7430 [Verbose] > │                                                                              │

00:01:30 #7431 [Verbose] > │ UH1_0                                                                        │

00:01:30 #7432 [Verbose] > │   (true, UH0_0 (0, UH0_0 (2, UH0_0 (4, UH0_0 (6, UH0_0 (8, UH0_1))))),       │

00:01:30 #7433 [Verbose] > │    UH1_0                                                                     │

00:01:30 #7434 [Verbose] > │      (false, UH0_0 (1, UH0_0 (3, UH0_0 (5, UH0_0 (7, UH0_0 (9, UH0_1))))),   │

00:01:30 #7435 [Verbose] > │ UH1_1))                                                                      │

00:01:30 #7436 [Verbose] > │                                                                              │

00:01:30 #7437 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7438 [Verbose] >

00:01:30 #7439 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:30 #7440 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:30 #7441 [Verbose] > │ ## forall'                                                                   │

00:01:30 #7442 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7443 [Verbose] >

00:01:30 #7444 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:30 #7445 [Verbose] > inl forall' fn (head :: tail) =

00:01:30 #7446 [Verbose] >     (true, tail)

00:01:30 #7447 [Verbose] >     ||> listm.fold fun acc x =>

00:01:30 #7448 [Verbose] >         acc && x = head

00:01:30 #7449 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2576-7613-7ef8fac851f9\main.spi

00:01:30 #7450 [Verbose] >

00:01:30 #7451 [Verbose] >

00:01:30 #7452 [Verbose] > ╭─[ 341.19ms - stdout ]────────────────────────────────────────────────────────╮

00:01:30 #7453 [Verbose] > │ ()                                                                           │

00:01:30 #7454 [Verbose] > │                                                                              │

00:01:30 #7455 [Verbose] > │                                                                              │

00:01:30 #7456 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7457 [Verbose] >

00:01:30 #7458 [Verbose] > ╭─[ 10.37s - stdout ]──────────────────────────────────────────────────────────╮

00:01:30 #7459 [Verbose] > │ ()                                                                           │

00:01:30 #7460 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:30 #7461 [Verbose] > // // test

00:01:30 #7462 [Verbose] > │                                                                              │

00:01:30 #7463 [Verbose] >

00:01:30 #7464 [Verbose] > [[ 1i32; 1; 1; 1; 1 ]]

00:01:30 #7465 [Verbose] > |> forall' ((=) 1i32)

00:01:30 #7466 [Verbose] > |> _assert_eq true

00:01:30 #7467 [Verbose] > │                                                                              │

00:01:30 #7468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7469 [Verbose] > [NbConvertApp] Converting notebook am'.dib.ipynb to html

00:01:30 #7470 [Verbose] >

00:01:30 #7471 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:30 #7472 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:30 #7473 [Verbose] >   validate(nb)

00:01:30 #7474 [Verbose] > inl (/@) x = listm'.(/@) x

00:01:30 #7475 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2609-0999-0114959b16b0\main.spi

00:01:30 #7476 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2612-1200-158c57f87705\main.spi

00:01:30 #7477 [Verbose] >

00:01:30 #7478 [Verbose] > ╭─[ 376.56ms - stdout ]────────────────────────────────────────────────────────╮

00:01:30 #7479 [Verbose] > │ ()                                                                           │

00:01:30 #7480 [Verbose] > │                                                                              │

00:01:30 #7481 [Verbose] > │                                                                              │

00:01:30 #7482 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7483 [Verbose] >

00:01:30 #7484 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:30 #7485 [Verbose] > inl gc_collect () =

00:01:30 #7486 [Verbose] >     run_target function

00:01:30 #7487 [Verbose] >         | Fsharp _ => fun () => $"System.GC.Collect ()"

00:01:30 #7488 [Verbose] >         | _ => fun () => ()

00:01:30 #7489 [Verbose] >

00:01:30 #7490 [Verbose] > inl printfn x =

00:01:30 #7491 [Verbose] >     console.write_line x

00:01:30 #7492 [Verbose] >

00:01:30 #7493 [Verbose] > nominal stopwatch = $"System.Diagnostics.Stopwatch"

00:01:30 #7494 [Verbose] >

00:01:30 #7495 [Verbose] >

00:01:30 #7496 [Verbose] > inl stopwatch () : stopwatch =

00:01:30 #7497 [Verbose] >     $"`stopwatch" ()

00:01:30 #7498 [Verbose] >

00:01:30 #7499 [Verbose] > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =

00:01:30 #7500 [Verbose] >     $"!stopwatch.ElapsedMilliseconds"

00:01:30 #7501 [Verbose] >

00:01:30 #7502 [Verbose] > inl stopwatch_start (stopwatch : stopwatch) : () =

00:01:30 #7503 [Verbose] >     $"!stopwatch.Start ()"

00:01:30 #7504 [Verbose] > ╭─[ 395.09ms - stdout ]────────────────────────────────────────────────────────╮

00:01:30 #7505 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:30 #7506 [Verbose] > │     let v0 : string = $"%A{true}"                                            │

00:01:30 #7507 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:30 #7508 [Verbose] > │     let v1 : string = $"__expect / actual: %A{true} / expected: %A{true}"    │

00:01:30 #7509 [Verbose] > │     ()                                                                       │

00:01:30 #7510 [Verbose] > │ method0()                                                                    │

00:01:30 #7511 [Verbose] > │                                                                              │

00:01:30 #7512 [Verbose] > │ true                                                                         │

00:01:30 #7513 [Verbose] > │                                                                              │

00:01:30 #7514 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7515 [Verbose] >

00:01:30 #7516 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:30 #7517 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:30 #7518 [Verbose] > │ ## last                                                                      │

00:01:30 #7519 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #7520 [Verbose] >

00:01:30 #7521 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:30 #7522 [Verbose] > inl last list =

00:01:30 #7523 [Verbose] >     list

00:01:30 #7524 [Verbose] >     |> listm.rev

00:01:30 #7525 [Verbose] >     |> item 0i32

00:01:31 #7526 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2649-4902-4f48e457f116\main.spi

00:01:31 #7527 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2650-5099-5b6337be4280\main.spi

00:01:31 #7528 [Verbose] >

00:01:31 #7529 [Verbose] > ╭─[ 296.38ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #7530 [Verbose] >

00:01:31 #7531 [Verbose] > │ ()                                                                           │

00:01:31 #7532 [Verbose] > ╭─[ 318.75ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #7533 [Verbose] > │                                                                              │

00:01:31 #7534 [Verbose] > │ ()                                                                           │

00:01:31 #7535 [Verbose] > │                                                                              │

00:01:31 #7536 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #7537 [Verbose] > │                                                                              │

00:01:31 #7538 [Verbose] >

00:01:31 #7539 [Verbose] > │                                                                              │

00:01:31 #7540 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #7541 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #7542 [Verbose] > // // test

00:01:31 #7543 [Verbose] >

00:01:31 #7544 [Verbose] >

00:01:31 #7545 [Verbose] > listm.init 10i32 id

00:01:31 #7546 [Verbose] > |> last

00:01:31 #7547 [Verbose] > |> _assert_eq 9

00:01:31 #7548 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #7549 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #7550 [Verbose] > │ ## test_case_result                                                          │

00:01:31 #7551 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #7552 [Verbose] >

00:01:31 #7553 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #7554 [Verbose] > type test_case_result =

00:01:31 #7555 [Verbose] >     {

00:01:31 #7556 [Verbose] >         Input : string

00:01:31 #7557 [Verbose] >         Expected : string

00:01:31 #7558 [Verbose] >         Result : string

00:01:31 #7559 [Verbose] >         TimeList : a u64 i64

00:01:31 #7560 [Verbose] >     }

00:01:31 #7561 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2681-8129-800dcbceab50\main.spi

00:01:31 #7562 [Verbose] >

00:01:31 #7563 [Verbose] >

00:01:31 #7564 [Verbose] > ╭─[ 371.22ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #7565 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:31 #7566 [Verbose] > │     let v0 : string = $"%A{9}"                                               │

00:01:31 #7567 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:31 #7568 [Verbose] > │     let v1 : string = $"__expect / actual: %A{9} / expected: %A{9}"          │

00:01:31 #7569 [Verbose] > │     ()                                                                       │

00:01:31 #7570 [Verbose] > │ method0()                                                                    │

00:01:31 #7571 [Verbose] > │                                                                              │

00:01:31 #7572 [Verbose] > │ 9                                                                            │

00:01:31 #7573 [Verbose] > │                                                                              │

00:01:31 #7574 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #7575 [Verbose] >

00:01:31 #7576 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #7577 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #7578 [Verbose] > │ ## try_pick                                                                  │

00:01:31 #7579 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #7580 [Verbose] >

00:01:31 #7581 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #7582 [Verbose] > inl try_pick fn list =

00:01:31 #7583 [Verbose] >     inl rec body fn = function

00:01:31 #7584 [Verbose] >         | [[]] => None

00:01:31 #7585 [Verbose] >         | x :: xs =>

00:01:31 #7586 [Verbose] >             match fn x with

00:01:31 #7587 [Verbose] >             | Some y => Some y

00:01:31 #7588 [Verbose] >             | None => loop xs

00:01:31 #7589 [Verbose] >     and inl loop list =

00:01:31 #7590 [Verbose] >         if var_is list |> not

00:01:31 #7591 [Verbose] >         then body fn list

00:01:31 #7592 [Verbose] >         else

00:01:31 #7593 [Verbose] >             inl fn = join fn

00:01:31 #7594 [Verbose] >             inl list = dyn list

00:01:31 #7595 [Verbose] >             join body fn list

00:01:31 #7596 [Verbose] >     loop list

00:01:31 #7597 [Verbose] >

00:01:31 #7598 [Verbose] > ╭─[ 354.78ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #7599 [Verbose] > │ ()                                                                           │

00:01:31 #7600 [Verbose] > │                                                                              │

00:01:31 #7601 [Verbose] > │                                                                              │

00:01:31 #7602 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #7603 [Verbose] >

00:01:31 #7604 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #7605 [Verbose] > // // test

00:01:31 #7606 [Verbose] >

00:01:31 #7607 [Verbose] > listm.init 10i32 id

00:01:31 #7608 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)

00:01:31 #7609 [Verbose] > |> _assert_eq (Some 5i32)

00:01:32 #7610 [Verbose] >

00:01:32 #7611 [Verbose] > ╭─[ 438.82ms - stdout ]────────────────────────────────────────────────────────╮

00:01:32 #7612 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:01:32 #7613 [Verbose] > │     | US0_0                                                                  │

00:01:32 #7614 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:32 #7615 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:32 #7616 [Verbose] > │     let v0 : US0 = US0_1(5)                                                  │

00:01:32 #7617 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:32 #7618 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:32 #7619 [Verbose] > │     let v5 : US0 = US0_1(5)                                                  │

00:01:32 #7620 [Verbose] > │     let v6 : US0 = US0_1(5)                                                  │

00:01:32 #7621 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:32 #7622 [Verbose] > │     ()                                                                       │

00:01:32 #7623 [Verbose] > │ method0()                                                                    │

00:01:32 #7624 [Verbose] > │                                                                              │

00:01:32 #7625 [Verbose] > │ US0_1 5                                                                      │

00:01:32 #7626 [Verbose] > │                                                                              │

00:01:32 #7627 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:32 #7628 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:32 #7629 [Verbose] >   return _pygments_highlight(

00:01:34 #7630 [Verbose] > [NbConvertApp] Writing 384950 bytes to am'.dib.html

00:01:35 #7631 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2682-8289-845f9f14970d\main.spi

00:01:35 #7632 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2717-1709-13d4fee2ea20\main.spi

00:01:35 #7634 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2720-2053-24cbced3d965\main.spi

00:01:35 #7635 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2756-5642-57d4ae4148de\main.spi

00:01:35 #7633 [Verbose] > ╭─[ 332.49ms - stdout ]────────────────────────────────────────────────────────╮

00:01:35 #7636 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-2780-8095-8053901e22c1\main.spi

00:01:35 #7637 [Verbose] > │ ()                                                                           │

00:01:35 #7638 [Verbose] > │                                                                              │

00:01:35 #7639 [Verbose] > │                                                                              │

00:01:35 #7640 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:35 #7641 [Verbose] >

00:01:35 #7642 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:35 #7643 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:35 #7644 [Verbose] > │ ## run                                                                       │

00:01:35 #7645 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:35 #7646 [Verbose] >

00:01:35 #7647 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:35 #7648 [Verbose] > inl run forall input expected.

00:01:35 #7649 [Verbose] >     count

00:01:35 #7650 [Verbose] >     (solutions : list (string * (input -> expected)))

00:01:35 #7651 [Verbose] >     ((input, expected) : (input * expected))

00:01:35 #7652 [Verbose] >     : test_case_result

00:01:35 #7653 [Verbose] >     =

00:01:35 #7654 [Verbose] >     inl input_str = input |> sm'.format_debug

00:01:35 #7655 [Verbose] >

00:01:35 #7656 [Verbose] >     printfn ""

00:01:35 #7657 [Verbose] >     printfn ($"$\"Solution: {!input_str}  \"" : string)

00:01:35 #7658 [Verbose] >

00:01:35 #7659 [Verbose] >     inl performance_invoke (fn : () -> expected) =

00:01:35 #7660 [Verbose] >         gc_collect ()

00:01:35 #7661 [Verbose] >         inl stopwatch = stopwatch ()

00:01:35 #7662 [Verbose] >         stopwatch |> stopwatch_start

00:01:35 #7663 [Verbose] >         inl time1 = stopwatch |> stopwatch_elapsed_milliseconds

00:01:35 #7664 [Verbose] >         inl result : expected =

00:01:35 #7665 [Verbose] >             am'.init_series 0 count 1i32

00:01:35 #7666 [Verbose] >             |> am'.parallel_map fun _n => fn ()

00:01:35 #7667 [Verbose] >             |> am'.last

00:01:35 #7668 [Verbose] >         inl time2 = (stopwatch |> stopwatch_elapsed_milliseconds) - time1

00:01:35 #7669 [Verbose] >         result, time2

00:01:35 #7670 [Verbose] >

00:01:35 #7671 [Verbose] >     inl results_with_time : a u64 _ =

00:01:35 #7672 [Verbose] >         solutions

00:01:35 #7673 [Verbose] >         |> listm'.indexed

00:01:35 #7674 [Verbose] >         |> listm.toArray

00:01:35 #7675 [Verbose] >         |> am.map fun ((i : i32), (test_name, solution)) =>

00:01:35 #7676 [Verbose] >             inl result, time = performance_invoke fun () => solution input

00:01:35 #7677 [Verbose] >             printfn ($"$\"Test case {!i + 1}. {!test_name}. Time: {!time}  \"" :

00:01:35 #7678 [Verbose] > string)

00:01:35 #7679 [Verbose] >             result, time

00:01:35 #7680 [Verbose] >

00:01:35 #7681 [Verbose] >     match results_with_time |> am.map fst with

00:01:35 #7682 [Verbose] >     | array when length array <= 1 => ()

00:01:35 #7683 [Verbose] >     | array when array |> am.forall' ((=) (index array 0)) => ()

00:01:35 #7684 [Verbose] >     | results => failwith ($"$\"Challenge error: {!results}\"" : string)

00:01:35 #7685 [Verbose] >

00:01:35 #7686 [Verbose] >     {

00:01:35 #7687 [Verbose] >         Input = input_str

00:01:35 #7688 [Verbose] >         Expected = expected |> sm'.format_debug

00:01:35 #7689 [Verbose] >         Result = results_with_time |> am.map fst |> fun array => index array 0

00:01:35 #7690 [Verbose] > |> sm'.format_debug

00:01:35 #7691 [Verbose] >         TimeList = results_with_time |> am.map snd

00:01:35 #7692 [Verbose] >     }

00:01:35 #7693 [Verbose] >

00:01:35 #7694 [Verbose] > ╭─[ 374.09ms - stdout ]────────────────────────────────────────────────────────╮

00:01:35 #7695 [Verbose] > │ ()                                                                           │

00:01:35 #7696 [Verbose] > │                                                                              │

00:01:35 #7697 [Verbose] > │                                                                              │

00:01:35 #7698 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:35 #7699 [Verbose] >

00:01:35 #7700 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:35 #7701 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:35 #7702 [Verbose] > │ ## run_all                                                                   │

00:01:35 #7703 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:35 #7704 [Verbose] >

00:01:35 #7705 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:35 #7706 [Verbose] > inl run_all forall input expected.

00:01:35 #7707 [Verbose] >     test_name

00:01:35 #7708 [Verbose] >     count

00:01:35 #7709 [Verbose] >     (solutions : list (string * (input -> expected)))

00:01:35 #7710 [Verbose] >     test_cases

00:01:35 #7711 [Verbose] >     =

00:01:35 #7712 [Verbose] >     printfn ""

00:01:35 #7713 [Verbose] >     printfn ""

00:01:35 #7714 [Verbose] >     printfn ($"$\"Test: {!test_name}\"" : string)

00:01:35 #7715 [Verbose] >     test_cases

00:01:35 #7716 [Verbose] >     |> listm.toArray

00:01:35 #7717 [Verbose] >     |> am.map (run count solutions)

00:01:35 #7718 [Debug] executeAsync / exitCode: 0 / output.Length: 88639

00:01:35 #7719 [Debug] main / executeCommand / exitCode: 0

00:01:35 #7720 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 util.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:01:36 #7721 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3141-4146-4bd4abdeb43d\main.spi

00:01:36 #7722 [Verbose] >

00:01:36 #7723 [Verbose] > ╭─[ 410.29ms - stdout ]────────────────────────────────────────────────────────╮

00:01:36 #7724 [Verbose] > │ ()                                                                           │

00:01:36 #7725 [Verbose] > │                                                                              │

00:01:36 #7726 [Verbose] > │                                                                              │

00:01:36 #7727 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:36 #7728 [Verbose] >

00:01:36 #7729 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:36 #7730 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:36 #7731 [Verbose] > │ ## sort_result_list                                                          │

00:01:36 #7732 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:36 #7733 [Verbose] >

00:01:36 #7734 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:36 #7735 [Verbose] > inl sort_result_list results =

00:01:36 #7736 [Verbose] >     inl table =

00:01:36 #7737 [Verbose] >         inl rows =

00:01:36 #7738 [Verbose] >             results

00:01:36 #7739 [Verbose] >             |> am.map fun (result : test_case_result) =>

00:01:36 #7740 [Verbose] >                 inl best =

00:01:36 #7741 [Verbose] >                     result.TimeList

00:01:36 #7742 [Verbose] >                     |> am'.indexed

00:01:36 #7743 [Verbose] >                     |> am.map fun (i, time) =>

00:01:36 #7744 [Verbose] >                         i + 1i64, time

00:01:36 #7745 [Verbose] >                     |> am'.sort_by snd

00:01:36 #7746 [Verbose] >                     |> fun array => index array 0i32

00:01:36 #7747 [Verbose] >                     |> sm'.format_debug

00:01:36 #7748 [Verbose] >                 inl row =

00:01:36 #7749 [Verbose] >                     [[

00:01:36 #7750 [Verbose] >                         result.Input

00:01:36 #7751 [Verbose] >                         result.Expected

00:01:36 #7752 [Verbose] >                         result.Result

00:01:36 #7753 [Verbose] >                         best

00:01:36 #7754 [Verbose] >                     ]]

00:01:36 #7755 [Verbose] >                 inl color : option console.console_color =

00:01:36 #7756 [Verbose] >                     open console

00:01:36 #7757 [Verbose] >                     match result.Expected = result.Result with

00:01:36 #7758 [Verbose] >                     | true => Some $"`console_color.DarkGreen"

00:01:36 #7759 [Verbose] >                     | false => Some $"`console_color.DarkRed"

00:01:36 #7760 [Verbose] >                 row, color

00:01:36 #7761 [Verbose] >

00:01:36 #7762 [Verbose] >         inl header =

00:01:36 #7763 [Verbose] >             [[

00:01:36 #7764 [Verbose] >                 [[

00:01:36 #7765 [Verbose] >                     "Input"

00:01:36 #7766 [Verbose] >                     "Expected"

00:01:36 #7767 [Verbose] >                     "Result"

00:01:36 #7768 [Verbose] >                     "Best"

00:01:36 #7769 [Verbose] >                 ]]

00:01:36 #7770 [Verbose] >                 [[

00:01:36 #7771 [Verbose] >                     "---"

00:01:36 #7772 [Verbose] >                     "---"

00:01:36 #7773 [Verbose] >                     "---"

00:01:36 #7774 [Verbose] >                     "---"

00:01:36 #7775 [Verbose] >                 ]]

00:01:36 #7776 [Verbose] >             ]]

00:01:36 #7777 [Verbose] >             |> listm.map fun row => row, None

00:01:36 #7778 [Verbose] >             |> listm.toArray

00:01:36 #7779 [Verbose] >         rows |> am.append header

00:01:36 #7780 [Verbose] >

00:01:36 #7781 [Verbose] >     inl formattedTable =

00:01:36 #7782 [Verbose] >         inl lengthMap : mapm.map i32 i64 =

00:01:36 #7783 [Verbose] >             table

00:01:36 #7784 [Verbose] >             |> am.map (fst >> listm.toArray)

00:01:36 #7785 [Verbose] >             |> am'.transpose

00:01:36 #7786 [Verbose] >             |> am.map fun column =>

00:01:36 #7787 [Verbose] >                 column

00:01:36 #7788 [Verbose] >                 |> am.map sm.length

00:01:36 #7789 [Verbose] >                 |> am'.sort_descending

00:01:36 #7790 [Verbose] >                 |> am'.try_item 0i32

00:01:36 #7791 [Verbose] >                 |> optionm'.default_value 0i64

00:01:36 #7792 [Verbose] >             |> am'.indexed

00:01:36 #7793 [Verbose] >             |> fun (x : a i32 _) => x

00:01:36 #7794 [Verbose] >             |> mapm.of_array

00:01:36 #7795 [Verbose] >         table

00:01:36 #7796 [Verbose] >         |> am.map fun (row, color) =>

00:01:36 #7797 [Verbose] >             inl newRow =

00:01:36 #7798 [Verbose] >                 row

00:01:36 #7799 [Verbose] >                 |> listm'.indexed

00:01:36 #7800 [Verbose] >                 |> listm.map fun (i, cell) =>

00:01:36 #7801 [Verbose] >                     cell |> sm'.pad_right (lengthMap |> mapm.item i |> conv)

00:01:36 #7802 [Verbose] >                 |> listm.toArray

00:01:36 #7803 [Verbose] >             newRow, color

00:01:36 #7804 [Verbose] >

00:01:36 #7805 [Verbose] >     printfn ""

00:01:36 #7806 [Verbose] >     formattedTable

00:01:36 #7807 [Verbose] >     |> am.iter fun ((row : a i32 string), color) =>

00:01:36 #7808 [Verbose] >         match color with

00:01:36 #7809 [Verbose] >         | Some color => color |> console.set_foreground_color

00:01:36 #7810 [Verbose] >         | None => console.reset_color ()

00:01:36 #7811 [Verbose] >

00:01:36 #7812 [Verbose] >         printfn (row |> sm'.join' "\t| ")

00:01:36 #7813 [Verbose] >

00:01:36 #7814 [Verbose] >         console.reset_color ()

00:01:36 #7815 [Verbose] >

00:01:36 #7816 [Verbose] >     inl averages : a u64 _ =

00:01:36 #7817 [Verbose] >         results

00:01:36 #7818 [Verbose] >         |> am.map fun result =>

00:01:36 #7819 [Verbose] >             result.TimeList

00:01:36 #7820 [Verbose] >             |> am.map ($"float" : i64 -> f64)

00:01:36 #7821 [Verbose] >         |> am'.transpose

00:01:36 #7822 [Verbose] >         |> am.map am'.average

00:01:36 #7823 [Verbose] >         |> am.map ($"int64" : f64 -> i64)

00:01:36 #7824 [Verbose] >         |> am'.indexed

00:01:36 #7825 [Verbose] >

00:01:36 #7826 [Verbose] >     printfn ""

00:01:36 #7827 [Verbose] >     printfn "Average Ranking  "

00:01:36 #7828 [Verbose] >     averages

00:01:36 #7829 [Verbose] >     |> am'.sort_by snd

00:01:36 #7830 [Verbose] >     |> am.iter fun ((i : i32), avg) =>

00:01:36 #7831 [Verbose] >         printfn ($"$\"Test case %d{!i + 1}. Average Time: %A{!avg}  \"" :

00:01:36 #7832 [Verbose] > string)

00:01:36 #7833 [Verbose] >

00:01:36 #7834 [Verbose] > ╭─[ 10.16s - stdout ]──────────────────────────────────────────────────────────╮

00:01:36 #7835 [Verbose] > │ ()                                                                           │

00:01:36 #7836 [Verbose] > │                                                                              │

00:01:36 #7837 [Verbose] > │                                                                              │

00:01:36 #7838 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:36 #7839 [Verbose] >

00:01:36 #7840 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:36 #7841 [Verbose] > union rec stream t =

00:01:36 #7842 [Verbose] >     | StreamCons : t * (() -> stream t)

00:01:36 #7843 [Verbose] >     | StreamNil

00:01:36 #7844 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3183-8385-8be7d400e519\main.spi

00:01:36 #7845 [Verbose] >

00:01:37 #7846 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3193-9381-96d0238b1ae3\main.spi

00:01:37 #7847 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:37 #7848 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:37 #7849 [Verbose] > │ # seq                                                                        │

00:01:37 #7850 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7851 [Verbose] >

00:01:37 #7852 [Verbose] > ╭─[ 869.38ms - stdout ]────────────────────────────────────────────────────────╮

00:01:37 #7853 [Verbose] > │ ()                                                                           │

00:01:37 #7854 [Verbose] > │                                                                              │

00:01:37 #7855 [Verbose] > │                                                                              │

00:01:37 #7856 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7857 [Verbose] >

00:01:37 #7858 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:37 #7859 [Verbose] > // // test

00:01:37 #7860 [Verbose] >

00:01:37 #7861 [Verbose] > inl is_fast () =

00:01:37 #7862 [Verbose] >     false

00:01:37 #7863 [Verbose] >

00:01:37 #7864 [Verbose] > ╭─[ 804.07ms - stdout ]────────────────────────────────────────────────────────╮

00:01:37 #7865 [Verbose] > │ ()                                                                           │

00:01:37 #7866 [Verbose] > │                                                                              │

00:01:37 #7867 [Verbose] > │                                                                              │

00:01:37 #7868 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7869 [Verbose] >

00:01:37 #7870 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:37 #7871 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:37 #7872 [Verbose] > │ ## fold                                                                      │

00:01:37 #7873 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7874 [Verbose] >

00:01:37 #7875 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:37 #7876 [Verbose] > inl fold fn init s =

00:01:37 #7877 [Verbose] >     inl rec body acc = function

00:01:37 #7878 [Verbose] >         | StreamCons (st, fn') => loop (fn acc st) (fn' ())

00:01:37 #7879 [Verbose] >         | StreamNil => acc

00:01:37 #7880 [Verbose] >     and inl loop acc = join_body body acc

00:01:37 #7881 [Verbose] >     loop init s

00:01:37 #7882 [Verbose] >

00:01:37 #7883 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:37 #7884 [Verbose] > // // test

00:01:37 #7885 [Verbose] >

00:01:37 #7886 [Verbose] > open testing

00:01:37 #7887 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3271-7187-7b861fc68e5b\main.spi

00:01:37 #7888 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3275-7565-7d93eea0d94b\main.spi

00:01:37 #7889 [Verbose] >

00:01:37 #7890 [Verbose] > ╭─[ 349.33ms - stdout ]────────────────────────────────────────────────────────╮

00:01:37 #7891 [Verbose] > │ ()                                                                           │

00:01:37 #7892 [Verbose] > │                                                                              │

00:01:37 #7893 [Verbose] > │                                                                              │

00:01:37 #7894 [Verbose] >

00:01:37 #7895 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7896 [Verbose] > ╭─[ 331.55ms - stdout ]────────────────────────────────────────────────────────╮

00:01:37 #7897 [Verbose] >

00:01:37 #7898 [Verbose] > │ ()                                                                           │

00:01:37 #7899 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:37 #7900 [Verbose] > │                                                                              │

00:01:37 #7901 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:37 #7902 [Verbose] > │                                                                              │

00:01:37 #7903 [Verbose] > │ ## empty2Tests                                                               │

00:01:37 #7904 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7905 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7906 [Verbose] >

00:01:37 #7907 [Verbose] >

00:01:37 #7908 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:37 #7909 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:37 #7910 [Verbose] > │ ## fold_back                                                                 │

00:01:37 #7911 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7912 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:37 #7913 [Verbose] >

00:01:37 #7914 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:37 #7915 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:37 #7916 [Verbose] > inl fold_back fn s init =

00:01:37 #7917 [Verbose] >     inl rec body acc = function

00:01:37 #7918 [Verbose] >         | StreamCons (st, fn') => fn st (loop acc (fn' ()))

00:01:37 #7919 [Verbose] >         | StreamNil => acc

00:01:37 #7920 [Verbose] >     and inl loop acc = join_body body acc

00:01:37 #7921 [Verbose] >     loop init s

00:01:37 #7922 [Verbose] > │ Test: Empty2                                                                 │

00:01:37 #7923 [Verbose] > │                                                                              │

00:01:37 #7924 [Verbose] > │ Solution: (a, a)                                                             │

00:01:37 #7925 [Verbose] > │ Test case 1. A. Time: 59L                                                    │

00:01:37 #7926 [Verbose] > │                                                                              │

00:01:37 #7927 [Verbose] > │ Solution: (a, a)                                                             │

00:01:37 #7928 [Verbose] > │ Test case 1. A. Time: 53L                                                    │

00:01:37 #7929 [Verbose] > │                                                                              │

00:01:37 #7930 [Verbose] > │ Input   | Expected        | Result  | Best                                   │

00:01:37 #7931 [Verbose] > │ ---     | ---             | ---     | ---                                    │

00:01:37 #7932 [Verbose] > │ (a, a)  | a               | a       | (1, 59)                                │

00:01:37 #7933 [Verbose] > │ (a, a)  | a               | a       | (1, 53)                                │

00:01:37 #7934 [Verbose] > │                                                                              │

00:01:37 #7935 [Verbose] > │ Averages                                                                     │

00:01:37 #7936 [Verbose] > │ Test case 1. Average Time: 56L                                               │

00:01:37 #7937 [Verbose] > │                                                                              │

00:01:37 #7938 [Verbose] > │ Ranking                                                                      │

00:01:37 #7939 [Verbose] > │ Test case 1. Average Time: 56L                                               │

00:01:37 #7940 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7941 [Verbose] >

00:01:37 #7942 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:37 #7943 [Verbose] > // // test

00:01:37 #7944 [Verbose] >

00:01:37 #7945 [Verbose] > inl get_solutions () =

00:01:37 #7946 [Verbose] >     [[

00:01:37 #7947 [Verbose] >         "A",

00:01:37 #7948 [Verbose] >         fun (a, _b) =>

00:01:37 #7949 [Verbose] >             a

00:01:37 #7950 [Verbose] >

00:01:37 #7951 [Verbose] >         "B",

00:01:37 #7952 [Verbose] >         fun (_a, b) =>

00:01:37 #7953 [Verbose] >             b

00:01:37 #7954 [Verbose] >     ]]

00:01:37 #7955 [Verbose] >

00:01:37 #7956 [Verbose] > inl rec empty_2_tests () =

00:01:37 #7957 [Verbose] >     inl test_cases = [[

00:01:37 #7958 [Verbose] >         ("a", "a"), "a"

00:01:37 #7959 [Verbose] >         ("b", "b"), "b"

00:01:37 #7960 [Verbose] >     ]]

00:01:37 #7961 [Verbose] >

00:01:37 #7962 [Verbose] >     inl solutions = get_solutions ()

00:01:37 #7963 [Verbose] >

00:01:37 #7964 [Verbose] >     // inl is_fast () = true

00:01:37 #7965 [Verbose] >

00:01:37 #7966 [Verbose] >     inl count =

00:01:37 #7967 [Verbose] >         if is_fast ()

00:01:37 #7968 [Verbose] >         then 1000i32

00:01:37 #7969 [Verbose] >         else 2000000i32

00:01:37 #7970 [Verbose] >

00:01:37 #7971 [Verbose] >     run_all (nameof empty_2_tests) count solutions test_cases

00:01:37 #7972 [Verbose] >     |> sort_result_list

00:01:37 #7973 [Verbose] >

00:01:37 #7974 [Verbose] > empty_2_tests ()

00:01:37 #7975 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3309-0936-00a6d8343102\main.spi

00:01:37 #7976 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3312-1209-11c5f3aa1220\main.spi

00:01:37 #7977 [Verbose] > [NbConvertApp] Converting notebook listm'.dib.ipynb to html

00:01:37 #7978 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:37 #7979 [Verbose] >   validate(nb)

00:01:37 #7980 [Verbose] >

00:01:37 #7981 [Verbose] > ╭─[ 326.04ms - stdout ]────────────────────────────────────────────────────────╮

00:01:37 #7982 [Verbose] > │ ()                                                                           │

00:01:37 #7983 [Verbose] > │                                                                              │

00:01:37 #7984 [Verbose] > │                                                                              │

00:01:37 #7985 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7986 [Verbose] >

00:01:37 #7987 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:37 #7988 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:37 #7989 [Verbose] > │ ## to_list                                                                   │

00:01:37 #7990 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:37 #7991 [Verbose] >

00:01:37 #7992 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:37 #7993 [Verbose] > inl to_list s =

00:01:37 #7994 [Verbose] >     (s, [[]])

00:01:37 #7995 [Verbose] >     ||> fold_back fun x acc =>

00:01:37 #7996 [Verbose] >         x :: acc

00:01:38 #7997 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3343-4393-47bc5a0c0a9a\main.spi

00:01:38 #7998 [Verbose] >

00:01:38 #7999 [Verbose] > ╭─[ 370.42ms - stdout ]────────────────────────────────────────────────────────╮

00:01:38 #8000 [Verbose] > │ ()                                                                           │

00:01:38 #8001 [Verbose] > │                                                                              │

00:01:38 #8002 [Verbose] > │                                                                              │

00:01:38 #8003 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:38 #8004 [Verbose] >

00:01:38 #8005 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:38 #8006 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:38 #8007 [Verbose] > │ ## rev                                                                       │

00:01:38 #8008 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:38 #8009 [Verbose] >

00:01:38 #8010 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:38 #8011 [Verbose] > inl rev s =

00:01:38 #8012 [Verbose] >     (StreamNil, s)

00:01:38 #8013 [Verbose] >     ||> fold fun s x =>

00:01:38 #8014 [Verbose] >         StreamCons (x, fun () => s)

00:01:38 #8015 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3384-8418-873714fe1405\main.spi

00:01:38 #8016 [Verbose] >

00:01:38 #8017 [Verbose] > ╭─[ 440.36ms - stdout ]────────────────────────────────────────────────────────╮

00:01:38 #8018 [Verbose] > │ ()                                                                           │

00:01:38 #8019 [Verbose] > │                                                                              │

00:01:38 #8020 [Verbose] > │                                                                              │

00:01:38 #8021 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:38 #8022 [Verbose] >

00:01:38 #8023 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:38 #8024 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:38 #8025 [Verbose] > │ ## from_list                                                                 │

00:01:38 #8026 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:38 #8027 [Verbose] >

00:01:39 #8028 [Verbose] >

00:01:39 #8029 [Verbose] > ╭─[ 14.76s - return value ]────────────────────────────────────────────────────╮

00:01:39 #8030 [Verbose] > │ .rs output:                                                                  │

00:01:39 #8031 [Verbose] > │ "1                                                                           │

00:01:39 #8032 [Verbose] > │ 2                                                                            │

00:01:39 #8033 [Verbose] > │ 3                                                                            │

00:01:39 #8034 [Verbose] > │ "                                                                            │

00:01:39 #8035 [Verbose] > │                                                                              │

00:01:39 #8036 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:39 #8037 [Verbose] >

00:01:39 #8038 [Verbose] > ╭─[ 14.79s - stdout ]──────────────────────────────────────────────────────────╮

00:01:39 #8039 [Verbose] > │                                                                              │

00:01:39 #8040 [Verbose] > │ .fsx:                                                                        │

00:01:39 #8041 [Verbose] > │ type Mut0 = {mutable l0 : int32; mutable l1 : string}                        │

00:01:39 #8042 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) =                           │

00:01:39 #8043 [Verbose] > │     v0                                                                       │

00:01:39 #8044 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:01:39 #8045 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:39 #8046 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:39 #8047 [Verbose] > │     v3                                                                       │

00:01:39 #8048 [Verbose] > │ and method3 (v0 : bool) : bool =                                             │

00:01:39 #8049 [Verbose] > │     v0                                                                       │

00:01:39 #8050 [Verbose] > │ and method0 () : unit =                                                      │

00:01:39 #8051 [Verbose] > │     let v0 : string = "1"                                                    │

00:01:39 #8052 [Verbose] > │     let v1 : string = "2"                                                    │

00:01:39 #8053 [Verbose] > │     let v2 : string = "3"                                                    │

00:01:39 #8054 [Verbose] > │     let v3 : (string []) = [|v0; v1; v2|]                                    │

00:01:39 #8055 [Verbose] > │     let v4 : (string []) = method1(v3)                                       │

00:01:39 #8056 [Verbose] > │     let v5 : int32 = v4.Length                                               │

00:01:39 #8057 [Verbose] > │     let v6 : string = ""                                                     │

00:01:39 #8058 [Verbose] > │     let v7 : Mut0 = {l0 = 0; l1 = v6} : Mut0                                 │

00:01:39 #8059 [Verbose] > │     while method2(v5, v7) do                                                 │

00:01:39 #8060 [Verbose] > │         let v9 : int32 = v7.l0                                               │

00:01:39 #8061 [Verbose] > │         let v10 : string = v7.l1                                             │

00:01:39 #8062 [Verbose] > │         let v11 : string = v4.[int v9]                                       │

00:01:39 #8063 [Verbose] > │         let v12 : string = "\n"                                              │

00:01:39 #8064 [Verbose] > │         let v13 : string = v10 + v11 + v12 + ""                              │

00:01:39 #8065 [Verbose] > │         let v14 : int32 = v9 + 1                                             │

00:01:39 #8066 [Verbose] > │         v7.l0 <- v14                                                         │

00:01:39 #8067 [Verbose] > │         v7.l1 <- v13                                                         │

00:01:39 #8068 [Verbose] > │         ()                                                                   │

00:01:39 #8069 [Verbose] > │     let v15 : string = v7.l1                                                 │

00:01:39 #8070 [Verbose] > │     let v16 : string = $"%A{v15}"                                            │

00:01:39 #8071 [Verbose] > │     System.Console.WriteLine v16                                             │

00:01:39 #8072 [Verbose] > │     let v18 : bool = v15 = "1\n2\n3\n"                                       │

00:01:39 #8073 [Verbose] > │     let v20 : bool =                                                         │

00:01:39 #8074 [Verbose] > │         if v18 then                                                          │

00:01:39 #8075 [Verbose] > │             true                                                             │

00:01:39 #8076 [Verbose] > │         else                                                                 │

00:01:39 #8077 [Verbose] > │             method3(v18)                                                     │

00:01:39 #8078 [Verbose] > │     let v21 : string = "1\n2\n3\n"                                           │

00:01:39 #8079 [Verbose] > │     let v22 : string = $"__expect / actual: %A{v15} / expected: %A{v21}"     │

00:01:39 #8080 [Verbose] > │     let v23 : bool = v20 = false                                             │

00:01:39 #8081 [Verbose] > │     if v23 then                                                              │

00:01:39 #8082 [Verbose] > │         failwith<unit> v22                                                   │

00:01:39 #8083 [Verbose] > │ method0()                                                                    │

00:01:39 #8084 [Verbose] > │                                                                              │

00:01:39 #8085 [Verbose] > │                                                                              │

00:01:39 #8086 [Verbose] > │ .rs:                                                                         │

00:01:39 #8087 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:01:39 #8088 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:01:39 #8089 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:01:39 #8090 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:01:39 #8091 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:01:39 #8092 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:01:39 #8093 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:01:39 #8094 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:01:39 #8095 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:01:39 #8096 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:01:39 #8097 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:01:39 #8098 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:01:39 #8099 [Verbose] > │         use super::*;                                                        │

00:01:39 #8100 [Verbose] > │         use fable_library_rust::Native_::LrcPtr;                             │

00:01:39 #8101 [Verbose] > │         use fable_library_rust::Native_::MutCell;                            │

00:01:39 #8102 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:01:39 #8103 [Verbose] > │         use fable_library_rust::NativeArray_::Array;                         │

00:01:39 #8104 [Verbose] > │         use fable_library_rust::NativeArray_::count;                         │

00:01:39 #8105 [Verbose] > │         use fable_library_rust::NativeArray_::new_array;                     │

00:01:39 #8106 [Verbose] > │         use fable_library_rust::String_::append;                             │

00:01:39 #8107 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:01:39 #8108 [Verbose] > │         use fable_library_rust::String_::sprintf;                            │

00:01:39 #8109 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:01:39 #8110 [Verbose] > │         #[derive(Clone, Debug, Default, PartialEq, PartialOrd, Hash, Eq,)]   │

00:01:39 #8111 [Verbose] > │         pub struct Mut0 {                                                    │

00:01:39 #8112 [Verbose] > │             pub l0: MutCell<i32>,                                            │

00:01:39 #8113 [Verbose] > │             pub l1: MutCell<string>,                                         │

00:01:39 #8114 [Verbose] > │         }                                                                    │

00:01:39 #8115 [Verbose] > │         impl core::fmt::Display for Spiral_eval::Mut0 {                      │

00:01:39 #8116 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:01:39 #8117 [Verbose] > │ {                                                                            │

00:01:39 #8118 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:01:39 #8119 [Verbose] > │             }                                                                │

00:01:39 #8120 [Verbose] > │         }                                                                    │

00:01:39 #8121 [Verbose] > │         pub fn method1(v0: Array<string>) -> Array<string> { v0 }            │

00:01:39 #8122 [Verbose] > │         pub fn method2(v0: i32, v1: LrcPtr<Spiral_eval::Mut0>) -> bool {     │

00:01:39 #8123 [Verbose] > │             v1.l0.get().clone() < v0                                         │

00:01:39 #8124 [Verbose] > │         }                                                                    │

00:01:39 #8125 [Verbose] > │         pub fn method3(v0: bool) -> bool { v0 }                              │

00:01:39 #8126 [Verbose] > │         pub fn method0() {                                                   │

00:01:39 #8127 [Verbose] > │             let v4: Array<string> =                                          │

00:01:39 #8128 [Verbose] > │                 Spiral_eval::method1(new_array(&[string("1"), string("2"),   │

00:01:39 #8129 [Verbose] > │                                                  string("3")]));             │

00:01:39 #8130 [Verbose] > │             let v5: i32 = count(v4.clone());                                 │

00:01:39 #8131 [Verbose] > │             let v7: LrcPtr<Spiral_eval::Mut0> =                              │

00:01:39 #8132 [Verbose] > │                 LrcPtr::new(Spiral_eval::Mut0{l0: MutCell::new(0_i32),       │

00:01:39 #8133 [Verbose] > │                                               l1:                            │

00:01:39 #8134 [Verbose] > │ MutCell::new(string("")),});                                                 │

00:01:39 #8135 [Verbose] > │             while Spiral_eval::method2(v5, v7.clone()) {                     │

00:01:39 #8136 [Verbose] > │                 let v9: i32 = v7.l0.get().clone();                           │

00:01:39 #8137 [Verbose] > │                 let v13: string =                                            │

00:01:39 #8138 [Verbose] > │                     append(append(append(v7.l1.get().clone(), v4[            │

00:01:39 #8139 [Verbose] > │ v9].clone()),                                                                │

00:01:39 #8140 [Verbose] > │                                   string("\n")), string(""));                │

00:01:39 #8141 [Verbose] > │                 let v14: i32 = v9 + 1_i32;                                   │

00:01:39 #8142 [Verbose] > │                 v7.l0.set(v14);                                              │

00:01:39 #8143 [Verbose] > │                 v7.l1.set(v13);                                              │

00:01:39 #8144 [Verbose] > │                 ()                                                           │

00:01:39 #8145 [Verbose] > │             }                                                                │

00:01:39 #8146 [Verbose] > │             {                                                                │

00:01:39 #8147 [Verbose] > │                 let v15: string = v7.l1.get().clone();                       │

00:01:39 #8148 [Verbose] > │                 let v16: string = sprintf!("{:?}", v15.clone());             │

00:01:39 #8149 [Verbose] > │                 printfn!("{0}", v16);                                        │

00:01:39 #8150 [Verbose] > │                 {                                                            │

00:01:39 #8151 [Verbose] > │                     let v18: bool = v15.clone() == string("1\n2\n3\n");      │

00:01:39 #8152 [Verbose] > │                     if (if v18 { true } else { Spiral_eval::method3(v18) })  │

00:01:39 #8153 [Verbose] > │ ==                                                                           │

00:01:39 #8154 [Verbose] > │                            false {                                           │

00:01:39 #8155 [Verbose] > │                         panic!("{}",                                         │

00:01:39 #8156 [Verbose] > │                                sprintf!("__expect / actual: {:?} / expected: │

00:01:39 #8157 [Verbose] > │ {:?}", v15, string("1\n2\n3\n")));                                           │

00:01:39 #8158 [Verbose] > │                     }                                                        │

00:01:39 #8159 [Verbose] > │                 }                                                            │

00:01:39 #8160 [Verbose] > │             }                                                                │

00:01:39 #8161 [Verbose] > │         }                                                                    │

00:01:39 #8162 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:01:39 #8163 [Verbose] > │     }                                                                        │

00:01:39 #8164 [Verbose] > │ }                                                                            │

00:01:39 #8165 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:01:39 #8166 [Verbose] > │                                                                              │

00:01:39 #8167 [Verbose] > │                                                                              │

00:01:39 #8168 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:39 #8169 [Verbose] >

00:01:39 #8170 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:39 #8171 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:39 #8172 [Verbose] > │ ## concat_list_trailing                                                      │

00:01:39 #8173 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:39 #8174 [Verbose] >

00:01:39 #8175 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:39 #8176 [Verbose] > inl concat_list_trailing separator input =

00:01:39 #8177 [Verbose] >     ("", input)

00:01:39 #8178 [Verbose] >     ||> listm.fold fun acc (x : string) =>

00:01:39 #8179 [Verbose] >         $'!acc + !x + !separator + ""'

00:01:39 #8180 [Verbose] >

00:01:39 #8181 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:39 #8182 [Verbose] > inl from_list list =

00:01:39 #8183 [Verbose] >     (list, StreamNil)

00:01:39 #8184 [Verbose] >     ||> listm.foldBack fun x acc =>

00:01:39 #8185 [Verbose] >         StreamCons (x, fun () => acc)

00:01:39 #8186 [Verbose] >

00:01:39 #8187 [Verbose] > ╭─[ 327.37ms - stdout ]────────────────────────────────────────────────────────╮

00:01:39 #8188 [Verbose] > │ ()                                                                           │

00:01:39 #8189 [Verbose] > │                                                                              │

00:01:39 #8190 [Verbose] > │                                                                              │

00:01:39 #8191 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:39 #8192 [Verbose] >

00:01:39 #8193 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:39 #8194 [Verbose] > // // test

00:01:39 #8195 [Verbose] >

00:01:39 #8196 [Verbose] > listm.init 3i32 id

00:01:39 #8197 [Verbose] > |> from_list

00:01:39 #8198 [Verbose] > |> rev

00:01:39 #8199 [Verbose] > |> to_list

00:01:39 #8200 [Verbose] > |> _assert_eq [[ 2; 1; 0 ]]

00:01:39 #8201 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3432-3289-39cd626d2610\main.spi

00:01:39 #8202 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3466-6650-63ca69d03503\main.spi

00:01:39 #8203 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3478-7888-7a89273f4c5f\main.spi

00:01:39 #8204 [Verbose] > ╭─[ 331.25ms - stdout ]────────────────────────────────────────────────────────╮

00:01:39 #8205 [Verbose] > │ ()                                                                           │

00:01:39 #8206 [Verbose] > │                                                                              │

00:01:39 #8207 [Verbose] > │                                                                              │

00:01:39 #8208 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:39 #8209 [Verbose] >

00:01:39 #8210 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:39 #8211 [Verbose] > // // test

00:01:39 #8212 [Verbose] > // // rust=

00:01:39 #8213 [Verbose] >

00:01:39 #8214 [Verbose] > [[

00:01:39 #8215 [Verbose] >     "1"

00:01:39 #8216 [Verbose] >     "2"

00:01:39 #8217 [Verbose] >     "3"

00:01:39 #8218 [Verbose] > ]]

00:01:39 #8219 [Verbose] > |> fun x =>

00:01:39 #8220 [Verbose] >     inl code = (x : _) |> sm'.concat_list_trailing "\n"

00:01:39 #8221 [Verbose] >     code

00:01:39 #8222 [Verbose] >     |> _assert_eq "1\n2\n3\n"

00:01:39 #8223 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3514-1423-1f2befe0c296\main.spi

00:01:39 #8224 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:39 #8225 [Verbose] >   return _pygments_highlight(

00:01:41 #8226 [Verbose] > [NbConvertApp] Writing 367719 bytes to listm'.dib.html

00:01:42 #8227 [Verbose] >

00:01:42 #8228 [Verbose] > ╭─[ 3.24s - stdout ]───────────────────────────────────────────────────────────╮

00:01:42 #8229 [Verbose] > │ type UH0 =                                                                   │

00:01:42 #8230 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:01:42 #8231 [Verbose] > │     | UH0_1                                                                  │

00:01:42 #8232 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:42 #8233 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:42 #8234 [Verbose] > │     let v1 : UH0 = UH0_0(0, v0)                                              │

00:01:42 #8235 [Verbose] > │     let v2 : UH0 = UH0_0(1, v1)                                              │

00:01:42 #8236 [Verbose] > │     let v3 : UH0 = UH0_0(2, v2)                                              │

00:01:42 #8237 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:01:42 #8238 [Verbose] > │     System.Console.WriteLine v4                                              │

00:01:42 #8239 [Verbose] > │     let v23 : UH0 = UH0_1                                                    │

00:01:42 #8240 [Verbose] > │     let v24 : UH0 = UH0_0(0, v23)                                            │

00:01:42 #8241 [Verbose] > │     let v25 : UH0 = UH0_0(1, v24)                                            │

00:01:42 #8242 [Verbose] > │     let v26 : UH0 = UH0_0(2, v25)                                            │

00:01:42 #8243 [Verbose] > │     let v27 : UH0 = UH0_1                                                    │

00:01:42 #8244 [Verbose] > │     let v28 : UH0 = UH0_0(0, v27)                                            │

00:01:42 #8245 [Verbose] > │     let v29 : UH0 = UH0_0(1, v28)                                            │

00:01:42 #8246 [Verbose] > │     let v30 : UH0 = UH0_0(2, v29)                                            │

00:01:42 #8247 [Verbose] > │     let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}"     │

00:01:42 #8248 [Verbose] > │     ()                                                                       │

00:01:42 #8249 [Verbose] > │ method0()                                                                    │

00:01:42 #8250 [Verbose] > │                                                                              │

00:01:42 #8251 [Verbose] > │ UH0_0 (2, UH0_0 (1, UH0_0 (0, UH0_1)))                                       │

00:01:42 #8252 [Verbose] > │                                                                              │

00:01:42 #8253 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:42 #8254 [Verbose] >

00:01:42 #8255 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:42 #8256 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:42 #8257 [Verbose] > │ ## try_item                                                                  │

00:01:42 #8258 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:42 #8259 [Verbose] >

00:01:42 #8260 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:42 #8261 [Verbose] > inl try_item i s =

00:01:42 #8262 [Verbose] >     inl rec body i = function

00:01:42 #8263 [Verbose] >         | StreamCons (x, _) when i <= 0 => Some x

00:01:42 #8264 [Verbose] >         | StreamCons (_, fn) => loop (i - 1) (fn ())

00:01:42 #8265 [Verbose] >         | StreamNil => None

00:01:42 #8266 [Verbose] >     and inl loop acc s' =

00:01:42 #8267 [Verbose] >         match var_is acc, var_is s' with

00:01:42 #8268 [Verbose] >         | false, false => body acc s'

00:01:42 #8269 [Verbose] >         | _ =>

00:01:42 #8270 [Verbose] >             inl acc = dyn acc

00:01:42 #8271 [Verbose] >             inl s' = dyn s'

00:01:42 #8272 [Verbose] >             join body acc s'

00:01:42 #8273 [Verbose] >     loop i s

00:01:42 #8274 [Verbose] >

00:01:42 #8275 [Verbose] > inl item i =

00:01:42 #8276 [Verbose] >     try_item i >> optionm.value

00:01:42 #8277 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3799-9950-96a1ff87f25c\main.spi

00:01:42 #8278 [Verbose] >

00:01:42 #8279 [Verbose] > ╭─[ 499.14ms - stdout ]────────────────────────────────────────────────────────╮

00:01:42 #8280 [Verbose] > │ ()                                                                           │

00:01:42 #8281 [Verbose] > │                                                                              │

00:01:42 #8282 [Verbose] > │                                                                              │

00:01:42 #8283 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:42 #8284 [Verbose] >

00:01:42 #8285 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:42 #8286 [Verbose] > // // test

00:01:42 #8287 [Verbose] >

00:01:42 #8288 [Verbose] > listm.init 10i32 id

00:01:42 #8289 [Verbose] > |> from_list

00:01:42 #8290 [Verbose] > |> item 9i32

00:01:42 #8291 [Verbose] > |> _assert_eq 9

00:01:43 #8292 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3843-4338-4b8049e38d83\main.spi

00:01:43 #8293 [Verbose] >

00:01:43 #8294 [Verbose] >

00:01:43 #8295 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:43 #8296 [Debug] executeAsync / exitCode: 0 / output.Length: 63965

00:01:43 #8297 [Debug] main / executeCommand / exitCode: 0

00:01:43 #8298 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 file_system.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:01:43 #8299 [Verbose] > ╭─[ 591.52ms - stdout ]────────────────────────────────────────────────────────╮

00:01:43 #8300 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:43 #8301 [Verbose] > │     let v0 : string = $"%A{9}"                                               │

00:01:43 #8302 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:43 #8303 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:43 #8304 [Verbose] > │ # util                                                                       │

00:01:43 #8305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #8306 [Verbose] > │     let v1 : string = $"__expect / actual: %A{9} / expected: %A{9}"          │

00:01:43 #8307 [Verbose] > │     ()                                                                       │

00:01:43 #8308 [Verbose] > │ method0()                                                                    │

00:01:43 #8309 [Verbose] > │                                                                              │

00:01:43 #8310 [Verbose] > │ 9                                                                            │

00:01:43 #8311 [Verbose] > │                                                                              │

00:01:43 #8312 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #8313 [Verbose] >

00:01:43 #8314 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:43 #8315 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:43 #8316 [Verbose] > │ ## new_infinite_stream                                                       │

00:01:43 #8317 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #8318 [Verbose] >

00:01:43 #8319 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:43 #8320 [Verbose] > inl new_infinite_stream fn =

00:01:43 #8321 [Verbose] >     inl rec loop n =

00:01:43 #8322 [Verbose] >         StreamCons (fn n, fun () => loop (n + 1))

00:01:43 #8323 [Verbose] >     loop 0

00:01:43 #8324 [Verbose] >

00:01:43 #8325 [Verbose] > inl new_infinite_stream_ fn =

00:01:43 #8326 [Verbose] >     let rec loop n =

00:01:43 #8327 [Verbose] >         StreamCons (fn n, fun () => loop (n + 1))

00:01:43 #8328 [Verbose] >     loop 0

00:01:43 #8329 [Verbose] >

00:01:43 #8330 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:43 #8331 [Verbose] > // // test

00:01:43 #8332 [Verbose] >

00:01:43 #8333 [Verbose] > open testing

00:01:43 #8334 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3908-0869-07029b7d0e50\main.spi

00:01:43 #8335 [Verbose] >

00:01:43 #8336 [Verbose] > ╭─[ 343.99ms - stdout ]────────────────────────────────────────────────────────╮

00:01:43 #8337 [Verbose] > │ ()                                                                           │

00:01:43 #8338 [Verbose] > │                                                                              │

00:01:43 #8339 [Verbose] > │                                                                              │

00:01:43 #8340 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #8341 [Verbose] >

00:01:43 #8342 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:43 #8343 [Verbose] > // // test

00:01:43 #8344 [Verbose] >

00:01:43 #8345 [Verbose] > new_infinite_stream print_and_return

00:01:43 #8346 [Verbose] > |> item 4i32

00:01:43 #8347 [Verbose] > |> _assert_eq 4i32

00:01:44 #8348 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3946-4639-4ae5eaad4172\main.spi

00:01:44 #8349 [Verbose] >

00:01:44 #8350 [Verbose] > ╭─[ 580.09ms - stdout ]────────────────────────────────────────────────────────╮

00:01:44 #8351 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:44 #8352 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:01:44 #8353 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:01:44 #8354 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:01:44 #8355 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:01:44 #8356 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:01:44 #8357 [Verbose] > │     let v0 : string = $"%A{4}"                                               │

00:01:44 #8358 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:44 #8359 [Verbose] > │     let v1 : string = $"__expect / actual: %A{4} / expected: %A{4}"          │

00:01:44 #8360 [Verbose] > │     ()                                                                       │

00:01:44 #8361 [Verbose] > │ method0()                                                                    │

00:01:44 #8362 [Verbose] > │                                                                              │

00:01:44 #8363 [Verbose] > │ print_and_return / x: 0                                                      │

00:01:44 #8364 [Verbose] > │ print_and_return / x: 1                                                      │

00:01:44 #8365 [Verbose] > │ print_and_return / x: 2                                                      │

00:01:44 #8366 [Verbose] > │ print_and_return / x: 3                                                      │

00:01:44 #8367 [Verbose] > │ print_and_return / x: 4                                                      │

00:01:44 #8368 [Verbose] > │ 4                                                                            │

00:01:44 #8369 [Verbose] > │                                                                              │

00:01:44 #8370 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:44 #8371 [Verbose] >

00:01:44 #8372 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:44 #8373 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:44 #8374 [Verbose] > │ ## new_finite_stream                                                         │

00:01:44 #8375 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:44 #8376 [Verbose] >

00:01:44 #8377 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:44 #8378 [Verbose] > inl new_finite_stream fn max =

00:01:44 #8379 [Verbose] >     inl rec loop n =

00:01:44 #8380 [Verbose] >         if n >= max

00:01:44 #8381 [Verbose] >         then StreamNil

00:01:44 #8382 [Verbose] >         else StreamCons (fn n, fun () => loop (n + 1))

00:01:44 #8383 [Verbose] >     loop 0

00:01:44 #8384 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4009-0950-0d4f417f71eb\main.spi

00:01:44 #8385 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-3879-7954-738f348ddbf1\main.spi

00:01:44 #8386 [Verbose] >

00:01:47 #8387 [Verbose] >

00:01:47 #8388 [Verbose] > ╭─[ 10.54s - stdout ]──────────────────────────────────────────────────────────╮

00:01:47 #8389 [Verbose] > │ ()                                                                           │

00:01:47 #8390 [Verbose] > │                                                                              │

00:01:47 #8391 [Verbose] > │                                                                              │

00:01:47 #8392 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:47 #8393 [Verbose] >

00:01:47 #8394 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:47 #8395 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:47 #8396 [Verbose] > │ ## seq'                                                                      │

00:01:47 #8397 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:47 #8398 [Verbose] >

00:01:47 #8399 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:47 #8400 [Verbose] > type seq' t = $"`t seq"

00:01:48 #8401 [Verbose] >

00:01:48 #8402 [Verbose] > ╭─[ 446.85ms - stdout ]────────────────────────────────────────────────────────╮

00:01:48 #8403 [Verbose] > │ ()                                                                           │

00:01:48 #8404 [Verbose] > │                                                                              │

00:01:48 #8405 [Verbose] > │                                                                              │

00:01:48 #8406 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:48 #8407 [Verbose] >

00:01:48 #8408 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:48 #8409 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:48 #8410 [Verbose] > │ ## of_array'                                                                 │

00:01:48 #8411 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:48 #8412 [Verbose] >

00:01:48 #8413 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:48 #8414 [Verbose] > inl of_array' forall dim t. (items : a dim t) : seq' t =

00:01:48 #8415 [Verbose] >     $'seq { for i = 0 to !items.Length - 1 do yield !items.[[i]] }'

00:01:48 #8416 [Verbose] >

00:01:48 #8417 [Verbose] > ╭─[ 452.07ms - stdout ]────────────────────────────────────────────────────────╮

00:01:48 #8418 [Verbose] > │ ()                                                                           │

00:01:48 #8419 [Verbose] > │                                                                              │

00:01:48 #8420 [Verbose] > │                                                                              │

00:01:48 #8421 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:48 #8422 [Verbose] >

00:01:48 #8423 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:48 #8424 [Verbose] > // // test

00:01:48 #8425 [Verbose] >

00:01:48 #8426 [Verbose] > (a ;[["a"; "b"]] : _ i32 _)

00:01:48 #8427 [Verbose] > |> of_array'

00:01:50 #8428 [Verbose] >

00:01:50 #8429 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:50 #8430 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:50 #8431 [Verbose] > │ # file_system                                                                │

00:01:50 #8432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:51 #8433 [Verbose] >

00:01:51 #8434 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:51 #8435 [Verbose] > open rust_operators

00:01:51 #8436 [Verbose] > open sm'_operators

00:01:51 #8437 [Verbose] >

00:01:51 #8438 [Verbose] > ╭─[ 2.81s - return value ]─────────────────────────────────────────────────────╮

00:01:51 #8439 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span                     │

00:01:51 #8440 [Verbose] > │ class="dni-code-hint"><code>[ a, b                                           │

00:01:51 #8441 [Verbose] > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │

00:01:51 #8442 [Verbose] > │ CheckClose</td><td><div                                                      │

00:01:51 #8443 [Verbose] > │ class="dni-plaintext"><pre>False</pre></div></td></tr><tr><td>LastGenerated< │

00:01:51 #8444 [Verbose] > │ /td><td><div                                                                 │

00:01:51 #8445 [Verbose] > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>v2</td> │

00:01:51 #8446 [Verbose] > │ <td><div class="dni-plaintext"><pre>[ a, b                                   │

00:01:51 #8447 [Verbose] > │ ]</pre></div></td></tr><tr><td>enum</td><td><div                             │

00:01:51 #8448 [Verbose] > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>pc</td> │

00:01:51 #8449 [Verbose] > │ <td><div                                                                     │

00:01:51 #8450 [Verbose] > │ class="dni-plaintext"><pre>0</pre></div></td></tr><tr><td>current</td><td><d │

00:01:51 #8451 [Verbose] > │ iv                                                                           │

00:01:51 #8452 [Verbose] > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td><i>(val │

00:01:51 #8453 [Verbose] > │ ues)</i></td><td><div class="dni-plaintext"><pre>[ a, b ]</pr...             │

00:01:51 #8454 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4076-7604-7cf0c28e2a70\main.spi

00:01:51 #8455 [Verbose] > ╭─[ 402.78ms - stdout ]────────────────────────────────────────────────────────╮

00:01:51 #8456 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4130-3014-3fa8c218d1c3\main.spi

00:01:51 #8457 [Verbose] > │ ()                                                                           │

00:01:51 #8459 [Verbose] > │                                                                              │

00:01:51 #8458 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4328-2899-2506e750d6c3\main.spi

00:01:51 #8460 [Verbose] > │                                                                              │

00:01:51 #8461 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4380-8060-8c3f6b7fe7b7\main.spi

00:01:51 #8462 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:51 #8463 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4422-2225-2659b2bacf3a\main.spi

00:01:51 #8464 [Verbose] >

00:01:51 #8465 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:51 #8466 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:51 #8467 [Verbose] > │ ## memoize                                                                   │

00:01:51 #8468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:51 #8469 [Verbose] >

00:01:51 #8470 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:51 #8471 [Verbose] > union memoized_stream t =

00:01:51 #8472 [Verbose] >     | NotComputed : () -> stream t

00:01:51 #8473 [Verbose] >     | Computed : stream t

00:01:51 #8474 [Verbose] >

00:01:51 #8475 [Verbose] > inl memoize s =

00:01:51 #8476 [Verbose] >     inl rec body s =

00:01:51 #8477 [Verbose] >         inl state = mut (NotComputed s)

00:01:51 #8478 [Verbose] >         fun () =>

00:01:51 #8479 [Verbose] >             match *state with

00:01:51 #8480 [Verbose] >             | Computed x => x

00:01:51 #8481 [Verbose] >             | NotComputed fn =>

00:01:51 #8482 [Verbose] >                 inl new_state =

00:01:51 #8483 [Verbose] >                     match fn () with

00:01:51 #8484 [Verbose] >                     | StreamNil => StreamNil

00:01:51 #8485 [Verbose] >                     | StreamCons (x, fn) => StreamCons (x, loop fn)

00:01:51 #8486 [Verbose] >                 state <- Computed new_state

00:01:51 #8487 [Verbose] >                 new_state

00:01:51 #8488 [Verbose] >     and inl loop s' = join_body_unit body s s'

00:01:51 #8489 [Verbose] >     loop (fun () => s)

00:01:51 #8490 [Verbose] >

00:01:51 #8491 [Verbose] > ╭─[ 430.66ms - stdout ]────────────────────────────────────────────────────────╮

00:01:51 #8492 [Verbose] > │ ()                                                                           │

00:01:51 #8493 [Verbose] > │                                                                              │

00:01:51 #8494 [Verbose] > │                                                                              │

00:01:51 #8495 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:51 #8496 [Verbose] >

00:01:51 #8497 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:51 #8498 [Verbose] > // // test

00:01:51 #8499 [Verbose] >

00:01:51 #8500 [Verbose] > inl memo_stream = new_finite_stream print_and_return 10 |> memoize

00:01:51 #8501 [Verbose] >

00:01:51 #8502 [Verbose] > memo_stream ()

00:01:51 #8503 [Verbose] > |> item 3i32

00:01:51 #8504 [Verbose] > |> _assert_eq 3i32

00:01:51 #8505 [Verbose] >

00:01:51 #8506 [Verbose] > memo_stream ()

00:01:51 #8507 [Verbose] > |> item 5i32

00:01:51 #8508 [Verbose] > |> _assert_eq 5i32

00:01:51 #8509 [Verbose] >

00:01:51 #8510 [Verbose] > ╭─[ 1.88s - stdout ]───────────────────────────────────────────────────────────╮

00:01:51 #8511 [Verbose] > │ type UH0 =                                                                   │

00:01:51 #8512 [Verbose] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:01:51 #8513 [Verbose] > │     | UH0_1                                                                  │

00:01:51 #8514 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:51 #8515 [Verbose] > │     | US0_0 of f0_0 : UH0                                                    │

00:01:51 #8516 [Verbose] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:01:51 #8517 [Verbose] > │ and Mut0 = {mutable l0 : US0}                                                │

00:01:51 #8518 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:51 #8519 [Verbose] > │     | US1_0                                                                  │

00:01:51 #8520 [Verbose] > │     | US1_1 of f1_0 : int32                                                  │

00:01:51 #8521 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:51 #8522 [Verbose] > │ let rec closure10 () () : UH0 =                                              │

00:01:51 #8523 [Verbose] > │     UH0_1                                                                    │

00:01:51 #8524 [Verbose] > │ and closure9 () () : UH0 =                                                   │

00:01:51 #8525 [Verbose] > │     printfn $"print_and_return / x: {9}"                                     │

00:01:51 #8526 [Verbose] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:01:51 #8527 [Verbose] > │     UH0_0(9, v0)                                                             │

00:01:51 #8528 [Verbose] > │ and closure8 () () : UH0 =                                                   │

00:01:51 #8529 [Verbose] > │     printfn $"print_and_return / x: {8}"                                     │

00:01:51 #8530 [Verbose] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:01:51 #8531 [Verbose] > │     UH0_0(8, v0)                                                             │

00:01:51 #8532 [Verbose] > │ and closure7 () () : UH0 =                                                   │

00:01:51 #8533 [Verbose] > │     printfn $"print_and_return / x: {7}"                                     │

00:01:51 #8534 [Verbose] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:01:51 #8535 [Verbose] > │     UH0_0(7, v0)                                                             │

00:01:51 #8536 [Verbose] > │ and closure6 () () : UH0 =                                                   │

00:01:51 #8537 [Verbose] > │     printfn $"print_and_return / x: {6}"                                     │

00:01:51 #8538 [Verbose] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:01:51 #8539 [Verbose] > │     UH0_0(6, v0)                                                             │

00:01:51 #8540 [Verbose] > │ and closure5 () () : UH0 =                                                   │

00:01:51 #8541 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:01:51 #8542 [Verbose] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:01:51 #8543 [Verbose] > │     UH0_0(5, v0)                                                             │

00:01:51 #8544 [Verbose] > │ and closure4 () () : UH0 =                                                   │

00:01:51 #8545 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:01:51 #8546 [Verbose] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:01:51 #8547 [Verbose] >

00:01:51 #8548 [Verbose] > │     UH0_0(4, v0)                                                             │

00:01:51 #8549 [Verbose] > │ and closure3 () () : UH0 =                                                   │

00:01:51 #8550 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:01:51 #8551 [Verbose] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:01:51 #8552 [Verbose] > ╭─[ 2.93s - stdout ]───────────────────────────────────────────────────────────╮

00:01:51 #8553 [Verbose] > │     UH0_0(3, v0)                                                             │

00:01:51 #8554 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) =                           │

00:01:51 #8555 [Verbose] > │ and closure2 () () : UH0 =                                                   │

00:01:51 #8556 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:01:51 #8557 [Verbose] > │     v0                                                                       │

00:01:51 #8558 [Verbose] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:01:51 #8559 [Verbose] > │ and method0 () : string seq =                                                │

00:01:51 #8560 [Verbose] > │     UH0_0(2, v0)                                                             │

00:01:51 #8561 [Verbose] > │     let v0 : string = "a"                                                    │

00:01:51 #8562 [Verbose] > │ and closure1 () () : UH0 =                                                   │

00:01:51 #8563 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:01:51 #8564 [Verbose] > │     let v1 : string = "b"                                                    │

00:01:51 #8565 [Verbose] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:01:51 #8566 [Verbose] > │     let v2 : (string []) = [|v0; v1|]                                        │

00:01:51 #8567 [Verbose] > │     UH0_0(1, v0)                                                             │

00:01:51 #8568 [Verbose] > │ and closure0 () () : UH0 =                                                   │

00:01:51 #8569 [Verbose] > │     let v3 : (string []) = method1(v2)                                       │

00:01:51 #8570 [Verbose] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:01:51 #8571 [Verbose] > │     let v4 : string seq = seq { for i = 0 to v3.Length - 1 do yield v3.[i] } │

00:01:51 #8572 [Verbose] > │     UH0_0(0, v0)                                                             │

00:01:51 #8573 [Verbose] > │     v4                                                                       │

00:01:51 #8574 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 =                                         │

00:01:51 #8575 [Verbose] > │ method0()                                                                    │

00:01:51 #8576 [Verbose] > │     let v1 : US0 = v0.l0                                                     │

00:01:51 #8577 [Verbose] > │                                                                              │

00:01:51 #8578 [Verbose] > │     match v1 with                                                            │

00:01:51 #8579 [Verbose] > │     | US0_0(v2) -> (* Computed *)                                            │

00:01:51 #8580 [Verbose] > │                                                                              │

00:01:51 #8581 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:51 #8582 [Verbose] > │         v2                                                                   │

00:01:51 #8583 [Verbose] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:01:51 #8584 [Verbose] > │         let v4 : UH0 = v3 ()                                                 │

00:01:51 #8585 [Verbose] > │         let v13 : UH0 =                                                      │

00:01:51 #8586 [Verbose] > │             match v4 with                                                    │

00:01:51 #8587 [Verbose] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:01:51 #8588 [Verbose] > │                 let v8 : US0 = US0_1(v7)                                     │

00:01:51 #8589 [Verbose] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:01:51 #8590 [Verbose] >

00:01:51 #8591 [Verbose] > │                 let v10 : (unit -> UH0) = closure11(v9)                      │

00:01:51 #8592 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:51 #8593 [Verbose] > │                 UH0_0(v6, v10)                                               │

00:01:51 #8594 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:01:51 #8594 [Verbose] > inl of_array forall dim t. (items : a dim t) : seq' t =

00:01:51 #8596 [Verbose] >     items |> $'Seq.ofArray'

00:01:51 #8595 [Verbose] > │                 UH0_1                                                        │

00:01:51 #8597 [Verbose] > │         let v14 : US0 = US0_0(v13)                                           │

00:01:51 #8598 [Verbose] > │         v0.l0 <- v14                                                         │

00:01:51 #8599 [Verbose] > │         v13                                                                  │

00:01:51 #8600 [Verbose] > │ and method1 (v0 : int32, v1 : UH0) : US1 =                                   │

00:01:51 #8601 [Verbose] > │     match v1 with                                                            │

00:01:51 #8602 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:01:51 #8603 [Verbose] > │         let v4 : bool = v0 <= 0                                              │

00:01:51 #8604 [Verbose] > │         if v4 then                                                           │

00:01:51 #8605 [Verbose] > │             US1_1(v2)                                                        │

00:01:51 #8606 [Verbose] > │         else                                                                 │

00:01:51 #8607 [Verbose] > │             let v6 : int32 = v0 - 1                                          │

00:01:51 #8608 [Verbose] > │             let v7 : UH0 = v3 ()                                             │

00:01:51 #8609 [Verbose] > │             method1(v6, v7)                                                  │

00:01:51 #8610 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:01:51 #8611 [Verbose] > │         US1_0                                                                │

00:01:51 #8612 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:01:51 #8613 [Verbose] > │     v0                                                                       │

00:01:51 #8614 [Verbose] > │ and method0 () : unit =                                                      │

00:01:51 #8615 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:01:51 #8616 [Verbose] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:01:51 #8617 [Verbose] > │     let v1 : US0 = US0_1(v0)                                                 │

00:01:51 #8618 [Verbose] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:01:51 #8619 [Verbose] > │     let v3 : US0 = v2.l0                                                     │

00:01:51 #8620 [Verbose] > │     let v18 : UH0 =                                                          │

00:01:51 #8621 [Verbose] > │         match v3 with                                                        │

00:01:51 #8622 [Verbose] > │         | US0_0(v4) -> (* Computed *)                                        │

00:01:51 #8623 [Verbose] > │             v4                                                               │

00:01:51 #8624 [Verbose] > │         | US0_1(v5) -> (* NotComputed *)                                     │

00:01:51 #8625 [Verbose] > │             let v6 : UH0 = v5 ()                                             │

00:01:51 #8626 [Verbose] > │             let v15 : UH0 =                                                  │

00:01:51 #8627 [Verbose] > │                 match v6 with                                                │

00:01:51 #8628 [Verbose] > │                 | UH0_0(v8, v9) -> (* StreamCons *)                          │

00:01:51 #8629 [Verbose] > │                     let v10 : US0 = US0_1(v9)                                │

00:01:51 #8630 [Verbose] > │                     let v11 : Mut0 = {l0 = v10} : Mut0                       │

00:01:51 #8631 [Verbose] > │                     let v12 : (unit -> UH0) = closure11(v11)                 │

00:01:51 #8632 [Verbose] > │                     UH0_0(v8, v12)                                           │

00:01:51 #8633 [Verbose] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:01:51 #8634 [Verbose] > │                     UH0_1                                                    │

00:01:51 #8635 [Verbose] > │             let v16 : US0 = US0_0(v15)                                       │

00:01:51 #8636 [Verbose] > │             v2.l0 <- v16                                                     │

00:01:51 #8637 [Verbose] > │             v15                                                              │

00:01:51 #8638 [Verbose] > │     let v19 : int32 = 3                                                      │

00:01:51 #8639 [Verbose] > │     let v20 : US1 = method1(v19, v18)                                        │

00:01:51 #8640 [Verbose] > │     let v24 : int32 =                                                        │

00:01:51 #8641 [Verbose] > │         match v20 with                                                       │

00:01:51 #8642 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:01:51 #8643 [Verbose] > │             failwith<int32> "Option does not have a value."                  │

00:01:51 #8644 [Verbose] > │         | US1_1(v21) -> (* Some *)                                           │

00:01:51 #8645 [Verbose] > │             v21                                                              │

00:01:51 #8646 [Verbose] > │     let v25 : string = $"%A{v24}"                                            │

00:01:51 #8647 [Verbose] > │     System.Console.WriteLine v25                                             │

00:01:51 #8648 [Verbose] > │     let v26 : bool = v24 = 3                                                 │

00:01:51 #8649 [Verbose] > │     let v28 : bool =                                                         │

00:01:51 #8650 [Verbose] > │         if v26 then                                                          │

00:01:51 #8651 [Verbose] > │             true                                                             │

00:01:51 #8652 [Verbose] > │         else                                                                 │

00:01:51 #8653 [Verbose] > │             method2(v26)                                                     │

00:01:51 #8654 [Verbose] > │     let v29 : string = $"__expect / actual: %A{v24} / expected: %A{3}"       │

00:01:51 #8655 [Verbose] > │     let v30 : bool = v28 = false                                             │

00:01:51 #8656 [Verbose] > │     if v30 then                                                              │

00:01:51 #8657 [Verbose] >

00:01:51 #8658 [Verbose] > ╭─[ 388.26ms - stdout ]────────────────────────────────────────────────────────╮

00:01:51 #8659 [Verbose] > │ ()                                                                           │

00:01:51 #8660 [Verbose] > │                                                                              │

00:01:52 #8661 [Verbose] > │                                                                              │

00:01:52 #8662 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8663 [Verbose] >

00:01:52 #8664 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:52 #8665 [Verbose] > // // test

00:01:52 #8666 [Verbose] >

00:01:52 #8667 [Verbose] > (a ;[["a"; "b"]] : _ i32 _)

00:01:52 #8668 [Verbose] > |> of_array

00:01:52 #8669 [Verbose] >

00:01:52 #8670 [Verbose] > ╭─[ 12.88s - return value ]────────────────────────────────────────────────────╮

00:01:52 #8671 [Verbose] > │ .rs output:                                                                  │

00:01:52 #8672 [Verbose] > │ "1                                                                           │

00:01:52 #8673 [Verbose] > │ 2                                                                            │

00:01:52 #8674 [Verbose] > │ 3                                                                            │

00:01:52 #8675 [Verbose] >

00:01:52 #8676 [Verbose] > │ "                                                                            │

00:01:52 #8677 [Verbose] > │                                                                              │

00:01:52 #8678 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8679 [Verbose] >

00:01:52 #8680 [Verbose] > ╭─[ 449.89ms - return value ]──────────────────────────────────────────────────╮

00:01:52 #8681 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span                     │

00:01:52 #8682 [Verbose] > ╭─[ 12.92s - stdout ]──────────────────────────────────────────────────────────╮

00:01:52 #8683 [Verbose] > │                                                                              │

00:01:52 #8684 [Verbose] > │ .fsx:                                                                        │

00:01:52 #8685 [Verbose] > │ let rec method1 (v0 : bool) : bool =                                         │

00:01:52 #8686 [Verbose] > │     v0                                                                       │

00:01:52 #8687 [Verbose] > │ class="dni-code-hint"><code>[ a, b                                           │

00:01:52 #8688 [Verbose] > │ and method0 () : unit =                                                      │

00:01:52 #8689 [Verbose] > │     let v0 : string = ""                                                     │

00:01:52 #8690 [Verbose] > │     let v1 : string = "1"                                                    │

00:01:52 #8691 [Verbose] > │     let v2 : string = "\n"                                                   │

00:01:52 #8692 [Verbose] > │     let v3 : string = v0 + v1 + v2 + ""                                      │

00:01:52 #8693 [Verbose] > │     let v4 : string = "2"                                                    │

00:01:52 #8694 [Verbose] > │     let v5 : string = v3 + v4 + v2 + ""                                      │

00:01:52 #8695 [Verbose] > │     let v6 : string = "3"                                                    │

00:01:52 #8696 [Verbose] > │     let v7 : string = v5 + v6 + v2 + ""                                      │

00:01:52 #8697 [Verbose] > │     let v8 : string = $"%A{v7}"                                              │

00:01:52 #8698 [Verbose] > │     System.Console.WriteLine v8                                              │

00:01:52 #8699 [Verbose] > │     let v10 : bool = v7 = "1\n2\n3\n"                                        │

00:01:52 #8700 [Verbose] > │     let v12 : bool =                                                         │

00:01:52 #8701 [Verbose] > │         if v10 then                                                          │

00:01:52 #8702 [Verbose] > │             true                                                             │

00:01:52 #8703 [Verbose] > │         else                                                                 │

00:01:52 #8704 [Verbose] > │             method1(v10)                                                     │

00:01:52 #8705 [Verbose] > │     let v13 : string = "1\n2\n3\n"                                           │

00:01:52 #8706 [Verbose] > │     let v14 : string = $"__expect / actual: %A{v7} / expected: %A{v13}"      │

00:01:52 #8707 [Verbose] > │     let v15 : bool = v12 = false                                             │

00:01:52 #8708 [Verbose] > │     if v15 then                                                              │

00:01:52 #8709 [Verbose] > │         failwith<unit> v14                                                   │

00:01:52 #8710 [Verbose] > │ method0()                                                                    │

00:01:52 #8711 [Verbose] > │                                                                              │

00:01:52 #8712 [Verbose] > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │

00:01:52 #8713 [Verbose] > │                                                                              │

00:01:52 #8714 [Verbose] > │ f</td><td><details class="dni-treeview"><summary><span                       │

00:01:52 #8715 [Verbose] > │ .rs:                                                                         │

00:01:52 #8716 [Verbose] > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │

00:01:52 #8717 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:01:52 #8718 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:01:52 #8719 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:01:52 #8720 [Verbose] > │ 010[                                                                         │

00:01:52 #8721 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:01:52 #8722 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:01:52 #8723 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:01:52 #8724 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:01:52 #8725 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:01:52 #8726 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:01:52 #8727 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:01:52 #8728 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:01:52 #8729 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:01:52 #8730 [Verbose] > │         use super::*;                                                        │

00:01:52 #8731 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:01:52 #8732 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:01:52 #8733 [Verbose] > │         use fable_library_rust::String_::sprintf;                            │

00:01:52 #8734 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:01:52 #8735 [Verbose] > │         pub fn method1(v0: bool) -> bool { v0 }                              │

00:01:52 #8736 [Verbose] > │         pub fn method0() {                                                   │

00:01:52 #8737 [Verbose] > │             let v7: string = string("1\n2\n3\n");                            │

00:01:52 #8738 [Verbose] > │             let v8: string = sprintf!("{:?}", v7.clone());                   │

00:01:52 #8739 [Verbose] > │             printfn!("{0}", v8);                                             │

00:01:52 #8740 [Verbose] > │             {                                                                │

00:01:52 #8741 [Verbose] > │                 let v10: bool = v7.clone() == string("1\n2\n3\n");           │

00:01:52 #8742 [Verbose] > │                 if (if v10 { true } else { Spiral_eval::method1(v10) }) ==   │

00:01:52 #8743 [Verbose] > │                        false {                                               │

00:01:52 #8744 [Verbose] > │                     panic!("{}",                                             │

00:01:52 #8745 [Verbose] > │                            sprintf!("__expect / actual: {:?} / expected:     │

00:01:52 #8746 [Verbose] > │ {:?}", v7, string("1\n2\n3\n")));                                            │

00:01:52 #8747 [Verbose] > │                 }                                                            │

00:01:52 #8748 [Verbose] > │             }                                                                │

00:01:52 #8749 [Verbose] > │         }                                                                    │

00:01:52 #8750 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:01:52 #8751 [Verbose] > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │

00:01:52 #8752 [Verbose] > │     }                                                                        │

00:01:52 #8753 [Verbose] > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │

00:01:52 #8754 [Verbose] > │ }                                                                            │

00:01:52 #8755 [Verbose] > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │

00:01:52 #8756 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:01:52 #8757 [Verbose] > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │

00:01:52 #8758 [Verbose] > │                                                                              │

00:01:52 #8759 [Verbose] > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │

00:01:52 #8760 [Verbose] > │                                                                              │

00:01:52 #8761 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8762 [Verbose] >

00:01:52 #8763 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:52 #8764 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:52 #8765 [Verbose] > │ ## concat_list_heap_trailing                                                 │

00:01:52 #8766 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8767 [Verbose] >

00:01:52 #8768 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:52 #8769 [Verbose] > inl concat_list_heap_trailing separator input =

00:01:52 #8770 [Verbose] >     ("", input)

00:01:52 #8771 [Verbose] >     ||> listm.fold fun acc (x : string) =>

00:01:52 #8772 [Verbose] >         inl acc = acc |> to_std_string

00:01:52 #8773 [Verbose] >         inl x = x |> as_str

00:01:52 #8774 [Verbose] >         inl separator = separator |> as_str

00:01:52 #8775 [Verbose] >         !\($'"!acc + !x + !separator"')

00:01:52 #8776 [Verbose] >         |> from_std_string

00:01:52 #8777 [Verbose] > │ .dni-code-hint {                                                             │

00:01:52 #8778 [Verbose] > │     font-style: italic;                                                      │

00:01:52 #8779 [Verbose] > │     overflow: hidden;                                                        │

00:01:52 #8780 [Verbose] > │     white-space: nowrap;                                                     │

00:01:52 #8781 [Verbose] > │ }                                                                            │

00:01:52 #8782 [Verbose] > │ .dni-tree...                                                                 │

00:01:52 #8783 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8784 [Verbose] >

00:01:52 #8785 [Verbose] > ╭─[ 563.04ms - stdout ]────────────────────────────────────────────────────────╮

00:01:52 #8786 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) =                           │

00:01:52 #8787 [Verbose] > │     v0                                                                       │

00:01:52 #8788 [Verbose] > │ and method0 () : string seq =                                                │

00:01:52 #8789 [Verbose] > │     let v0 : string = "a"                                                    │

00:01:52 #8790 [Verbose] > │     let v1 : string = "b"                                                    │

00:01:52 #8791 [Verbose] > │     let v2 : (string []) = [|v0; v1|]                                        │

00:01:52 #8792 [Verbose] > │     let v3 : (string []) = method1(v2)                                       │

00:01:52 #8793 [Verbose] > │     let v4 : ((string []) -> string seq) = Seq.ofArray                       │

00:01:52 #8794 [Verbose] > │     v4 v3                                                                    │

00:01:52 #8795 [Verbose] > │ method0()                                                                    │

00:01:52 #8796 [Verbose] > │                                                                              │

00:01:52 #8797 [Verbose] > │                                                                              │

00:01:52 #8798 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8799 [Verbose] >

00:01:52 #8800 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:52 #8801 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:52 #8802 [Verbose] > │ ## to_array'                                                                 │

00:01:52 #8803 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8804 [Verbose] >

00:01:52 #8805 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:52 #8806 [Verbose] > inl to_array' forall dim t. (items : seq' t) : a dim t =

00:01:52 #8807 [Verbose] >     $'!items |> Seq.toArray'

00:01:52 #8808 [Verbose] >

00:01:52 #8809 [Verbose] > │         failwith<unit> v29                                                   │

00:01:52 #8810 [Verbose] > │     let v31 : US0 = v2.l0                                                    │

00:01:52 #8811 [Verbose] > │     let v46 : UH0 =                                                          │

00:01:52 #8812 [Verbose] > │         match v31 with                                                       │

00:01:52 #8813 [Verbose] > │         | US0_0(v32) -> (* Computed *)                                       │

00:01:52 #8814 [Verbose] > │             v32                                                              │

00:01:52 #8815 [Verbose] > │         | US0_1(v33) -> (* NotComputed *)                                    │

00:01:52 #8816 [Verbose] > │             let v34 : UH0 = v33 ()                                           │

00:01:52 #8817 [Verbose] > │             let v43 : UH0 =                                                  │

00:01:52 #8818 [Verbose] > │                 match v34 with                                               │

00:01:52 #8819 [Verbose] > │                 | UH0_0(v36, v37) -> (* StreamCons *)                        │

00:01:52 #8820 [Verbose] > │                     let v38 : US0 = US0_1(v37)                               │

00:01:52 #8821 [Verbose] > │                     let v39 : Mut0 = {l0 = v38} : Mut0                       │

00:01:52 #8822 [Verbose] > │                     let v40 : (unit -> UH0) = closure11(v39)                 │

00:01:52 #8823 [Verbose] > │                     UH0_0(v36, v40)                                          │

00:01:52 #8824 [Verbose] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:01:52 #8825 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4720-2007-2afeb98200cf\main.spi

00:01:52 #8826 [Verbose] > │                     UH0_1                                                    │

00:01:52 #8827 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4614-1414-1614c198852b\main.spi

00:01:52 #8828 [Verbose] > │             let v44 : US0 = US0_0(v43)                                       │

00:01:52 #8830 [Verbose] > │             v2.l0 <- v44                                                     │

00:01:52 #8829 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4759-5984-513199233a38\main.spi

00:01:52 #8831 [Verbose] > │             v43                                                              │

00:01:52 #8832 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4812-1214-1ed55efd9961\main.spi

00:01:52 #8833 [Verbose] > │     let v47 : int32 = 5                                                      │

00:01:52 #8834 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4817-1779-150b6cca63e1\main.spi

00:01:52 #8835 [Verbose] > │     let v48 : US1 = method1(v47, v46)                                        │

00:01:52 #8836 [Verbose] > │     let v52 : int32 =                                                        │

00:01:52 #8837 [Verbose] > │         match v48 with                                                       │

00:01:52 #8838 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:01:52 #8839 [Verbose] > │             failwith<int32> "Option does not have a value."                  │

00:01:52 #8840 [Verbose] > │         | US1_1(v49) -> (* Some *)                                           │

00:01:52 #8841 [Verbose] > │             v49                                                              │

00:01:52 #8842 [Verbose] > │     let v53 : string = $"%A{v52}"                                            │

00:01:52 #8843 [Verbose] > │     System.Console.WriteLine v53                                             │

00:01:52 #8844 [Verbose] > │     let v54 : bool = v52 = 5                                                 │

00:01:52 #8845 [Verbose] > │     let v56 : bool =                                                         │

00:01:52 #8846 [Verbose] > │         if v54 then                                                          │

00:01:52 #8847 [Verbose] > │             true                                                             │

00:01:52 #8848 [Verbose] > │         else                                                                 │

00:01:52 #8849 [Verbose] > │             method2(v54)                                                     │

00:01:52 #8850 [Verbose] > │     let v57 : string = $"__expect / actual: %A{v52} / expected: %A{5}"       │

00:01:52 #8851 [Verbose] > │     let v58 : bool = v56 = false                                             │

00:01:52 #8852 [Verbose] > │     if v58 then                                                              │

00:01:52 #8853 [Verbose] > │         failwith<unit> v57                                                   │

00:01:52 #8854 [Verbose] > │ method0()                                                                    │

00:01:52 #8855 [Verbose] > │                                                                              │

00:01:52 #8856 [Verbose] > │ print_and_return / x: 0                                                      │

00:01:52 #8857 [Verbose] > │ print_and_return / x: 1                                                      │

00:01:52 #8858 [Verbose] > │ print_and_return / x: 2                                                      │

00:01:52 #8859 [Verbose] > │ print_and_return / x: 3                                                      │

00:01:52 #8860 [Verbose] > │ 3                                                                            │

00:01:52 #8861 [Verbose] > │ print_and_return / x: 4                                                      │

00:01:52 #8862 [Verbose] > │ print_and_return / x: 5                                                      │

00:01:52 #8863 [Verbose] > │ 5                                                                            │

00:01:52 #8864 [Verbose] > │                                                                              │

00:01:52 #8865 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8866 [Verbose] >

00:01:52 #8867 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:52 #8868 [Verbose] > // // test

00:01:52 #8869 [Verbose] >

00:01:52 #8870 [Verbose] > inl memo_stream = new_infinite_stream_ print_and_return |> memoize

00:01:52 #8871 [Verbose] >

00:01:52 #8872 [Verbose] > memo_stream ()

00:01:52 #8873 [Verbose] > |> item 3i32

00:01:52 #8874 [Verbose] > |> _assert_eq 3i32

00:01:52 #8875 [Verbose] >

00:01:52 #8876 [Verbose] > memo_stream ()

00:01:52 #8877 [Verbose] > |> item 5i32

00:01:52 #8878 [Verbose] > |> _assert_eq 5i32

00:01:52 #8879 [Verbose] > ╭─[ 322.15ms - stdout ]────────────────────────────────────────────────────────╮

00:01:52 #8880 [Verbose] > │ ()                                                                           │

00:01:52 #8881 [Verbose] > │                                                                              │

00:01:52 #8882 [Verbose] > │                                                                              │

00:01:52 #8883 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8884 [Verbose] >

00:01:52 #8885 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:52 #8886 [Verbose] > // // test

00:01:52 #8887 [Verbose] > // // rust=

00:01:52 #8888 [Verbose] >

00:01:52 #8889 [Verbose] > types ()

00:01:52 #8890 [Verbose] >

00:01:52 #8891 [Verbose] > [[

00:01:52 #8892 [Verbose] >     "1"

00:01:52 #8893 [Verbose] >     "2"

00:01:52 #8894 [Verbose] >     "3"

00:01:52 #8895 [Verbose] > ]]

00:01:52 #8896 [Verbose] > |> fun x =>

00:01:52 #8897 [Verbose] >     inl code = (x : _) |> sm'.concat_list_heap_trailing "\n"

00:01:52 #8898 [Verbose] >     code

00:01:52 #8899 [Verbose] >     |> _assert_eq "1\n2\n3\n"

00:01:52 #8900 [Verbose] >

00:01:52 #8901 [Verbose] > ╭─[ 338.33ms - stdout ]────────────────────────────────────────────────────────╮

00:01:52 #8902 [Verbose] > │ ()                                                                           │

00:01:52 #8903 [Verbose] > │                                                                              │

00:01:52 #8904 [Verbose] > │                                                                              │

00:01:52 #8905 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:52 #8906 [Verbose] >

00:01:52 #8907 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:52 #8908 [Verbose] > // // test

00:01:52 #8909 [Verbose] >

00:01:52 #8910 [Verbose] > (a ;[["a"; "b"]] : _ i32 _)

00:01:52 #8911 [Verbose] > |> of_array'

00:01:52 #8912 [Verbose] > |> to_array'

00:01:52 #8913 [Verbose] > |> _assert_eq (a ;[["a"; "b"]] : _ i32 _)

00:01:53 #8914 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4847-4705-49d70cfae7d5\main.spi

00:01:53 #8915 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4849-4957-453bf71583c4\main.spi

00:01:53 #8916 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4851-5179-5d606eda3621\main.spi

00:01:53 #8917 [Verbose] >

00:01:53 #8918 [Verbose] > ╭─[ 647.64ms - stdout ]────────────────────────────────────────────────────────╮

00:01:53 #8919 [Verbose] > │ type UH0 =                                                                   │

00:01:53 #8920 [Verbose] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:01:53 #8921 [Verbose] > │     | UH0_1                                                                  │

00:01:53 #8922 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:53 #8923 [Verbose] > │     | US0_0 of f0_0 : UH0                                                    │

00:01:53 #8924 [Verbose] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:01:53 #8925 [Verbose] > │ and Mut0 = {mutable l0 : US0}                                                │

00:01:53 #8926 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:53 #8927 [Verbose] > │     | US1_0                                                                  │

00:01:53 #8928 [Verbose] > │     | US1_1 of f1_0 : int32                                                  │

00:01:53 #8929 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 =                                     │

00:01:53 #8930 [Verbose] > │     let v1 : int32 = v0 + 1                                                  │

00:01:53 #8931 [Verbose] > │     method1(v1)                                                              │

00:01:53 #8932 [Verbose] > │ and method1 (v0 : int32) : UH0 =                                             │

00:01:53 #8933 [Verbose] > │     printfn $"print_and_return / x: {v0}"                                    │

00:01:53 #8934 [Verbose] > │     let v1 : (unit -> UH0) = closure0(v0)                                    │

00:01:53 #8935 [Verbose] > │     UH0_0(v0, v1)                                                            │

00:01:53 #8936 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 =                                           │

00:01:53 #8937 [Verbose] > │     v0                                                                       │

00:01:53 #8938 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 =                                │

00:01:53 #8939 [Verbose] > │     let v2 : US0 = v1.l0                                                     │

00:01:53 #8940 [Verbose] > │     match v2 with                                                            │

00:01:53 #8941 [Verbose] > │     | US0_0(v3) -> (* Computed *)                                            │

00:01:53 #8942 [Verbose] > │         v3                                                                   │

00:01:53 #8943 [Verbose] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:01:53 #8944 [Verbose] > │         let v5 : UH0 = v4 ()                                                 │

00:01:53 #8945 [Verbose] > │         let v12 : UH0 =                                                      │

00:01:53 #8946 [Verbose] > │             match v5 with                                                    │

00:01:53 #8947 [Verbose] > │             | UH0_0(v7, v8) -> (* StreamCons *)                              │

00:01:53 #8948 [Verbose] > │                 let v9 : (unit -> UH0) = method2(v0, v8)                     │

00:01:53 #8949 [Verbose] > │                 UH0_0(v7, v9)                                                │

00:01:53 #8950 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:01:53 #8951 [Verbose] > │                 UH0_1                                                        │

00:01:53 #8952 [Verbose] > │         let v13 : US0 = US0_0(v12)                                           │

00:01:53 #8953 [Verbose] > │         v1.l0 <- v13                                                         │

00:01:53 #8954 [Verbose] > │         v12                                                                  │

00:01:53 #8955 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) =                 │

00:01:53 #8956 [Verbose] > │     let v2 : US0 = US0_1(v1)                                                 │

00:01:53 #8957 [Verbose] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:01:53 #8958 [Verbose] > │     closure2(v0, v3)                                                         │

00:01:53 #8959 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US1 =                                   │

00:01:53 #8960 [Verbose] > │     match v1 with                                                            │

00:01:53 #8961 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:01:53 #8962 [Verbose] > │         let v4 : bool = v0 <= 0                                              │

00:01:53 #8963 [Verbose] > │         if v4 then                                                           │

00:01:53 #8964 [Verbose] > │             US1_1(v2)                                                        │

00:01:53 #8965 [Verbose] > │         else                                                                 │

00:01:53 #8966 [Verbose] > │             let v6 : int32 = v0 - 1                                          │

00:01:53 #8967 [Verbose] > │             let v7 : UH0 = v3 ()                                             │

00:01:53 #8968 [Verbose] > │             method3(v6, v7)                                                  │

00:01:53 #8969 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:01:53 #8970 [Verbose] > │         US1_0                                                                │

00:01:53 #8971 [Verbose] > │ and method4 (v0 : bool) : bool =                                             │

00:01:53 #8972 [Verbose] > │     v0                                                                       │

00:01:53 #8973 [Verbose] > │ and method0 () : unit =                                                      │

00:01:53 #8974 [Verbose] > │     let v0 : int32 = 0                                                       │

00:01:53 #8975 [Verbose] > │     let v1 : UH0 = method1(v0)                                               │

00:01:53 #8976 [Verbose] > │     let v2 : (unit -> UH0) = closure1(v1)                                    │

00:01:53 #8977 [Verbose] > │     let v3 : (unit -> UH0) = method2(v1, v2)                                 │

00:01:53 #8978 [Verbose] > │     let v4 : UH0 = v3 ()                                                     │

00:01:53 #8979 [Verbose] > │     let v5 : int32 = 3                                                       │

00:01:53 #8980 [Verbose] > │     let v6 : US1 = method3(v5, v4)                                           │

00:01:53 #8981 [Verbose] > │     let v10 : int32 =                                                        │

00:01:53 #8982 [Verbose] > │         match v6 with                                                        │

00:01:53 #8983 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:01:53 #8984 [Verbose] > │             failwith<int32> "Option does not have a value."                  │

00:01:53 #8985 [Verbose] > │         | US1_1(v7) -> (* Some *)                                            │

00:01:53 #8986 [Verbose] > │             v7                                                               │

00:01:53 #8987 [Verbose] > │     let v11 : string = $"%A{v10}"                                            │

00:01:53 #8988 [Verbose] > │     System.Console.WriteLine v11                                             │

00:01:53 #8989 [Verbose] > │     let v12 : bool = v10 = 3                                                 │

00:01:53 #8990 [Verbose] > │     let v14 : bool =                                                         │

00:01:53 #8991 [Verbose] > │         if v12 then                                                          │

00:01:53 #8992 [Verbose] > │             true                                                             │

00:01:53 #8993 [Verbose] > │         else                                                                 │

00:01:53 #8994 [Verbose] > │             method4(v12)                                                     │

00:01:53 #8995 [Verbose] > │     let v15 : string = $"__expect / actual: %A{v10} / expected: %A{3}"       │

00:01:53 #8996 [Verbose] > │     let v16 : bool = v14 = false                                             │

00:01:53 #8997 [Verbose] > │     if v16 then                                                              │

00:01:53 #8998 [Verbose] > │         failwith<unit> v15                                                   │

00:01:53 #8999 [Verbose] > │     let v17 : UH0 = v3 ()                                                    │

00:01:53 #9000 [Verbose] > │     let v18 : int32 = 5                                                      │

00:01:53 #9001 [Verbose] > │     let v19 : US1 = method3(v18, v17)                                        │

00:01:53 #9002 [Verbose] > │     let v23 : int32 =                                                        │

00:01:53 #9003 [Verbose] > │         match v19 with                                                       │

00:01:53 #9004 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:01:53 #9005 [Verbose] > │             failwith<int32> "Option does not have a value."                  │

00:01:53 #9006 [Verbose] > │         | US1_1(v20) -> (* Some *)                                           │

00:01:53 #9007 [Verbose] > │             v20                                                              │

00:01:53 #9008 [Verbose] > │     let v24 : string = $"%A{v23}"                                            │

00:01:53 #9009 [Verbose] > │     System.Console.WriteLine v24                                             │

00:01:53 #9010 [Verbose] > │     let v25 : bool = v23 = 5                                                 │

00:01:53 #9011 [Verbose] > │     let v27 : bool =                                                         │

00:01:53 #9012 [Verbose] >

00:01:53 #9013 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-4931-3143-30e16b26b085\main.spi

00:01:54 #9014 [Verbose] >

00:01:54 #9015 [Verbose] > ╭─[ 11.31s - stdout ]──────────────────────────────────────────────────────────╮

00:01:54 #9016 [Verbose] > │ ()                                                                           │

00:01:54 #9017 [Verbose] > │                                                                              │

00:01:54 #9018 [Verbose] > │                                                                              │

00:01:54 #9019 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:54 #9020 [Verbose] >

00:01:54 #9021 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:54 #9022 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:54 #9023 [Verbose] > │ ## ski                                                                       │

00:01:54 #9024 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:54 #9025 [Verbose] >

00:01:54 #9026 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:54 #9027 [Verbose] > union rec ski =

00:01:54 #9028 [Verbose] >     | I

00:01:54 #9029 [Verbose] >     | K

00:01:54 #9030 [Verbose] >     | S

00:01:54 #9031 [Verbose] >     | App : ski * ski

00:01:54 #9032 [Verbose] >

00:01:54 #9033 [Verbose] > inl rec eval ski =

00:01:54 #9034 [Verbose] >     match ski with

00:01:54 #9035 [Verbose] >     | App (App (K, x), y) => eval x

00:01:54 #9036 [Verbose] >     | App (App (App (S, x), y), z) => eval (App (App (x, z), App (y, z)))

00:01:54 #9037 [Verbose] >     | App (I, x) => eval x

00:01:54 #9038 [Verbose] >     | App (K, x) => App (K, eval x)

00:01:54 #9039 [Verbose] >     | App (f, x) => eval (App (eval f, x))

00:01:54 #9040 [Verbose] >     | _ => ski

00:01:55 #9041 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5044-4430-47fbfc62fa0c\main.spi

00:01:55 #9042 [Verbose] >

00:01:55 #9043 [Verbose] > ╭─[ 397.26ms - stdout ]────────────────────────────────────────────────────────╮

00:01:55 #9044 [Verbose] > │ ()                                                                           │

00:01:55 #9045 [Verbose] > │                                                                              │

00:01:55 #9046 [Verbose] > │                                                                              │

00:01:55 #9047 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:55 #9048 [Verbose] >

00:01:55 #9049 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:55 #9050 [Verbose] > // // test

00:01:55 #9051 [Verbose] >

00:01:55 #9052 [Verbose] > eval I

00:01:55 #9053 [Verbose] > |> _assert_eq I

00:01:55 #9054 [Verbose] >

00:01:55 #9055 [Verbose] > eval (App (I, I))

00:01:55 #9056 [Verbose] > |> _assert_eq I

00:01:55 #9057 [Verbose] >

00:01:55 #9058 [Verbose] > eval (App (I, App (I, I)))

00:01:55 #9059 [Verbose] > |> _assert_eq I

00:01:55 #9060 [Verbose] >

00:01:55 #9061 [Verbose] > eval (App (App (I, I), I))

00:01:55 #9062 [Verbose] > |> _assert_eq I

00:01:55 #9063 [Verbose] >

00:01:55 #9064 [Verbose] > eval (App (App (App (I, I), I), I))

00:01:55 #9065 [Verbose] > |> _assert_eq I

00:01:55 #9066 [Verbose] >

00:01:55 #9067 [Verbose] > eval K

00:01:55 #9068 [Verbose] > |> _assert_eq K

00:01:55 #9069 [Verbose] >

00:01:55 #9070 [Verbose] > eval (App (K, I))

00:01:55 #9071 [Verbose] > |> _assert_eq (App (K, I))

00:01:55 #9072 [Verbose] >

00:01:55 #9073 [Verbose] > eval (App (K, K))

00:01:55 #9074 [Verbose] > |> _assert_eq (App (K, K))

00:01:55 #9075 [Verbose] >

00:01:55 #9076 [Verbose] > eval (App (App (K, I), K))

00:01:55 #9077 [Verbose] > |> _assert_eq I

00:01:55 #9078 [Verbose] >

00:01:55 #9079 [Verbose] > eval (App (App (K, K), I))

00:01:55 #9080 [Verbose] > |> _assert_eq K

00:01:55 #9081 [Verbose] >

00:01:55 #9082 [Verbose] > eval (App (App (App (App (K, K), I), S), K))

00:01:55 #9083 [Verbose] > |> _assert_eq S

00:01:55 #9084 [Verbose] >

00:01:55 #9085 [Verbose] > eval S

00:01:55 #9086 [Verbose] > |> _assert_eq S

00:01:55 #9087 [Verbose] >

00:01:55 #9088 [Verbose] > eval (App (App (App (S, I), I), I))

00:01:55 #9089 [Verbose] > |> _assert_eq I

00:01:55 #9090 [Verbose] >

00:01:55 #9091 [Verbose] > eval (App (App (App (S, K), K), I))

00:01:55 #9092 [Verbose] > |> _assert_eq I

00:01:55 #9093 [Verbose] >

00:01:55 #9094 [Verbose] > eval (App (App (App (S, K), I), (App (App (K, I), S))))

00:01:55 #9095 [Verbose] > |> _assert_eq I

00:01:55 #9096 [Verbose] >

00:01:55 #9097 [Verbose] > eval (App (App (K, S), App (I, App (App (App (S, K), S), I))))

00:01:55 #9098 [Verbose] > |> _assert_eq S

00:01:55 #9099 [Verbose] >

00:01:55 #9100 [Verbose] > eval (App (App (App (S, K), I), K))

00:01:55 #9101 [Verbose] > |> _assert_eq K

00:01:55 #9102 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5083-8338-871653061528\main.spi

00:01:57 #9103 [Verbose] > │         if v25 then                                                          │

00:01:57 #9104 [Verbose] > │             true                                                             │

00:01:57 #9105 [Verbose] > │         else                                                                 │

00:01:57 #9106 [Verbose] > │             method4(v25)                                                     │

00:01:57 #9107 [Verbose] > │     let v28 : string = $"__expect / actual: %A{v23} / expected: %A{5}"       │

00:01:57 #9108 [Verbose] > │     let v29 : bool = v27 = false                                             │

00:01:57 #9109 [Verbose] > │     if v29 then                                                              │

00:01:57 #9110 [Verbose] > │         failwith<unit> v28                                                   │

00:01:57 #9111 [Verbose] > │ method0()                                                                    │

00:01:57 #9112 [Verbose] > │                                                                              │

00:01:57 #9113 [Verbose] > │ print_and_return / x: 0                                                      │

00:01:57 #9114 [Verbose] > │ print_and_return / x: 1                                                      │

00:01:57 #9115 [Verbose] > │ print_and_return / x: 2                                                      │

00:01:57 #9116 [Verbose] > │ print_and_return / x: 3                                                      │

00:01:57 #9117 [Verbose] > │ 3                                                                            │

00:01:57 #9118 [Verbose] > │ print_and_return / x: 4                                                      │

00:01:57 #9119 [Verbose] > │ print_and_return / x: 5                                                      │

00:01:57 #9120 [Verbose] > │ 5                                                                            │

00:01:57 #9121 [Verbose] > │                                                                              │

00:01:57 #9122 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:57 #9123 [Verbose] >

00:01:57 #9124 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:57 #9125 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:57 #9126 [Verbose] > │ ## unfold                                                                    │

00:01:57 #9127 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:57 #9128 [Verbose] >

00:01:57 #9129 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:57 #9130 [Verbose] > inl unfold f x0 =

00:01:57 #9131 [Verbose] >     inl rec body x =

00:01:57 #9132 [Verbose] >         match f x with

00:01:57 #9133 [Verbose] >         | Some (x', y) => StreamCons (x', fun () => loop y)

00:01:57 #9134 [Verbose] >         | None => StreamNil

00:01:57 #9135 [Verbose] >     and inl loop x = join_body_unit body x0 x

00:01:57 #9136 [Verbose] >     loop x0

00:01:57 #9137 [Verbose] >

00:01:57 #9138 [Verbose] > ╭─[ 385.81ms - stdout ]────────────────────────────────────────────────────────╮

00:01:57 #9139 [Verbose] > │ ()                                                                           │

00:01:57 #9140 [Verbose] > │                                                                              │

00:01:57 #9141 [Verbose] > │                                                                              │

00:01:57 #9142 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:57 #9143 [Verbose] >

00:01:57 #9144 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:57 #9145 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:57 #9146 [Verbose] > │ ## iterate                                                                   │

00:01:57 #9147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:57 #9148 [Verbose] >

00:01:57 #9149 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:57 #9150 [Verbose] > inl iterate f =

00:01:57 #9151 [Verbose] >     unfold (fun x => Some (x, f x))

00:01:57 #9152 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5299-9954-9a1d4f3ea95a\main.spi

00:01:58 #9153 [Verbose] >

00:01:58 #9154 [Verbose] > ╭─[ 975.94ms - stdout ]────────────────────────────────────────────────────────╮

00:01:58 #9155 [Verbose] > │ ()                                                                           │

00:01:58 #9156 [Verbose] > │                                                                              │

00:01:58 #9157 [Verbose] > │                                                                              │

00:01:58 #9158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9159 [Verbose] > ╭─[ 932.00ms - stdout ]────────────────────────────────────────────────────────╮

00:01:58 #9160 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) =                           │

00:01:58 #9161 [Verbose] > │     v0                                                                       │

00:01:58 #9162 [Verbose] > │ and method2 (v0 : (string []), v1 : (string []), v2 : int32) : bool =        │

00:01:58 #9163 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:01:58 #9165 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:58 #9164 [Verbose] >

00:01:58 #9166 [Verbose] > │     if v4 then                                                               │

00:01:58 #9167 [Verbose] > │         let v5 : string = v0.[int v2]                                        │

00:01:58 #9168 [Verbose] > │         let v6 : string = v1.[int v2]                                        │

00:01:58 #9169 [Verbose] > │         let v7 : bool = v5 = v6                                              │

00:01:58 #9170 [Verbose] > │         if v7 then                                                           │

00:01:58 #9171 [Verbose] > │             let v8 : int32 = v2 + 1                                          │

00:01:58 #9172 [Verbose] > │             method2(v0, v1, v8)                                              │

00:01:58 #9173 [Verbose] > │         else                                                                 │

00:01:58 #9174 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:58 #9175 [Verbose] > │             false                                                            │

00:01:58 #9176 [Verbose] > // // test

00:01:58 #9177 [Verbose] > │     else                                                                     │

00:01:58 #9178 [Verbose] >

00:01:58 #9179 [Verbose] > │         true                                                                 │

00:01:58 #9181 [Verbose] > │ and method3 (v0 : bool) : bool =                                             │

00:01:58 #9180 [Verbose] > iterate ((*) 2) 1i32

00:01:58 #9182 [Verbose] > │     v0                                                                       │

00:01:58 #9183 [Verbose] > |> item 10i32

00:01:58 #9184 [Verbose] > │ and method0 () : unit =                                                      │

00:01:58 #9185 [Verbose] > |> _assert_eq 1024

00:01:58 #9186 [Verbose] > │     let v0 : string = "a"                                                    │

00:01:58 #9187 [Verbose] > │     let v1 : string = "b"                                                    │

00:01:58 #9188 [Verbose] > │     let v2 : (string []) = [|v0; v1|]                                        │

00:01:58 #9189 [Verbose] > │     let v3 : (string []) = method1(v2)                                       │

00:01:58 #9190 [Verbose] > │     let v4 : string seq = seq { for i = 0 to v3.Length - 1 do yield v3.[i] } │

00:01:58 #9191 [Verbose] > │     let v5 : (string []) = v4 |> Seq.toArray                                 │

00:01:58 #9192 [Verbose] > │     let v6 : (string []) = [|v0; v1|]                                        │

00:01:58 #9193 [Verbose] > │     let v7 : (string []) = method1(v6)                                       │

00:01:58 #9194 [Verbose] > │     let v8 : string = $"%A{v5}"                                              │

00:01:58 #9195 [Verbose] > │     System.Console.WriteLine v8                                              │

00:01:58 #9196 [Verbose] > │     let v9 : int32 = v5.Length                                               │

00:01:58 #9197 [Verbose] > │     let v10 : int32 = v7.Length                                              │

00:01:58 #9198 [Verbose] > │     let v11 : bool = v9 = v10                                                │

00:01:58 #9199 [Verbose] > │     let v12 : bool = v11 <> true                                             │

00:01:58 #9200 [Verbose] > │     let v15 : bool =                                                         │

00:01:58 #9201 [Verbose] > │         if v12 then                                                          │

00:01:58 #9202 [Verbose] > │             false                                                            │

00:01:58 #9203 [Verbose] > │         else                                                                 │

00:01:58 #9204 [Verbose] > │             let v13 : int32 = 0                                              │

00:01:58 #9205 [Verbose] > │             method2(v5, v7, v13)                                             │

00:01:58 #9206 [Verbose] > │     let v17 : bool =                                                         │

00:01:58 #9207 [Verbose] > │         if v15 then                                                          │

00:01:58 #9208 [Verbose] > │             true                                                             │

00:01:58 #9209 [Verbose] > │         else                                                                 │

00:01:58 #9210 [Verbose] > │             method3(v15)                                                     │

00:01:58 #9211 [Verbose] > │     let v18 : string = $"__expect / actual: %A{v5} / expected: %A{v7}"       │

00:01:58 #9212 [Verbose] > │     let v19 : bool = v17 = false                                             │

00:01:58 #9213 [Verbose] > │     if v19 then                                                              │

00:01:58 #9214 [Verbose] > │         failwith<unit> v18                                                   │

00:01:58 #9215 [Verbose] > │ method0()                                                                    │

00:01:58 #9216 [Verbose] > │                                                                              │

00:01:58 #9217 [Verbose] > │ [|"a"; "b"|]                                                                 │

00:01:58 #9218 [Verbose] > │                                                                              │

00:01:58 #9219 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9220 [Verbose] >

00:01:58 #9221 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:58 #9222 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:58 #9223 [Verbose] > │ ## seq                                                                       │

00:01:58 #9224 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9225 [Verbose] >

00:01:58 #9226 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:58 #9227 [Verbose] > type seq dim el = dim -> option el

00:01:58 #9228 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5397-9751-91ec1bc2e7d1\main.spi

00:01:58 #9229 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5399-9977-9f0720bc2f8d\main.spi

00:01:58 #9230 [Verbose] >

00:01:58 #9231 [Verbose] > ╭─[ 325.81ms - stdout ]────────────────────────────────────────────────────────╮

00:01:58 #9232 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:58 #9233 [Verbose] > │     let v0 : string = $"%A{1024}"                                            │

00:01:58 #9234 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:58 #9235 [Verbose] > │     let v1 : string = $"__expect / actual: %A{1024} / expected: %A{1024}"    │

00:01:58 #9236 [Verbose] > │     ()                                                                       │

00:01:58 #9237 [Verbose] > │ method0()                                                                    │

00:01:58 #9238 [Verbose] > │                                                                              │

00:01:58 #9239 [Verbose] > │ 1024                                                                         │

00:01:58 #9240 [Verbose] > │                                                                              │

00:01:58 #9241 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9242 [Verbose] >

00:01:58 #9243 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:58 #9244 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:58 #9245 [Verbose] > │ ## take_while                                                                │

00:01:58 #9246 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9247 [Verbose] >

00:01:58 #9248 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:58 #9249 [Verbose] > inl take_while cond s =

00:01:58 #9250 [Verbose] >     inl rec body i = function

00:01:58 #9251 [Verbose] >         | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop

00:01:58 #9252 [Verbose] > (i + 1) (fn ()))

00:01:58 #9253 [Verbose] >         | _ => StreamNil

00:01:58 #9254 [Verbose] >     and inl loop i = join_body body i

00:01:58 #9255 [Verbose] >     loop 0 s

00:01:58 #9256 [Verbose] >

00:01:58 #9257 [Verbose] > ╭─[ 330.42ms - stdout ]────────────────────────────────────────────────────────╮

00:01:58 #9258 [Verbose] > │ ()                                                                           │

00:01:58 #9259 [Verbose] > │                                                                              │

00:01:58 #9260 [Verbose] > │                                                                              │

00:01:58 #9261 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9262 [Verbose] >

00:01:58 #9263 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:58 #9264 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:58 #9265 [Verbose] > │ ## try_item                                                                  │

00:01:58 #9266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:58 #9267 [Verbose] >

00:01:58 #9268 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:58 #9269 [Verbose] > inl try_item n s =

00:01:58 #9270 [Verbose] >     n |> s

00:01:58 #9271 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5260-6071-6bd03b16cb33\main.spi

00:01:58 #9272 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5431-3116-384bf4daccf1\main.spi

00:01:58 #9273 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5433-3304-3c11ab4777de\main.spi

00:01:58 #9274 [Verbose] >

00:01:58 #9275 [Verbose] > ╭─[ 3.69s - stdout ]───────────────────────────────────────────────────────────╮

00:01:58 #9276 [Verbose] > │ type UH0 =                                                                   │

00:01:58 #9277 [Verbose] > │     | UH0_0 of UH0 * UH0                                                     │

00:01:58 #9278 [Verbose] > │     | UH0_1                                                                  │

00:01:58 #9279 [Verbose] > │     | UH0_2                                                                  │

00:01:58 #9280 [Verbose] > │     | UH0_3                                                                  │

00:01:58 #9281 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:58 #9282 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:01:58 #9283 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:01:58 #9284 [Verbose] > │     System.Console.WriteLine v1                                              │

00:01:58 #9285 [Verbose] > │     let v5 : UH0 = UH0_1                                                     │

00:01:59 #9286 [Verbose] > │     let v6 : UH0 = UH0_1                                                     │

00:01:59 #9287 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:01:59 #9288 [Verbose] > │     let v8 : UH0 = UH0_1                                                     │

00:01:59 #9289 [Verbose] > │     let v9 : string = $"%A{v8}"                                              │

00:01:59 #9290 [Verbose] > │     System.Console.WriteLine v9                                              │

00:01:59 #9291 [Verbose] > │     let v13 : UH0 = UH0_1                                                    │

00:01:59 #9292 [Verbose] >

00:01:59 #9293 [Verbose] > │     let v14 : UH0 = UH0_1                                                    │

00:01:59 #9294 [Verbose] > │     let v15 : string = $"__expect / actual: %A{v13} / expected: %A{v14}"     │

00:01:59 #9295 [Verbose] > ╭─[ 283.22ms - stdout ]────────────────────────────────────────────────────────╮

00:01:59 #9296 [Verbose] > │ ()                                                                           │

00:01:59 #9297 [Verbose] > │     let v16 : UH0 = UH0_1                                                    │

00:01:59 #9298 [Verbose] > │                                                                              │

00:01:59 #9299 [Verbose] > │     let v17 : string = $"%A{v16}"                                            │

00:01:59 #9300 [Verbose] > │                                                                              │

00:01:59 #9301 [Verbose] > │     System.Console.WriteLine v17                                             │

00:01:59 #9302 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9303 [Verbose] > │     let v21 : UH0 = UH0_1                                                    │

00:01:59 #9304 [Verbose] >

00:01:59 #9305 [Verbose] > │     let v22 : UH0 = UH0_1                                                    │

00:01:59 #9306 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:59 #9307 [Verbose] > │     let v23 : string = $"__expect / actual: %A{v21} / expected: %A{v22}"     │

00:01:59 #9308 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:59 #9309 [Verbose] > │     let v24 : UH0 = UH0_1                                                    │

00:01:59 #9310 [Verbose] > │ ## sum                                                                       │

00:01:59 #9311 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9312 [Verbose] > │     let v25 : string = $"%A{v24}"                                            │

00:01:59 #9313 [Verbose] > │     System.Console.WriteLine v25                                             │

00:01:59 #9314 [Verbose] >

00:01:59 #9315 [Verbose] > │     let v29 : UH0 = UH0_1                                                    │

00:01:59 #9317 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:59 #9316 [Verbose] > │     let v30 : UH0 = UH0_1                                                    │

00:01:59 #9318 [Verbose] > inl sum seq =

00:01:59 #9319 [Verbose] > │     let v31 : string = $"__expect / actual: %A{v29} / expected: %A{v30}"     │

00:01:59 #9320 [Verbose] >     seq |> fold (+) 0

00:01:59 #9321 [Verbose] > │     let v32 : UH0 = UH0_1                                                    │

00:01:59 #9322 [Verbose] > │     let v33 : string = $"%A{v32}"                                            │

00:01:59 #9323 [Verbose] > │     System.Console.WriteLine v33                                             │

00:01:59 #9324 [Verbose] > │     let v37 : UH0 = UH0_1                                                    │

00:01:59 #9325 [Verbose] > │     let v38 : UH0 = UH0_1                                                    │

00:01:59 #9326 [Verbose] > │     let v39 : string = $"__expect / actual: %A{v37} / expected: %A{v38}"     │

00:01:59 #9327 [Verbose] >

00:01:59 #9328 [Verbose] > │     let v40 : UH0 = UH0_2                                                    │

00:01:59 #9329 [Verbose] > │     let v41 : string = $"%A{v40}"                                            │

00:01:59 #9330 [Verbose] > │     System.Console.WriteLine v41                                             │

00:01:59 #9331 [Verbose] > ╭─[ 276.82ms - stdout ]────────────────────────────────────────────────────────╮

00:01:59 #9333 [Verbose] > │ ()                                                                           │

00:01:59 #9332 [Verbose] > │     let v45 : UH0 = UH0_2                                                    │

00:01:59 #9334 [Verbose] > │                                                                              │

00:01:59 #9335 [Verbose] > │     let v46 : UH0 = UH0_2                                                    │

00:01:59 #9336 [Verbose] > │     let v47 : string = $"__expect / actual: %A{v45} / expected: %A{v46}"     │

00:01:59 #9337 [Verbose] > │                                                                              │

00:01:59 #9338 [Verbose] > │     let v48 : UH0 = UH0_2                                                    │

00:01:59 #9339 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9340 [Verbose] > │     let v49 : UH0 = UH0_1                                                    │

00:01:59 #9341 [Verbose] >

00:01:59 #9342 [Verbose] > │     let v50 : UH0 = UH0_0(v48, v49)                                          │

00:01:59 #9343 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:59 #9344 [Verbose] > │     let v51 : string = $"%A{v50}"                                            │

00:01:59 #9345 [Verbose] > │     System.Console.WriteLine v51                                             │

00:01:59 #9346 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:59 #9347 [Verbose] > │     let v63 : UH0 = UH0_2                                                    │

00:01:59 #9348 [Verbose] > │ ## from_list                                                                 │

00:01:59 #9349 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9350 [Verbose] > │     let v64 : UH0 = UH0_1                                                    │

00:01:59 #9351 [Verbose] > │     let v65 : UH0 = UH0_0(v63, v64)                                          │

00:01:59 #9352 [Verbose] > │     let v66 : UH0 = UH0_2                                                    │

00:01:59 #9353 [Verbose] > │     let v67 : UH0 = UH0_1                                                    │

00:01:59 #9354 [Verbose] >

00:01:59 #9355 [Verbose] > │     let v68 : UH0 = UH0_0(v66, v67)                                          │

00:01:59 #9356 [Verbose] > │     let v69 : string = $"__expect / actual: %A{v65} / expected: %A{v68}"     │

00:01:59 #9357 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:59 #9358 [Verbose] > │     let v70 : UH0 = UH0_2                                                    │

00:01:59 #9359 [Verbose] > inl from_list list =

00:01:59 #9360 [Verbose] >     fun n =>

00:01:59 #9361 [Verbose] >         list

00:01:59 #9362 [Verbose] > │     let v71 : UH0 = UH0_2                                                    │

00:01:59 #9363 [Verbose] >         |> listm'.try_item n

00:01:59 #9364 [Verbose] > │     let v72 : UH0 = UH0_0(v70, v71)                                          │

00:01:59 #9365 [Verbose] > │     let v73 : string = $"%A{v72}"                                            │

00:01:59 #9366 [Verbose] > │     System.Console.WriteLine v73                                             │

00:01:59 #9367 [Verbose] > │     let v85 : UH0 = UH0_2                                                    │

00:01:59 #9368 [Verbose] > │     let v86 : UH0 = UH0_2                                                    │

00:01:59 #9369 [Verbose] > │     let v87 : UH0 = UH0_0(v85, v86)                                          │

00:01:59 #9370 [Verbose] > │     let v88 : UH0 = UH0_2                                                    │

00:01:59 #9371 [Verbose] > │     let v89 : UH0 = UH0_2                                                    │

00:01:59 #9372 [Verbose] > │     let v90 : UH0 = UH0_0(v88, v89)                                          │

00:01:59 #9373 [Verbose] > │     let v91 : string = $"__expect / actual: %A{v87} / expected: %A{v90}"     │

00:01:59 #9374 [Verbose] > │     let v92 : UH0 = UH0_1                                                    │

00:01:59 #9375 [Verbose] > │     let v93 : string = $"%A{v92}"                                            │

00:01:59 #9376 [Verbose] > │     System.Console.WriteLine v93                                             │

00:01:59 #9377 [Verbose] > │     let v97 : UH0 = UH0_1                                                    │

00:01:59 #9378 [Verbose] > │     let v98 : UH0 = UH0_1                                                    │

00:01:59 #9379 [Verbose] > │     let v99 : string = $"__expect / actual: %A{v97} / expected: %A{v98}"     │

00:01:59 #9380 [Verbose] > │     let v100 : UH0 = UH0_2                                                   │

00:01:59 #9381 [Verbose] > │     let v101 : string = $"%A{v100}"                                          │

00:01:59 #9382 [Verbose] > │     System.Console.WriteLine v101                                            │

00:01:59 #9383 [Verbose] > │     let v105 : UH0 = UH0_2                                                   │

00:01:59 #9384 [Verbose] > │     let v106 : UH0 = UH0_2                                                   │

00:01:59 #9385 [Verbose] > │     let v107 : string = $"__expect / actual: %A{v105} / expected: %A{v106}"  │

00:01:59 #9386 [Verbose] > │     let v108 : UH0 = UH0_3                                                   │

00:01:59 #9387 [Verbose] > │     let v109 : string = $"%A{v108}"                                          │

00:01:59 #9388 [Verbose] > │     System.Console.WriteLine v109                                            │

00:01:59 #9389 [Verbose] > │     let v113 : UH0 = UH0_3                                                   │

00:01:59 #9390 [Verbose] > │     let v114 : UH0 = UH0_3                                                   │

00:01:59 #9391 [Verbose] > │     let v115 : string = $"__expect / actual: %A{v113} / expected: %A{v114}"  │

00:01:59 #9392 [Verbose] > │     let v116 : UH0 = UH0_3                                                   │

00:01:59 #9393 [Verbose] > │     let v117 : string = $"%A{v116}"                                          │

00:01:59 #9394 [Verbose] > │     System.Console.WriteLine v117                                            │

00:01:59 #9395 [Verbose] > │     let v121 : UH0 = UH0_3                                                   │

00:01:59 #9396 [Verbose] > │     let v122 : UH0 = UH0_3                                                   │

00:01:59 #9397 [Verbose] > │     let v123 : string = $"__expect / actual: %A{v121} / expected: %A{v122}"  │

00:01:59 #9398 [Verbose] > │     let v124 : UH0 = UH0_1                                                   │

00:01:59 #9399 [Verbose] > │     let v125 : string = $"%A{v124}"                                          │

00:01:59 #9400 [Verbose] > │     System.Console.WriteLine v125                                            │

00:01:59 #9401 [Verbose] > │     let v129 : UH0 = UH0_1                                                   │

00:01:59 #9402 [Verbose] > │     let v130 : UH0 = UH0_1                                                   │

00:01:59 #9403 [Verbose] > │     let v131 : string = $"__expect / actual: %A{v129} / expected: %A{v130}"  │

00:01:59 #9404 [Verbose] > │     let v132 : UH0 = UH0_1                                                   │

00:01:59 #9405 [Verbose] > │     let v133 : string = $"%A{v132}"                                          │

00:01:59 #9406 [Verbose] > │     System.Console.WriteLine v133                                            │

00:01:59 #9407 [Verbose] > │     let v137 : UH0 = UH0_1                                                   │

00:01:59 #9408 [Verbose] > │     let v138 : UH0 = UH0_1                                                   │

00:01:59 #9409 [Verbose] > │     let v139 : string = $"__expect / actual: %A{v137} / expected: %A{v138}"  │

00:01:59 #9410 [Verbose] > │     let v140 : UH0 = UH0_1                                                   │

00:01:59 #9411 [Verbose] > │     let v141 : string = $"%A{v140}"                                          │

00:01:59 #9412 [Verbose] > │     System.Console.WriteLine v141                                            │

00:01:59 #9413 [Verbose] > │     let v145 : UH0 = UH0_1                                                   │

00:01:59 #9414 [Verbose] > │     let v146 : UH0 = UH0_1                                                   │

00:01:59 #9415 [Verbose] > │     let v147 : string = $"__expect / actual: %A{v145} / expected: %A{v146}"  │

00:01:59 #9416 [Verbose] > │     let v148 : UH0 = UH0_3                                                   │

00:01:59 #9417 [Verbose] > │     let v149 : string = $"%A{v148}"                                          │

00:01:59 #9418 [Verbose] > │     System.Console.WriteLine v149                                            │

00:01:59 #9419 [Verbose] > │     let v153 : UH0 = UH0_3                                                   │

00:01:59 #9420 [Verbose] > │     let v154 : UH0 = UH0_3                                                   │

00:01:59 #9421 [Verbose] > │     let v155 : string = $"__expect / actual: %A{v153} / expected: %A{v154}"  │

00:01:59 #9422 [Verbose] > │     let v156 : UH0 = UH0_2                                                   │

00:01:59 #9423 [Verbose] > │     let v157 : string = $"%A{v156}"                                          │

00:01:59 #9424 [Verbose] > │     System.Console.WriteLine v157                                            │

00:01:59 #9425 [Verbose] > │     let v161 : UH0 = UH0_2                                                   │

00:01:59 #9426 [Verbose] > │     let v162 : UH0 = UH0_2                                                   │

00:01:59 #9427 [Verbose] > │     let v163 : string = $"__expect / actual: %A{v161} / expected: %A{v162}"  │

00:01:59 #9428 [Verbose] > │     ()                                                                       │

00:01:59 #9429 [Verbose] > │ method0()                                                                    │

00:01:59 #9430 [Verbose] > │                                                                              │

00:01:59 #9431 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9432 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9433 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9434 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9435 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9436 [Verbose] > │ UH0_2                                                                        │

00:01:59 #9437 [Verbose] > │ UH0_0 (UH0_2, UH0_1)                                                         │

00:01:59 #9438 [Verbose] > │ UH0_0 (UH0_2, UH0_2)                                                         │

00:01:59 #9439 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9440 [Verbose] > │ UH0_2                                                                        │

00:01:59 #9441 [Verbose] > │ UH0_3                                                                        │

00:01:59 #9442 [Verbose] > │ UH0_3                                                                        │

00:01:59 #9443 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9444 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9445 [Verbose] > │ UH0_1                                                                        │

00:01:59 #9446 [Verbose] > │ UH0_3                                                                        │

00:01:59 #9447 [Verbose] > │ UH0_2                                                                        │

00:01:59 #9448 [Verbose] > │                                                                              │

00:01:59 #9449 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9450 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5460-6005-6ac409852be6\main.spi

00:01:59 #9451 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5461-6161-676254eea4fc\main.spi

00:01:59 #9452 [Verbose] >

00:01:59 #9453 [Verbose] > ╭─[ 289.04ms - stdout ]────────────────────────────────────────────────────────╮

00:01:59 #9454 [Verbose] > │ ()                                                                           │

00:01:59 #9455 [Verbose] > │                                                                              │

00:01:59 #9456 [Verbose] >

00:01:59 #9457 [Verbose] > │                                                                              │

00:01:59 #9458 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9459 [Verbose] > ╭─[ 309.04ms - stdout ]────────────────────────────────────────────────────────╮

00:01:59 #9460 [Verbose] > │ ()                                                                           │

00:01:59 #9461 [Verbose] > │                                                                              │

00:01:59 #9462 [Verbose] > │                                                                              │

00:01:59 #9463 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9464 [Verbose] >

00:01:59 #9465 [Verbose] >

00:01:59 #9466 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:59 #9467 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:59 #9468 [Verbose] > // // test

00:01:59 #9469 [Verbose] >

00:01:59 #9470 [Verbose] > listm.init 10i32 id

00:01:59 #9471 [Verbose] > |> from_list

00:01:59 #9472 [Verbose] > |> sum

00:01:59 #9473 [Verbose] > |> _assert_eq 45

00:01:59 #9474 [Verbose] > // // test

00:01:59 #9475 [Verbose] >

00:01:59 #9476 [Verbose] > listm.init 10i32 print_and_return

00:01:59 #9477 [Verbose] > |> from_list

00:01:59 #9478 [Verbose] > |> try_item 5i32

00:01:59 #9479 [Verbose] > |> _assert_eq (Some 5i32)

00:01:59 #9480 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5491-9143-9abec74b84b6\main.spi

00:01:59 #9481 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5491-9185-98630d7244d8\main.spi

00:01:59 #9482 [Verbose] >

00:01:59 #9483 [Verbose] > ╭─[ 317.96ms - stdout ]────────────────────────────────────────────────────────╮

00:01:59 #9484 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:59 #9485 [Verbose] > │     let v0 : string = $"%A{45}"                                              │

00:01:59 #9486 [Verbose] > │     System.Console.WriteLine v0                                              │

00:01:59 #9487 [Verbose] > │     let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:01:59 #9488 [Verbose] > │     ()                                                                       │

00:01:59 #9489 [Verbose] > │ method0()                                                                    │

00:01:59 #9490 [Verbose] > │                                                                              │

00:01:59 #9491 [Verbose] > │ 45                                                                           │

00:01:59 #9492 [Verbose] > │                                                                              │

00:01:59 #9493 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:59 #9494 [Verbose] >

00:01:59 #9495 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:59 #9496 [Verbose] > // // test

00:01:59 #9497 [Verbose] >

00:01:59 #9498 [Verbose] > new_finite_stream print_and_return 10i32

00:01:59 #9499 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)

00:01:59 #9500 [Verbose] > |> sum

00:01:59 #9501 [Verbose] > |> _assert_eq 10

00:01:59 #9502 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5524-2409-2c421091c924\main.spi

00:02:00 #9503 [Verbose] >

00:02:00 #9504 [Verbose] > ╭─[ 354.59ms - stdout ]────────────────────────────────────────────────────────╮

00:02:00 #9505 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:00 #9506 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:00 #9507 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:00 #9508 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:00 #9509 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:00 #9510 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:00 #9511 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:00 #9512 [Verbose] > │     let v0 : string = $"%A{10}"                                              │

00:02:00 #9513 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:00 #9514 [Verbose] > │     let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}"        │

00:02:00 #9515 [Verbose] > │     ()                                                                       │

00:02:00 #9516 [Verbose] > │ method0()                                                                    │

00:02:00 #9517 [Verbose] > │                                                                              │

00:02:00 #9518 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:00 #9519 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:00 #9520 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:00 #9521 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:00 #9522 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:00 #9523 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:00 #9524 [Verbose] > │ 10                                                                           │

00:02:00 #9525 [Verbose] > │                                                                              │

00:02:00 #9526 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:00 #9527 [Verbose] >

00:02:00 #9528 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:00 #9529 [Verbose] > // // test

00:02:00 #9530 [Verbose] >

00:02:00 #9531 [Verbose] > new_infinite_stream print_and_return

00:02:00 #9532 [Verbose] > |> take_while (fun n (_ : i32) => n < 5i32)

00:02:00 #9533 [Verbose] > |> sum

00:02:00 #9534 [Verbose] > |> _assert_eq 10

00:02:00 #9535 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5562-6291-6bbce2a600b4\main.spi

00:02:00 #9536 [Verbose] >

00:02:00 #9537 [Verbose] > ╭─[ 675.63ms - stdout ]────────────────────────────────────────────────────────╮

00:02:00 #9538 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:00 #9539 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:00 #9540 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:00 #9541 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:00 #9542 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:00 #9543 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:00 #9544 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:00 #9545 [Verbose] > │     let v0 : string = $"%A{10}"                                              │

00:02:00 #9546 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:00 #9547 [Verbose] > │     let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}"        │

00:02:00 #9548 [Verbose] > │     ()                                                                       │

00:02:00 #9549 [Verbose] > │ method0()                                                                    │

00:02:00 #9550 [Verbose] > │                                                                              │

00:02:00 #9551 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:00 #9552 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:00 #9553 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:00 #9554 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:00 #9555 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:00 #9556 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:00 #9557 [Verbose] > │ 10                                                                           │

00:02:00 #9558 [Verbose] > │                                                                              │

00:02:00 #9559 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:00 #9560 [Verbose] >

00:02:00 #9561 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:00 #9562 [Verbose] > // // test

00:02:00 #9563 [Verbose] >

00:02:00 #9564 [Verbose] > iterate ((*) 6) 1i32

00:02:00 #9565 [Verbose] > |> take_while (fun _ i => i <= 7i32)

00:02:00 #9566 [Verbose] > |> to_list

00:02:00 #9567 [Verbose] > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]

00:02:00 #9568 [Verbose] >

00:02:00 #9569 [Verbose] > ╭─[ 1.51s - stdout ]───────────────────────────────────────────────────────────╮

00:02:00 #9570 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:00 #9571 [Verbose] > │     | US0_0                                                                  │

00:02:00 #9572 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:00 #9573 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:00 #9574 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:00 #9575 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:00 #9576 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:00 #9577 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:00 #9578 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:00 #9579 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:00 #9580 [Verbose] > │     printfn $"print_and_return / x: {6}"                                     │

00:02:00 #9581 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5631-3177-3421a2de0bb6\main.spi

00:02:01 #9582 [Verbose] > │     printfn $"print_and_return / x: {7}"                                     │

00:02:01 #9583 [Verbose] > │     printfn $"print_and_return / x: {8}"                                     │

00:02:01 #9584 [Verbose] > │     printfn $"print_and_return / x: {9}"                                     │

00:02:01 #9585 [Verbose] > │     let v0 : US0 = US0_1(5)                                                  │

00:02:01 #9586 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:01 #9587 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:01 #9588 [Verbose] > │     let v5 : US0 = US0_1(5)                                                  │

00:02:01 #9589 [Verbose] > │     let v6 : US0 = US0_1(5)                                                  │

00:02:01 #9590 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:02:01 #9591 [Verbose] > │     ()                                                                       │

00:02:01 #9592 [Verbose] > │ method0()                                                                    │

00:02:01 #9593 [Verbose] > │                                                                              │

00:02:01 #9594 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:01 #9595 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:01 #9596 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:01 #9597 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:01 #9598 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:01 #9599 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:01 #9600 [Verbose] > │ print_and_return / x: 6                                                      │

00:02:01 #9601 [Verbose] > │ print_and_return / x: 7                                                      │

00:02:01 #9602 [Verbose] > │ print_and_return / x: 8                                                      │

00:02:01 #9603 [Verbose] > │ print_and_return / x: 9                                                      │

00:02:01 #9604 [Verbose] > │ US0_1 5                                                                      │

00:02:01 #9605 [Verbose] > │                                                                              │

00:02:01 #9606 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9607 [Verbose] >

00:02:01 #9608 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:01 #9609 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:01 #9610 [Verbose] > │ ## map                                                                       │

00:02:01 #9611 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9612 [Verbose] >

00:02:01 #9613 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:01 #9614 [Verbose] > inl map fn s =

00:02:01 #9615 [Verbose] >     fun n =>

00:02:01 #9616 [Verbose] >         n

00:02:01 #9617 [Verbose] >         |> s

00:02:01 #9618 [Verbose] >         |> optionm.map fn

00:02:01 #9619 [Verbose] >

00:02:01 #9620 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5671-7128-7c63839f95b1\main.spi

00:02:01 #9621 [Verbose] > ╭─[ 682.26ms - stdout ]────────────────────────────────────────────────────────╮

00:02:01 #9622 [Verbose] > │ type UH0 =                                                                   │

00:02:01 #9623 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:02:01 #9624 [Verbose] > │     | UH0_1                                                                  │

00:02:01 #9625 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:01 #9626 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:02:01 #9627 [Verbose] > │     let v1 : UH0 = UH0_0(279936, v0)                                         │

00:02:01 #9628 [Verbose] > │     let v2 : UH0 = UH0_0(46656, v1)                                          │

00:02:01 #9629 [Verbose] > │     let v3 : UH0 = UH0_0(7776, v2)                                           │

00:02:01 #9630 [Verbose] > │     let v4 : UH0 = UH0_0(1296, v3)                                           │

00:02:01 #9631 [Verbose] > │     let v5 : UH0 = UH0_0(216, v4)                                            │

00:02:01 #9632 [Verbose] > │     let v6 : UH0 = UH0_0(36, v5)                                             │

00:02:01 #9633 [Verbose] > │     let v7 : UH0 = UH0_0(6, v6)                                              │

00:02:01 #9634 [Verbose] > │     let v8 : UH0 = UH0_0(1, v7)                                              │

00:02:01 #9635 [Verbose] >

00:02:01 #9636 [Verbose] > │     let v9 : string = $"%A{v8}"                                              │

00:02:01 #9637 [Verbose] > │     System.Console.WriteLine v9                                              │

00:02:01 #9638 [Verbose] > │     let v73 : UH0 = UH0_1                                                    │

00:02:01 #9639 [Verbose] > │     let v74 : UH0 = UH0_0(279936, v73)                                       │

00:02:01 #9640 [Verbose] > │     let v75 : UH0 = UH0_0(46656, v74)                                        │

00:02:01 #9641 [Verbose] > │     let v76 : UH0 = UH0_0(7776, v75)                                         │

00:02:01 #9642 [Verbose] > │     let v77 : UH0 = UH0_0(1296, v76)                                         │

00:02:01 #9643 [Verbose] > │     let v78 : UH0 = UH0_0(216, v77)                                          │

00:02:01 #9644 [Verbose] > │     let v79 : UH0 = UH0_0(36, v78)                                           │

00:02:01 #9645 [Verbose] > │     let v80 : UH0 = UH0_0(6, v79)                                            │

00:02:01 #9646 [Verbose] > │     let v81 : UH0 = UH0_0(1, v80)                                            │

00:02:01 #9647 [Verbose] > │     let v82 : UH0 = UH0_1                                                    │

00:02:01 #9648 [Verbose] > │     let v83 : UH0 = UH0_0(279936, v82)                                       │

00:02:01 #9649 [Verbose] > │     let v84 : UH0 = UH0_0(46656, v83)                                        │

00:02:01 #9650 [Verbose] > │     let v85 : UH0 = UH0_0(7776, v84)                                         │

00:02:01 #9651 [Verbose] > │     let v86 : UH0 = UH0_0(1296, v85)                                         │

00:02:01 #9652 [Verbose] > │     let v87 : UH0 = UH0_0(216, v86)                                          │

00:02:01 #9653 [Verbose] > │     let v88 : UH0 = UH0_0(36, v87)                                           │

00:02:01 #9654 [Verbose] > │     let v89 : UH0 = UH0_0(6, v88)                                            │

00:02:01 #9655 [Verbose] > │     let v90 : UH0 = UH0_0(1, v89)                                            │

00:02:01 #9656 [Verbose] > │     let v91 : string = $"__expect / actual: %A{v81} / expected: %A{v90}"     │

00:02:01 #9657 [Verbose] > │     ()                                                                       │

00:02:01 #9658 [Verbose] > │ method0()                                                                    │

00:02:01 #9659 [Verbose] > │                                                                              │

00:02:01 #9660 [Verbose] > │ UH0_0                                                                        │

00:02:01 #9661 [Verbose] > │   (1,                                                                        │

00:02:01 #9662 [Verbose] > │    UH0_0                                                                     │

00:02:01 #9663 [Verbose] > │      (6,                                                                     │

00:02:01 #9664 [Verbose] > │       UH0_0                                                                  │

00:02:01 #9665 [Verbose] > │         (36,                                                                 │

00:02:01 #9666 [Verbose] > │          UH0_0                                                               │

00:02:01 #9667 [Verbose] > │            (216,                                                             │

00:02:01 #9668 [Verbose] > │             UH0_0 (1296, UH0_0 (7776, UH0_0 (46656, UH0_0 (279936,           │

00:02:01 #9669 [Verbose] > │ UH0_1))))))))                                                                │

00:02:01 #9670 [Verbose] > │                                                                              │

00:02:01 #9671 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9672 [Verbose] >

00:02:01 #9673 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:01 #9674 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:01 #9675 [Verbose] > │ ## indexed                                                                   │

00:02:01 #9676 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9677 [Verbose] >

00:02:01 #9678 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:01 #9679 [Verbose] > inl indexed s =

00:02:01 #9680 [Verbose] >     ((StreamNil, 0), s)

00:02:01 #9681 [Verbose] >     ||> fold fun (acc, i) x =>

00:02:01 #9682 [Verbose] >         StreamCons ((i, x), fun () => acc), i + 1

00:02:01 #9683 [Verbose] >     |> fst

00:02:01 #9684 [Verbose] >     |> rev

00:02:01 #9685 [Verbose] >

00:02:01 #9686 [Verbose] > ╭─[ 462.66ms - stdout ]────────────────────────────────────────────────────────╮

00:02:01 #9687 [Verbose] > │ ()                                                                           │

00:02:01 #9688 [Verbose] > │                                                                              │

00:02:01 #9689 [Verbose] > │                                                                              │

00:02:01 #9690 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9691 [Verbose] >

00:02:01 #9692 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:01 #9693 [Verbose] > // // test

00:02:01 #9694 [Verbose] >

00:02:01 #9695 [Verbose] > listm.init 10i32 id

00:02:01 #9696 [Verbose] > |> from_list

00:02:01 #9697 [Verbose] > |> map ((*) 2)

00:02:01 #9698 [Verbose] > |> try_item 5i32

00:02:01 #9699 [Verbose] > |> _assert_eq (Some 10i32)

00:02:01 #9700 [Verbose] > ╭─[ 23.99s - stdout ]──────────────────────────────────────────────────────────╮

00:02:01 #9701 [Verbose] > │ type UH0 =                                                                   │

00:02:01 #9702 [Verbose] > │     | UH0_0 of string * string * string * UH0                                │

00:02:01 #9703 [Verbose] > │     | UH0_1                                                                  │

00:02:01 #9704 [Verbose] > │ and Mut0 = {mutable l0 : uint64}                                             │

00:02:01 #9705 [Verbose] > │ and UH1 =                                                                    │

00:02:01 #9706 [Verbose] > │     | UH1_0 of int32 * string * (struct (string * string) -> string) * UH1   │

00:02:01 #9707 [Verbose] > │     | UH1_1                                                                  │

00:02:01 #9708 [Verbose] > │ and Mut1 = {mutable l0 : int32}                                              │

00:02:01 #9709 [Verbose] > │ and UH2 =                                                                    │

00:02:01 #9710 [Verbose] > │     | UH2_0 of string * UH2                                                  │

00:02:01 #9711 [Verbose] > │     | UH2_1                                                                  │

00:02:01 #9712 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:01 #9713 [Verbose] > │     | US0_0                                                                  │

00:02:01 #9714 [Verbose] > │     | US0_1 of f1_0 : System.ConsoleColor                                    │

00:02:01 #9715 [Verbose] > │ and UH3 =                                                                    │

00:02:01 #9716 [Verbose] > │     | UH3_0 of int64 * int64 * UH3                                           │

00:02:01 #9717 [Verbose] > │     | UH3_1                                                                  │

00:02:01 #9718 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64}       │

00:02:01 #9719 [Verbose] > │ and UH4 =                                                                    │

00:02:01 #9720 [Verbose] > │     | UH4_0 of UH2 * US0 * UH4                                               │

00:02:01 #9721 [Verbose] > │     | UH4_1                                                                  │

00:02:01 #9722 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:01 #9723 [Verbose] > │     | US1_0                                                                  │

00:02:01 #9724 [Verbose] > │     | US1_1 of f1_0 : int64                                                  │

00:02:01 #9725 [Verbose] > │ and UH5 =                                                                    │

00:02:01 #9726 [Verbose] > │     | UH5_0 of int32 * int64 * UH5                                           │

00:02:01 #9727 [Verbose] > │     | UH5_1                                                                  │

00:02:01 #9728 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32}       │

00:02:01 #9729 [Verbose] > │ and UH6 =                                                                    │

00:02:01 #9730 [Verbose] > │     | UH6_0 of int32 * string * UH6                                          │

00:02:01 #9731 [Verbose] > │     | UH6_1                                                                  │

00:02:01 #9732 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 =                           │

00:02:01 #9733 [Verbose] > │     match v0 with                                                            │

00:02:01 #9734 [Verbose] > │     | UH0_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:02:01 #9735 [Verbose] > │         let v6 : uint64 = v1 + 1UL                                           │

00:02:01 #9736 [Verbose] > │         method2(v5, v6)                                                      │

00:02:01 #9737 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:01 #9738 [Verbose] > │         v1                                                                   │

00:02:01 #9739 [Verbose] > │ and method3 (v0 : (struct (string * string * string) []), v1 : UH0, v2 :     │

00:02:01 #9740 [Verbose] > │ uint64) : uint64 =                                                           │

00:02:01 #9741 [Verbose] > │     match v1 with                                                            │

00:02:01 #9742 [Verbose] > │     | UH0_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:02:01 #9743 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:02:01 #9744 [Verbose] > │         let v7 : uint64 = v2 + 1UL                                           │

00:02:01 #9745 [Verbose] > │         method3(v0, v6, v7)                                                  │

00:02:01 #9746 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:01 #9747 [Verbose] > │         v2                                                                   │

00:02:01 #9748 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string * string) []) =            │

00:02:01 #9749 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:01 #9750 [Verbose] > │     let v2 : uint64 = method2(v0, v1)                                        │

00:02:01 #9751 [Verbose] > │     let v3 : (struct (string * string * string) []) =                        │

00:02:01 #9752 [Verbose] > │ Array.zeroCreate<struct (string * string * string)>                          │

00:02:01 #9753 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:02:01 #9754 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:01 #9755 [Verbose] > │     let v5 : uint64 = method3(v3, v0, v4)                                    │

00:02:01 #9756 [Verbose] > │     v3                                                                       │

00:02:01 #9757 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool =                                │

00:02:01 #9758 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:02:01 #9759 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:01 #9760 [Verbose] > │     v3                                                                       │

00:02:01 #9761 [Verbose] > │ and closure1 () struct (v0 : string, v1 : string) : string =                 │

00:02:01 #9762 [Verbose] > │     v0                                                                       │

00:02:01 #9763 [Verbose] > │ and closure2 () struct (v0 : string, v1 : string) : string =                 │

00:02:01 #9764 [Verbose] > │     v1                                                                       │

00:02:01 #9765 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 =                               │

00:02:01 #9766 [Verbose] > │     match v0 with                                                            │

00:02:01 #9767 [Verbose] > │     | UH1_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:02:01 #9768 [Verbose] > │         let v6 : uint64 = v1 + 1UL                                           │

00:02:01 #9769 [Verbose] > │         method6(v5, v6)                                                      │

00:02:01 #9770 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:01 #9771 [Verbose] > │         v1                                                                   │

00:02:01 #9772 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (struct (string * string) ->     │

00:02:01 #9773 [Verbose] > │ string)) []), v1 : UH1, v2 : uint64) : uint64 =                              │

00:02:01 #9774 [Verbose] > │     match v1 with                                                            │

00:02:01 #9775 [Verbose] > │     | UH1_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:02:01 #9776 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:02:01 #9777 [Verbose] > │         let v7 : uint64 = v2 + 1UL                                           │

00:02:01 #9778 [Verbose] > │         method7(v0, v6, v7)                                                  │

00:02:01 #9779 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:01 #9780 [Verbose] > │         v2                                                                   │

00:02:01 #9781 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (struct (string * string) │

00:02:01 #9782 [Verbose] > │ -> string)) []) =                                                            │

00:02:01 #9783 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:01 #9784 [Verbose] > │     let v2 : uint64 = method6(v0, v1)                                        │

00:02:01 #9785 [Verbose] > │     let v3 : (struct (int32 * string * (struct (string * string) -> string)) │

00:02:01 #9786 [Verbose] > │ []) = Array.zeroCreate<struct (int32 * string * (struct (string * string) -> │

00:02:01 #9787 [Verbose] > │ string))> (System.Convert.ToInt32(v2))                                       │

00:02:01 #9788 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:01 #9789 [Verbose] > │     let v5 : uint64 = method7(v3, v0, v4)                                    │

00:02:01 #9790 [Verbose] > │     v3                                                                       │

00:02:01 #9791 [Verbose] > │ and method8 (v0 : Mut1) : bool =                                             │

00:02:01 #9792 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:01 #9793 [Verbose] > │     let v2 : bool = v1 < 2000001                                             │

00:02:01 #9794 [Verbose] > │     v2                                                                       │

00:02:01 #9795 [Verbose] > │ and closure3 (v0 : string, v1 : string, v2 : (struct (string * string) ->    │

00:02:01 #9796 [Verbose] > │ string)) (v3 : int32) : string =                                             │

00:02:01 #9797 [Verbose] > │     v2 struct (v0, v1)                                                       │

00:02:01 #9798 [Verbose] > │ and method9 (v0 : string, v1 : (string []), v2 : uint64) : bool =            │

00:02:01 #9799 [Verbose] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:02:01 #9800 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:02:01 #9801 [Verbose] > │     if v4 then                                                               │

00:02:01 #9802 [Verbose] > │         let v5 : string = v1.[int v2]                                        │

00:02:01 #9803 [Verbose] > │         let v6 : bool = v0 = v5                                              │

00:02:01 #9804 [Verbose] > │         if v6 then                                                           │

00:02:01 #9805 [Verbose] > │             let v7 : uint64 = v2 + 1UL                                       │

00:02:01 #9806 [Verbose] > │             method9(v0, v1, v7)                                              │

00:02:01 #9807 [Verbose] > │         else                                                                 │

00:02:01 #9808 [Verbose] > │             false                                                            │

00:02:01 #9809 [Verbose] > │     else                                                                     │

00:02:01 #9810 [Verbose] > │         true                                                                 │

00:02:01 #9811 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool =                               │

00:02:01 #9812 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:02:01 #9813 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:01 #9814 [Verbose] > │     v3                                                                       │

00:02:01 #9815 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 =                                    │

00:02:01 #9816 [Verbose] > │     match v0 with                                                            │

00:02:01 #9817 [Verbose] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #9818 [Verbose] > │         let v5 : UH3 = UH3_0(v2, v3, v1)                                     │

00:02:01 #9819 [Verbose] > │         method11(v4, v5)                                                     │

00:02:01 #9820 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:02:01 #9821 [Verbose] > │         v1                                                                   │

00:02:01 #9822 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 =                                │

00:02:01 #9823 [Verbose] > │     match v0 with                                                            │

00:02:01 #9824 [Verbose] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #9825 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:02:01 #9826 [Verbose] > │         method13(v4, v5)                                                     │

00:02:01 #9827 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:02:01 #9828 [Verbose] > │         v1                                                                   │

00:02:01 #9829 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) :      │

00:02:01 #9830 [Verbose] > │ int32 =                                                                      │

00:02:01 #9831 [Verbose] > │     match v1 with                                                            │

00:02:01 #9832 [Verbose] > │     | UH3_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:01 #9833 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:01 #9834 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5712-1209-160b3e47a01c\main.spi

00:02:01 #9835 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:02:01 #9836 [Verbose] > │         method14(v0, v5, v6)                                                 │

00:02:01 #9837 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:02:01 #9838 [Verbose] > │         v2                                                                   │

00:02:01 #9839 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) =                      │

00:02:01 #9840 [Verbose] > │     let v1 : int32 = 0                                                       │

00:02:01 #9841 [Verbose] > │     let v2 : int32 = method13(v0, v1)                                        │

00:02:01 #9842 [Verbose] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:02:01 #9843 [Verbose] > │ int64)> (v2)                                                                 │

00:02:01 #9844 [Verbose] > │     let v4 : int32 = 0                                                       │

00:02:01 #9845 [Verbose] > │     let v5 : int32 = method14(v3, v0, v4)                                    │

00:02:01 #9846 [Verbose] > │     v3                                                                       │

00:02:01 #9847 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool =                                │

00:02:01 #9848 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:01 #9849 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:01 #9850 [Verbose] > │     v3                                                                       │

00:02:01 #9851 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:02:01 #9852 [Verbose] > │     v1                                                                       │

00:02:01 #9853 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 =                              │

00:02:01 #9854 [Verbose] > │     match v0 with                                                            │

00:02:01 #9855 [Verbose] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #9856 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:02:01 #9857 [Verbose] > │         method17(v4, v5)                                                     │

00:02:01 #9858 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:02:01 #9859 [Verbose] > │         v1                                                                   │

00:02:01 #9860 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64  │

00:02:01 #9861 [Verbose] > │ =                                                                            │

00:02:01 #9862 [Verbose] > │     match v1 with                                                            │

00:02:01 #9863 [Verbose] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:01 #9864 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:01 #9865 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:02:01 #9866 [Verbose] > │         method18(v0, v5, v6)                                                 │

00:02:01 #9867 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:02:01 #9868 [Verbose] > │         v2                                                                   │

00:02:01 #9869 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) =                          │

00:02:01 #9870 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:01 #9871 [Verbose] > │     let v2 : uint64 = method17(v0, v1)                                       │

00:02:01 #9872 [Verbose] > │     let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)>  │

00:02:01 #9873 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:02:01 #9874 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:01 #9875 [Verbose] > │     let v5 : uint64 = method18(v3, v0, v4)                                   │

00:02:01 #9876 [Verbose] > │     v3                                                                       │

00:02:01 #9877 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:02:01 #9878 [Verbose] > │     match v0 with                                                            │

00:02:01 #9879 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:02:01 #9880 [Verbose] > │         let v4 : uint64 = v1 + 1UL                                           │

00:02:01 #9881 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5715-1549-1326b6ff9509\main.spi

00:02:01 #9883 [Verbose] >

00:02:01 #9883 [Verbose] > │         method20(v3, v4)                                                     │

00:02:01 #9884 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:01 #9885 [Verbose] > │         v1                                                                   │

00:02:01 #9886 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:02:01 #9887 [Verbose] > │     match v1 with                                                            │

00:02:01 #9888 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:02:01 #9889 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:02:01 #9890 [Verbose] > │         let v5 : uint64 = v2 + 1UL                                           │

00:02:01 #9891 [Verbose] > │         method21(v0, v4, v5)                                                 │

00:02:01 #9892 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:01 #9893 [Verbose] > │         v2                                                                   │

00:02:01 #9894 [Verbose] > ╭─[ 10.73s - stdout ]──────────────────────────────────────────────────────────╮

00:02:01 #9895 [Verbose] > │ and method19 (v0 : UH2) : (string []) =                                      │

00:02:01 #9896 [Verbose] > │ ()                                                                           │

00:02:01 #9897 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:01 #9898 [Verbose] > │     let v2 : uint64 = method20(v0, v1)                                       │

00:02:01 #9899 [Verbose] > │                                                                              │

00:02:01 #9900 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:02:01 #9901 [Verbose] > │                                                                              │

00:02:01 #9902 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9903 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:02:01 #9904 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:01 #9905 [Verbose] > │     let v5 : uint64 = method21(v3, v0, v4)                                   │

00:02:01 #9906 [Verbose] > │     v3                                                                       │

00:02:01 #9907 [Verbose] > │ and closure5 () (v0 : int64) : US1 =                                         │

00:02:01 #9908 [Verbose] > │     US1_1(v0)                                                                │

00:02:01 #9909 [Verbose] >

00:02:01 #9910 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool =                               │

00:02:01 #9911 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:01 #9912 [Verbose] > // // test

00:02:01 #9913 [Verbose] >

00:02:01 #9914 [Verbose] > open testing

00:02:01 #9915 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:02:01 #9916 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:01 #9917 [Verbose] > │     v3                                                                       │

00:02:01 #9918 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 =                                    │

00:02:01 #9919 [Verbose] > │     match v0 with                                                            │

00:02:01 #9920 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #9921 [Verbose] > │         let v5 : UH5 = UH5_0(v2, v3, v1)                                     │

00:02:01 #9922 [Verbose] > │         method23(v4, v5)                                                     │

00:02:01 #9923 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:01 #9924 [Verbose] > │         v1                                                                   │

00:02:01 #9925 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 =                                │

00:02:01 #9926 [Verbose] > │     match v0 with                                                            │

00:02:01 #9927 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #9928 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:02:01 #9929 [Verbose] > │         method25(v4, v5)                                                     │

00:02:01 #9930 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:01 #9931 [Verbose] > │         v1                                                                   │

00:02:01 #9932 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) :      │

00:02:01 #9933 [Verbose] > │ int32 =                                                                      │

00:02:01 #9934 [Verbose] > │     match v1 with                                                            │

00:02:01 #9935 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:01 #9936 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:01 #9937 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:02:01 #9938 [Verbose] > │         method26(v0, v5, v6)                                                 │

00:02:01 #9939 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:01 #9940 [Verbose] > │         v2                                                                   │

00:02:01 #9941 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:02:01 #9942 [Verbose] > │     let v1 : int32 = 0                                                       │

00:02:01 #9943 [Verbose] > │     let v2 : int32 = method25(v0, v1)                                        │

00:02:01 #9944 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:02:01 #9945 [Verbose] > │ int64)> (v2)                                                                 │

00:02:01 #9946 [Verbose] > │     let v4 : int32 = 0                                                       │

00:02:01 #9947 [Verbose] > │     let v5 : int32 = method26(v3, v0, v4)                                    │

00:02:01 #9948 [Verbose] > │     v3                                                                       │

00:02:01 #9949 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) =       │

00:02:01 #9950 [Verbose] > │     match v0 with                                                            │

00:02:01 #9951 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:02:01 #9952 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:02:01 #9953 [Verbose] > │         let v6 : UH6 = UH6_0(v2, v3, v1)                                     │

00:02:01 #9954 [Verbose] > │         method27(v4, v6, v5)                                                 │

00:02:01 #9955 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:01 #9956 [Verbose] > │         struct (v1, v2)                                                      │

00:02:01 #9957 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:02:01 #9958 [Verbose] > │     match v0 with                                                            │

00:02:01 #9959 [Verbose] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #9960 [Verbose] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:02:01 #9961 [Verbose] > │         method28(v4, v5)                                                     │

00:02:01 #9962 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:02:01 #9963 [Verbose] > │         v1                                                                   │

00:02:01 #9964 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 =            │

00:02:01 #9965 [Verbose] > │     match v1 with                                                            │

00:02:01 #9966 [Verbose] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:01 #9967 [Verbose] > │         let v6 : UH2 = method29(v0, v5, v2)                                  │

00:02:01 #9968 [Verbose] > │         let v7 : int64 = v0.[v3]                                             │

00:02:01 #9969 [Verbose] >

00:02:01 #9970 [Verbose] > │         let v8 : int32 = int32 v7                                            │

00:02:01 #9971 [Verbose] > ╭─[ 302.50ms - stdout ]────────────────────────────────────────────────────────╮

00:02:01 #9972 [Verbose] > │         let v9 : string = v4.PadRight v8                                     │

00:02:01 #9973 [Verbose] > │ ()                                                                           │

00:02:01 #9974 [Verbose] > │         UH2_0(v9, v6)                                                        │

00:02:01 #9975 [Verbose] > │                                                                              │

00:02:01 #9976 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:02:01 #9977 [Verbose] > │                                                                              │

00:02:01 #9978 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:01 #9979 [Verbose] > │         v2                                                                   │

00:02:01 #9980 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 =                                │

00:02:01 #9981 [Verbose] >

00:02:01 #9982 [Verbose] > │     match v0 with                                                            │

00:02:01 #9983 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:01 #9984 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:02:01 #9985 [Verbose] > // // test

00:02:01 #9986 [Verbose] >

00:02:01 #9987 [Verbose] > listm.init 10i32 ((*) 2)

00:02:01 #9988 [Verbose] > |> from_list

00:02:01 #9989 [Verbose] > |> indexed

00:02:01 #9990 [Verbose] > |> item 5i32

00:02:01 #9991 [Verbose] > |> _assert_eq (5i32, 10i32)

00:02:01 #9992 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:02:01 #9993 [Verbose] > │         method31(v3, v4)                                                     │

00:02:01 #9994 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:01 #9995 [Verbose] > │         v1                                                                   │

00:02:01 #9996 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:02:01 #9997 [Verbose] > │     match v1 with                                                            │

00:02:01 #9998 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:02:01 #9999 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:02:01 #10000 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:02:01 #10001 [Verbose] > │         method32(v0, v4, v5)                                                 │

00:02:01 #10002 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:01 #10003 [Verbose] > │         v2                                                                   │

00:02:01 #10004 [Verbose] > │ and method30 (v0 : UH2) : (string []) =                                      │

00:02:01 #10005 [Verbose] > │     let v1 : int32 = 0                                                       │

00:02:01 #10006 [Verbose] > │     let v2 : int32 = method31(v0, v1)                                        │

00:02:01 #10007 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:02:01 #10008 [Verbose] > │     let v4 : int32 = 0                                                       │

00:02:01 #10009 [Verbose] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:02:01 #10010 [Verbose] > │     v3                                                                       │

00:02:01 #10011 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:02:01 #10012 [Verbose] > │     match v0 with                                                            │

00:02:01 #10013 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:01 #10014 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:02:01 #10015 [Verbose] > │         method34(v4, v5)                                                     │

00:02:01 #10016 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:01 #10017 [Verbose] > │         v1                                                                   │

00:02:01 #10018 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) :     │

00:02:01 #10019 [Verbose] > │ uint64 =                                                                     │

00:02:01 #10020 [Verbose] > │     match v1 with                                                            │

00:02:01 #10021 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:01 #10022 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:01 #10023 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:02:01 #10024 [Verbose] > │         method35(v0, v5, v6)                                                 │

00:02:01 #10025 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:01 #10026 [Verbose] > │         v2                                                                   │

00:02:01 #10027 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:02:01 #10028 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:01 #10029 [Verbose] > │     let v2 : uint64 = method34(v0, v1)                                       │

00:02:01 #10030 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:02:01 #10031 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5732-3260-3e331f5b6832\main.spi

00:02:01 #10032 [Verbose] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:02:01 #10033 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:01 #10034 [Verbose] > │     let v5 : uint64 = method35(v3, v0, v4)                                   │

00:02:01 #10035 [Verbose] > │     v3                                                                       │

00:02:01 #10036 [Verbose] >

00:02:01 #10037 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 =                    │

00:02:01 #10038 [Verbose] > │     v1                                                                       │

00:02:01 #10039 [Verbose] > │ and closure0 () () : unit =                                                  │

00:02:01 #10040 [Verbose] > ╭─[ 414.42ms - stdout ]────────────────────────────────────────────────────────╮

00:02:01 #10041 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:02:01 #10042 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:01 #10043 [Verbose] > │     let v1 : string = nameof v0                                              │

00:02:01 #10044 [Verbose] > │     | US0_0                                                                  │

00:02:01 #10045 [Verbose] > │     let v2 : string = ""                                                     │

00:02:01 #10046 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:01 #10047 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:01 #10048 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:01 #10049 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:01 #10050 [Verbose] > │     let v0 : US0 = US0_1(10)                                                 │

00:02:01 #10051 [Verbose] > │     let v3 : string = $"Test: {v1}"                                          │

00:02:01 #10052 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:01 #10053 [Verbose] > │     System.Console.WriteLine v3                                              │

00:02:02 #10054 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:02 #10055 [Verbose] > │     let v4 : string = "a"                                                    │

00:02:02 #10056 [Verbose] > │     let v5 : US0 = US0_1(10)                                                 │

00:02:02 #10057 [Verbose] > │     let v5 : string = "b"                                                    │

00:02:02 #10058 [Verbose] > │     let v6 : US0 = US0_1(10)                                                 │

00:02:02 #10059 [Verbose] > │     let v6 : UH0 = UH0_1                                                     │

00:02:02 #10060 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:02:02 #10061 [Verbose] > │     let v7 : UH0 = UH0_0(v5, v5, v5, v6)                                     │

00:02:02 #10062 [Verbose] > │     ()                                                                       │

00:02:02 #10063 [Verbose] > │     let v8 : UH0 = UH0_0(v4, v4, v4, v7)                                     │

00:02:02 #10064 [Verbose] > │ method0()                                                                    │

00:02:02 #10065 [Verbose] > │     let v9 : (struct (string * string * string) []) = method1(v8)            │

00:02:02 #10066 [Verbose] > │                                                                              │

00:02:02 #10067 [Verbose] > │     let v10 : uint64 = System.Convert.ToUInt64 v9.Length                     │

00:02:02 #10068 [Verbose] > │     let v11 : (struct (string * string * string * (int64 [])) []) =          │

00:02:02 #10069 [Verbose] > │ US0_1 10                                                                     │

00:02:02 #10070 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:02:02 #10071 [Verbose] > │                                                                              │

00:02:02 #10072 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10073 [Verbose] > │ (System.Convert.ToInt32(v10))                                                │

00:02:02 #10074 [Verbose] >

00:02:02 #10075 [Verbose] > │     let v12 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:02 #10076 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #10077 [Verbose] > │     while method4(v10, v12) do                                               │

00:02:02 #10078 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #10079 [Verbose] > │         let v14 : uint64 = v12.l0                                            │

00:02:02 #10080 [Verbose] > │ ## mapi                                                                      │

00:02:02 #10081 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10082 [Verbose] > │         let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │

00:02:02 #10083 [Verbose] > │         let v18 : string = $"%A{struct (v15, v16)}"                          │

00:02:02 #10084 [Verbose] >

00:02:02 #10085 [Verbose] > │         System.Console.WriteLine v2                                          │

00:02:02 #10086 [Verbose] > │         let v19 : string = $"Solution: {v18}  "                              │

00:02:02 #10087 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10088 [Verbose] > │         System.Console.WriteLine v19                                         │

00:02:02 #10089 [Verbose] > inl mapi fn s =

00:02:02 #10090 [Verbose] >     fun n =>

00:02:02 #10091 [Verbose] >         n

00:02:02 #10092 [Verbose] >         |> s

00:02:02 #10093 [Verbose] > │         let v20 : int32 = 0                                                  │

00:02:02 #10094 [Verbose] >         |> optionm.map (fn n)

00:02:02 #10095 [Verbose] > │         let v21 : string = "A"                                               │

00:02:02 #10096 [Verbose] > │         let v22 : (struct (string * string) -> string) = closure1()          │

00:02:02 #10097 [Verbose] > │         let v23 : int32 = 1                                                  │

00:02:02 #10098 [Verbose] > │         let v24 : string = "B"                                               │

00:02:02 #10099 [Verbose] > │         let v25 : (struct (string * string) -> string) = closure2()          │

00:02:02 #10100 [Verbose] > │         let v26 : UH1 = UH1_1                                                │

00:02:02 #10101 [Verbose] > │         let v27 : UH1 = UH1_0(v23, v24, v25, v26)                            │

00:02:02 #10102 [Verbose] > │         let v28 : UH1 = UH1_0(v20, v21, v22, v27)                            │

00:02:02 #10103 [Verbose] > │         let v29 : (struct (int32 * string * (struct (string * string) ->     │

00:02:02 #10104 [Verbose] > │ string)) []) = method5(v28)                                                  │

00:02:02 #10105 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5744-4461-4c9d42f7f4a5\main.spi

00:02:02 #10106 [Verbose] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:02:02 #10107 [Verbose] > │         let v31 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:02:02 #10108 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30))                              │

00:02:02 #10109 [Verbose] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10110 [Verbose] > │         while method4(v30, v32) do                                           │

00:02:02 #10111 [Verbose] > │             let v34 : uint64 = v32.l0                                        │

00:02:02 #10112 [Verbose] > │             let struct (v35 : int32, v36 : string, v37 : (struct (string *   │

00:02:02 #10113 [Verbose] > │ string) -> string)) = v29.[int v34]                                          │

00:02:02 #10114 [Verbose] > │             let mutable result = None                                        │

00:02:02 #10115 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:02 #10116 [Verbose] > │             ()                                                               │

00:02:02 #10117 [Verbose] > │             #endif                                                           │

00:02:02 #10118 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:02 #10119 [Verbose] > │             ()                                                               │

00:02:02 #10120 [Verbose] > │             #endif                                                           │

00:02:02 #10121 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:02 #10122 [Verbose] > │             System.GC.Collect ()                                             │

00:02:02 #10123 [Verbose] > │             ()                                                               │

00:02:02 #10124 [Verbose] > │             #endif                                                           │

00:02:02 #10125 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:02 #10126 [Verbose] > │             System.GC.Collect ()                                             │

00:02:02 #10127 [Verbose] > │             ()                                                               │

00:02:02 #10128 [Verbose] > │             #endif                                                           │

00:02:02 #10129 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:02 #10130 [Verbose] > │             System.GC.Collect ()                                             │

00:02:02 #10131 [Verbose] > │             ()                                                               │

00:02:02 #10132 [Verbose] > │             #endif                                                           │

00:02:02 #10133 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:02 #10134 [Verbose] > │             result |> Option.get                                             │

00:02:02 #10135 [Verbose] > │             let v38 : (unit -> System.Diagnostics.Stopwatch) =               │

00:02:02 #10136 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:02:02 #10137 [Verbose] > │             let v39 : System.Diagnostics.Stopwatch = v38 ()                  │

00:02:02 #10138 [Verbose] > │             v39.Start ()                                                     │

00:02:02 #10139 [Verbose] > │             let v40 : int64 = v39.ElapsedMilliseconds                        │

00:02:02 #10140 [Verbose] > │             let v41 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:02:02 #10141 [Verbose] > │             let v42 : Mut1 = {l0 = 0} : Mut1                                 │

00:02:02 #10142 [Verbose] > │             while method8(v42) do                                            │

00:02:02 #10143 [Verbose] >

00:02:02 #10144 [Verbose] > │                 let v44 : int32 = v42.l0                                     │

00:02:02 #10145 [Verbose] > │                 v41.[int v44] <- v44                                         │

00:02:02 #10146 [Verbose] > ╭─[ 333.56ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10147 [Verbose] > │                 let v45 : int32 = v44 + 1                                    │

00:02:02 #10148 [Verbose] > │ ()                                                                           │

00:02:02 #10149 [Verbose] > │                 v42.l0 <- v45                                                │

00:02:02 #10150 [Verbose] > │                                                                              │

00:02:02 #10151 [Verbose] > │                 ()                                                           │

00:02:02 #10152 [Verbose] > │                                                                              │

00:02:02 #10153 [Verbose] > │             let v46 : (int32 -> string) = closure3(v15, v16, v37)            │

00:02:02 #10154 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10155 [Verbose] > │             let v47 : (string []) = v41 |> Array.Parallel.map v46            │

00:02:02 #10156 [Verbose] > │             let v48 : int32 = v47.Length                                     │

00:02:02 #10157 [Verbose] >

00:02:02 #10158 [Verbose] > │             let v49 : int32 = v48 - 1                                        │

00:02:02 #10159 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #10160 [Verbose] > │             let v50 : string = v47.[int v49]                                 │

00:02:02 #10161 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #10162 [Verbose] > │             let v51 : int64 = v39.ElapsedMilliseconds                        │

00:02:02 #10163 [Verbose] > │ ## types                                                                     │

00:02:02 #10164 [Verbose] > │             let v52 : int64 = v51 - v40                                      │

00:02:02 #10165 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10166 [Verbose] > │             let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52}  "  │

00:02:02 #10167 [Verbose] > │             System.Console.WriteLine v53                                     │

00:02:02 #10168 [Verbose] > │             v31.[int v34] <- struct (v50, v52)                               │

00:02:02 #10169 [Verbose] >

00:02:02 #10170 [Verbose] > │             let v54 : uint64 = v34 + 1UL                                     │

00:02:02 #10171 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10172 [Verbose] > inl types () =

00:02:02 #10173 [Verbose] >     ()

00:02:02 #10174 [Verbose] > │             v32.l0 <- v54                                                    │

00:02:02 #10175 [Verbose] > │             ()                                                               │

00:02:02 #10176 [Verbose] > │         let v55 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:02:02 #10177 [Verbose] > │         let v56 : (string []) = Array.zeroCreate<string>                     │

00:02:02 #10178 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:02 #10179 [Verbose] > │         let v57 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10180 [Verbose] > │         while method4(v55, v57) do                                           │

00:02:02 #10181 [Verbose] > │             let v59 : uint64 = v57.l0                                        │

00:02:02 #10182 [Verbose] > │             let struct (v60 : string, v61 : int64) = v31.[int v59]           │

00:02:02 #10183 [Verbose] > │             v56.[int v59] <- v60                                             │

00:02:02 #10184 [Verbose] > │             let v62 : uint64 = v59 + 1UL                                     │

00:02:02 #10185 [Verbose] > │             v57.l0 <- v62                                                    │

00:02:02 #10186 [Verbose] > │             ()                                                               │

00:02:02 #10187 [Verbose] > │         let v63 : uint64 = System.Convert.ToUInt64 v56.Length                │

00:02:02 #10188 [Verbose] > │         let v64 : bool = v63 <= 1UL                                          │

00:02:02 #10189 [Verbose] > │         if v64 then                                                          │

00:02:02 #10190 [Verbose] > │             ()                                                               │

00:02:02 #10191 [Verbose] > │         else                                                                 │

00:02:02 #10192 [Verbose] > │             let v65 : string = v56.[int 0UL]                                 │

00:02:02 #10193 [Verbose] > │             let v66 : uint64 = 0UL                                           │

00:02:02 #10194 [Verbose] > │             let v67 : bool = method9(v65, v56, v66)                          │

00:02:02 #10195 [Verbose] > │             if v67 then                                                      │

00:02:02 #10196 [Verbose] > │                 ()                                                           │

00:02:02 #10197 [Verbose] > │             else                                                             │

00:02:02 #10198 [Verbose] > │                 let v68 : string = $"Challenge error: {v56}"                 │

00:02:02 #10199 [Verbose] > │                 failwith<unit> v68                                           │

00:02:02 #10200 [Verbose] > │         let v69 : string = $"%A{v17}"                                        │

00:02:02 #10201 [Verbose] > │         let v70 : (string []) = Array.zeroCreate<string>                     │

00:02:02 #10202 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:02 #10203 [Verbose] > │         let v71 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10204 [Verbose] > │         while method4(v55, v71) do                                           │

00:02:02 #10205 [Verbose] > │             let v73 : uint64 = v71.l0                                        │

00:02:02 #10206 [Verbose] > │             let struct (v74 : string, v75 : int64) = v31.[int v73]           │

00:02:02 #10207 [Verbose] > │             v70.[int v73] <- v74                                             │

00:02:02 #10208 [Verbose] > │             let v76 : uint64 = v73 + 1UL                                     │

00:02:02 #10209 [Verbose] > │             v71.l0 <- v76                                                    │

00:02:02 #10210 [Verbose] > │             ()                                                               │

00:02:02 #10211 [Verbose] > │         let v77 : string = v70.[int 0UL]                                     │

00:02:02 #10212 [Verbose] > │         let v78 : string = $"%A{v77}"                                        │

00:02:02 #10213 [Verbose] > │         let v79 : (int64 []) = Array.zeroCreate<int64>                       │

00:02:02 #10214 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:02 #10215 [Verbose] > │         let v80 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10216 [Verbose] > │         while method4(v55, v80) do                                           │

00:02:02 #10217 [Verbose] > │             let v82 : uint64 = v80.l0                                        │

00:02:02 #10218 [Verbose] > │             let struct (v83 : string, v84 : int64) = v31.[int v82]           │

00:02:02 #10219 [Verbose] > │             v79.[int v82] <- v84                                             │

00:02:02 #10220 [Verbose] > │             let v85 : uint64 = v82 + 1UL                                     │

00:02:02 #10221 [Verbose] > │             v80.l0 <- v85                                                    │

00:02:02 #10222 [Verbose] > │             ()                                                               │

00:02:02 #10223 [Verbose] > │         v11.[int v14] <- struct (v69, v18, v78, v79)                         │

00:02:02 #10224 [Verbose] > │         let v86 : uint64 = v14 + 1UL                                         │

00:02:02 #10225 [Verbose] > │         v12.l0 <- v86                                                        │

00:02:02 #10226 [Verbose] > │         ()                                                                   │

00:02:02 #10227 [Verbose] > │     let v87 : uint64 = System.Convert.ToUInt64 v11.Length                    │

00:02:02 #10228 [Verbose] > │     let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:02:02 #10229 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:02 #10230 [Verbose] > │     let v89 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:02 #10231 [Verbose] > │     while method4(v87, v89) do                                               │

00:02:02 #10232 [Verbose] > │         let v91 : uint64 = v89.l0                                            │

00:02:02 #10233 [Verbose] > │         let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │

00:02:02 #10234 [Verbose] > │ ])) = v11.[int v91]                                                          │

00:02:02 #10235 [Verbose] > │         let v96 : uint64 = System.Convert.ToUInt64 v95.Length                │

00:02:02 #10236 [Verbose] > │         let v97 : UH3 = UH3_1                                                │

00:02:02 #10237 [Verbose] > │         let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2                │

00:02:02 #10238 [Verbose] > │         while method10(v96, v98) do                                          │

00:02:02 #10239 [Verbose] > │             let v100 : uint64 = v98.l0                                       │

00:02:02 #10240 [Verbose] > │             let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2           │

00:02:02 #10241 [Verbose] > │             let v103 : int64 = v95.[int v100]                                │

00:02:02 #10242 [Verbose] > │             let v104 : int64 = v102 + 1L                                     │

00:02:02 #10243 [Verbose] > │             let v105 : uint64 = v100 + 1UL                                   │

00:02:02 #10244 [Verbose] > │             let v106 : UH3 = UH3_0(v102, v103, v101)                         │

00:02:02 #10245 [Verbose] > │             v98.l0 <- v105                                                   │

00:02:02 #10246 [Verbose] > │             v98.l1 <- v106                                                   │

00:02:02 #10247 [Verbose] > │             v98.l2 <- v104                                                   │

00:02:02 #10248 [Verbose] > │             ()                                                               │

00:02:02 #10249 [Verbose] > │         let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2               │

00:02:02 #10250 [Verbose] > │         let v109 : UH3 = UH3_1                                               │

00:02:02 #10251 [Verbose] > │         let v110 : UH3 = method11(v107, v109)                                │

00:02:02 #10252 [Verbose] > │         let v111 : (struct (int64 * int64) []) = method12(v110)              │

00:02:02 #10253 [Verbose] > │         let v112 : int32 = v111.Length                                       │

00:02:02 #10254 [Verbose] > │         let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:02:02 #10255 [Verbose] > │ (int64 * int64)> (v112)                                                      │

00:02:02 #10256 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5760-6028-6a02302df818\main.spi

00:02:02 #10257 [Verbose] > │         let v114 : Mut1 = {l0 = 0} : Mut1                                    │

00:02:02 #10258 [Verbose] > │         while method15(v112, v114) do                                        │

00:02:02 #10259 [Verbose] > │             let v116 : int32 = v114.l0                                       │

00:02:02 #10260 [Verbose] > │             let struct (v117 : int64, v118 : int64) = v111.[int v116]        │

00:02:02 #10261 [Verbose] > │             let v119 : int64 = v117 + 1L                                     │

00:02:02 #10262 [Verbose] > │             v113.[int v116] <- struct (v119, v118)                           │

00:02:02 #10263 [Verbose] > │             let v120 : int32 = v116 + 1                                      │

00:02:02 #10264 [Verbose] > │             v114.l0 <- v120                                                  │

00:02:02 #10265 [Verbose] > │             ()                                                               │

00:02:02 #10266 [Verbose] > │         let v121 : (struct (int64 * int64) -> int64) = closure4()            │

00:02:02 #10267 [Verbose] > │         let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121   │

00:02:02 #10268 [Verbose] > │         let struct (v123 : int64, v124 : int64) = v122.[int 0]               │

00:02:02 #10269 [Verbose] > │         let v125 : string = $"%A{struct (v123, v124)}"                       │

00:02:02 #10270 [Verbose] > │         let v126 : bool = v92 = v94                                          │

00:02:02 #10271 [Verbose] >

00:02:02 #10272 [Verbose] > │         let v131 : US0 =                                                     │

00:02:02 #10273 [Verbose] > │             if v126 then                                                     │

00:02:02 #10274 [Verbose] > ╭─[ 363.82ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10275 [Verbose] > │                 let v127 : System.ConsoleColor =                             │

00:02:02 #10277 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:02 #10277 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:02:02 #10278 [Verbose] > │                 US0_1(v127)                                                  │

00:02:02 #10279 [Verbose] > │     let v0 : string = $"%A{struct (5, 10)}"                                  │

00:02:02 #10280 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:02 #10281 [Verbose] > │             else                                                             │

00:02:02 #10282 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (5, 10)} / expected:    │

00:02:02 #10283 [Verbose] > │                 let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:02:02 #10284 [Verbose] > │ %A{struct (5, 10)}"                                                          │

00:02:02 #10285 [Verbose] > │                 US0_1(v129)                                                  │

00:02:02 #10286 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5767-6738-65ba40e4fc90\main.spi

00:02:02 #10287 [Verbose] > │     ()                                                                       │

00:02:02 #10288 [Verbose] > │ method0()                                                                    │

00:02:02 #10289 [Verbose] > │         let v132 : UH2 = UH2_1                                               │

00:02:02 #10290 [Verbose] > │                                                                              │

00:02:02 #10291 [Verbose] > │         let v133 : UH2 = UH2_0(v125, v132)                                   │

00:02:02 #10292 [Verbose] > │ struct (5, 10)                                                               │

00:02:02 #10294 [Verbose] > │                                                                              │

00:02:02 #10293 [Verbose] > │         let v134 : UH2 = UH2_0(v94, v133)                                    │

00:02:02 #10295 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10296 [Verbose] > │         let v135 : UH2 = UH2_0(v92, v134)                                    │

00:02:02 #10297 [Verbose] >

00:02:02 #10298 [Verbose] > │         let v136 : UH2 = UH2_0(v93, v135)                                    │

00:02:02 #10299 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #10301 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #10300 [Verbose] > │         v88.[int v91] <- struct (v136, v131)                                 │

00:02:02 #10302 [Verbose] > │         let v137 : uint64 = v91 + 1UL                                        │

00:02:02 #10303 [Verbose] > │ ## map                                                                       │

00:02:02 #10304 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10305 [Verbose] > │         v89.l0 <- v137                                                       │

00:02:02 #10306 [Verbose] >

00:02:02 #10308 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10307 [Verbose] > │         ()                                                                   │

00:02:02 #10309 [Verbose] > inl map fn s =

00:02:02 #10310 [Verbose] >     (s, StreamNil)

00:02:02 #10311 [Verbose] >     ||> fold_back fun x acc =>

00:02:02 #10312 [Verbose] > │     let v138 : string = "Input"                                              │

00:02:02 #10313 [Verbose] >         StreamCons (fn x, fun () => acc)

00:02:02 #10314 [Verbose] > │     let v139 : string = "Expected"                                           │

00:02:02 #10315 [Verbose] > │     let v140 : string = "Result"                                             │

00:02:02 #10316 [Verbose] > │     let v141 : string = "Best"                                               │

00:02:02 #10317 [Verbose] > │     let v142 : UH2 = UH2_1                                                   │

00:02:02 #10318 [Verbose] > │     let v143 : UH2 = UH2_0(v141, v142)                                       │

00:02:02 #10319 [Verbose] > │     let v144 : UH2 = UH2_0(v140, v143)                                       │

00:02:02 #10320 [Verbose] > │     let v145 : UH2 = UH2_0(v139, v144)                                       │

00:02:02 #10321 [Verbose] > │     let v146 : UH2 = UH2_0(v138, v145)                                       │

00:02:02 #10322 [Verbose] > │     let v147 : US0 = US0_0                                                   │

00:02:02 #10323 [Verbose] > │     let v148 : string = "---"                                                │

00:02:02 #10324 [Verbose] > │     let v149 : UH2 = UH2_1                                                   │

00:02:02 #10325 [Verbose] > │     let v150 : UH2 = UH2_0(v148, v149)                                       │

00:02:02 #10326 [Verbose] > │     let v151 : UH2 = UH2_0(v148, v150)                                       │

00:02:02 #10327 [Verbose] > │     let v152 : UH2 = UH2_0(v148, v151)                                       │

00:02:02 #10328 [Verbose] > │     let v153 : UH2 = UH2_0(v148, v152)                                       │

00:02:02 #10329 [Verbose] > │     let v154 : US0 = US0_0                                                   │

00:02:02 #10330 [Verbose] > │     let v155 : UH4 = UH4_1                                                   │

00:02:02 #10331 [Verbose] > │     let v156 : UH4 = UH4_0(v153, v154, v155)                                 │

00:02:02 #10332 [Verbose] > │     let v157 : UH4 = UH4_0(v146, v147, v156)                                 │

00:02:02 #10333 [Verbose] > │     let v158 : (struct (UH2 * US0) []) = method16(v157)                      │

00:02:02 #10334 [Verbose] > │     let v159 : uint64 = System.Convert.ToUInt64 v158.Length                  │

00:02:02 #10335 [Verbose] > │     let v160 : uint64 = System.Convert.ToUInt64 v88.Length                   │

00:02:02 #10336 [Verbose] > │     let v161 : uint64 = v159 + v160                                          │

00:02:02 #10337 [Verbose] > │     let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:02:02 #10338 [Verbose] > │ US0)> (System.Convert.ToInt32(v161))                                         │

00:02:02 #10339 [Verbose] > │     let v163 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10340 [Verbose] > │     while method4(v161, v163) do                                             │

00:02:02 #10341 [Verbose] > │         let v165 : uint64 = v163.l0                                          │

00:02:02 #10342 [Verbose] > │         let v166 : bool = v165 < v159                                        │

00:02:02 #10343 [Verbose] > │         let struct (v172 : UH2, v173 : US0) =                                │

00:02:02 #10344 [Verbose] > │             if v166 then                                                     │

00:02:02 #10345 [Verbose] > │                 let struct (v167 : UH2, v168 : US0) = v158.[int v165]        │

00:02:02 #10346 [Verbose] > │                 struct (v167, v168)                                          │

00:02:02 #10347 [Verbose] > │             else                                                             │

00:02:02 #10348 [Verbose] > │                 let v169 : uint64 = v165 - v159                              │

00:02:02 #10349 [Verbose] > │                 let struct (v170 : UH2, v171 : US0) = v88.[int v169]         │

00:02:02 #10350 [Verbose] > │                 struct (v170, v171)                                          │

00:02:02 #10351 [Verbose] > │         v162.[int v165] <- struct (v172, v173)                               │

00:02:02 #10352 [Verbose] > │         let v174 : uint64 = v165 + 1UL                                       │

00:02:02 #10353 [Verbose] > │         v163.l0 <- v174                                                      │

00:02:02 #10354 [Verbose] > │         ()                                                                   │

00:02:02 #10355 [Verbose] > │     let v175 : uint64 = System.Convert.ToUInt64 v162.Length                  │

00:02:02 #10356 [Verbose] > │     let v176 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:02:02 #10357 [Verbose] > │ (System.Convert.ToInt32(v175))                                               │

00:02:02 #10358 [Verbose] > │     let v177 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10359 [Verbose] > │     while method4(v175, v177) do                                             │

00:02:02 #10360 [Verbose] > │         let v179 : uint64 = v177.l0                                          │

00:02:02 #10361 [Verbose] > │         let struct (v180 : UH2, v181 : US0) = v162.[int v179]                │

00:02:02 #10362 [Verbose] > │         let v182 : (string []) = method19(v180)                              │

00:02:02 #10363 [Verbose] > │         v176.[int v179] <- v182                                              │

00:02:02 #10364 [Verbose] > │         let v183 : uint64 = v179 + 1UL                                       │

00:02:02 #10365 [Verbose] > │         v177.l0 <- v183                                                      │

00:02:02 #10366 [Verbose] > │         ()                                                                   │

00:02:02 #10367 [Verbose] > │     let v184 : ((string []) []) = v176 |> Array.transpose                    │

00:02:02 #10368 [Verbose] > │     let v185 : uint64 = System.Convert.ToUInt64 v184.Length                  │

00:02:02 #10369 [Verbose] > │     let v186 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:02 #10370 [Verbose] > │ (System.Convert.ToInt32(v185))                                               │

00:02:02 #10371 [Verbose] > │     let v187 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10372 [Verbose] > │     while method4(v185, v187) do                                             │

00:02:02 #10373 [Verbose] > │         let v189 : uint64 = v187.l0                                          │

00:02:02 #10374 [Verbose] > │         let v190 : (string []) = v184.[int v189]                             │

00:02:02 #10375 [Verbose] > │         let v191 : uint64 = System.Convert.ToUInt64 v190.Length              │

00:02:02 #10376 [Verbose] > │         let v192 : (int64 []) = Array.zeroCreate<int64>                      │

00:02:02 #10377 [Verbose] > │ (System.Convert.ToInt32(v191))                                               │

00:02:02 #10378 [Verbose] > │         let v193 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:02 #10379 [Verbose] > │         while method4(v191, v193) do                                         │

00:02:02 #10380 [Verbose] > │             let v195 : uint64 = v193.l0                                      │

00:02:02 #10381 [Verbose] > │             let v196 : string = v190.[int v195]                              │

00:02:02 #10382 [Verbose] > │             let v197 : int64 = System.Convert.ToInt64 v196.Length            │

00:02:02 #10383 [Verbose] > │             v192.[int v195] <- v197                                          │

00:02:02 #10384 [Verbose] > │             let v198 : uint64 = v195 + 1UL                                   │

00:02:02 #10385 [Verbose] >

00:02:02 #10386 [Verbose] > │             v193.l0 <- v198                                                  │

00:02:02 #10387 [Verbose] > ╭─[ 318.21ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10389 [Verbose] > │ ()                                                                           │

00:02:02 #10388 [Verbose] > │             ()                                                               │

00:02:02 #10390 [Verbose] > │                                                                              │

00:02:02 #10391 [Verbose] > │         let v199 : (int64 []) = v192 |> Array.sortDescending                 │

00:02:02 #10392 [Verbose] > │                                                                              │

00:02:02 #10393 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10394 [Verbose] > │         let v200 : int64 option = v199 |> Array.tryItem 0                    │

00:02:02 #10395 [Verbose] >

00:02:02 #10396 [Verbose] > │         let v201 : (int64 -> US1) = closure5()                               │

00:02:02 #10397 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10398 [Verbose] > // // test

00:02:02 #10399 [Verbose] >

00:02:02 #10400 [Verbose] > listm.init 10i32 print_and_return

00:02:02 #10401 [Verbose] > |> from_list

00:02:02 #10402 [Verbose] > |> mapi fun i x => i + x

00:02:02 #10403 [Verbose] > |> try_item 5i32

00:02:02 #10404 [Verbose] > |> _assert_eq (Some 10i32)

00:02:02 #10405 [Verbose] > │         let v202 : US1 = US1_0                                               │

00:02:02 #10406 [Verbose] > │         let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │

00:02:02 #10407 [Verbose] > │         let v206 : int64 =                                                   │

00:02:02 #10408 [Verbose] > │             match v203 with                                                  │

00:02:02 #10409 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:02:02 #10410 [Verbose] > │                 0L                                                           │

00:02:02 #10411 [Verbose] > │             | US1_1(v204) -> (* Some *)                                      │

00:02:02 #10412 [Verbose] > │                 v204                                                         │

00:02:02 #10413 [Verbose] > │         v186.[int v189] <- v206                                              │

00:02:02 #10414 [Verbose] > │         let v207 : uint64 = v189 + 1UL                                       │

00:02:02 #10415 [Verbose] > │         v187.l0 <- v207                                                      │

00:02:02 #10416 [Verbose] > │         ()                                                                   │

00:02:02 #10417 [Verbose] > │     let v208 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:02:02 #10418 [Verbose] > │     let v209 : UH5 = UH5_1                                                   │

00:02:02 #10419 [Verbose] > │     let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3                   │

00:02:02 #10420 [Verbose] > │     while method22(v208, v210) do                                            │

00:02:02 #10421 [Verbose] > │         let v212 : uint64 = v210.l0                                          │

00:02:02 #10422 [Verbose] >

00:02:02 #10423 [Verbose] > │         let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2             │

00:02:02 #10424 [Verbose] > ╭─[ 306.93ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10425 [Verbose] > │         let v215 : int64 = v186.[int v212]                                   │

00:02:02 #10426 [Verbose] > │ ()                                                                           │

00:02:02 #10427 [Verbose] > │         let v216 : int32 = v214 + 1                                          │

00:02:02 #10428 [Verbose] > │                                                                              │

00:02:02 #10429 [Verbose] > │         let v217 : uint64 = v212 + 1UL                                       │

00:02:02 #10430 [Verbose] > │                                                                              │

00:02:02 #10431 [Verbose] > │         let v218 : UH5 = UH5_0(v214, v215, v213)                             │

00:02:02 #10432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10433 [Verbose] > │         v210.l0 <- v217                                                      │

00:02:02 #10434 [Verbose] >

00:02:02 #10435 [Verbose] > │         v210.l1 <- v218                                                      │

00:02:02 #10437 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #10437 [Verbose] > │         v210.l2 <- v216                                                      │

00:02:02 #10438 [Verbose] > │         ()                                                                   │

00:02:02 #10439 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #10440 [Verbose] > │     let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2                 │

00:02:02 #10441 [Verbose] > │ ## (</>)                                                                     │

00:02:02 #10442 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10443 [Verbose] > │     let v221 : UH5 = UH5_1                                                   │

00:02:02 #10444 [Verbose] > │     let v222 : UH5 = method23(v219, v221)                                    │

00:02:02 #10445 [Verbose] >

00:02:02 #10446 [Verbose] > │     let v223 : (struct (int32 * int64) []) = method24(v222)                  │

00:02:02 #10447 [Verbose] > │     let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │

00:02:02 #10448 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10449 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:02:02 #10450 [Verbose] > inl (</>) (a : string) (b : string) : string =

00:02:02 #10451 [Verbose] >     $'System.IO.Path.Combine (!a, !b)'

00:02:02 #10452 [Verbose] > │     let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:02:02 #10453 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175))                          │

00:02:02 #10454 [Verbose] > │     let v226 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10455 [Verbose] > │     while method4(v175, v226) do                                             │

00:02:02 #10456 [Verbose] > │         let v228 : uint64 = v226.l0                                          │

00:02:02 #10457 [Verbose] > │         let struct (v229 : UH2, v230 : US0) = v162.[int v228]                │

00:02:02 #10458 [Verbose] > │         let v231 : UH6 = UH6_1                                               │

00:02:02 #10459 [Verbose] > │         let v232 : int32 = 0                                                 │

00:02:02 #10460 [Verbose] > │         let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232)   │

00:02:02 #10461 [Verbose] > │         let v235 : UH6 = UH6_1                                               │

00:02:02 #10462 [Verbose] > │         let v236 : UH6 = method28(v233, v235)                                │

00:02:02 #10463 [Verbose] > │         let v237 : UH2 = UH2_1                                               │

00:02:02 #10464 [Verbose] > │         let v238 : UH2 = method29(v224, v236, v237)                          │

00:02:02 #10465 [Verbose] > │         let v239 : (string []) = method30(v238)                              │

00:02:02 #10466 [Verbose] > │         v225.[int v228] <- struct (v239, v230)                               │

00:02:02 #10467 [Verbose] > │         let v240 : uint64 = v228 + 1UL                                       │

00:02:02 #10468 [Verbose] > │         v226.l0 <- v240                                                      │

00:02:02 #10469 [Verbose] > │         ()                                                                   │

00:02:02 #10470 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:02 #10471 [Verbose] > │     let v241 : uint64 = System.Convert.ToUInt64 v225.Length                  │

00:02:02 #10472 [Verbose] > │     let v242 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10473 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5785-8553-87e14d44cd20\main.spi

00:02:02 #10474 [Verbose] > │     while method4(v241, v242) do                                             │

00:02:02 #10475 [Verbose] > │         let v244 : uint64 = v242.l0                                          │

00:02:02 #10476 [Verbose] > │         let struct (v245 : (string []), v246 : US0) = v225.[int v244]        │

00:02:02 #10477 [Verbose] > │         match v246 with                                                      │

00:02:02 #10478 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:02 #10479 [Verbose] > │             let mutable result = None                                        │

00:02:02 #10480 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:02 #10481 [Verbose] > │             ()                                                               │

00:02:02 #10482 [Verbose] > │             #endif                                                           │

00:02:02 #10483 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:02 #10484 [Verbose] > │             ()                                                               │

00:02:02 #10485 [Verbose] > │             #endif                                                           │

00:02:02 #10486 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:02 #10487 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:02 #10488 [Verbose] > │             ()                                                               │

00:02:02 #10489 [Verbose] > │             #endif                                                           │

00:02:02 #10490 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:02 #10491 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:02 #10492 [Verbose] > │             ()                                                               │

00:02:02 #10493 [Verbose] > │             #endif                                                           │

00:02:02 #10494 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:02 #10495 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:02 #10496 [Verbose] > │             ()                                                               │

00:02:02 #10497 [Verbose] > │             #endif                                                           │

00:02:02 #10498 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:02 #10499 [Verbose] > │             result |> Option.get                                             │

00:02:02 #10500 [Verbose] > │             ()                                                               │

00:02:02 #10501 [Verbose] > │         | US0_1(v247) -> (* Some *)                                          │

00:02:02 #10502 [Verbose] > │             let mutable result = None                                        │

00:02:02 #10503 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:02 #10504 [Verbose] > │             ()                                                               │

00:02:02 #10505 [Verbose] > │             #endif                                                           │

00:02:02 #10506 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:02 #10507 [Verbose] > │             ()                                                               │

00:02:02 #10508 [Verbose] > │             #endif                                                           │

00:02:02 #10509 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:02 #10510 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:02 #10511 [Verbose] > │             ()                                                               │

00:02:02 #10512 [Verbose] > │             #endif                                                           │

00:02:02 #10513 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:02 #10514 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:02 #10515 [Verbose] > │             ()                                                               │

00:02:02 #10516 [Verbose] > │             #endif                                                           │

00:02:02 #10517 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:02 #10518 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:02 #10519 [Verbose] > │             ()                                                               │

00:02:02 #10520 [Verbose] > │             #endif                                                           │

00:02:02 #10521 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:02 #10522 [Verbose] > │             result |> Option.get                                             │

00:02:02 #10523 [Verbose] > │             ()                                                               │

00:02:02 #10524 [Verbose] > │         let v248 : string = "\t| "                                           │

00:02:02 #10525 [Verbose] > │         let v249 : string = System.String.Join (v248, v245)                  │

00:02:02 #10526 [Verbose] > │         System.Console.WriteLine v249                                        │

00:02:02 #10527 [Verbose] > │         let mutable result = None                                            │

00:02:02 #10528 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:02:02 #10529 [Verbose] > │         ()                                                                   │

00:02:02 #10530 [Verbose] > │         #endif                                                               │

00:02:02 #10531 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:02:02 #10532 [Verbose] > │         ()                                                                   │

00:02:02 #10533 [Verbose] > │         #endif                                                               │

00:02:02 #10534 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:02:02 #10535 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:02 #10536 [Verbose] > │         ()                                                                   │

00:02:02 #10537 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5792-9244-9a93872b1745\main.spi

00:02:02 #10538 [Verbose] > │         #endif                                                               │

00:02:02 #10539 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:02:02 #10540 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:02 #10541 [Verbose] > │         ()                                                                   │

00:02:02 #10542 [Verbose] > │         #endif                                                               │

00:02:02 #10543 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:02:02 #10544 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:02 #10545 [Verbose] > │         ()                                                                   │

00:02:02 #10546 [Verbose] > │         #endif                                                               │

00:02:02 #10547 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:02:02 #10548 [Verbose] > │         result |> Option.get                                                 │

00:02:02 #10549 [Verbose] > │         let v250 : uint64 = v244 + 1UL                                       │

00:02:02 #10550 [Verbose] > │         v242.l0 <- v250                                                      │

00:02:02 #10551 [Verbose] > │         ()                                                                   │

00:02:02 #10552 [Verbose] > │     let v251 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:02:02 #10553 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:02 #10554 [Verbose] > │     let v252 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10555 [Verbose] > │     while method4(v87, v252) do                                              │

00:02:02 #10556 [Verbose] > │         let v254 : uint64 = v252.l0                                          │

00:02:02 #10557 [Verbose] > │         let struct (v255 : string, v256 : string, v257 : string, v258 :      │

00:02:02 #10558 [Verbose] > │ (int64 [])) = v11.[int v254]                                                 │

00:02:02 #10559 [Verbose] > │         let v259 : (int64 -> float) = float                                  │

00:02:02 #10560 [Verbose] > │         let v260 : uint64 = System.Convert.ToUInt64 v258.Length              │

00:02:02 #10561 [Verbose] > │         let v261 : (float []) = Array.zeroCreate<float>                      │

00:02:02 #10562 [Verbose] > │ (System.Convert.ToInt32(v260))                                               │

00:02:02 #10563 [Verbose] > │         let v262 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:02 #10564 [Verbose] > │         while method4(v260, v262) do                                         │

00:02:02 #10565 [Verbose] > │             let v264 : uint64 = v262.l0                                      │

00:02:02 #10566 [Verbose] > │             let v265 : int64 = v258.[int v264]                               │

00:02:02 #10567 [Verbose] > │             let v266 : float = v259 v265                                     │

00:02:02 #10568 [Verbose] > │             v261.[int v264] <- v266                                          │

00:02:02 #10569 [Verbose] > │             let v267 : uint64 = v264 + 1UL                                   │

00:02:02 #10570 [Verbose] > │             v262.l0 <- v267                                                  │

00:02:02 #10571 [Verbose] > │             ()                                                               │

00:02:02 #10572 [Verbose] > │         v251.[int v254] <- v261                                              │

00:02:02 #10573 [Verbose] > │         let v268 : uint64 = v254 + 1UL                                       │

00:02:02 #10574 [Verbose] > │         v252.l0 <- v268                                                      │

00:02:02 #10575 [Verbose] > │         ()                                                                   │

00:02:02 #10576 [Verbose] > │     let v269 : ((float []) []) = v251 |> Array.transpose                     │

00:02:02 #10577 [Verbose] > │     let v270 : uint64 = System.Convert.ToUInt64 v269.Length                  │

00:02:02 #10578 [Verbose] > │     let v271 : (float []) = Array.zeroCreate<float>                          │

00:02:02 #10579 [Verbose] > │ (System.Convert.ToInt32(v270))                                               │

00:02:02 #10580 [Verbose] > │     let v272 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10581 [Verbose] > │     while method4(v270, v272) do                                             │

00:02:02 #10582 [Verbose] > │         let v274 : uint64 = v272.l0                                          │

00:02:02 #10583 [Verbose] > │         let v275 : (float []) = v269.[int v274]                              │

00:02:02 #10584 [Verbose] > │         let v276 : float = v275 |> Array.average                             │

00:02:02 #10585 [Verbose] > │         v271.[int v274] <- v276                                              │

00:02:02 #10586 [Verbose] > │         let v277 : uint64 = v274 + 1UL                                       │

00:02:02 #10587 [Verbose] > │         v272.l0 <- v277                                                      │

00:02:02 #10588 [Verbose] > │         ()                                                                   │

00:02:02 #10589 [Verbose] > │     let v278 : (float -> int64) = int64                                      │

00:02:02 #10590 [Verbose] > │     let v279 : uint64 = System.Convert.ToUInt64 v271.Length                  │

00:02:02 #10591 [Verbose] > │     let v280 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:02 #10592 [Verbose] > │ (System.Convert.ToInt32(v279))                                               │

00:02:02 #10593 [Verbose] > │     let v281 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10594 [Verbose] > │     while method4(v279, v281) do                                             │

00:02:02 #10595 [Verbose] > │         let v283 : uint64 = v281.l0                                          │

00:02:02 #10596 [Verbose] > │         let v284 : float = v271.[int v283]                                   │

00:02:02 #10597 [Verbose] > │         let v285 : int64 = v278 v284                                         │

00:02:02 #10598 [Verbose] > │         v280.[int v283] <- v285                                              │

00:02:02 #10599 [Verbose] > │         let v286 : uint64 = v283 + 1UL                                       │

00:02:02 #10600 [Verbose] > │         v281.l0 <- v286                                                      │

00:02:02 #10601 [Verbose] > │         ()                                                                   │

00:02:02 #10602 [Verbose] > │     let v287 : uint64 = System.Convert.ToUInt64 v280.Length                  │

00:02:02 #10603 [Verbose] > │     let v288 : UH5 = UH5_1                                                   │

00:02:02 #10604 [Verbose] > │     let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3                   │

00:02:02 #10605 [Verbose] > │     while method22(v287, v289) do                                            │

00:02:02 #10606 [Verbose] > │         let v291 : uint64 = v289.l0                                          │

00:02:02 #10607 [Verbose] > │         let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2             │

00:02:02 #10608 [Verbose] > │         let v294 : int64 = v280.[int v291]                                   │

00:02:02 #10609 [Verbose] > │         let v295 : int32 = v293 + 1                                          │

00:02:02 #10610 [Verbose] > │         let v296 : uint64 = v291 + 1UL                                       │

00:02:02 #10611 [Verbose] > │         let v297 : UH5 = UH5_0(v293, v294, v292)                             │

00:02:02 #10612 [Verbose] > │         v289.l0 <- v296                                                      │

00:02:02 #10613 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5798-9880-98fa1aca807b\main.spi

00:02:02 #10614 [Verbose] > │         v289.l1 <- v297                                                      │

00:02:02 #10615 [Verbose] > │         v289.l2 <- v295                                                      │

00:02:02 #10616 [Verbose] > │         ()                                                                   │

00:02:02 #10617 [Verbose] > │     let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2                 │

00:02:02 #10618 [Verbose] > │     let v300 : UH5 = UH5_1                                                   │

00:02:02 #10619 [Verbose] > │     let v301 : UH5 = method23(v298, v300)                                    │

00:02:02 #10620 [Verbose] >

00:02:02 #10621 [Verbose] > │     let v302 : (struct (int32 * int64) []) = method33(v301)                  │

00:02:02 #10622 [Verbose] > ╭─[ 342.97ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10623 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:02 #10624 [Verbose] > │ ()                                                                           │

00:02:02 #10625 [Verbose] > │     let v303 : string = "Average Ranking  "                                  │

00:02:02 #10626 [Verbose] > │                                                                              │

00:02:02 #10627 [Verbose] > │     System.Console.WriteLine v303                                            │

00:02:02 #10628 [Verbose] > │                                                                              │

00:02:02 #10629 [Verbose] > │     let v304 : (struct (int32 * int64) -> int64) = closure6()                │

00:02:02 #10630 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10631 [Verbose] >

00:02:02 #10632 [Verbose] > │     let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304       │

00:02:02 #10633 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10634 [Verbose] > │     let v306 : uint64 = System.Convert.ToUInt64 v305.Length                  │

00:02:02 #10635 [Verbose] > // // test

00:02:02 #10636 [Verbose] >

00:02:02 #10637 [Verbose] > listm.init 10i32 id

00:02:02 #10638 [Verbose] > |> from_list

00:02:02 #10639 [Verbose] > |> map ((*) 2)

00:02:02 #10640 [Verbose] > |> item 5i32

00:02:02 #10641 [Verbose] > │     let v307 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10642 [Verbose] > |> _assert_eq 10i32

00:02:02 #10643 [Verbose] > │     while method4(v306, v307) do                                             │

00:02:02 #10644 [Verbose] > │         let v309 : uint64 = v307.l0                                          │

00:02:02 #10645 [Verbose] > │         let struct (v310 : int32, v311 : int64) = v305.[int v309]            │

00:02:02 #10646 [Verbose] > │         let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │

00:02:02 #10647 [Verbose] > │ "                                                                            │

00:02:02 #10648 [Verbose] >

00:02:02 #10649 [Verbose] > │         System.Console.WriteLine v312                                        │

00:02:02 #10651 [Verbose] > │         let v313 : uint64 = v309 + 1UL                                       │

00:02:02 #10650 [Verbose] > ╭─[ 311.26ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10652 [Verbose] > │         v307.l0 <- v313                                                      │

00:02:02 #10653 [Verbose] > │ ()                                                                           │

00:02:02 #10654 [Verbose] > │         ()                                                                   │

00:02:02 #10655 [Verbose] > │                                                                              │

00:02:02 #10656 [Verbose] > │     ()                                                                       │

00:02:02 #10657 [Verbose] > │                                                                              │

00:02:02 #10658 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10659 [Verbose] > │ and method0 () : unit =                                                      │

00:02:02 #10660 [Verbose] >

00:02:02 #10661 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #10662 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #10663 [Verbose] > │ ## create_temp_directory_name                                                │

00:02:02 #10664 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10665 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:02:02 #10666 [Verbose] >

00:02:02 #10667 [Verbose] > │     let v1 : string = nameof v0                                              │

00:02:02 #10668 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10669 [Verbose] > inl create_temp_directory_name () =

00:02:02 #10670 [Verbose] >     run_target function

00:02:02 #10671 [Verbose] >         | Fsharp (Native) => fun () =>

00:02:02 #10672 [Verbose] >             inl root =

00:02:02 #10673 [Verbose] > $'System.Reflection.Assembly.GetEntryAssembly().GetName().Name' : string

00:02:02 #10674 [Verbose] >

00:02:02 #10675 [Verbose] >             ($'System.IO.Path.GetTempPath' () : string)

00:02:02 #10676 [Verbose] >             </> ($'$"{!root}"' : string)

00:02:02 #10677 [Verbose] >             </> (date_time.new_guid_from_date_time $'System.DateTime.Now' |>

00:02:02 #10678 [Verbose] > sm'.obj_to_string)

00:02:02 #10679 [Verbose] >         | x => fun () => failwith $'$"create_temp_directory_name target: {!x}"'

00:02:02 #10680 [Verbose] > │     let v2 : string = ""                                                     │

00:02:02 #10681 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:02 #10682 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:02 #10683 [Verbose] > │     let v3 : string = $"Test: {v1}"                                          │

00:02:02 #10684 [Verbose] > │     System.Console.WriteLine v3                                              │

00:02:02 #10685 [Verbose] > │     let v4 : string = "a"                                                    │

00:02:02 #10686 [Verbose] > │     let v5 : string = "b"                                                    │

00:02:02 #10687 [Verbose] > │     let v6 : UH0 = UH0_1                                                     │

00:02:02 #10688 [Verbose] > │     let v7 : UH0 = UH0_0(v5, v5, v5, v6)                                     │

00:02:02 #10689 [Verbose] > │     let v8 : UH0 = UH0_0(v4, v4, v4, v7)                                     │

00:02:02 #10690 [Verbose] > │     let v9 : (struct (string * string * string) []) = method1(v8)            │

00:02:02 #10691 [Verbose] > │     let v10 : uint64 = System.Convert.ToUInt64 v9.Length                     │

00:02:02 #10692 [Verbose] > │     let v11 : (struct (string * string * string * (int64 [])) []) =          │

00:02:02 #10693 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:02:02 #10694 [Verbose] > │ (System.Convert.ToInt32(v10))                                                │

00:02:02 #10695 [Verbose] > │     let v12 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:02 #10696 [Verbose] > │     while method4(v10, v12) do                                               │

00:02:02 #10697 [Verbose] > │         let v14 : uint64 = v12.l0                                            │

00:02:02 #10698 [Verbose] > │         let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │

00:02:02 #10699 [Verbose] > │         let v18 : string = $"%A{struct (v15, v16)}"                          │

00:02:02 #10700 [Verbose] > │         System.Console.WriteLine v2                                          │

00:02:02 #10701 [Verbose] > │         let v19 : string = $"Solution: {v18}  "                              │

00:02:02 #10702 [Verbose] > │         System.Console.WriteLine v19                                         │

00:02:02 #10703 [Verbose] > │         let v20 : int32 = 0                                                  │

00:02:02 #10704 [Verbose] > │         let v21 : string = "A"                                               │

00:02:02 #10705 [Verbose] > │         let v22 : (struct (string * string) -> string) = closure1()          │

00:02:02 #10706 [Verbose] > │         let v23 : int32 = 1                                                  │

00:02:02 #10707 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5820-2039-24bc2767a477\main.spi

00:02:02 #10708 [Verbose] > │         let v24 : string = "B"                                               │

00:02:02 #10709 [Verbose] > │         let v25 : (struct (string * string) -> string) = closure2()          │

00:02:02 #10710 [Verbose] > │         let v26 : UH1 = UH1_1                                                │

00:02:02 #10711 [Verbose] > │         let v27 : UH1 = UH1_0(v23, v24, v25, v26)                            │

00:02:02 #10712 [Verbose] > │         let v28 : UH1 = UH1_0(v20, v21, v22, v27)                            │

00:02:02 #10713 [Verbose] > │         let v29 : (struct (int32 * string * (struct (string * string) ->     │

00:02:02 #10714 [Verbose] > │ string)) []) = method5(v28)                                                  │

00:02:02 #10715 [Verbose] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:02:02 #10716 [Verbose] > │         let v31 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:02:02 #10717 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30))                              │

00:02:02 #10718 [Verbose] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10719 [Verbose] > │         while method4(v30, v32) do                                           │

00:02:02 #10720 [Verbose] > │             let v34 : uint64 = v32.l0                                        │

00:02:02 #10721 [Verbose] > │             let struct (v35 : int32, v36 : string, v37 : (struct (string *   │

00:02:02 #10722 [Verbose] > │ string) -> string)) = v29.[int v34]                                          │

00:02:02 #10723 [Verbose] > │             let mutable result = None                                        │

00:02:02 #10724 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:02 #10725 [Verbose] > │             ()                                                               │

00:02:02 #10726 [Verbose] > │             #endif                                                           │

00:02:02 #10727 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:02 #10728 [Verbose] > │             ()                                                               │

00:02:02 #10729 [Verbose] > │             #endif                                                           │

00:02:02 #10730 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:02 #10731 [Verbose] > │             System.GC.Collect ()                                             │

00:02:02 #10732 [Verbose] > │             ()                                                               │

00:02:02 #10733 [Verbose] > │             #endif                                                           │

00:02:02 #10734 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:02 #10735 [Verbose] > │             System.GC.Collect ()                                             │

00:02:02 #10736 [Verbose] > │             ()                                                               │

00:02:02 #10737 [Verbose] > │             #endif                                                           │

00:02:02 #10738 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:02 #10739 [Verbose] > │             System.GC.Collect ()                                             │

00:02:02 #10740 [Verbose] > │             ()                                                               │

00:02:02 #10741 [Verbose] > │             #endif                                                           │

00:02:02 #10742 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:02 #10743 [Verbose] > │             result |> Option.get                                             │

00:02:02 #10744 [Verbose] > │             let v38 : (unit -> System.Diagnostics.Stopwatch) =               │

00:02:02 #10745 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:02:02 #10746 [Verbose] > │             let v39 : System.Diagnostics.Stopwatch = v38 ()                  │

00:02:02 #10747 [Verbose] > │             v39.Start ()                                                     │

00:02:02 #10748 [Verbose] > │             let v40 : int64 = v39.ElapsedMilliseconds                        │

00:02:02 #10749 [Verbose] > │             let v41 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:02:02 #10750 [Verbose] > │             let v42 : Mut1 = {l0 = 0} : Mut1                                 │

00:02:02 #10751 [Verbose] > │             while method8(v42) do                                            │

00:02:02 #10752 [Verbose] > │                 let v44 : int32 = v42.l0                                     │

00:02:02 #10753 [Verbose] > │                 v41.[int v44] <- v44                                         │

00:02:02 #10754 [Verbose] > │                 let v45 : int32 = v44 + 1                                    │

00:02:02 #10755 [Verbose] > │                 v42.l0 <- v45                                                │

00:02:02 #10756 [Verbose] >

00:02:02 #10757 [Verbose] > │                 ()                                                           │

00:02:02 #10758 [Verbose] > │             let v46 : (int32 -> string) = closure3(v15, v16, v37)            │

00:02:02 #10759 [Verbose] > │             let v47 : (string []) = v41 |> Array.Parallel.map v46            │

00:02:02 #10760 [Verbose] > │             let v48 : int32 = v47.Length                                     │

00:02:02 #10761 [Verbose] > │             let v49 : int32 = v48 - 1                                        │

00:02:02 #10762 [Verbose] > │             let v50 : string = v47.[int v49]                                 │

00:02:02 #10763 [Verbose] > ╭─[ 472.03ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10764 [Verbose] > │             let v51 : int64 = v39.ElapsedMilliseconds                        │

00:02:02 #10765 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:02 #10766 [Verbose] > │             let v52 : int64 = v51 - v40                                      │

00:02:02 #10767 [Verbose] > │     | US0_0                                                                  │

00:02:02 #10768 [Verbose] > │             let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52}  "  │

00:02:02 #10769 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:02 #10770 [Verbose] > │             System.Console.WriteLine v53                                     │

00:02:02 #10771 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:02 #10772 [Verbose] > │             v31.[int v34] <- struct (v50, v52)                               │

00:02:02 #10773 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:02 #10774 [Verbose] > │             let v54 : uint64 = v34 + 1UL                                     │

00:02:02 #10775 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:02 #10776 [Verbose] > │             v32.l0 <- v54                                                    │

00:02:02 #10777 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:02 #10778 [Verbose] > │             ()                                                               │

00:02:02 #10779 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:02 #10780 [Verbose] > │         let v55 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:02:02 #10781 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:02 #10782 [Verbose] > │         let v56 : (string []) = Array.zeroCreate<string>                     │

00:02:02 #10783 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:02 #10784 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:02 #10785 [Verbose] > │     printfn $"print_and_return / x: {6}"                                     │

00:02:02 #10786 [Verbose] > │         let v57 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10787 [Verbose] > │     printfn $"print_and_return / x: {7}"                                     │

00:02:02 #10788 [Verbose] > │         while method4(v55, v57) do                                           │

00:02:02 #10789 [Verbose] > │     printfn $"print_and_return / x: {8}"                                     │

00:02:02 #10790 [Verbose] > │             let v59 : uint64 = v57.l0                                        │

00:02:02 #10791 [Verbose] > │     printfn $"print_and_return / x: {9}"                                     │

00:02:02 #10792 [Verbose] > │             let struct (v60 : string, v61 : int64) = v31.[int v59]           │

00:02:02 #10793 [Verbose] > │     let v0 : US0 = US0_1(10)                                                 │

00:02:02 #10794 [Verbose] > │             v56.[int v59] <- v60                                             │

00:02:02 #10795 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:02 #10796 [Verbose] > │             let v62 : uint64 = v59 + 1UL                                     │

00:02:02 #10797 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:02 #10798 [Verbose] > │             v57.l0 <- v62                                                    │

00:02:02 #10799 [Verbose] > │     let v5 : US0 = US0_1(10)                                                 │

00:02:02 #10800 [Verbose] > │             ()                                                               │

00:02:02 #10801 [Verbose] > │     let v6 : US0 = US0_1(10)                                                 │

00:02:02 #10802 [Verbose] > │         let v63 : uint64 = System.Convert.ToUInt64 v56.Length                │

00:02:02 #10803 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:02:02 #10804 [Verbose] > │         let v64 : bool = v63 <= 1UL                                          │

00:02:02 #10805 [Verbose] > │     ()                                                                       │

00:02:02 #10806 [Verbose] > │         if v64 then                                                          │

00:02:02 #10807 [Verbose] > │             ()                                                               │

00:02:02 #10808 [Verbose] > │ method0()                                                                    │

00:02:02 #10809 [Verbose] > │                                                                              │

00:02:02 #10810 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:02 #10811 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:02 #10813 [Verbose] > │         else                                                                 │

00:02:02 #10813 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:02 #10814 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:02 #10815 [Verbose] > │             let v65 : string = v56.[int 0UL]                                 │

00:02:02 #10816 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:02 #10817 [Verbose] > │             let v66 : uint64 = 0UL                                           │

00:02:02 #10818 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:02 #10819 [Verbose] > │             let v67 : bool = method9(v65, v56, v66)                          │

00:02:02 #10820 [Verbose] > │ print_and_return / x: 6                                                      │

00:02:02 #10821 [Verbose] > │             if v67 then                                                      │

00:02:02 #10822 [Verbose] > │ print_and_return / x: 7                                                      │

00:02:02 #10823 [Verbose] > │                 ()                                                           │

00:02:02 #10824 [Verbose] > │ print_and_return / x: 8                                                      │

00:02:02 #10825 [Verbose] > │             else                                                             │

00:02:02 #10826 [Verbose] > │                 let v68 : string = $"Challenge error: {v56}"                 │

00:02:02 #10827 [Verbose] > │ print_and_return / x: 9                                                      │

00:02:02 #10828 [Verbose] > │ US0_1 10                                                                     │

00:02:02 #10829 [Verbose] > │                 failwith<unit> v68                                           │

00:02:02 #10830 [Verbose] > │                                                                              │

00:02:02 #10831 [Verbose] > │         let v69 : string = $"%A{v17}"                                        │

00:02:02 #10832 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10834 [Verbose] > │         let v70 : (string []) = Array.zeroCreate<string>                     │

00:02:02 #10833 [Verbose] >

00:02:02 #10835 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #10836 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:02 #10837 [Verbose] > │         let v71 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10838 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #10839 [Verbose] > │ ## choose                                                                    │

00:02:02 #10840 [Verbose] > │         while method4(v55, v71) do                                           │

00:02:02 #10841 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #10842 [Verbose] > │             let v73 : uint64 = v71.l0                                        │

00:02:02 #10843 [Verbose] >

00:02:02 #10844 [Verbose] > │             let struct (v74 : string, v75 : int64) = v31.[int v73]           │

00:02:02 #10845 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #10846 [Verbose] > │             v70.[int v73] <- v74                                             │

00:02:02 #10847 [Verbose] > │             let v76 : uint64 = v73 + 1UL                                     │

00:02:02 #10848 [Verbose] > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq

00:02:02 #10849 [Verbose] > dim u =

00:02:02 #10850 [Verbose] >     fun n =>

00:02:02 #10851 [Verbose] >         inl rec body fn s i i' =

00:02:02 #10852 [Verbose] >             match i |> s with

00:02:02 #10853 [Verbose] >             | None => None

00:02:02 #10854 [Verbose] >             | Some x =>

00:02:02 #10855 [Verbose] >                 match x |> fn with

00:02:02 #10856 [Verbose] >                 | Some x when n = i' => Some x

00:02:02 #10857 [Verbose] >                 | Some _ => loop (i + 1) (i' + 1)

00:02:02 #10858 [Verbose] >                 | _ => loop (i + 1) i'

00:02:02 #10859 [Verbose] >         and inl loop i i' =

00:02:02 #10860 [Verbose] >             if n |> var_is |> not

00:02:02 #10861 [Verbose] > │             v71.l0 <- v76                                                    │

00:02:02 #10862 [Verbose] >             then body fn s i i'

00:02:02 #10863 [Verbose] >             else

00:02:02 #10864 [Verbose] >                 inl fn = join fn

00:02:02 #10865 [Verbose] >                 inl s = join s

00:02:02 #10866 [Verbose] >                 join body fn s i i'

00:02:02 #10867 [Verbose] >         loop 0 0

00:02:02 #10868 [Verbose] > │             ()                                                               │

00:02:02 #10869 [Verbose] > │         let v77 : string = v70.[int 0UL]                                     │

00:02:02 #10870 [Verbose] > │         let v78 : string = $"%A{v77}"                                        │

00:02:02 #10871 [Verbose] > │         let v79 : (int64 []) = Array.zeroCreate<int64>                       │

00:02:02 #10872 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:02 #10873 [Verbose] > │         let v80 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:02 #10874 [Verbose] > │         while method4(v55, v80) do                                           │

00:02:02 #10875 [Verbose] > │             let v82 : uint64 = v80.l0                                        │

00:02:02 #10876 [Verbose] > │             let struct (v83 : string, v84 : int64) = v31.[int v82]           │

00:02:02 #10877 [Verbose] > │             v79.[int v82] <- v84                                             │

00:02:02 #10878 [Verbose] > │             let v85 : uint64 = v82 + 1UL                                     │

00:02:02 #10879 [Verbose] > │             v80.l0 <- v85                                                    │

00:02:02 #10880 [Verbose] > │             ()                                                               │

00:02:02 #10881 [Verbose] > │         v11.[int v14] <- struct (v69, v18, v78, v79)                         │

00:02:02 #10882 [Verbose] > │         let v86 : uint64 = v14 + 1UL                                         │

00:02:02 #10883 [Verbose] > │         v12.l0 <- v86                                                        │

00:02:02 #10884 [Verbose] > │         ()                                                                   │

00:02:02 #10885 [Verbose] > │     let v87 : uint64 = System.Convert.ToUInt64 v11.Length                    │

00:02:02 #10886 [Verbose] > │     let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:02:02 #10887 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:02 #10888 [Verbose] > │     let v89 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:02 #10889 [Verbose] > │     while method4(v87, v89) do                                               │

00:02:02 #10890 [Verbose] > │         let v91 : uint64 = v89.l0                                            │

00:02:02 #10891 [Verbose] > │         let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │

00:02:02 #10892 [Verbose] > │ ])) = v11.[int v91]                                                          │

00:02:02 #10893 [Verbose] > │         let v96 : uint64 = System.Convert.ToUInt64 v95.Length                │

00:02:02 #10894 [Verbose] > │         let v97 : UH3 = UH3_1                                                │

00:02:02 #10895 [Verbose] > │         let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2                │

00:02:02 #10896 [Verbose] > │         while method10(v96, v98) do                                          │

00:02:02 #10897 [Verbose] > │             let v100 : uint64 = v98.l0                                       │

00:02:02 #10898 [Verbose] > │             let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2           │

00:02:02 #10899 [Verbose] > │             let v103 : int64 = v95.[int v100]                                │

00:02:02 #10900 [Verbose] > │             let v104 : int64 = v102 + 1L                                     │

00:02:02 #10901 [Verbose] > │             let v105 : uint64 = v100 + 1UL                                   │

00:02:02 #10902 [Verbose] > │             let v106 : UH3 = UH3_0(v102, v103, v101)                         │

00:02:02 #10903 [Verbose] > │             v98.l0 <- v105                                                   │

00:02:02 #10904 [Verbose] > │             v98.l1 <- v106                                                   │

00:02:02 #10905 [Verbose] > │             v98.l2 <- v104                                                   │

00:02:02 #10906 [Verbose] > │             ()                                                               │

00:02:02 #10907 [Verbose] > │         let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2               │

00:02:02 #10908 [Verbose] > │         let v109 : UH3 = UH3_1                                               │

00:02:02 #10909 [Verbose] > │         let v110 : UH3 = method11(v107, v109)                                │

00:02:02 #10910 [Verbose] > │         let v111 : (struct (int64 * int64) []) = method12(v110)              │

00:02:02 #10911 [Verbose] > │         let v112 : int32 = v111.Length                                       │

00:02:02 #10912 [Verbose] > │         let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:02:02 #10913 [Verbose] > │ (int64 * int64)> (v112)                                                      │

00:02:02 #10914 [Verbose] > │         let v114 : Mut1 = {l0 = 0} : Mut1                                    │

00:02:02 #10915 [Verbose] > │         while method15(v112, v114) do                                        │

00:02:02 #10916 [Verbose] > │             let v116 : int32 = v114.l0                                       │

00:02:02 #10917 [Verbose] > │             let struct (v117 : int64, v118 : int64) = v111.[int v116]        │

00:02:02 #10918 [Verbose] > │             let v119 : int64 = v117 + 1L                                     │

00:02:02 #10919 [Verbose] > │             v113.[int v116] <- struct (v119, v118)                           │

00:02:02 #10920 [Verbose] > │             let v120 : int32 = v116 + 1                                      │

00:02:02 #10921 [Verbose] > │             v114.l0 <- v120                                                  │

00:02:02 #10922 [Verbose] > │             ()                                                               │

00:02:02 #10923 [Verbose] > │         let v121 : (struct (int64 * int64) -> int64) = closure4()            │

00:02:02 #10924 [Verbose] > │         let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121   │

00:02:02 #10925 [Verbose] > │         let struct (v123 : int64, v124 : int64) = v122.[int 0]               │

00:02:02 #10926 [Verbose] > │         let v125 : string = $"%A{struct (v123, v124)}"                       │

00:02:02 #10927 [Verbose] > │         let v126 : bool = v92 = v94                                          │

00:02:02 #10928 [Verbose] > │         let v131 : US0 =                                                     │

00:02:02 #10929 [Verbose] > │             if v126 then                                                     │

00:02:02 #10930 [Verbose] > │                 let v127 : System.ConsoleColor =                             │

00:02:02 #10931 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:02:02 #10932 [Verbose] > │                 US0_1(v127)                                                  │

00:02:02 #10933 [Verbose] > │             else                                                             │

00:02:02 #10934 [Verbose] > │                 let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:02:02 #10935 [Verbose] > │                 US0_1(v129)                                                  │

00:02:02 #10936 [Verbose] > │         let v132 : UH2 = UH2_1                                               │

00:02:02 #10937 [Verbose] > │         let v133 : UH2 = UH2_0(v125, v132)                                   │

00:02:02 #10938 [Verbose] > │         let v134 : UH2 = UH2_0(v94, v133)                                    │

00:02:02 #10939 [Verbose] > │         let v135 : UH2 = UH2_0(v92, v134)                                    │

00:02:02 #10940 [Verbose] > │         let v136 : UH2 = UH2_0(v93, v135)                                    │

00:02:02 #10941 [Verbose] > │         v88.[int v91] <- struct (v136, v131)                                 │

00:02:02 #10942 [Verbose] > │         let v137 : uint64 = v91 + 1UL                                        │

00:02:02 #10943 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5833-3384-3f250ac6767b\main.spi

00:02:02 #10944 [Verbose] > │         v89.l0 <- v137                                                       │

00:02:02 #10945 [Verbose] > │         ()                                                                   │

00:02:02 #10946 [Verbose] > │     let v138 : string = "Input"                                              │

00:02:02 #10947 [Verbose] > │     let v139 : string = "Expected"                                           │

00:02:02 #10948 [Verbose] > │     let v140 : string = "Result"                                             │

00:02:02 #10949 [Verbose] > │     let v141 : string = "Best"                                               │

00:02:02 #10950 [Verbose] > │     let v142 : UH2 = UH2_1                                                   │

00:02:02 #10951 [Verbose] > │     let v143 : UH2 = UH2_0(v141, v142)                                       │

00:02:02 #10952 [Verbose] > │     let v144 : UH2 = UH2_0(v140, v143)                                       │

00:02:02 #10953 [Verbose] > │     let v145 : UH2 = UH2_0(v139, v144)                                       │

00:02:02 #10954 [Verbose] > │     let v146 : UH2 = UH2_0(v138, v145)                                       │

00:02:02 #10955 [Verbose] > │     let v147 : US0 = US0_0                                                   │

00:02:02 #10956 [Verbose] > │     let v148 : string = "---"                                                │

00:02:02 #10957 [Verbose] > │     let v149 : UH2 = UH2_1                                                   │

00:02:02 #10958 [Verbose] > │     let v150 : UH2 = UH2_0(v148, v149)                                       │

00:02:02 #10959 [Verbose] > │     let v151 : UH2 = UH2_0(v148, v150)                                       │

00:02:02 #10960 [Verbose] > │     let v152 : UH2 = UH2_0(v148, v151)                                       │

00:02:02 #10961 [Verbose] > │     let v153 : UH2 = UH2_0(v148, v152)                                       │

00:02:02 #10962 [Verbose] > │     let v154 : US0 = US0_0                                                   │

00:02:02 #10963 [Verbose] > │     let v155 : UH4 = UH4_1                                                   │

00:02:02 #10964 [Verbose] > │     let v156 : UH4 = UH4_0(v153, v154, v155)                                 │

00:02:02 #10965 [Verbose] > │     let v157 : UH4 = UH4_0(v146, v147, v156)                                 │

00:02:02 #10966 [Verbose] > │     let v158 : (struct (UH2 * US0) []) = method16(v157)                      │

00:02:02 #10967 [Verbose] > │     let v159 : uint64 = System.Convert.ToUInt64 v158.Length                  │

00:02:02 #10968 [Verbose] > │     let v160 : uint64 = System.Convert.ToUInt64 v88.Length                   │

00:02:02 #10969 [Verbose] > │     let v161 : uint64 = v159 + v160                                          │

00:02:02 #10970 [Verbose] > │     let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:02:02 #10971 [Verbose] > │ US0)> (System.Convert.ToInt32(v161))                                         │

00:02:02 #10972 [Verbose] > │     let v163 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10973 [Verbose] > │     while method4(v161, v163) do                                             │

00:02:02 #10974 [Verbose] > │         let v165 : uint64 = v163.l0                                          │

00:02:02 #10975 [Verbose] > │         let v166 : bool = v165 < v159                                        │

00:02:02 #10976 [Verbose] > │         let struct (v172 : UH2, v173 : US0) =                                │

00:02:02 #10977 [Verbose] > │             if v166 then                                                     │

00:02:02 #10978 [Verbose] > │                 let struct (v167 : UH2, v168 : US0) = v158.[int v165]        │

00:02:02 #10979 [Verbose] > │                 struct (v167, v168)                                          │

00:02:02 #10980 [Verbose] > │             else                                                             │

00:02:02 #10981 [Verbose] > │                 let v169 : uint64 = v165 - v159                              │

00:02:02 #10982 [Verbose] > │                 let struct (v170 : UH2, v171 : US0) = v88.[int v169]         │

00:02:02 #10983 [Verbose] > │                 struct (v170, v171)                                          │

00:02:02 #10984 [Verbose] > │         v162.[int v165] <- struct (v172, v173)                               │

00:02:02 #10985 [Verbose] > │         let v174 : uint64 = v165 + 1UL                                       │

00:02:02 #10986 [Verbose] > │         v163.l0 <- v174                                                      │

00:02:02 #10987 [Verbose] > │         ()                                                                   │

00:02:02 #10988 [Verbose] > │     let v175 : uint64 = System.Convert.ToUInt64 v162.Length                  │

00:02:02 #10989 [Verbose] > │     let v176 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:02:02 #10990 [Verbose] > │ (System.Convert.ToInt32(v175))                                               │

00:02:02 #10991 [Verbose] > │     let v177 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #10992 [Verbose] > │     while method4(v175, v177) do                                             │

00:02:02 #10993 [Verbose] >

00:02:02 #10994 [Verbose] > │         let v179 : uint64 = v177.l0                                          │

00:02:02 #10995 [Verbose] > ╭─[ 332.17ms - stdout ]────────────────────────────────────────────────────────╮

00:02:02 #10996 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:02 #10997 [Verbose] > │     let v0 : string = $"%A{10}"                                              │

00:02:02 #10998 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:02 #10999 [Verbose] > │         let struct (v180 : UH2, v181 : US0) = v162.[int v179]                │

00:02:02 #11000 [Verbose] > │     let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}"        │

00:02:02 #11001 [Verbose] > │     ()                                                                       │

00:02:02 #11002 [Verbose] > │ method0()                                                                    │

00:02:02 #11003 [Verbose] > │                                                                              │

00:02:02 #11004 [Verbose] > │ 10                                                                           │

00:02:02 #11005 [Verbose] > │         let v182 : (string []) = method19(v180)                              │

00:02:02 #11006 [Verbose] > │                                                                              │

00:02:02 #11007 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #11008 [Verbose] >

00:02:02 #11009 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:02 #11010 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:02 #11011 [Verbose] > │ ## zip_with                                                                  │

00:02:02 #11012 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:02 #11013 [Verbose] >

00:02:02 #11014 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:02 #11015 [Verbose] > inl zip_with fn s1 s2 =

00:02:02 #11016 [Verbose] >     inl rec loop s1 s2 =

00:02:02 #11017 [Verbose] >         match s1, s2 with

00:02:02 #11018 [Verbose] >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>

00:02:02 #11019 [Verbose] >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))

00:02:02 #11020 [Verbose] >         | StreamNil, _ | _, StreamNil => StreamNil

00:02:02 #11021 [Verbose] >     loop s1 s2

00:02:02 #11022 [Verbose] >

00:02:02 #11023 [Verbose] > inl zip_with_ fn s1 s2 =

00:02:02 #11024 [Verbose] >     let rec loop s1 s2 =

00:02:02 #11025 [Verbose] >         match s1, s2 with

00:02:02 #11026 [Verbose] >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>

00:02:02 #11027 [Verbose] >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))

00:02:02 #11028 [Verbose] >         | StreamNil, _ | _, StreamNil => StreamNil

00:02:02 #11029 [Verbose] >     loop s1 s2

00:02:02 #11030 [Verbose] > │         v176.[int v179] <- v182                                              │

00:02:02 #11031 [Verbose] > │         let v183 : uint64 = v179 + 1UL                                       │

00:02:02 #11032 [Verbose] > │         v177.l0 <- v183                                                      │

00:02:02 #11033 [Verbose] > │         ()                                                                   │

00:02:02 #11034 [Verbose] > │     let v184 : ((string []) []) = v176 |> Array.transpose                    │

00:02:02 #11035 [Verbose] > │     let v185 : uint64 = System.Convert.ToUInt64 v184.Length                  │

00:02:02 #11036 [Verbose] > │     let v186 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:02 #11037 [Verbose] > │ (System.Convert.ToInt32(v185))                                               │

00:02:02 #11038 [Verbose] > │     let v187 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:02 #11039 [Verbose] > │     while method4(v185, v187) do                                             │

00:02:02 #11040 [Verbose] > │         let v189 : uint64 = v187.l0                                          │

00:02:02 #11041 [Verbose] > │         let v190 : (string []) = v184.[int v189]                             │

00:02:02 #11042 [Verbose] > │         let v191 : uint64 = System.Convert.ToUInt64 v190.Length              │

00:02:02 #11043 [Verbose] > │         let v192 : (int64 []) = Array.zeroCreate<int64>                      │

00:02:02 #11044 [Verbose] > │ (System.Convert.ToInt32(v191))                                               │

00:02:02 #11045 [Verbose] > │         let v193 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:02 #11046 [Verbose] > │         while method4(v191, v193) do                                         │

00:02:02 #11047 [Verbose] > │             let v195 : uint64 = v193.l0                                      │

00:02:02 #11048 [Verbose] > │             let v196 : string = v190.[int v195]                              │

00:02:02 #11049 [Verbose] > │             let v197 : int64 = System.Convert.ToInt64 v196.Length            │

00:02:02 #11050 [Verbose] > │             v192.[int v195] <- v197                                          │

00:02:02 #11051 [Verbose] > │             let v198 : uint64 = v195 + 1UL                                   │

00:02:02 #11052 [Verbose] > │             v193.l0 <- v198                                                  │

00:02:02 #11053 [Verbose] > │             ()                                                               │

00:02:02 #11054 [Verbose] > │         let v199 : (int64 []) = v192 |> Array.sortDescending                 │

00:02:02 #11055 [Verbose] > │         let v200 : int64 option = v199 |> Array.tryItem 0                    │

00:02:02 #11056 [Verbose] > │         let v201 : (int64 -> US1) = closure5()                               │

00:02:02 #11057 [Verbose] > │         let v202 : US1 = US1_0                                               │

00:02:02 #11058 [Verbose] > │         let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │

00:02:02 #11059 [Verbose] > │         let v206 : int64 =                                                   │

00:02:02 #11060 [Verbose] > │             match v203 with                                                  │

00:02:02 #11061 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:02:02 #11062 [Verbose] > │                 0L                                                           │

00:02:02 #11063 [Verbose] > │             | US1_1(v204) -> (* Some *)                                      │

00:02:02 #11064 [Verbose] > │                 v204                                                         │

00:02:02 #11065 [Verbose] > │         v186.[int v189] <- v206                                              │

00:02:02 #11066 [Verbose] > │         let v207 : uint64 = v189 + 1UL                                       │

00:02:02 #11067 [Verbose] > │         v187.l0 <- v207                                                      │

00:02:03 #11068 [Verbose] > │         ()                                                                   │

00:02:03 #11069 [Verbose] > │     let v208 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:02:03 #11070 [Verbose] > │     let v209 : UH5 = UH5_1                                                   │

00:02:03 #11071 [Verbose] > │     let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3                   │

00:02:03 #11072 [Verbose] > │     while method22(v208, v210) do                                            │

00:02:03 #11073 [Verbose] > │         let v212 : uint64 = v210.l0                                          │

00:02:03 #11074 [Verbose] > │         let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2             │

00:02:03 #11075 [Verbose] > │         let v215 : int64 = v186.[int v212]                                   │

00:02:03 #11076 [Verbose] > │         let v216 : int32 = v214 + 1                                          │

00:02:03 #11077 [Verbose] > │         let v217 : uint64 = v212 + 1UL                                       │

00:02:03 #11078 [Verbose] > │         let v218 : UH5 = UH5_0(v214, v215, v213)                             │

00:02:03 #11079 [Verbose] > │         v210.l0 <- v217                                                      │

00:02:03 #11080 [Verbose] > │         v210.l1 <- v218                                                      │

00:02:03 #11081 [Verbose] > │         v210.l2 <- v216                                                      │

00:02:03 #11082 [Verbose] > │         ()                                                                   │

00:02:03 #11083 [Verbose] > │     let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2                 │

00:02:03 #11084 [Verbose] > │     let v221 : UH5 = UH5_1                                                   │

00:02:03 #11085 [Verbose] > │     let v222 : UH5 = method23(v219, v221)                                    │

00:02:03 #11086 [Verbose] > │     let v223 : (struct (int32 * int64) []) = method24(v222)                  │

00:02:03 #11087 [Verbose] > │     let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │

00:02:03 #11088 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5844-4401-4c23c0581a58\main.spi

00:02:03 #11089 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:02:03 #11090 [Verbose] > │     let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:02:03 #11091 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175))                          │

00:02:03 #11092 [Verbose] > │     let v226 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:03 #11093 [Verbose] > │     while method4(v175, v226) do                                             │

00:02:03 #11094 [Verbose] > │         let v228 : uint64 = v226.l0                                          │

00:02:03 #11095 [Verbose] > │         let struct (v229 : UH2, v230 : US0) = v162.[int v228]                │

00:02:03 #11096 [Verbose] > │         let v231 : UH6 = UH6_1                                               │

00:02:03 #11097 [Verbose] > │         let v232 : int32 = 0                                                 │

00:02:03 #11098 [Verbose] > │         let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232)   │

00:02:03 #11099 [Verbose] > │         let v235 : UH6 = UH6_1                                               │

00:02:03 #11100 [Verbose] > │         let v236 : UH6 = method28(v233, v235)                                │

00:02:03 #11101 [Verbose] > │         let v237 : UH2 = UH2_1                                               │

00:02:03 #11102 [Verbose] > │         let v238 : UH2 = method29(v224, v236, v237)                          │

00:02:03 #11103 [Verbose] > │         let v239 : (string []) = method30(v238)                              │

00:02:03 #11104 [Verbose] > │         v225.[int v228] <- struct (v239, v230)                               │

00:02:03 #11105 [Verbose] > │         let v240 : uint64 = v228 + 1UL                                       │

00:02:03 #11106 [Verbose] > │         v226.l0 <- v240                                                      │

00:02:03 #11107 [Verbose] > │         ()                                                                   │

00:02:03 #11108 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:03 #11109 [Verbose] > │     let v241 : uint64 = System.Convert.ToUInt64 v225.Length                  │

00:02:03 #11110 [Verbose] > │     let v242 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:03 #11111 [Verbose] > │     while method4(v241, v242) do                                             │

00:02:03 #11112 [Verbose] > │         let v244 : uint64 = v242.l0                                          │

00:02:03 #11113 [Verbose] > │         let struct (v245 : (string []), v246 : US0) = v225.[int v244]        │

00:02:03 #11114 [Verbose] > │         match v246 with                                                      │

00:02:03 #11115 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:03 #11116 [Verbose] >

00:02:03 #11117 [Verbose] > │             let mutable result = None                                        │

00:02:03 #11118 [Verbose] > ╭─[ 316.53ms - stdout ]────────────────────────────────────────────────────────╮

00:02:03 #11119 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:03 #11120 [Verbose] > │ ()                                                                           │

00:02:03 #11121 [Verbose] > │             ()                                                               │

00:02:03 #11122 [Verbose] > │                                                                              │

00:02:03 #11123 [Verbose] > │             #endif                                                           │

00:02:03 #11124 [Verbose] > │                                                                              │

00:02:03 #11125 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:03 #11126 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11127 [Verbose] > │             ()                                                               │

00:02:03 #11128 [Verbose] > │             #endif                                                           │

00:02:03 #11129 [Verbose] >

00:02:03 #11130 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:03 #11131 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:03 #11132 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:03 #11133 [Verbose] > // // test

00:02:03 #11134 [Verbose] >

00:02:03 #11135 [Verbose] > create_temp_directory_name ()

00:02:03 #11136 [Verbose] > |> _contains ($'System.IO.Path.DirectorySeparatorChar' : char)

00:02:03 #11137 [Verbose] > │             ()                                                               │

00:02:03 #11138 [Verbose] > │             #endif                                                           │

00:02:03 #11139 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:03 #11140 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:03 #11141 [Verbose] > │             ()                                                               │

00:02:03 #11142 [Verbose] > │             #endif                                                           │

00:02:03 #11143 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:03 #11144 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:03 #11145 [Verbose] > │             ()                                                               │

00:02:03 #11146 [Verbose] > │             #endif                                                           │

00:02:03 #11147 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:03 #11148 [Verbose] > │             result |> Option.get                                             │

00:02:03 #11149 [Verbose] > │             ()                                                               │

00:02:03 #11150 [Verbose] > │         | US0_1(v247) -> (* Some *)                                          │

00:02:03 #11151 [Verbose] > │             let mutable result = None                                        │

00:02:03 #11152 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:03 #11153 [Verbose] > │             ()                                                               │

00:02:03 #11154 [Verbose] > │             #endif                                                           │

00:02:03 #11155 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:03 #11156 [Verbose] > │             ()                                                               │

00:02:03 #11157 [Verbose] > │             #endif                                                           │

00:02:03 #11158 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:03 #11159 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:03 #11160 [Verbose] > │             ()                                                               │

00:02:03 #11161 [Verbose] > │             #endif                                                           │

00:02:03 #11162 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:03 #11163 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:03 #11164 [Verbose] > │             ()                                                               │

00:02:03 #11165 [Verbose] > │             #endif                                                           │

00:02:03 #11166 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:03 #11167 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:03 #11168 [Verbose] > │             ()                                                               │

00:02:03 #11169 [Verbose] > │             #endif                                                           │

00:02:03 #11170 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:03 #11171 [Verbose] > │             result |> Option.get                                             │

00:02:03 #11172 [Verbose] > │             ()                                                               │

00:02:03 #11173 [Verbose] > │         let v248 : string = "\t| "                                           │

00:02:03 #11174 [Verbose] > │         let v249 : string = System.String.Join (v248, v245)                  │

00:02:03 #11175 [Verbose] > │         System.Console.WriteLine v249                                        │

00:02:03 #11176 [Verbose] > │         let mutable result = None                                            │

00:02:03 #11177 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:02:03 #11178 [Verbose] > │         ()                                                                   │

00:02:03 #11179 [Verbose] > │         #endif                                                               │

00:02:03 #11180 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:02:03 #11181 [Verbose] > │         ()                                                                   │

00:02:03 #11182 [Verbose] > │         #endif                                                               │

00:02:03 #11183 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:02:03 #11184 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:03 #11185 [Verbose] > │         ()                                                                   │

00:02:03 #11186 [Verbose] > │         #endif                                                               │

00:02:03 #11187 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:02:03 #11188 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:03 #11189 [Verbose] > │         ()                                                                   │

00:02:03 #11190 [Verbose] > │         #endif                                                               │

00:02:03 #11191 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:02:03 #11192 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:03 #11193 [Verbose] > │         ()                                                                   │

00:02:03 #11194 [Verbose] > │         #endif                                                               │

00:02:03 #11195 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:02:03 #11196 [Verbose] > │         result |> Option.get                                                 │

00:02:03 #11197 [Verbose] > │         let v250 : uint64 = v244 + 1UL                                       │

00:02:03 #11198 [Verbose] > │         v242.l0 <- v250                                                      │

00:02:03 #11199 [Verbose] > │         ()                                                                   │

00:02:03 #11200 [Verbose] > │     let v251 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:02:03 #11201 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:03 #11202 [Verbose] > │     let v252 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:03 #11203 [Verbose] > │     while method4(v87, v252) do                                              │

00:02:03 #11204 [Verbose] > │         let v254 : uint64 = v252.l0                                          │

00:02:03 #11205 [Verbose] > │         let struct (v255 : string, v256 : string, v257 : string, v258 :      │

00:02:03 #11206 [Verbose] > │ (int64 [])) = v11.[int v254]                                                 │

00:02:03 #11207 [Verbose] > │         let v259 : (int64 -> float) = float                                  │

00:02:03 #11208 [Verbose] > │         let v260 : uint64 = System.Convert.ToUInt64 v258.Length              │

00:02:03 #11209 [Verbose] > │         let v261 : (float []) = Array.zeroCreate<float>                      │

00:02:03 #11210 [Verbose] > │ (System.Convert.ToInt32(v260))                                               │

00:02:03 #11211 [Verbose] > │         let v262 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:03 #11212 [Verbose] > │         while method4(v260, v262) do                                         │

00:02:03 #11213 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5855-5526-57e134205c43\main.spi

00:02:03 #11214 [Verbose] > │             let v264 : uint64 = v262.l0                                      │

00:02:03 #11215 [Verbose] > │             let v265 : int64 = v258.[int v264]                               │

00:02:03 #11216 [Verbose] > │             let v266 : float = v259 v265                                     │

00:02:03 #11217 [Verbose] > │             v261.[int v264] <- v266                                          │

00:02:03 #11218 [Verbose] > │             let v267 : uint64 = v264 + 1UL                                   │

00:02:03 #11219 [Verbose] > │             v262.l0 <- v267                                                  │

00:02:03 #11220 [Verbose] > │             ()                                                               │

00:02:03 #11221 [Verbose] > │         v251.[int v254] <- v261                                              │

00:02:03 #11222 [Verbose] > │         let v268 : uint64 = v254 + 1UL                                       │

00:02:03 #11223 [Verbose] > │         v252.l0 <- v268                                                      │

00:02:03 #11224 [Verbose] > │         ()                                                                   │

00:02:03 #11225 [Verbose] > │     let v269 : ((float []) []) = v251 |> Array.transpose                     │

00:02:03 #11226 [Verbose] > │     let v270 : uint64 = System.Convert.ToUInt64 v269.Length                  │

00:02:03 #11227 [Verbose] > │     let v271 : (float []) = Array.zeroCreate<float>                          │

00:02:03 #11228 [Verbose] > │ (System.Convert.ToInt32(v270))                                               │

00:02:03 #11229 [Verbose] > │     let v272 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:03 #11230 [Verbose] > │     while method4(v270, v272) do                                             │

00:02:03 #11231 [Verbose] > │         let v274 : uint64 = v272.l0                                          │

00:02:03 #11232 [Verbose] > │         let v275 : (float []) = v269.[int v274]                              │

00:02:03 #11233 [Verbose] > │         let v276 : float = v275 |> Array.average                             │

00:02:03 #11234 [Verbose] > │         v271.[int v274] <- v276                                              │

00:02:03 #11235 [Verbose] > │         let v277 : uint64 = v274 + 1UL                                       │

00:02:03 #11236 [Verbose] > │         v272.l0 <- v277                                                      │

00:02:03 #11237 [Verbose] > │         ()                                                                   │

00:02:03 #11238 [Verbose] > │     let v278 : (float -> int64) = int64                                      │

00:02:03 #11239 [Verbose] > │     let v279 : uint64 = System.Convert.ToUInt64 v271.Length                  │

00:02:03 #11240 [Verbose] > │     let v280 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:03 #11241 [Verbose] > │ (System.Convert.ToInt32(v279))                                               │

00:02:03 #11242 [Verbose] > │     let v281 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:03 #11243 [Verbose] > │     while method4(v279, v281) do                                             │

00:02:03 #11244 [Verbose] > │         let v283 : uint64 = v281.l0                                          │

00:02:03 #11245 [Verbose] >

00:02:03 #11246 [Verbose] > │         let v284 : float = v271.[int v283]                                   │

00:02:03 #11247 [Verbose] > ╭─[ 312.79ms - stdout ]────────────────────────────────────────────────────────╮

00:02:03 #11248 [Verbose] > │ ()                                                                           │

00:02:03 #11249 [Verbose] > │         let v285 : int64 = v278 v284                                         │

00:02:03 #11250 [Verbose] > │                                                                              │

00:02:03 #11251 [Verbose] > │         v280.[int v283] <- v285                                              │

00:02:03 #11252 [Verbose] > │                                                                              │

00:02:03 #11253 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11254 [Verbose] > │         let v286 : uint64 = v283 + 1UL                                       │

00:02:03 #11255 [Verbose] > │         v281.l0 <- v286                                                      │

00:02:03 #11256 [Verbose] >

00:02:03 #11257 [Verbose] > │         ()                                                                   │

00:02:03 #11259 [Verbose] > │     let v287 : uint64 = System.Convert.ToUInt64 v280.Length                  │

00:02:03 #11258 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:03 #11260 [Verbose] > // // test

00:02:03 #11261 [Verbose] > │     let v288 : UH5 = UH5_1                                                   │

00:02:03 #11262 [Verbose] >

00:02:03 #11263 [Verbose] > listm.init 10i32 print_and_return

00:02:03 #11264 [Verbose] > |> from_list

00:02:03 #11265 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)

00:02:03 #11266 [Verbose] > |> try_item 1i32

00:02:03 #11267 [Verbose] > |> _assert_eq (Some 2i32)

00:02:03 #11268 [Verbose] > │     let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3                   │

00:02:03 #11269 [Verbose] > │     while method22(v287, v289) do                                            │

00:02:03 #11270 [Verbose] > │         let v291 : uint64 = v289.l0                                          │

00:02:03 #11271 [Verbose] > │         let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2             │

00:02:03 #11272 [Verbose] > │         let v294 : int64 = v280.[int v291]                                   │

00:02:03 #11273 [Verbose] > │         let v295 : int32 = v293 + 1                                          │

00:02:03 #11274 [Verbose] > │         let v296 : uint64 = v291 + 1UL                                       │

00:02:03 #11275 [Verbose] > │         let v297 : UH5 = UH5_0(v293, v294, v292)                             │

00:02:03 #11276 [Verbose] > │         v289.l0 <- v296                                                      │

00:02:03 #11277 [Verbose] > │         v289.l1 <- v297                                                      │

00:02:03 #11278 [Verbose] > │         v289.l2 <- v295                                                      │

00:02:03 #11279 [Verbose] > │         ()                                                                   │

00:02:03 #11280 [Verbose] > │     let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2                 │

00:02:03 #11281 [Verbose] > │     let v300 : UH5 = UH5_1                                                   │

00:02:03 #11282 [Verbose] > │     let v301 : UH5 = method23(v298, v300)                                    │

00:02:03 #11283 [Verbose] > │     let v302 : (struct (int32 * int64) []) = method33(v301)                  │

00:02:03 #11284 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:03 #11285 [Verbose] > │     let v303 : string = "Average Ranking  "                                  │

00:02:03 #11286 [Verbose] > │     System.Console.WriteLine v303                                            │

00:02:03 #11287 [Verbose] > │     let v304 : (struct (int32 * int64) -> int64) = closure6()                │

00:02:03 #11288 [Verbose] > │     let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304       │

00:02:03 #11289 [Verbose] > │     let v306 : uint64 = System.Convert.ToUInt64 v305.Length                  │

00:02:03 #11290 [Verbose] > │     let v307 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:03 #11291 [Verbose] > │     while method4(v306, v307) do                                             │

00:02:03 #11292 [Verbose] > │         let v309 : uint64 = v307.l0                                          │

00:02:03 #11293 [Verbose] > │         let struct (v310 : int32, v311 : int64) = v305.[int v309]            │

00:02:03 #11294 [Verbose] > │         let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │

00:02:03 #11295 [Verbose] > │ "                                                                            │

00:02:03 #11296 [Verbose] > │         System.Console.WriteLine v312                                        │

00:02:03 #11297 [Verbose] > │         let v313 : uint64 = v309 + 1UL                                       │

00:02:03 #11298 [Verbose] > │         v307.l0 <- v313                                                      │

00:02:03 #11299 [Verbose] > │         ()                                                                   │

00:02:03 #11300 [Verbose] > │     ()                                                                       │

00:02:03 #11301 [Verbose] > │ method0()                                                                    │

00:02:03 #11302 [Verbose] > │                                                                              │

00:02:03 #11303 [Verbose] > │                                                                              │

00:02:03 #11304 [Verbose] > │                                                                              │

00:02:03 #11305 [Verbose] > │ Test: v0                                                                     │

00:02:03 #11306 [Verbose] > │                                                                              │

00:02:03 #11307 [Verbose] > │ Solution: struct ("a", "a")                                                  │

00:02:03 #11308 [Verbose] > │ Test case 1. A. Time: 233                                                    │

00:02:03 #11309 [Verbose] > │ Test case 2. B. Time: 222                                                    │

00:02:03 #11310 [Verbose] > │                                                                              │

00:02:03 #11311 [Verbose] > │ Solution: struct ("b", "b")                                                  │

00:02:03 #11312 [Verbose] > │ Test case 1. A. Time: 229                                                    │

00:02:03 #11313 [Verbose] > │ Test case 2. B. Time: 209                                                    │

00:02:03 #11314 [Verbose] > │                                                                              │

00:02:03 #11315 [Verbose] > │ Input            	| Expected	| Result	| Best                                       │

00:02:03 #11316 [Verbose] > │ ---              	| ---     	| ---   	| ---                                        │

00:02:03 #11317 [Verbose] > │ struct ("a", "a")	| "a"     	| "a"   	| struct (2L, 222L)                          │

00:02:03 #11318 [Verbose] > │ struct ("b", "b")	| "b"     	| "b"   	| struct (2L, 209L)                          │

00:02:03 #11319 [Verbose] > │                                                                              │

00:02:03 #11320 [Verbose] > │ Average Ranking                                                              │

00:02:03 #11321 [Verbose] > │ Test case 2. Average Time: 215L                                              │

00:02:03 #11322 [Verbose] > │ Test case 1. Average Time: 231L                                              │

00:02:03 #11323 [Verbose] > │                                                                              │

00:02:03 #11324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11325 [Verbose] >

00:02:03 #11326 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:03 #11327 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:03 #11328 [Verbose] > │ ## emptyTests                                                                │

00:02:03 #11329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11330 [Verbose] >

00:02:03 #11331 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:03 #11332 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:03 #11333 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5865-6506-6909e044d1af\main.spi

00:02:03 #11334 [Verbose] > │ Test: Empty                                                                  │

00:02:03 #11335 [Verbose] > │                                                                              │

00:02:03 #11336 [Verbose] > │ Solution: 0                                                                  │

00:02:03 #11337 [Verbose] > │ Test case 1. A. Time: 61L                                                    │

00:02:03 #11338 [Verbose] > │                                                                              │

00:02:03 #11339 [Verbose] > │ Solution: 2                                                                  │

00:02:03 #11340 [Verbose] > │ Test case 1. A. Time: 62L                                                    │

00:02:03 #11341 [Verbose] > │                                                                              │

00:02:03 #11342 [Verbose] > │ Solution: 5                                                                  │

00:02:03 #11343 [Verbose] > │ Test case 1. A. Time: 70L                                                    │

00:02:03 #11344 [Verbose] > │                                                                              │

00:02:03 #11345 [Verbose] > │ Input   | Expected        | Result  | Best                                   │

00:02:03 #11346 [Verbose] > │ ---     | ---             | ---     | ---                                    │

00:02:03 #11347 [Verbose] > │ 0       | 0               | 0       | (1, 61)                                │

00:02:03 #11348 [Verbose] > │ 2       | 2               | 2       | (1, 62)                                │

00:02:03 #11349 [Verbose] > │ 5       | 5               | 5       | (1, 70)                                │

00:02:03 #11350 [Verbose] > │                                                                              │

00:02:03 #11351 [Verbose] > │ Averages                                                                     │

00:02:03 #11352 [Verbose] > │ Test case 1. Average Time: 64L                                               │

00:02:03 #11353 [Verbose] > │                                                                              │

00:02:03 #11354 [Verbose] > │ Ranking                                                                      │

00:02:03 #11355 [Verbose] >

00:02:03 #11356 [Verbose] > │ Test case 1. Average Time: 64L                                               │

00:02:03 #11357 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11358 [Verbose] > ╭─[ 323.89ms - stdout ]────────────────────────────────────────────────────────╮

00:02:03 #11359 [Verbose] > │ ()                                                                           │

00:02:03 #11360 [Verbose] > │                                                                              │

00:02:03 #11361 [Verbose] > │                                                                              │

00:02:03 #11362 [Verbose] >

00:02:03 #11363 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11364 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:03 #11365 [Verbose] >

00:02:03 #11366 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:03 #11367 [Verbose] > // // test

00:02:03 #11368 [Verbose] >

00:02:03 #11369 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:02:03 #11370 [Verbose] > ||> zip_with (+)

00:02:03 #11371 [Verbose] > |> item 2i32

00:02:03 #11372 [Verbose] > |> _assert_eq 6

00:02:03 #11373 [Verbose] > // // test

00:02:03 #11374 [Verbose] >

00:02:03 #11375 [Verbose] > inl get_solutions () =

00:02:03 #11376 [Verbose] >     [[

00:02:03 #11377 [Verbose] >         "A",

00:02:03 #11378 [Verbose] >         fun n =>

00:02:03 #11379 [Verbose] >             n + 1f64

00:02:03 #11380 [Verbose] >     ]]

00:02:03 #11381 [Verbose] >

00:02:03 #11382 [Verbose] > inl rec empty_1_tests () =

00:02:03 #11383 [Verbose] >     inl test_cases = [[

00:02:03 #11384 [Verbose] >         0, 1

00:02:03 #11385 [Verbose] >         2, 3

00:02:03 #11386 [Verbose] >         5, 6

00:02:03 #11387 [Verbose] >     ]]

00:02:03 #11388 [Verbose] >

00:02:03 #11389 [Verbose] >     inl solutions = get_solutions ()

00:02:03 #11390 [Verbose] >

00:02:03 #11391 [Verbose] >     // inl is_fast () = true

00:02:03 #11392 [Verbose] >

00:02:03 #11393 [Verbose] >     inl count =

00:02:03 #11394 [Verbose] >         if is_fast ()

00:02:03 #11395 [Verbose] >         then 1000i32

00:02:03 #11396 [Verbose] >         else 2000000i32

00:02:03 #11397 [Verbose] >

00:02:03 #11398 [Verbose] >     run_all (nameof empty_1_tests) count solutions test_cases

00:02:03 #11399 [Verbose] >     |> sort_result_list

00:02:03 #11400 [Verbose] >

00:02:03 #11401 [Verbose] > empty_1_tests ()

00:02:03 #11402 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5875-7596-78333cddd717\main.spi

00:02:03 #11403 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5888-8818-8f9b7c67b7fe\main.spi

00:02:03 #11404 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5889-8968-86a3b19a36d6\main.spi

00:02:03 #11405 [Verbose] >

00:02:03 #11406 [Verbose] > ╭─[ 509.36ms - stdout ]────────────────────────────────────────────────────────╮

00:02:03 #11407 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:03 #11408 [Verbose] > │     | US0_0                                                                  │

00:02:03 #11409 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:03 #11410 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:03 #11411 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:03 #11412 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:03 #11413 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:03 #11414 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:03 #11415 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:03 #11416 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:03 #11417 [Verbose] > │     printfn $"print_and_return / x: {6}"                                     │

00:02:03 #11418 [Verbose] > │     printfn $"print_and_return / x: {7}"                                     │

00:02:03 #11419 [Verbose] > │     printfn $"print_and_return / x: {8}"                                     │

00:02:03 #11420 [Verbose] > │     printfn $"print_and_return / x: {9}"                                     │

00:02:03 #11421 [Verbose] > │     let v0 : US0 = US0_1(2)                                                  │

00:02:03 #11422 [Verbose] >

00:02:03 #11423 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:03 #11424 [Verbose] > ╭─[ 408.87ms - stdout ]────────────────────────────────────────────────────────╮

00:02:03 #11425 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:03 #11426 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:03 #11427 [Verbose] > │     let v5 : US0 = US0_1(2)                                                  │

00:02:03 #11428 [Verbose] > │     let v0 : string = $"%A{6}"                                               │

00:02:03 #11429 [Verbose] > │     let v6 : US0 = US0_1(2)                                                  │

00:02:03 #11430 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:03 #11431 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:02:03 #11432 [Verbose] > │     let v1 : string = $"__expect / actual: %A{6} / expected: %A{6}"          │

00:02:03 #11433 [Verbose] > │     ()                                                                       │

00:02:03 #11434 [Verbose] > │     ()                                                                       │

00:02:03 #11435 [Verbose] > │ method0()                                                                    │

00:02:03 #11436 [Verbose] > │ method0()                                                                    │

00:02:03 #11437 [Verbose] > │                                                                              │

00:02:03 #11438 [Verbose] > │                                                                              │

00:02:03 #11439 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:03 #11440 [Verbose] > │ 6                                                                            │

00:02:03 #11441 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:03 #11442 [Verbose] > │                                                                              │

00:02:03 #11443 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11444 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:03 #11445 [Verbose] >

00:02:03 #11446 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:03 #11447 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:03 #11448 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:03 #11449 [Verbose] > │ ## zip                                                                       │

00:02:03 #11450 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:03 #11451 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11452 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:03 #11453 [Verbose] >

00:02:03 #11454 [Verbose] > │ print_and_return / x: 6                                                      │

00:02:03 #11455 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:03 #11456 [Verbose] > │ print_and_return / x: 7                                                      │

00:02:03 #11457 [Verbose] > inl zip s1 s2 =

00:02:03 #11458 [Verbose] >     zip_with pair s1 s2

00:02:03 #11459 [Verbose] >

00:02:03 #11460 [Verbose] > inl zip_ s1 s2 =

00:02:03 #11461 [Verbose] > │ print_and_return / x: 8                                                      │

00:02:03 #11462 [Verbose] >     zip_with_ pair s1 s2

00:02:03 #11463 [Verbose] > │ print_and_return / x: 9                                                      │

00:02:03 #11464 [Verbose] > │ US0_1 2                                                                      │

00:02:03 #11465 [Verbose] > │                                                                              │

00:02:03 #11466 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11467 [Verbose] >

00:02:03 #11468 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:03 #11469 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:03 #11470 [Verbose] > │ ## indexed                                                                   │

00:02:03 #11471 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:03 #11472 [Verbose] >

00:02:03 #11473 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:03 #11474 [Verbose] > inl indexed s =

00:02:03 #11475 [Verbose] >     s

00:02:03 #11476 [Verbose] >     |> mapi fun i x =>

00:02:03 #11477 [Verbose] >         i, x

00:02:03 #11478 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5932-3272-3afd301fae77\main.spi

00:02:03 #11479 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5933-3396-3f43ec012ed6\main.spi

00:02:04 #11480 [Verbose] >

00:02:04 #11481 [Verbose] > ╭─[ 413.67ms - stdout ]────────────────────────────────────────────────────────╮

00:02:04 #11482 [Verbose] > │ ()                                                                           │

00:02:04 #11483 [Verbose] > │                                                                              │

00:02:04 #11484 [Verbose] >

00:02:04 #11485 [Verbose] > │                                                                              │

00:02:04 #11486 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:04 #11487 [Verbose] > ╭─[ 409.70ms - stdout ]────────────────────────────────────────────────────────╮

00:02:04 #11488 [Verbose] >

00:02:04 #11489 [Verbose] > │ ()                                                                           │

00:02:04 #11490 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:04 #11491 [Verbose] > │                                                                              │

00:02:04 #11492 [Verbose] > // // test

00:02:04 #11493 [Verbose] >

00:02:04 #11494 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:02:04 #11495 [Verbose] > ||> zip

00:02:04 #11496 [Verbose] > |> item 5i32

00:02:04 #11497 [Verbose] > |> _assert_eq (5, 10)

00:02:04 #11498 [Verbose] > │                                                                              │

00:02:04 #11499 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:04 #11500 [Verbose] >

00:02:04 #11501 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:04 #11502 [Verbose] > // // test

00:02:04 #11503 [Verbose] >

00:02:04 #11504 [Verbose] > listm.init 10i32 ((*) 2)

00:02:04 #11505 [Verbose] > |> from_list

00:02:04 #11506 [Verbose] > |> indexed

00:02:04 #11507 [Verbose] > |> try_item 5i32

00:02:04 #11508 [Verbose] > |> _assert_eq (Some (5i32, 10i32))

00:02:04 #11509 [Verbose] > [NbConvertApp] Converting notebook util.dib.ipynb to html

00:02:04 #11510 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:04 #11511 [Verbose] >   validate(nb)

00:02:04 #11512 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5974-7464-7b3d711987f3\main.spi

00:02:04 #11513 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0137-5973-7348-76a6038f5685\main.spi

00:02:05 #11514 [Verbose] >

00:02:05 #11515 [Verbose] > ╭─[ 952.92ms - stdout ]────────────────────────────────────────────────────────╮

00:02:05 #11516 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:05 #11517 [Verbose] > │     let v0 : string = $"%A{struct (5, 10)}"                                  │

00:02:05 #11518 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:05 #11519 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (5, 10)} / expected:    │

00:02:05 #11520 [Verbose] > │ %A{struct (5, 10)}"                                                          │

00:02:05 #11521 [Verbose] > │     ()                                                                       │

00:02:05 #11522 [Verbose] > │ method0()                                                                    │

00:02:05 #11523 [Verbose] > │                                                                              │

00:02:05 #11524 [Verbose] > │ struct (5, 10)                                                               │

00:02:05 #11525 [Verbose] > │                                                                              │

00:02:05 #11526 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11527 [Verbose] >

00:02:05 #11528 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:05 #11529 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:05 #11530 [Verbose] > │ ## unzip                                                                     │

00:02:05 #11531 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11532 [Verbose] >

00:02:05 #11533 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:05 #11534 [Verbose] > inl unzip s =

00:02:05 #11535 [Verbose] >     inl rec body s =

00:02:05 #11536 [Verbose] >         match s with

00:02:05 #11537 [Verbose] >         | StreamCons ((x, y), fn) =>

00:02:05 #11538 [Verbose] >             inl xs, ys = loop (fn ())

00:02:05 #11539 [Verbose] >             StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)

00:02:05 #11540 [Verbose] >         | StreamNil => pair StreamNil StreamNil

00:02:05 #11541 [Verbose] >     and inl loop x =

00:02:05 #11542 [Verbose] >         if var_is x |> not

00:02:05 #11543 [Verbose] >         then body x

00:02:05 #11544 [Verbose] >         else

00:02:05 #11545 [Verbose] >             inl x = dyn x

00:02:05 #11546 [Verbose] >             join body x

00:02:05 #11547 [Verbose] >     loop s

00:02:05 #11548 [Verbose] >

00:02:05 #11549 [Verbose] > ╭─[ 1.02s - stdout ]───────────────────────────────────────────────────────────╮

00:02:05 #11550 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:05 #11551 [Verbose] > │     | US0_0                                                                  │

00:02:05 #11552 [Verbose] > │     | US0_1 of f1_0 : int32 * f1_1 : int32                                   │

00:02:05 #11553 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:05 #11554 [Verbose] > │     let v0 : US0 = US0_1(5, 10)                                              │

00:02:05 #11555 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:05 #11556 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:05 #11557 [Verbose] > │     let v5 : US0 = US0_1(5, 10)                                              │

00:02:05 #11558 [Verbose] > │     let v6 : US0 = US0_1(5, 10)                                              │

00:02:05 #11559 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:02:05 #11560 [Verbose] > │     ()                                                                       │

00:02:05 #11561 [Verbose] > │ method0()                                                                    │

00:02:05 #11562 [Verbose] > │                                                                              │

00:02:05 #11563 [Verbose] > │ US0_1 (5, 10)                                                                │

00:02:05 #11564 [Verbose] > │                                                                              │

00:02:05 #11565 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11566 [Verbose] >

00:02:05 #11567 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:05 #11568 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:05 #11569 [Verbose] > │ ## zip                                                                       │

00:02:05 #11570 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11571 [Verbose] >

00:02:05 #11572 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:05 #11573 [Verbose] > inl zip n seq1 seq2 =

00:02:05 #11574 [Verbose] >     seq1 n, seq2 n

00:02:05 #11575 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0073-7338-78b502af0991\main.spi

00:02:05 #11576 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0078-7866-76a8c3002aec\main.spi

00:02:05 #11577 [Verbose] >

00:02:05 #11578 [Verbose] > ╭─[ 362.26ms - stdout ]────────────────────────────────────────────────────────╮

00:02:05 #11579 [Verbose] > │ ()                                                                           │

00:02:05 #11580 [Verbose] > │                                                                              │

00:02:05 #11581 [Verbose] > │                                                                              │

00:02:05 #11582 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11583 [Verbose] >

00:02:05 #11584 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:05 #11585 [Verbose] > // // test

00:02:05 #11586 [Verbose] >

00:02:05 #11587 [Verbose] > listm.init 10i32 id

00:02:05 #11588 [Verbose] > |> listm.map (fun x => x, x)

00:02:05 #11589 [Verbose] > |> from_list

00:02:05 #11590 [Verbose] > |> unzip

00:02:05 #11591 [Verbose] > |> fun x, y =>

00:02:05 #11592 [Verbose] >     x |> sum

00:02:05 #11593 [Verbose] >     |> _assert_eq 45

00:02:05 #11594 [Verbose] >

00:02:05 #11595 [Verbose] >     y |> sum

00:02:05 #11596 [Verbose] >     |> _assert_eq 45

00:02:05 #11597 [Verbose] >

00:02:05 #11598 [Verbose] > ╭─[ 324.21ms - stdout ]────────────────────────────────────────────────────────╮

00:02:05 #11599 [Verbose] > │ ()                                                                           │

00:02:05 #11600 [Verbose] > │                                                                              │

00:02:05 #11601 [Verbose] > │                                                                              │

00:02:05 #11602 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11603 [Verbose] >

00:02:05 #11604 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:05 #11605 [Verbose] > // // test

00:02:05 #11606 [Verbose] >

00:02:05 #11607 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:02:05 #11608 [Verbose] > ||> zip 5i32

00:02:05 #11609 [Verbose] > |> _assert_eq (Some 5, Some 10)

00:02:05 #11610 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0109-0907-0f741eaf9588\main.spi

00:02:05 #11611 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0110-1097-1c533bec9756\main.spi

00:02:05 #11612 [Verbose] >

00:02:05 #11613 [Verbose] > ╭─[ 421.17ms - stdout ]────────────────────────────────────────────────────────╮

00:02:05 #11614 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:05 #11615 [Verbose] > │     let v0 : string = $"%A{45}"                                              │

00:02:05 #11616 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:05 #11617 [Verbose] > │     let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:02:05 #11618 [Verbose] > │     let v2 : string = $"%A{45}"                                              │

00:02:05 #11619 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:05 #11620 [Verbose] > │     let v3 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:02:05 #11621 [Verbose] > │     ()                                                                       │

00:02:05 #11622 [Verbose] > │ method0()                                                                    │

00:02:05 #11623 [Verbose] > │                                                                              │

00:02:05 #11624 [Verbose] > │ 45                                                                           │

00:02:05 #11625 [Verbose] > │ 45                                                                           │

00:02:05 #11626 [Verbose] > │                                                                              │

00:02:05 #11627 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:05 #11628 [Verbose] >

00:02:05 #11629 [Verbose] > ╭─[ 461.65ms - stdout ]────────────────────────────────────────────────────────╮

00:02:05 #11630 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:05 #11631 [Verbose] > │     | US0_0                                                                  │

00:02:05 #11632 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:05 #11633 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:05 #11634 [Verbose] > │     let v0 : US0 = US0_1(5)                                                  │

00:02:05 #11635 [Verbose] > │     let v1 : US0 = US0_1(10)                                                 │

00:02:05 #11636 [Verbose] > │     let v2 : string = $"%A{struct (v0, v1)}"                                 │

00:02:05 #11637 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:05 #11638 [Verbose] > │     let v9 : US0 = US0_1(5)                                                  │

00:02:05 #11639 [Verbose] > │     let v10 : US0 = US0_1(10)                                                │

00:02:05 #11640 [Verbose] > │     let v11 : US0 = US0_1(5)                                                 │

00:02:05 #11641 [Verbose] > │     let v12 : US0 = US0_1(10)                                                │

00:02:05 #11642 [Verbose] > │     let v13 : string = $"__expect / actual: %A{struct (v9, v10)} / expected: │

00:02:05 #11643 [Verbose] > │ %A{struct (v11, v12)}"                                                       │

00:02:05 #11644 [Verbose] > │     ()                                                                       │

00:02:05 #11645 [Verbose] > │ method0()                                                                    │

00:02:05 #11646 [Verbose] > │                                                                              │

00:02:05 #11647 [Verbose] > │ struct (US0_1 5, US0_1 10)                                                   │

00:02:06 #11648 [Verbose] > │                                                                              │

00:02:06 #11649 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:06 #11650 [Verbose] >

00:02:06 #11651 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:06 #11652 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:06 #11653 [Verbose] > │ ## zip_with                                                                  │

00:02:06 #11654 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:06 #11655 [Verbose] >

00:02:06 #11656 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:06 #11657 [Verbose] > inl zip_with fn seq1 seq2 =

00:02:06 #11658 [Verbose] >     fun n =>

00:02:06 #11659 [Verbose] >         fn (seq1 n) (seq2 n)

00:02:06 #11660 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0159-5932-57cd39ad9834\main.spi

00:02:06 #11661 [Verbose] >

00:02:06 #11662 [Verbose] > ╭─[ 311.71ms - stdout ]────────────────────────────────────────────────────────╮

00:02:06 #11663 [Verbose] > │ ()                                                                           │

00:02:06 #11664 [Verbose] > │                                                                              │

00:02:06 #11665 [Verbose] > │                                                                              │

00:02:06 #11666 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:06 #11667 [Verbose] >

00:02:06 #11668 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:06 #11669 [Verbose] > // // test

00:02:06 #11670 [Verbose] >

00:02:06 #11671 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:02:06 #11672 [Verbose] > ||> zip_with (optionm'.choose (+))

00:02:06 #11673 [Verbose] > |> try_item 2i32

00:02:06 #11674 [Verbose] > |> _assert_eq (Some 6)

00:02:06 #11675 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:06 #11676 [Verbose] >   return _pygments_highlight(

00:02:06 #11677 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0190-9055-9d195282228b\main.spi

00:02:06 #11678 [Verbose] >

00:02:06 #11679 [Verbose] > ╭─[ 13.76s - return value ]────────────────────────────────────────────────────╮

00:02:06 #11680 [Verbose] > │ .rs output:                                                                  │

00:02:06 #11681 [Verbose] > │ "1                                                                           │

00:02:06 #11682 [Verbose] > │ 2                                                                            │

00:02:06 #11683 [Verbose] > │ 3                                                                            │

00:02:06 #11684 [Verbose] > │ "                                                                            │

00:02:06 #11685 [Verbose] > │                                                                              │

00:02:06 #11686 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:06 #11687 [Verbose] >

00:02:06 #11688 [Verbose] > ╭─[ 13.78s - stdout ]──────────────────────────────────────────────────────────╮

00:02:06 #11689 [Verbose] > │                                                                              │

00:02:06 #11690 [Verbose] > │ .fsx:                                                                        │

00:02:06 #11691 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class    │

00:02:06 #11692 [Verbose] > │ end                                                                          │

00:02:06 #11693 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> =  │

00:02:06 #11694 [Verbose] > │ class end                                                                    │

00:02:06 #11695 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end    │

00:02:06 #11696 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end     │

00:02:06 #11697 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end  │

00:02:06 #11698 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end        │

00:02:06 #11699 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> =    │

00:02:06 #11700 [Verbose] > │ class end                                                                    │

00:02:06 #11701 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │

00:02:06 #11702 [Verbose] > │ class end                                                                    │

00:02:06 #11703 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end   │

00:02:06 #11704 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end     │

00:02:06 #11705 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:02:06 #11706 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> =    │

00:02:06 #11707 [Verbose] > │ class end                                                                    │

00:02:06 #11708 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> =      │

00:02:06 #11709 [Verbose] > │ class end                                                                    │

00:02:06 #11710 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any =    │

00:02:06 #11711 [Verbose] > │ class end                                                                    │

00:02:06 #11712 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type         │

00:02:06 #11713 [Verbose] > │ std_cell_RefCell<'T> = class end                                             │

00:02:06 #11714 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type              │

00:02:06 #11715 [Verbose] > │ std_pin_Pin<'T> = class end                                                  │

00:02:06 #11716 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T>  │

00:02:06 #11717 [Verbose] > │ = class end                                                                  │

00:02:06 #11718 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type              │

00:02:06 #11719 [Verbose] > │ std_rc_Weak<'T> = class end                                                  │

00:02:06 #11720 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type             │

00:02:06 #11721 [Verbose] > │ std_sync_Arc<'T> = class end                                                 │

00:02:06 #11722 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:02:06 #11723 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type            │

00:02:06 #11724 [Verbose] > │ base64_DecodeError = class end                                               │

00:02:06 #11725 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type               │

00:02:06 #11726 [Verbose] > │ borsh_io_Error = class end                                                   │

00:02:06 #11727 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type               │

00:02:06 #11728 [Verbose] > │ js_sys_JsString = class end                                                  │

00:02:06 #11729 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type              │

00:02:06 #11730 [Verbose] > │ serde_json_Error = class end                                                 │

00:02:06 #11731 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type              │

00:02:06 #11732 [Verbose] > │ serde_json_Value = class end                                                 │

00:02:06 #11733 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type      │

00:02:06 #11734 [Verbose] > │ serde_wasm_bindgen_Error = class end                                         │

00:02:06 #11735 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type            │

00:02:06 #11736 [Verbose] > │ std_str_Utf8Error = class end                                                │

00:02:06 #11737 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:02:06 #11738 [Verbose] > │ std_string_String = class end                                                │

00:02:06 #11739 [Verbose] > │ let rec method1 () : string =                                                │

00:02:06 #11740 [Verbose] > │     let v0 : string = ""                                                     │

00:02:06 #11741 [Verbose] > │     v0                                                                       │

00:02:06 #11742 [Verbose] > │ and method2 (v0 : string) : string =                                         │

00:02:06 #11743 [Verbose] > │     v0                                                                       │

00:02:06 #11744 [Verbose] > │ and method3 () : string =                                                    │

00:02:06 #11745 [Verbose] > │     let v0 : string = "1"                                                    │

00:02:06 #11746 [Verbose] > │     v0                                                                       │

00:02:06 #11747 [Verbose] >

00:02:06 #11748 [Verbose] > │ and method4 () : string =                                                    │

00:02:06 #11749 [Verbose] > ╭─[ 507.35ms - stdout ]────────────────────────────────────────────────────────╮

00:02:06 #11750 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:06 #11751 [Verbose] > │     let v0 : string = "\n"                                                   │

00:02:06 #11752 [Verbose] > │     | US0_0                                                                  │

00:02:06 #11753 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:06 #11754 [Verbose] > │     v0                                                                       │

00:02:06 #11755 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:06 #11756 [Verbose] > │ and method5 (v0 : std_string_String) : std_string_String =                   │

00:02:06 #11757 [Verbose] > │     let v0 : US0 = US0_1(6)                                                  │

00:02:06 #11758 [Verbose] > │     v0                                                                       │

00:02:06 #11759 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:06 #11760 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:06 #11761 [Verbose] > │     let v5 : US0 = US0_1(6)                                                  │

00:02:06 #11762 [Verbose] > │     let v6 : US0 = US0_1(6)                                                  │

00:02:06 #11763 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}"        │

00:02:06 #11764 [Verbose] > │     ()                                                                       │

00:02:06 #11765 [Verbose] > │ method0()                                                                    │

00:02:06 #11766 [Verbose] > │                                                                              │

00:02:06 #11767 [Verbose] > │ US0_1 6                                                                      │

00:02:06 #11768 [Verbose] > │                                                                              │

00:02:06 #11769 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:06 #11770 [Verbose] >

00:02:06 #11771 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:06 #11772 [Verbose] > │ and method6 (v0 : string) : string =                                         │

00:02:06 #11773 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:06 #11774 [Verbose] > │ ## fold                                                                      │

00:02:06 #11775 [Verbose] > │     v0                                                                       │

00:02:06 #11776 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:06 #11777 [Verbose] > │ and method7 () : string =                                                    │

00:02:06 #11778 [Verbose] > │     let v0 : string = "2"                                                    │

00:02:06 #11779 [Verbose] >

00:02:06 #11780 [Verbose] > │     v0                                                                       │

00:02:06 #11781 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:06 #11782 [Verbose] > inl fold fn init seq =

00:02:06 #11783 [Verbose] >     inl rec loop acc n =

00:02:06 #11784 [Verbose] >         match seq n with

00:02:06 #11785 [Verbose] >         | Some x => loop (fn acc x) (n + 1)

00:02:06 #11786 [Verbose] >         | None => acc

00:02:06 #11787 [Verbose] >     loop init 0

00:02:06 #11788 [Verbose] >

00:02:06 #11789 [Verbose] > inl fold_ fn init seq =

00:02:06 #11790 [Verbose] >     let rec loop acc n =

00:02:06 #11791 [Verbose] >         match seq n with

00:02:06 #11793 [Verbose] >         | Some x => loop (fn acc x) (n + 1)

00:02:06 #11792 [Verbose] > │ and method8 () : string =                                                    │

00:02:06 #11794 [Verbose] >         | None => acc

00:02:06 #11795 [Verbose] >     loop init 0

00:02:06 #11796 [Verbose] > │     let v0 : string = "3"                                                    │

00:02:06 #11797 [Verbose] > │     v0                                                                       │

00:02:06 #11798 [Verbose] > │ and method9 (v0 : bool) : bool =                                             │

00:02:06 #11799 [Verbose] > │     v0                                                                       │

00:02:06 #11800 [Verbose] > │ and method0 () : unit =                                                      │

00:02:06 #11801 [Verbose] > │     let v0 : string = method1()                                              │

00:02:06 #11802 [Verbose] > │     let v1 : string = method2(v0)                                            │

00:02:06 #11803 [Verbose] > │     let v2 : string = $"fable_library_rust::String_::LrcStr::as_str(&v1)"    │

00:02:06 #11804 [Verbose] > │     let v3 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v2            │

00:02:06 #11805 [Verbose] > │     let v4 : string = "String::from(v3)"                                     │

00:02:06 #11806 [Verbose] > │     let v5 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v4   │

00:02:06 #11807 [Verbose] > │     let v6 : string = method3()                                              │

00:02:06 #11808 [Verbose] > │     let v7 : string = $"fable_library_rust::String_::LrcStr::as_str(&v6)"    │

00:02:06 #11809 [Verbose] > │     let v8 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v7            │

00:02:06 #11810 [Verbose] > │     let v9 : string = method4()                                              │

00:02:06 #11811 [Verbose] > │     let v10 : string = $"fable_library_rust::String_::LrcStr::as_str(&v9)"   │

00:02:06 #11812 [Verbose] > │     let v11 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v10          │

00:02:06 #11813 [Verbose] > │     let v12 : string = "v5 + v8 + v11"                                       │

00:02:06 #11814 [Verbose] > │     let v13 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v12 │

00:02:06 #11815 [Verbose] > │     let v14 : std_string_String = method5(v13)                               │

00:02:06 #11816 [Verbose] > │     let v15 : string = "fable_library_rust::String_::fromString(v14)"        │

00:02:06 #11817 [Verbose] > │     let v16 : string = Fable.Core.RustInterop.emitRustExpr () v15            │

00:02:06 #11818 [Verbose] > │     let v17 : string = method6(v16)                                          │

00:02:06 #11819 [Verbose] > │     let v18 : string = method2(v17)                                          │

00:02:06 #11820 [Verbose] > │     let v19 : string = $"fable_library_rust::String_::LrcStr::as_str(&v18)"  │

00:02:06 #11821 [Verbose] > │     let v20 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v19          │

00:02:06 #11822 [Verbose] > │     let v21 : string = "String::from(v20)"                                   │

00:02:06 #11823 [Verbose] > │     let v22 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v21 │

00:02:06 #11824 [Verbose] > │     let v23 : string = method7()                                             │

00:02:06 #11825 [Verbose] > │     let v24 : string = $"fable_library_rust::String_::LrcStr::as_str(&v23)"  │

00:02:06 #11826 [Verbose] > │     let v25 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v24          │

00:02:06 #11827 [Verbose] > │     let v26 : string = method4()                                             │

00:02:06 #11828 [Verbose] > │     let v27 : string = $"fable_library_rust::String_::LrcStr::as_str(&v26)"  │

00:02:06 #11829 [Verbose] > │     let v28 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v27          │

00:02:06 #11830 [Verbose] > │     let v29 : string = "v22 + v25 + v28"                                     │

00:02:06 #11831 [Verbose] > │     let v30 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v29 │

00:02:06 #11832 [Verbose] > │     let v31 : std_string_String = method5(v30)                               │

00:02:06 #11833 [Verbose] > │     let v32 : string = "fable_library_rust::String_::fromString(v31)"        │

00:02:06 #11834 [Verbose] > │     let v33 : string = Fable.Core.RustInterop.emitRustExpr () v32            │

00:02:06 #11835 [Verbose] > │     let v34 : string = method6(v33)                                          │

00:02:06 #11836 [Verbose] > │     let v35 : string = method2(v34)                                          │

00:02:06 #11837 [Verbose] > │     let v36 : string = $"fable_library_rust::String_::LrcStr::as_str(&v35)"  │

00:02:06 #11838 [Verbose] > │     let v37 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v36          │

00:02:06 #11839 [Verbose] > │     let v38 : string = "String::from(v37)"                                   │

00:02:06 #11840 [Verbose] > │     let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v38 │

00:02:06 #11841 [Verbose] > │     let v40 : string = method8()                                             │

00:02:06 #11842 [Verbose] > │     let v41 : string = $"fable_library_rust::String_::LrcStr::as_str(&v40)"  │

00:02:06 #11843 [Verbose] > │     let v42 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v41          │

00:02:06 #11844 [Verbose] > │     let v43 : string = method4()                                             │

00:02:06 #11845 [Verbose] > │     let v44 : string = $"fable_library_rust::String_::LrcStr::as_str(&v43)"  │

00:02:06 #11846 [Verbose] > │     let v45 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v44          │

00:02:06 #11847 [Verbose] > │     let v46 : string = "v39 + v42 + v45"                                     │

00:02:06 #11848 [Verbose] > │     let v47 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v46 │

00:02:06 #11849 [Verbose] > │     let v48 : std_string_String = method5(v47)                               │

00:02:06 #11850 [Verbose] > │     let v49 : string = "fable_library_rust::String_::fromString(v48)"        │

00:02:06 #11851 [Verbose] > │     let v50 : string = Fable.Core.RustInterop.emitRustExpr () v49            │

00:02:06 #11852 [Verbose] > │     let v51 : string = $"%A{v50}"                                            │

00:02:06 #11853 [Verbose] > │     System.Console.WriteLine v51                                             │

00:02:06 #11854 [Verbose] > │     let v53 : bool = v50 = "1\n2\n3\n"                                       │

00:02:06 #11855 [Verbose] > │     let v55 : bool =                                                         │

00:02:06 #11856 [Verbose] > │         if v53 then                                                          │

00:02:06 #11857 [Verbose] > │             true                                                             │

00:02:06 #11858 [Verbose] > │         else                                                                 │

00:02:06 #11859 [Verbose] > │             method9(v53)                                                     │

00:02:06 #11860 [Verbose] > │     let v56 : string = "1\n2\n3\n"                                           │

00:02:06 #11861 [Verbose] > │     let v57 : string = $"__expect / actual: %A{v50} / expected: %A{v56}"     │

00:02:06 #11862 [Verbose] > │     let v58 : bool = v55 = false                                             │

00:02:06 #11863 [Verbose] > │     if v58 then                                                              │

00:02:06 #11864 [Verbose] > │         failwith<unit> v57                                                   │

00:02:06 #11865 [Verbose] > │ method0()                                                                    │

00:02:06 #11866 [Verbose] > │                                                                              │

00:02:06 #11867 [Verbose] > │                                                                              │

00:02:06 #11868 [Verbose] > │ .rs:                                                                         │

00:02:06 #11869 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:02:06 #11870 [Verbose] > [NbConvertApp] Writing 288561 bytes to util.dib.html

00:02:06 #11871 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:02:06 #11872 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:02:06 #11873 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:02:06 #11874 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:02:07 #11875 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:02:07 #11876 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0243-4345-475bdebb1bf8\main.spi

00:02:07 #11877 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:02:07 #11878 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:02:07 #11879 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:02:07 #11880 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:02:07 #11881 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:02:07 #11882 [Verbose] >

00:02:07 #11883 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:02:07 #11884 [Verbose] > ╭─[ 335.00ms - stdout ]────────────────────────────────────────────────────────╮

00:02:07 #11885 [Verbose] > │         use super::*;                                                        │

00:02:07 #11886 [Verbose] > │ ()                                                                           │

00:02:07 #11887 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:02:07 #11888 [Verbose] > │                                                                              │

00:02:07 #11889 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:02:07 #11890 [Verbose] > │                                                                              │

00:02:07 #11891 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #11892 [Verbose] > │         use fable_library_rust::String_::sprintf;                            │

00:02:07 #11893 [Verbose] >

00:02:07 #11894 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:02:07 #11895 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:07 #11897 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:07 #11896 [Verbose] > │         pub fn method1() -> string { string("") }                            │

00:02:07 #11898 [Verbose] > │ ## sum                                                                       │

00:02:07 #11899 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #11900 [Verbose] > │         pub fn method2(v0: string) -> string { v0 }                          │

00:02:07 #11901 [Verbose] >

00:02:07 #11902 [Verbose] > │         pub fn method3() -> string { string("1") }                           │

00:02:07 #11903 [Verbose] > │         pub fn method4() -> string { string("\n") }                          │

00:02:07 #11904 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:07 #11905 [Verbose] > inl sum seq =

00:02:07 #11906 [Verbose] >     seq |> fold (+) 0

00:02:07 #11907 [Verbose] >

00:02:07 #11908 [Verbose] > inl sum_ seq =

00:02:07 #11909 [Verbose] > │         pub fn method5(v0: std::string::String) -> std::string::String { v0  │

00:02:07 #11910 [Verbose] >     seq |> fold_ (+) 0

00:02:07 #11911 [Verbose] > │ }                                                                            │

00:02:07 #11912 [Verbose] > │         pub fn method6(v0: string) -> string { v0 }                          │

00:02:07 #11913 [Verbose] > │         pub fn method7() -> string { string("2") }                           │

00:02:07 #11914 [Verbose] > │         pub fn method8() -> string { string("3") }                           │

00:02:07 #11915 [Verbose] > │         pub fn method9(v0: bool) -> bool { v0 }                              │

00:02:07 #11916 [Verbose] > │         pub fn method0() {                                                   │

00:02:07 #11917 [Verbose] > │             let v1: string = Spiral_eval::method2(Spiral_eval::method1());   │

00:02:07 #11918 [Verbose] > │             let v3: &str = fable_library_rust::String_::LrcStr::as_str(&v1); │

00:02:07 #11919 [Verbose] > │             let v5: std::string::String = String::from(v3);                  │

00:02:07 #11920 [Verbose] > │             let v6: string = Spiral_eval::method3();                         │

00:02:07 #11921 [Verbose] > │             let v8: &str = fable_library_rust::String_::LrcStr::as_str(&v6); │

00:02:07 #11922 [Verbose] > │             let v9: string = Spiral_eval::method4();                         │

00:02:07 #11923 [Verbose] > │             let v11: &str =                                                  │

00:02:07 #11924 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v9);                            │

00:02:07 #11925 [Verbose] > │             let v14: std::string::String =                                   │

00:02:07 #11926 [Verbose] > │                 Spiral_eval::method5(v5 + v8 + v11);                         │

00:02:07 #11927 [Verbose] > │             let v18: string =                                                │

00:02:07 #11928 [Verbose] > │                                                                              │

00:02:07 #11929 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │

00:02:07 #11930 [Verbose] > │ tring(v14)));                                                                │

00:02:07 #11931 [Verbose] > │             let v20: &str =                                                  │

00:02:07 #11932 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v18);                           │

00:02:07 #11933 [Verbose] > │             let v22: std::string::String = String::from(v20);                │

00:02:07 #11934 [Verbose] > │             let v23: string = Spiral_eval::method7();                        │

00:02:07 #11935 [Verbose] > │             let v25: &str =                                                  │

00:02:07 #11936 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v23);                           │

00:02:07 #11937 [Verbose] > │             let v26: string = Spiral_eval::method4();                        │

00:02:07 #11938 [Verbose] > │             let v28: &str =                                                  │

00:02:07 #11939 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v26);                           │

00:02:07 #11940 [Verbose] > │             let v31: std::string::String =                                   │

00:02:07 #11941 [Verbose] > │                 Spiral_eval::method5(v22 + v25 + v28);                       │

00:02:07 #11942 [Verbose] > │             let v35: string =                                                │

00:02:07 #11943 [Verbose] > │                                                                              │

00:02:07 #11944 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │

00:02:07 #11945 [Verbose] > │ tring(v31)));                                                                │

00:02:07 #11946 [Verbose] > │             let v37: &str =                                                  │

00:02:07 #11947 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v35);                           │

00:02:07 #11948 [Verbose] > │             let v39: std::string::String = String::from(v37);                │

00:02:07 #11949 [Verbose] > │             let v40: string = Spiral_eval::method8();                        │

00:02:07 #11950 [Verbose] > │             let v42: &str =                                                  │

00:02:07 #11951 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v40);                           │

00:02:07 #11952 [Verbose] > │             let v43: string = Spiral_eval::method4();                        │

00:02:07 #11953 [Verbose] > │             let v45: &str =                                                  │

00:02:07 #11954 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v43);                           │

00:02:07 #11955 [Verbose] > │             let v48: std::string::String =                                   │

00:02:07 #11956 [Verbose] > │                 Spiral_eval::method5(v39 + v42 + v45);                       │

00:02:07 #11957 [Verbose] > │             let v50: string = fable_library_rust::String_::fromString(v48);  │

00:02:07 #11958 [Verbose] > │             let v51: string = sprintf!("{:?}", v50.clone());                 │

00:02:07 #11959 [Verbose] > │             printfn!("{0}", v51);                                            │

00:02:07 #11960 [Verbose] > │             {                                                                │

00:02:07 #11961 [Verbose] > │                 let v53: bool = v50.clone() == string("1\n2\n3\n");          │

00:02:07 #11962 [Verbose] > │                 if (if v53 { true } else { Spiral_eval::method9(v53) }) ==   │

00:02:07 #11963 [Verbose] > │                        false {                                               │

00:02:07 #11964 [Verbose] > │                     panic!("{}",                                             │

00:02:07 #11965 [Verbose] > │                            sprintf!("__expect / actual: {:?} / expected:     │

00:02:07 #11966 [Verbose] > │ {:?}", v50, string("1\n2\n3\n")));                                           │

00:02:07 #11967 [Verbose] > │                 }                                                            │

00:02:07 #11968 [Verbose] > │             }                                                                │

00:02:07 #11969 [Verbose] > │         }                                                                    │

00:02:07 #11970 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:02:07 #11971 [Verbose] > │     }                                                                        │

00:02:07 #11972 [Verbose] > │ }                                                                            │

00:02:07 #11973 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:02:07 #11974 [Verbose] > │                                                                              │

00:02:07 #11975 [Verbose] > │                                                                              │

00:02:07 #11976 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #11977 [Verbose] >

00:02:07 #11978 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:07 #11979 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:07 #11980 [Verbose] > │ ## concat                                                                    │

00:02:07 #11981 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #11982 [Verbose] >

00:02:07 #11983 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:07 #11984 [Verbose] > inl concat (a : string) (b : seq.seq' _) : string =

00:02:07 #11985 [Verbose] >     $"!b |> String.concat !a"

00:02:07 #11986 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0277-7783-752787a72023\main.spi

00:02:07 #11987 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0289-8915-8804de84302a\main.spi

00:02:07 #11988 [Verbose] >

00:02:07 #11989 [Verbose] > ╭─[ 331.06ms - stdout ]────────────────────────────────────────────────────────╮

00:02:07 #11990 [Verbose] > │ ()                                                                           │

00:02:07 #11991 [Verbose] > │                                                                              │

00:02:07 #11992 [Verbose] > │                                                                              │

00:02:07 #11993 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #11994 [Verbose] >

00:02:07 #11995 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:07 #11996 [Verbose] > // // test

00:02:07 #11997 [Verbose] >

00:02:07 #11998 [Verbose] > listm.init 10i32 id

00:02:07 #11999 [Verbose] > |> from_list

00:02:07 #12000 [Verbose] > |> fun f (n : i32) => f n

00:02:07 #12001 [Verbose] > |> sum

00:02:07 #12002 [Verbose] > |> _assert_eq 45

00:02:07 #12003 [Verbose] >

00:02:07 #12004 [Verbose] > ╭─[ 342.50ms - stdout ]────────────────────────────────────────────────────────╮

00:02:07 #12005 [Verbose] > │ ()                                                                           │

00:02:07 #12006 [Verbose] > │                                                                              │

00:02:07 #12007 [Verbose] > │                                                                              │

00:02:07 #12008 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #12009 [Verbose] >

00:02:07 #12010 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:07 #12011 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:07 #12012 [Verbose] > │ ## split                                                                     │

00:02:07 #12013 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #12014 [Verbose] >

00:02:07 #12015 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:07 #12016 [Verbose] > inl split (separator : string) (str : string) : array_base string =

00:02:07 #12017 [Verbose] >     $"!str.Split !separator"

00:02:07 #12018 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0311-1165-1887d46cb99a\main.spi

00:02:07 #12019 [Verbose] >

00:02:07 #12020 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0324-2442-2b2470e3c834\main.spi

00:02:07 #12021 [Verbose] > ╭─[ 4.79s - stdout ]───────────────────────────────────────────────────────────╮

00:02:07 #12022 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:07 #12023 [Verbose] >

00:02:07 #12024 [Verbose] > │     | US0_0                                                                  │

00:02:07 #12025 [Verbose] > ╭─[ 413.41ms - stdout ]────────────────────────────────────────────────────────╮

00:02:07 #12026 [Verbose] > │     | US0_1                                                                  │

00:02:07 #12027 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:07 #12028 [Verbose] > │     | US0_2                                                                  │

00:02:07 #12029 [Verbose] > │     let v0 : string = $"%A{45}"                                              │

00:02:07 #12030 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:07 #12031 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:07 #12032 [Verbose] > │     | US1_0 of f0_0 : US0                                                    │

00:02:07 #12033 [Verbose] > │     let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}"        │

00:02:07 #12034 [Verbose] > │     | US1_1 of f1_0 : US0                                                    │

00:02:07 #12035 [Verbose] > │     ()                                                                       │

00:02:07 #12036 [Verbose] > │ and [<Struct>] US2 =                                                         │

00:02:07 #12037 [Verbose] > │ method0()                                                                    │

00:02:07 #12038 [Verbose] > │     | US2_0                                                                  │

00:02:07 #12039 [Verbose] > │                                                                              │

00:02:07 #12040 [Verbose] > │     | US2_1 of f1_0 : char                                                   │

00:02:07 #12041 [Verbose] > │ 45                                                                           │

00:02:07 #12042 [Verbose] > │ let rec closure0 (v0 : char) (v1 : char) : bool =                            │

00:02:07 #12043 [Verbose] > │                                                                              │

00:02:07 #12044 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #12045 [Verbose] > │     let v2 : bool = v0 = v1                                                  │

00:02:07 #12046 [Verbose] >

00:02:07 #12047 [Verbose] > │     v2                                                                       │

00:02:07 #12048 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:07 #12049 [Verbose] > │ and closure1 () (v0 : char) : US2 =                                          │

00:02:07 #12050 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:07 #12051 [Verbose] > │     US2_1(v0)                                                                │

00:02:07 #12052 [Verbose] > │ ## to_list                                                                   │

00:02:07 #12053 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:07 #12054 [Verbose] >

00:02:07 #12055 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:07 #12056 [Verbose] > │ and method1 (v0 : bool) : bool =                                             │

00:02:07 #12057 [Verbose] > inl to_list seq =

00:02:07 #12058 [Verbose] >     seq

00:02:07 #12059 [Verbose] >     |> fold (fun acc x => x :: acc) [[]]

00:02:07 #12060 [Verbose] >     |> listm.rev

00:02:07 #12061 [Verbose] >

00:02:07 #12062 [Verbose] > inl to_list_ seq =

00:02:07 #12063 [Verbose] >     seq

00:02:07 #12064 [Verbose] >     |> fold_ (fun acc x => x :: acc) [[]]

00:02:07 #12065 [Verbose] >     |> listm.rev

00:02:07 #12066 [Verbose] > │     v0                                                                       │

00:02:08 #12067 [Verbose] > │ and method0 () : unit =                                                      │

00:02:08 #12068 [Verbose] > │     let mutable result = None                                                │

00:02:08 #12069 [Verbose] >

00:02:08 #12070 [Verbose] > ╭─[ 360.98ms - stdout ]────────────────────────────────────────────────────────╮

00:02:08 #12071 [Verbose] > │ ()                                                                           │

00:02:08 #12072 [Verbose] > │                                                                              │

00:02:08 #12073 [Verbose] > │                                                                              │

00:02:08 #12074 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12075 [Verbose] >

00:02:08 #12076 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:08 #12077 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:08 #12078 [Verbose] > │ ## split_string                                                              │

00:02:08 #12079 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12080 [Verbose] >

00:02:08 #12081 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:08 #12082 [Verbose] > inl split_string (separator : array_base string) (str : string) : array_base

00:02:08 #12083 [Verbose] > string =

00:02:08 #12084 [Verbose] >     run_target function

00:02:08 #12085 [Verbose] >         | Fsharp (Native) => fun () => $"!str.Split (!separator,

00:02:08 #12086 [Verbose] > System.StringSplitOptions.None)"

00:02:08 #12087 [Verbose] >         | _ => fun () => str |> split ((a separator : _ i32 _) |> seq.of_array

00:02:08 #12088 [Verbose] > |> concat (join ""))

00:02:08 #12089 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:02:08 #12090 [Verbose] > │     let v0 : US0 = US0_1                                                     │

00:02:08 #12091 [Verbose] > │     let v1 : US1 = US1_1(v0)                                                 │

00:02:08 #12092 [Verbose] > │     let v2 : string = $"create_temp_directory_name target: {v1}"             │

00:02:08 #12093 [Verbose] > │     let v3 : string = failwith<string> v2                                    │

00:02:08 #12094 [Verbose] > │     v3                                                                       │

00:02:08 #12095 [Verbose] > │     #endif                                                                   │

00:02:08 #12096 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:02:08 #12097 [Verbose] > │     let v4 : US0 = US0_2                                                     │

00:02:08 #12098 [Verbose] > │     let v5 : US1 = US1_1(v4)                                                 │

00:02:08 #12099 [Verbose] > │     let v6 : string = $"create_temp_directory_name target: {v5}"             │

00:02:08 #12100 [Verbose] > │     let v7 : string = failwith<string> v6                                    │

00:02:08 #12101 [Verbose] > │     v7                                                                       │

00:02:08 #12102 [Verbose] > │     #endif                                                                   │

00:02:08 #12103 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:02:08 #12104 [Verbose] > │     let v8 : string =                                                        │

00:02:08 #12105 [Verbose] > │ System.Reflection.Assembly.GetEntryAssembly().GetName().Name                 │

00:02:08 #12106 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0357-5708-51528531504e\main.spi

00:02:08 #12107 [Verbose] > │     let v9 : (unit -> string) = System.IO.Path.GetTempPath                   │

00:02:08 #12108 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0361-6107-64ecea0e83bc\main.spi

00:02:08 #12109 [Verbose] > │     let v10 : string = v9 ()                                                 │

00:02:08 #12110 [Verbose] > │     let v11 : string = $"{v8}"                                               │

00:02:08 #12111 [Verbose] > │     let v12 : string = System.IO.Path.Combine (v10, v11)                     │

00:02:08 #12112 [Verbose] >

00:02:08 #12113 [Verbose] > │     let v13 : System.DateTime = System.DateTime.Now                          │

00:02:08 #12114 [Verbose] > ╭─[ 361.60ms - stdout ]────────────────────────────────────────────────────────╮

00:02:08 #12115 [Verbose] > │     let v14 : System.Guid = System.Guid.NewGuid ()                           │

00:02:08 #12116 [Verbose] > │ ()                                                                           │

00:02:08 #12117 [Verbose] > │     let v15 : string = v14.ToString ()                                       │

00:02:08 #12118 [Verbose] > │                                                                              │

00:02:08 #12120 [Verbose] > │     let v16 : string = v13.ToString "yyyyMMdd-HHmm-ssff-ffff-f"              │

00:02:08 #12120 [Verbose] >

00:02:08 #12121 [Verbose] > │                                                                              │

00:02:08 #12122 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12123 [Verbose] > │     let v17 : System.Guid = System.Guid $"{v16}{v15.[v16.Length..]}"         │

00:02:08 #12124 [Verbose] >

00:02:08 #12125 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:08 #12126 [Verbose] > // // test

00:02:08 #12127 [Verbose] >

00:02:08 #12128 [Verbose] > listm.init 10i32 id

00:02:08 #12129 [Verbose] > |> from_list

00:02:08 #12130 [Verbose] > |> fun f (n : i32) => f n

00:02:08 #12131 [Verbose] > |> to_list

00:02:08 #12132 [Verbose] > |> _assert_eq (listm.init 10i32 id)

00:02:08 #12133 [Verbose] > │     let v18 : string = v17.ToString ()                                       │

00:02:08 #12134 [Verbose] > │     let v19 : string = System.IO.Path.Combine (v12, v18)                     │

00:02:08 #12135 [Verbose] > │     v19                                                                      │

00:02:08 #12136 [Verbose] > │     #endif                                                                   │

00:02:08 #12137 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:02:08 #12138 [Verbose] > │     let v20 : US0 = US0_0                                                    │

00:02:08 #12139 [Verbose] > │     let v21 : US1 = US1_0(v20)                                               │

00:02:08 #12140 [Verbose] > │     let v22 : string = $"create_temp_directory_name target: {v21}"           │

00:02:08 #12141 [Verbose] > │     let v23 : string = failwith<string> v22                                  │

00:02:08 #12142 [Verbose] > ╭─[ 339.66ms - stdout ]────────────────────────────────────────────────────────╮

00:02:08 #12143 [Verbose] > │     v23                                                                      │

00:02:08 #12144 [Verbose] > │ ()                                                                           │

00:02:08 #12145 [Verbose] > │     #endif                                                                   │

00:02:08 #12146 [Verbose] > │                                                                              │

00:02:08 #12147 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:02:08 #12148 [Verbose] > │                                                                              │

00:02:08 #12149 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12150 [Verbose] > │     let v24 : US0 = US0_2                                                    │

00:02:08 #12151 [Verbose] >

00:02:08 #12152 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:08 #12153 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:08 #12154 [Verbose] > │ ## join'                                                                     │

00:02:08 #12155 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12156 [Verbose] > │     let v25 : US1 = US1_0(v24)                                               │

00:02:08 #12157 [Verbose] > │     let v26 : string = $"create_temp_directory_name target: {v25}"           │

00:02:08 #12158 [Verbose] >

00:02:08 #12159 [Verbose] > │     let v27 : string = failwith<string> v26                                  │

00:02:08 #12160 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:08 #12161 [Verbose] > │     v27                                                                      │

00:02:08 #12162 [Verbose] > inl join' (concat : string) (s : a i32 string) : string =

00:02:08 #12163 [Verbose] >     $"System.String.Join (!concat, !s)"

00:02:08 #12164 [Verbose] > │     #endif                                                                   │

00:02:08 #12165 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:02:08 #12166 [Verbose] > │     let v28 : string = result |> Option.get                                  │

00:02:08 #12167 [Verbose] > │     let v29 : char = System.IO.Path.DirectorySeparatorChar                   │

00:02:08 #12168 [Verbose] > │     let v30 : string = $"%A{v28}"                                            │

00:02:08 #12169 [Verbose] > │     System.Console.WriteLine v30                                             │

00:02:08 #12170 [Verbose] > │     let v31 : ((char -> bool) -> (string -> char option)) = Seq.tryFind      │

00:02:08 #12171 [Verbose] > │     let v32 : (char -> bool) = closure0(v29)                                 │

00:02:08 #12172 [Verbose] > │     let v33 : (string -> char option) = v31 v32                              │

00:02:08 #12173 [Verbose] > │     let v34 : char option = v33 v28                                          │

00:02:08 #12174 [Verbose] > │     let v35 : (char -> US2) = closure1()                                     │

00:02:08 #12175 [Verbose] > │     let v36 : US2 = US2_0                                                    │

00:02:08 #12176 [Verbose] > │     let v37 : US2 = v34 |> Option.map v35 |> Option.defaultValue v36         │

00:02:08 #12177 [Verbose] > │     let v39 : bool =                                                         │

00:02:08 #12178 [Verbose] > │         match v37 with                                                       │

00:02:08 #12179 [Verbose] > │         | US2_0 -> (* None *)                                                │

00:02:08 #12180 [Verbose] > │             true                                                             │

00:02:08 #12181 [Verbose] > │         | _ ->                                                               │

00:02:08 #12182 [Verbose] > │             false                                                            │

00:02:08 #12183 [Verbose] > │     let v40 : bool = v39 <> true                                             │

00:02:08 #12184 [Verbose] > │     let v42 : bool =                                                         │

00:02:08 #12185 [Verbose] > │         if v40 then                                                          │

00:02:08 #12186 [Verbose] > │             true                                                             │

00:02:08 #12187 [Verbose] > │         else                                                                 │

00:02:08 #12188 [Verbose] > │             method1(v40)                                                     │

00:02:08 #12189 [Verbose] > │     let v43 : string = $"__expect / actual: %A{v28} / expected: %A{v29}"     │

00:02:08 #12190 [Verbose] > │     let v44 : bool = v42 = false                                             │

00:02:08 #12191 [Verbose] > │     if v44 then                                                              │

00:02:08 #12192 [Verbose] > │         failwith<unit> v43                                                   │

00:02:08 #12193 [Verbose] > │ method0()                                                                    │

00:02:08 #12194 [Verbose] > │                                                                              │

00:02:08 #12195 [Verbose] > │ "C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240330-0138-0339-3955-3da1c │

00:02:08 #12196 [Verbose] > │ e925903"                                                                     │

00:02:08 #12197 [Verbose] > │                                                                              │

00:02:08 #12198 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12199 [Verbose] >

00:02:08 #12200 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:08 #12201 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:08 #12202 [Verbose] > │ ## main                                                                      │

00:02:08 #12203 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12204 [Verbose] >

00:02:08 #12205 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:08 #12206 [Verbose] > inl main () =

00:02:08 #12207 [Verbose] >     $"let create_temp_directory_name () = !create_temp_directory_name ()" : ()

00:02:08 #12208 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0395-9564-9c23ceceacfb\main.spi

00:02:08 #12209 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0402-0208-063da26bedcc\main.spi

00:02:08 #12210 [Verbose] >

00:02:08 #12211 [Verbose] > ╭─[ 329.38ms - stdout ]────────────────────────────────────────────────────────╮

00:02:08 #12212 [Verbose] > │ ()                                                                           │

00:02:08 #12213 [Verbose] > │                                                                              │

00:02:08 #12214 [Verbose] > │                                                                              │

00:02:08 #12215 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12216 [Verbose] >

00:02:08 #12217 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:08 #12218 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:08 #12219 [Verbose] > │ ## to_char_array                                                             │

00:02:08 #12220 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:08 #12221 [Verbose] >

00:02:08 #12222 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:08 #12223 [Verbose] > inl to_char_array (str : string) : a i32 char =

00:02:08 #12224 [Verbose] >     am.init (str |> sm.length) (fun i => sm.index str i)

00:02:08 #12225 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0411-1108-172d25b77255\main.spi

00:02:08 #12226 [Debug] executeAsync / exitCode: 0 / output.Length: 15199

00:02:08 #12227 [Debug] main / executeCommand / exitCode: 0

00:02:08 #12228 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 rust.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:02:08 #12229 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0434-3472-3d41944d993c\main.spi

00:02:08 #12230 [Verbose] >

00:02:08 #12231 [Verbose] > ╭─[ 614.60ms - stdout ]────────────────────────────────────────────────────────╮

00:02:08 #12232 [Verbose] > │ type UH0 =                                                                   │

00:02:08 #12233 [Verbose] > │     | UH0_0 of int32 * UH0                                                   │

00:02:08 #12234 [Verbose] > │     | UH0_1                                                                  │

00:02:08 #12235 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:08 #12236 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:02:08 #12237 [Verbose] > │     let v1 : UH0 = UH0_0(9, v0)                                              │

00:02:08 #12238 [Verbose] > │     let v2 : UH0 = UH0_0(8, v1)                                              │

00:02:08 #12239 [Verbose] > │     let v3 : UH0 = UH0_0(7, v2)                                              │

00:02:08 #12240 [Verbose] > │     let v4 : UH0 = UH0_0(6, v3)                                              │

00:02:08 #12241 [Verbose] > │     let v5 : UH0 = UH0_0(5, v4)                                              │

00:02:08 #12242 [Verbose] > │     let v6 : UH0 = UH0_0(4, v5)                                              │

00:02:08 #12243 [Verbose] > │     let v7 : UH0 = UH0_0(3, v6)                                              │

00:02:08 #12244 [Verbose] > │     let v8 : UH0 = UH0_0(2, v7)                                              │

00:02:09 #12245 [Verbose] > │     let v9 : UH0 = UH0_0(1, v8)                                              │

00:02:09 #12246 [Verbose] > │     let v10 : UH0 = UH0_0(0, v9)                                             │

00:02:09 #12247 [Verbose] > │     let v11 : string = $"%A{v10}"                                            │

00:02:09 #12248 [Verbose] > │     System.Console.WriteLine v11                                             │

00:02:09 #12249 [Verbose] > │     let v100 : UH0 = UH0_1                                                   │

00:02:09 #12250 [Verbose] > │     let v101 : UH0 = UH0_0(9, v100)                                          │

00:02:09 #12251 [Verbose] > │     let v102 : UH0 = UH0_0(8, v101)                                          │

00:02:09 #12252 [Verbose] > │     let v103 : UH0 = UH0_0(7, v102)                                          │

00:02:09 #12253 [Verbose] > │     let v104 : UH0 = UH0_0(6, v103)                                          │

00:02:09 #12254 [Verbose] > │     let v105 : UH0 = UH0_0(5, v104)                                          │

00:02:09 #12255 [Verbose] > │     let v106 : UH0 = UH0_0(4, v105)                                          │

00:02:09 #12256 [Verbose] > │     let v107 : UH0 = UH0_0(3, v106)                                          │

00:02:09 #12257 [Verbose] > │     let v108 : UH0 = UH0_0(2, v107)                                          │

00:02:09 #12258 [Verbose] > │     let v109 : UH0 = UH0_0(1, v108)                                          │

00:02:09 #12259 [Verbose] > │     let v110 : UH0 = UH0_0(0, v109)                                          │

00:02:09 #12260 [Verbose] > │     let v111 : UH0 = UH0_1                                                   │

00:02:09 #12261 [Verbose] > │     let v112 : UH0 = UH0_0(9, v111)                                          │

00:02:09 #12262 [Verbose] > │     let v113 : UH0 = UH0_0(8, v112)                                          │

00:02:09 #12263 [Verbose] > │     let v114 : UH0 = UH0_0(7, v113)                                          │

00:02:09 #12264 [Verbose] > │     let v115 : UH0 = UH0_0(6, v114)                                          │

00:02:09 #12265 [Verbose] > │     let v116 : UH0 = UH0_0(5, v115)                                          │

00:02:09 #12266 [Verbose] > │     let v117 : UH0 = UH0_0(4, v116)                                          │

00:02:09 #12267 [Verbose] > │     let v118 : UH0 = UH0_0(3, v117)                                          │

00:02:09 #12268 [Verbose] > │     let v119 : UH0 = UH0_0(2, v118)                                          │

00:02:09 #12269 [Verbose] > │     let v120 : UH0 = UH0_0(1, v119)                                          │

00:02:09 #12270 [Verbose] > │     let v121 : UH0 = UH0_0(0, v120)                                          │

00:02:09 #12271 [Verbose] > │     let v122 : string = $"__expect / actual: %A{v110} / expected: %A{v121}"  │

00:02:09 #12272 [Verbose] > │     ()                                                                       │

00:02:09 #12273 [Verbose] > │ method0()                                                                    │

00:02:09 #12274 [Verbose] > │                                                                              │

00:02:09 #12275 [Verbose] > │ UH0_0                                                                        │

00:02:09 #12276 [Verbose] > │   (0,                                                                        │

00:02:09 #12277 [Verbose] > │    UH0_0                                                                     │

00:02:09 #12278 [Verbose] > │      (1,                                                                     │

00:02:09 #12279 [Verbose] > │       UH0_0                                                                  │

00:02:09 #12280 [Verbose] > │         (2,                                                                  │

00:02:09 #12281 [Verbose] > │          UH0_0                                                               │

00:02:09 #12282 [Verbose] > │            (3,                                                               │

00:02:09 #12283 [Verbose] > │             UH0_0                                                            │

00:02:09 #12284 [Verbose] > │               (4, UH0_0 (5, UH0_0 (6, UH0_0 (7, UH0_0 (8, UH0_0 (9,          │

00:02:09 #12285 [Verbose] > │ UH0_1))))))))))                                                              │

00:02:09 #12286 [Verbose] > │                                                                              │

00:02:09 #12287 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:09 #12288 [Verbose] >

00:02:09 #12289 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:09 #12290 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:09 #12291 [Verbose] >

00:02:09 #12292 [Verbose] > │ ## from_array                                                                │

00:02:09 #12293 [Verbose] > ╭─[ 356.63ms - stdout ]────────────────────────────────────────────────────────╮

00:02:09 #12294 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:09 #12295 [Verbose] > │ ()                                                                           │

00:02:09 #12296 [Verbose] >

00:02:09 #12297 [Verbose] >

00:02:09 #12298 [Verbose] > │                                                                              │

00:02:09 #12299 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:09 #12300 [Verbose] > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =

00:02:09 #12301 [Verbose] >     fun n =>

00:02:09 #12302 [Verbose] >         if n >= length array

00:02:09 #12303 [Verbose] >         then None

00:02:09 #12304 [Verbose] > │                                                                              │

00:02:09 #12305 [Verbose] >         else index array n |> Some

00:02:09 #12306 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:09 #12307 [Verbose] > ╭─[ 652.17ms - stdout ]────────────────────────────────────────────────────────╮

00:02:09 #12308 [Verbose] >

00:02:09 #12309 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:09 #12310 [Verbose] > // // test

00:02:09 #12311 [Verbose] >

00:02:09 #12312 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:09 #12313 [Verbose] > "abc"

00:02:09 #12314 [Verbose] > |> to_char_array

00:02:09 #12315 [Verbose] > |> _assert_eq (a ;[['a'; 'b'; 'c']])

00:02:09 #12316 [Verbose] > │     | US0_0                                                                  │

00:02:09 #12317 [Verbose] > │     | US0_1                                                                  │

00:02:09 #12318 [Verbose] > │     | US0_2                                                                  │

00:02:09 #12319 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:09 #12320 [Verbose] > │     | US1_0 of f0_0 : US0                                                    │

00:02:09 #12321 [Verbose] > │     | US1_1 of f1_0 : US0                                                    │

00:02:09 #12322 [Verbose] > │ let rec closure0 () () : string =                                            │

00:02:09 #12323 [Verbose] > │     let mutable result = None                                                │

00:02:09 #12324 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:02:09 #12325 [Verbose] > │     let v0 : US0 = US0_1                                                     │

00:02:09 #12326 [Verbose] > │     let v1 : US1 = US1_1(v0)                                                 │

00:02:09 #12327 [Verbose] > │     let v2 : string = $"create_temp_directory_name target: {v1}"             │

00:02:09 #12328 [Verbose] > │     let v3 : string = failwith<string> v2                                    │

00:02:09 #12329 [Verbose] > │     v3                                                                       │

00:02:09 #12330 [Verbose] > │     #endif                                                                   │

00:02:09 #12331 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:02:09 #12332 [Verbose] > │     let v4 : US0 = US0_2                                                     │

00:02:09 #12333 [Verbose] > │     let v5 : US1 = US1_1(v4)                                                 │

00:02:09 #12334 [Verbose] > │     let v6 : string = $"create_temp_directory_name target: {v5}"             │

00:02:09 #12335 [Verbose] > │     let v7 : string = failwith<string> v6                                    │

00:02:09 #12336 [Verbose] > │     v7                                                                       │

00:02:09 #12337 [Verbose] > │     #endif                                                                   │

00:02:09 #12338 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:02:09 #12339 [Verbose] > │     let v8 : string =                                                        │

00:02:09 #12340 [Verbose] > │ System.Reflection.Assembly.GetEntryAssembly().GetName().Name                 │

00:02:09 #12341 [Verbose] > │     let v9 : (unit -> string) = System.IO.Path.GetTempPath                   │

00:02:09 #12342 [Verbose] > │     let v10 : string = v9 ()                                                 │

00:02:09 #12343 [Verbose] > │     let v11 : string = $"{v8}"                                               │

00:02:09 #12344 [Verbose] > │     let v12 : string = System.IO.Path.Combine (v10, v11)                     │

00:02:09 #12345 [Verbose] > │     let v13 : System.DateTime = System.DateTime.Now                          │

00:02:09 #12346 [Verbose] > │     let v14 : System.Guid = System.Guid.NewGuid ()                           │

00:02:09 #12347 [Verbose] > │     let v15 : string = v14.ToString ()                                       │

00:02:09 #12348 [Verbose] > │     let v16 : string = v13.ToString "yyyyMMdd-HHmm-ssff-ffff-f"              │

00:02:09 #12349 [Verbose] > │     let v17 : System.Guid = System.Guid $"{v16}{v15.[v16.Length..]}"         │

00:02:09 #12350 [Verbose] > │     let v18 : string = v17.ToString ()                                       │

00:02:09 #12351 [Verbose] > │     let v19 : string = System.IO.Path.Combine (v12, v18)                     │

00:02:09 #12352 [Verbose] > │     v19                                                                      │

00:02:09 #12353 [Verbose] > │     #endif                                                                   │

00:02:09 #12354 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:02:09 #12355 [Verbose] > │     let v20 : US0 = US0_0                                                    │

00:02:09 #12356 [Verbose] > │     let v21 : US1 = US1_0(v20)                                               │

00:02:09 #12357 [Verbose] > │     let v22 : string = $"create_temp_directory_name target: {v21}"           │

00:02:09 #12358 [Verbose] > │     let v23 : string = failwith<string> v22                                  │

00:02:09 #12359 [Verbose] > │     v23                                                                      │

00:02:09 #12360 [Verbose] > │     #endif                                                                   │

00:02:09 #12361 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:02:09 #12362 [Verbose] > │     let v24 : US0 = US0_2                                                    │

00:02:09 #12363 [Verbose] > │     let v25 : US1 = US1_0(v24)                                               │

00:02:09 #12364 [Verbose] > │     let v26 : string = $"create_temp_directory_name target: {v25}"           │

00:02:09 #12365 [Verbose] > │     let v27 : string = failwith<string> v26                                  │

00:02:09 #12366 [Verbose] > │     v27                                                                      │

00:02:09 #12367 [Verbose] > │     #endif                                                                   │

00:02:09 #12368 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:02:09 #12369 [Verbose] > │     let v28 : string = result |> Option.get                                  │

00:02:09 #12370 [Verbose] > │     v28                                                                      │

00:02:09 #12371 [Verbose] > │ let v0 : (unit -> string) = closure0()                                       │

00:02:09 #12372 [Verbose] > │ let create_temp_directory_name () = v0 ()                                    │

00:02:09 #12373 [Verbose] > │ ()                                                                           │

00:02:09 #12374 [Verbose] > │                                                                              │

00:02:09 #12375 [Verbose] > │                                                                              │

00:02:09 #12376 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:09 #12377 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0476-7636-72edcc492ecb\main.spi

00:02:09 #12378 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0475-7586-7fe4e98aff67\main.spi

00:02:09 #12379 [Verbose] >

00:02:09 #12380 [Verbose] > ╭─[ 376.34ms - stdout ]────────────────────────────────────────────────────────╮

00:02:09 #12381 [Verbose] > │ ()                                                                           │

00:02:09 #12382 [Verbose] > │                                                                              │

00:02:09 #12383 [Verbose] > │                                                                              │

00:02:09 #12384 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:09 #12385 [Verbose] >

00:02:09 #12386 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:09 #12387 [Verbose] > // // test

00:02:09 #12388 [Verbose] >

00:02:09 #12389 [Verbose] > a ;[[ 1; 2; 3 ]]

00:02:09 #12390 [Verbose] > |> from_array

00:02:09 #12391 [Verbose] > |> try_item 1i32

00:02:09 #12392 [Verbose] > |> _assert_eq (Some 2i32)

00:02:09 #12393 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0511-1128-1f9ee11bc6c9\main.spi

00:02:10 #12394 [Verbose] >

00:02:10 #12395 [Verbose] > ╭─[ 865.39ms - stdout ]────────────────────────────────────────────────────────╮

00:02:10 #12396 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:10 #12397 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:10 #12398 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:10 #12399 [Verbose] > │     let v2 : bool = v1 < 3                                                   │

00:02:10 #12400 [Verbose] > │     v2                                                                       │

00:02:10 #12401 [Verbose] > │ and method2 (v0 : (char [])) : (char []) =                                   │

00:02:10 #12402 [Verbose] > │     v0                                                                       │

00:02:10 #12403 [Verbose] > │ and method3 (v0 : (char []), v1 : (char []), v2 : int32) : bool =            │

00:02:10 #12404 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:02:10 #12405 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:02:10 #12406 [Verbose] > │     if v4 then                                                               │

00:02:10 #12407 [Verbose] > │         let v5 : char = v0.[int v2]                                          │

00:02:10 #12408 [Verbose] > │         let v6 : char = v1.[int v2]                                          │

00:02:10 #12409 [Verbose] > │         let v7 : bool = v5 = v6                                              │

00:02:10 #12410 [Verbose] > │         if v7 then                                                           │

00:02:10 #12411 [Verbose] > │             let v8 : int32 = v2 + 1                                          │

00:02:10 #12412 [Verbose] > │             method3(v0, v1, v8)                                              │

00:02:10 #12413 [Verbose] > │         else                                                                 │

00:02:10 #12414 [Verbose] > │             false                                                            │

00:02:10 #12415 [Verbose] > │     else                                                                     │

00:02:10 #12416 [Verbose] > │         true                                                                 │

00:02:10 #12417 [Verbose] > │ and method4 (v0 : bool) : bool =                                             │

00:02:10 #12418 [Verbose] > │     v0                                                                       │

00:02:10 #12419 [Verbose] > │ and method0 () : unit =                                                      │

00:02:10 #12420 [Verbose] > │     let v0 : (char []) = Array.zeroCreate<char> (3)                          │

00:02:10 #12421 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:10 #12422 [Verbose] > │     while method1(v1) do                                                     │

00:02:10 #12423 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:10 #12424 [Verbose] > │         let v4 : char = "abc".[int v3]                                       │

00:02:10 #12425 [Verbose] > │         v0.[int v3] <- v4                                                    │

00:02:10 #12426 [Verbose] > │         let v5 : int32 = v3 + 1                                              │

00:02:10 #12427 [Verbose] > │         v1.l0 <- v5                                                          │

00:02:10 #12428 [Verbose] > │         ()                                                                   │

00:02:10 #12429 [Verbose] > │     let v6 : (char []) = [|'a'; 'b'; 'c'|]                                   │

00:02:10 #12430 [Verbose] > │     let v7 : (char []) = method2(v6)                                         │

00:02:10 #12431 [Verbose] > │     let v8 : string = $"%A{v0}"                                              │

00:02:10 #12432 [Verbose] > │     System.Console.WriteLine v8                                              │

00:02:10 #12433 [Verbose] > │     let v9 : int32 = v0.Length                                               │

00:02:10 #12434 [Verbose] > │     let v10 : int32 = v7.Length                                              │

00:02:10 #12435 [Verbose] > │     let v11 : bool = v9 = v10                                                │

00:02:10 #12436 [Verbose] > │     let v12 : bool = v11 <> true                                             │

00:02:10 #12437 [Verbose] > │     let v15 : bool =                                                         │

00:02:10 #12438 [Verbose] > │         if v12 then                                                          │

00:02:10 #12439 [Verbose] > │             false                                                            │

00:02:10 #12440 [Verbose] > │         else                                                                 │

00:02:10 #12441 [Verbose] > │             let v13 : int32 = 0                                              │

00:02:10 #12442 [Verbose] > │             method3(v0, v7, v13)                                             │

00:02:10 #12443 [Verbose] > │     let v17 : bool =                                                         │

00:02:10 #12444 [Verbose] > │         if v15 then                                                          │

00:02:10 #12445 [Verbose] > │             true                                                             │

00:02:10 #12446 [Verbose] > │         else                                                                 │

00:02:10 #12447 [Verbose] > │             method4(v15)                                                     │

00:02:10 #12448 [Verbose] > │     let v18 : string = $"__expect / actual: %A{v0} / expected: %A{v7}"       │

00:02:10 #12449 [Verbose] > │     let v19 : bool = v17 = false                                             │

00:02:10 #12450 [Verbose] > │     if v19 then                                                              │

00:02:10 #12451 [Verbose] > │         failwith<unit> v18                                                   │

00:02:10 #12452 [Verbose] > │ method0()                                                                    │

00:02:10 #12453 [Verbose] > │                                                                              │

00:02:10 #12454 [Verbose] > │ [|'a'; 'b'; 'c'|]                                                            │

00:02:10 #12455 [Verbose] > │                                                                              │

00:02:10 #12456 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:10 #12457 [Verbose] >

00:02:10 #12458 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:10 #12459 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:10 #12460 [Verbose] > │ ## to_char_list                                                              │

00:02:10 #12461 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:10 #12462 [Verbose] >

00:02:10 #12463 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:10 #12464 [Verbose] > inl to_char_list (str : string) : list char =

00:02:10 #12465 [Verbose] >     listm.init (str |> sm.length) (fun (i : i64) => sm.index str i)

00:02:10 #12466 [Verbose] >

00:02:10 #12467 [Verbose] > ╭─[ 573.46ms - stdout ]────────────────────────────────────────────────────────╮

00:02:10 #12468 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:10 #12469 [Verbose] > │     | US0_0                                                                  │

00:02:10 #12470 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:10 #12471 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) =                             │

00:02:10 #12472 [Verbose] > │     v0                                                                       │

00:02:10 #12473 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:02:10 #12474 [Verbose] > │     v0                                                                       │

00:02:10 #12475 [Verbose] > │ and method0 () : unit =                                                      │

00:02:10 #12476 [Verbose] > │     let v0 : (int32 []) = [|1; 2; 3|]                                        │

00:02:10 #12477 [Verbose] > │     let v1 : (int32 []) = method1(v0)                                        │

00:02:10 #12478 [Verbose] > │     let v2 : int32 = v1.Length                                               │

00:02:10 #12479 [Verbose] > │     let v3 : bool = 1 >= v2                                                  │

00:02:10 #12480 [Verbose] > │     let v7 : US0 =                                                           │

00:02:10 #12481 [Verbose] > │         if v3 then                                                           │

00:02:10 #12482 [Verbose] > │             US0_0                                                            │

00:02:10 #12483 [Verbose] > │         else                                                                 │

00:02:10 #12484 [Verbose] > │             let v5 : int32 = v1.[int 1]                                      │

00:02:10 #12485 [Verbose] > │             US0_1(v5)                                                        │

00:02:10 #12486 [Verbose] > │     let v8 : string = $"%A{v7}"                                              │

00:02:10 #12487 [Verbose] > │     System.Console.WriteLine v8                                              │

00:02:10 #12488 [Verbose] > │     let v12 : bool =                                                         │

00:02:10 #12489 [Verbose] > │         match v7 with                                                        │

00:02:10 #12490 [Verbose] > │         | US0_1(v10) -> (* Some *)                                           │

00:02:10 #12491 [Verbose] > │             let v11 : bool = v10 = 2                                         │

00:02:10 #12492 [Verbose] > │             v11                                                              │

00:02:10 #12493 [Verbose] > │         | _ ->                                                               │

00:02:10 #12494 [Verbose] > │             false                                                            │

00:02:10 #12495 [Verbose] > │     let v14 : bool =                                                         │

00:02:10 #12496 [Verbose] > │         if v12 then                                                          │

00:02:10 #12497 [Verbose] > │             true                                                             │

00:02:10 #12498 [Verbose] > │         else                                                                 │

00:02:10 #12499 [Verbose] > │             method2(v12)                                                     │

00:02:10 #12500 [Verbose] > │     let v15 : US0 = US0_1(2)                                                 │

00:02:10 #12501 [Verbose] > │     let v16 : string = $"__expect / actual: %A{v7} / expected: %A{v15}"      │

00:02:10 #12502 [Verbose] > │     let v17 : bool = v14 = false                                             │

00:02:10 #12503 [Verbose] > │     if v17 then                                                              │

00:02:10 #12504 [Verbose] > │         failwith<unit> v16                                                   │

00:02:10 #12505 [Verbose] > │ method0()                                                                    │

00:02:10 #12506 [Verbose] > │                                                                              │

00:02:10 #12507 [Verbose] > │ US0_1 2                                                                      │

00:02:10 #12508 [Verbose] > │                                                                              │

00:02:10 #12509 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:10 #12510 [Verbose] >

00:02:10 #12511 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:10 #12512 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:10 #12513 [Verbose] > │ ## to_array                                                                  │

00:02:10 #12514 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:10 #12515 [Verbose] >

00:02:10 #12516 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:10 #12517 [Verbose] > inl to_array seq =

00:02:10 #12518 [Verbose] >     inl ar = a ;[[]] |> mut

00:02:10 #12519 [Verbose] >     ((), seq)

00:02:10 #12520 [Verbose] >     ||> fold fun _ x =>

00:02:10 #12521 [Verbose] >         ar <- *ar /@ a ;[[x]]

00:02:10 #12522 [Verbose] >     *ar

00:02:10 #12523 [Verbose] >

00:02:10 #12524 [Verbose] > inl to_array_ seq =

00:02:10 #12525 [Verbose] >     inl ar = a ;[[]] |> mut

00:02:10 #12526 [Verbose] >     ((), seq)

00:02:10 #12527 [Verbose] >     ||> fold_ fun _ x =>

00:02:10 #12528 [Verbose] >         ar <- *ar /@ a ;[[x]]

00:02:10 #12529 [Verbose] >     *ar

00:02:10 #12530 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0567-6719-6e124b240cac\main.spi

00:02:10 #12531 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0572-7268-7eed55623332\main.spi

00:02:10 #12532 [Verbose] >

00:02:10 #12533 [Verbose] > ╭─[ 342.70ms - stdout ]────────────────────────────────────────────────────────╮

00:02:10 #12534 [Verbose] > │ ()                                                                           │

00:02:10 #12535 [Verbose] > │                                                                              │

00:02:10 #12536 [Verbose] > │                                                                              │

00:02:10 #12537 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:10 #12538 [Verbose] >

00:02:10 #12539 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:10 #12540 [Verbose] > // // test

00:02:10 #12541 [Verbose] >

00:02:10 #12542 [Verbose] > "abc"

00:02:10 #12543 [Verbose] > |> to_char_list

00:02:10 #12544 [Verbose] > |> _assert_eq [['a'; 'b'; 'c']]

00:02:10 #12545 [Verbose] >

00:02:10 #12546 [Verbose] > ╭─[ 368.37ms - stdout ]────────────────────────────────────────────────────────╮

00:02:10 #12547 [Verbose] > │ ()                                                                           │

00:02:10 #12548 [Verbose] > │                                                                              │

00:02:10 #12549 [Verbose] > │                                                                              │

00:02:10 #12550 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:10 #12551 [Verbose] >

00:02:10 #12552 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:10 #12553 [Verbose] > // // test

00:02:10 #12554 [Verbose] >

00:02:10 #12555 [Verbose] > listm.init 10i32 id

00:02:10 #12556 [Verbose] > |> from_list

00:02:10 #12557 [Verbose] > |> fun (x : i32 -> _) => x

00:02:10 #12558 [Verbose] > |> to_array

00:02:10 #12559 [Verbose] > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)

00:02:10 #12560 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0608-0829-06ce82e24fad\main.spi

00:02:10 #12561 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0612-1210-1b9855dbabfe\main.spi

00:02:11 #12562 [Verbose] > [NbConvertApp] Converting notebook stream.dib.ipynb to html

00:02:11 #12563 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:11 #12564 [Verbose] >   validate(nb)

00:02:11 #12565 [Verbose] >

00:02:11 #12566 [Verbose] > ╭─[ 653.28ms - stdout ]────────────────────────────────────────────────────────╮

00:02:11 #12567 [Verbose] > │ type UH0 =                                                                   │

00:02:11 #12568 [Verbose] > │     | UH0_0 of char * UH0                                                    │

00:02:11 #12569 [Verbose] > │     | UH0_1                                                                  │

00:02:11 #12570 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:11 #12571 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:02:11 #12572 [Verbose] > │     let v1 : UH0 = UH0_0('c', v0)                                            │

00:02:11 #12573 [Verbose] > │     let v2 : UH0 = UH0_0('b', v1)                                            │

00:02:11 #12574 [Verbose] > │     let v3 : UH0 = UH0_0('a', v2)                                            │

00:02:11 #12575 [Verbose] > │     let v4 : string = $"%A{v3}"                                              │

00:02:11 #12576 [Verbose] > │     System.Console.WriteLine v4                                              │

00:02:11 #12577 [Verbose] > │     let v23 : UH0 = UH0_1                                                    │

00:02:11 #12578 [Verbose] > │     let v24 : UH0 = UH0_0('c', v23)                                          │

00:02:11 #12579 [Verbose] > │     let v25 : UH0 = UH0_0('b', v24)                                          │

00:02:11 #12580 [Verbose] > │     let v26 : UH0 = UH0_0('a', v25)                                          │

00:02:11 #12581 [Verbose] > │     let v27 : UH0 = UH0_1                                                    │

00:02:11 #12582 [Verbose] > │     let v28 : UH0 = UH0_0('c', v27)                                          │

00:02:11 #12583 [Verbose] > │     let v29 : UH0 = UH0_0('b', v28)                                          │

00:02:11 #12584 [Verbose] > │     let v30 : UH0 = UH0_0('a', v29)                                          │

00:02:11 #12585 [Verbose] > │     let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}"     │

00:02:11 #12586 [Verbose] > │     ()                                                                       │

00:02:11 #12587 [Verbose] > │ method0()                                                                    │

00:02:11 #12588 [Verbose] > │                                                                              │

00:02:11 #12589 [Verbose] > │ UH0_0 ('a', UH0_0 ('b', UH0_0 ('c', UH0_1)))                                 │

00:02:11 #12590 [Verbose] > │                                                                              │

00:02:11 #12591 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:11 #12592 [Verbose] >

00:02:11 #12593 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:11 #12594 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:11 #12595 [Verbose] > │ ## to_string std_string                                                      │

00:02:11 #12596 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:11 #12597 [Verbose] >

00:02:11 #12598 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:11 #12599 [Verbose] > open rust

00:02:11 #12600 [Verbose] > instance to_string std_string = from_std_string

00:02:11 #12601 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0686-8647-823b4b117d61\main.spi

00:02:11 #12602 [Verbose] >

00:02:11 #12603 [Verbose] > ╭─[ 374.90ms - stdout ]────────────────────────────────────────────────────────╮

00:02:11 #12604 [Verbose] > │ ()                                                                           │

00:02:11 #12605 [Verbose] > │                                                                              │

00:02:11 #12606 [Verbose] > │                                                                              │

00:02:11 #12607 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:11 #12608 [Verbose] >

00:02:11 #12609 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:11 #12610 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:11 #12611 [Verbose] > │ ## main                                                                      │

00:02:11 #12612 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:11 #12613 [Verbose] >

00:02:11 #12614 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:11 #12615 [Verbose] > inl main () =

00:02:11 #12616 [Verbose] >     $"let contains x = !contains x" : ()

00:02:11 #12617 [Verbose] >     $"let ends_with x = !ends_with x" : ()

00:02:11 #12618 [Verbose] >     $"let pad_left x = !pad_left x" : ()

00:02:11 #12619 [Verbose] >     $"let pad_right x = !pad_right x" : ()

00:02:11 #12620 [Verbose] >     $"let replace x = !replace x" : ()

00:02:11 #12621 [Verbose] >     $"let split x = !split x" : ()

00:02:11 #12622 [Verbose] >     $"let split_string x = !split_string x" : ()

00:02:11 #12623 [Verbose] >     $"let starts_with x = !starts_with x" : ()

00:02:11 #12624 [Verbose] >     $"let substring x = !substring x" : ()

00:02:11 #12625 [Verbose] >     $"let to_lower x = !to_lower x" : ()

00:02:11 #12626 [Verbose] >     $"let to_upper x = !to_upper x" : ()

00:02:11 #12627 [Verbose] >     $"let trim x = !trim x" : ()

00:02:11 #12628 [Verbose] >     $"let trim_end x = !trim_end x" : ()

00:02:11 #12629 [Verbose] >     $"let trim_start x = !trim_start x" : ()

00:02:11 #12630 [Verbose] >     $"let ellipsis x = !ellipsis x" : ()

00:02:11 #12631 [Verbose] >     $"let format_exception x = !format_exception x" : ()

00:02:11 #12632 [Verbose] >     $"let concat_array_trailing x = !concat_array_trailing x" : ()

00:02:11 #12633 [Verbose] >     inl concat a (b : seq.seq' string) = concat a b

00:02:11 #12634 [Verbose] >     $"let concat x = !concat x" : ()

00:02:11 #12635 [Verbose] >     $"let join' x = !join' x" : ()

00:02:11 #12636 [Verbose] >     $"let to_char_array x = !to_char_array x" : ()

00:02:11 #12637 [Verbose] >

00:02:11 #12638 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0725-2501-2853e19131fe\main.spi

00:02:11 #12639 [Verbose] > ╭─[ 1.28s - stdout ]───────────────────────────────────────────────────────────╮

00:02:11 #12640 [Verbose] > │ type Mut0 = {mutable l0 : (int32 [])}                                        │

00:02:11 #12641 [Verbose] > │ and Mut1 = {mutable l0 : int32}                                              │

00:02:11 #12642 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) =                             │

00:02:11 #12643 [Verbose] > │     v0                                                                       │

00:02:11 #12644 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:02:11 #12645 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:11 #12646 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:11 #12647 [Verbose] > │     v3                                                                       │

00:02:11 #12648 [Verbose] > │ and method3 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool =          │

00:02:11 #12649 [Verbose] > │     let v3 : int32 = v0.Length                                               │

00:02:11 #12650 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:02:11 #12651 [Verbose] > │     if v4 then                                                               │

00:02:11 #12652 [Verbose] > │         let v5 : int32 = v0.[int v2]                                         │

00:02:11 #12653 [Verbose] > │         let v6 : int32 = v1.[int v2]                                         │

00:02:11 #12654 [Verbose] > │         let v7 : bool = v5 = v6                                              │

00:02:11 #12655 [Verbose] > │         if v7 then                                                           │

00:02:11 #12656 [Verbose] > │             let v8 : int32 = v2 + 1                                          │

00:02:11 #12657 [Verbose] > │             method3(v0, v1, v8)                                              │

00:02:11 #12658 [Verbose] > │         else                                                                 │

00:02:11 #12659 [Verbose] > │             false                                                            │

00:02:11 #12660 [Verbose] > │     else                                                                     │

00:02:11 #12661 [Verbose] > │         true                                                                 │

00:02:11 #12662 [Verbose] > │ and method4 (v0 : bool) : bool =                                             │

00:02:11 #12663 [Verbose] > │     v0                                                                       │

00:02:11 #12664 [Verbose] > │ and method0 () : unit =                                                      │

00:02:11 #12665 [Verbose] > │     let v0 : (int32 []) = [||]                                               │

00:02:11 #12666 [Verbose] > │     let v1 : (int32 []) = method1(v0)                                        │

00:02:11 #12667 [Verbose] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:02:11 #12668 [Verbose] > │     let v3 : (int32 []) = v2.l0                                              │

00:02:11 #12669 [Verbose] > │     let v4 : (int32 []) = [|0|]                                              │

00:02:11 #12670 [Verbose] > │     let v5 : (int32 []) = method1(v4)                                        │

00:02:11 #12671 [Verbose] > │     let v6 : int32 = v3.Length                                               │

00:02:11 #12672 [Verbose] > │     let v7 : int32 = v5.Length                                               │

00:02:11 #12673 [Verbose] > │     let v8 : int32 = v6 + v7                                                 │

00:02:11 #12674 [Verbose] > │     let v9 : (int32 []) = Array.zeroCreate<int32> (v8)                       │

00:02:11 #12675 [Verbose] > │     let v10 : Mut1 = {l0 = 0} : Mut1                                         │

00:02:11 #12676 [Verbose] > │     while method2(v8, v10) do                                                │

00:02:11 #12677 [Verbose] > │         let v12 : int32 = v10.l0                                             │

00:02:11 #12678 [Verbose] > │         let v13 : bool = v12 < v6                                            │

00:02:11 #12679 [Verbose] > │         let v17 : int32 =                                                    │

00:02:11 #12680 [Verbose] > │             if v13 then                                                      │

00:02:11 #12681 [Verbose] > │                 let v14 : int32 = v3.[int v12]                               │

00:02:11 #12682 [Verbose] > │                 v14                                                          │

00:02:11 #12683 [Verbose] > │             else                                                             │

00:02:11 #12684 [Verbose] > │                 let v15 : int32 = v12 - v6                                   │

00:02:11 #12685 [Verbose] > │                 let v16 : int32 = v5.[int v15]                               │

00:02:11 #12686 [Verbose] > │                 v16                                                          │

00:02:11 #12687 [Verbose] > │         v9.[int v12] <- v17                                                  │

00:02:11 #12688 [Verbose] > │         let v18 : int32 = v12 + 1                                            │

00:02:11 #12689 [Verbose] > │         v10.l0 <- v18                                                        │

00:02:11 #12690 [Verbose] > │         ()                                                                   │

00:02:11 #12691 [Verbose] > │     v2.l0 <- v9                                                              │

00:02:11 #12692 [Verbose] > │     let v19 : (int32 []) = v2.l0                                             │

00:02:11 #12693 [Verbose] > │     let v20 : (int32 []) = [|1|]                                             │

00:02:11 #12694 [Verbose] > │     let v21 : (int32 []) = method1(v20)                                      │

00:02:11 #12695 [Verbose] > │     let v22 : int32 = v19.Length                                             │

00:02:11 #12696 [Verbose] > │     let v23 : int32 = v21.Length                                             │

00:02:11 #12697 [Verbose] > │     let v24 : int32 = v22 + v23                                              │

00:02:11 #12698 [Verbose] > │     let v25 : (int32 []) = Array.zeroCreate<int32> (v24)                     │

00:02:11 #12699 [Verbose] > │     let v26 : Mut1 = {l0 = 0} : Mut1                                         │

00:02:11 #12700 [Verbose] > │     while method2(v24, v26) do                                               │

00:02:11 #12701 [Verbose] > │         let v28 : int32 = v26.l0                                             │

00:02:11 #12702 [Verbose] > │         let v29 : bool = v28 < v22                                           │

00:02:11 #12703 [Verbose] > │         let v33 : int32 =                                                    │

00:02:11 #12704 [Verbose] > │             if v29 then                                                      │

00:02:11 #12705 [Verbose] > │                 let v30 : int32 = v19.[int v28]                              │

00:02:11 #12706 [Verbose] > │                 v30                                                          │

00:02:11 #12707 [Verbose] > │             else                                                             │

00:02:11 #12708 [Verbose] > │                 let v31 : int32 = v28 - v22                                  │

00:02:11 #12709 [Verbose] > │                 let v32 : int32 = v21.[int v31]                              │

00:02:11 #12710 [Verbose] > │                 v32                                                          │

00:02:11 #12711 [Verbose] > │         v25.[int v28] <- v33                                                 │

00:02:11 #12712 [Verbose] > │         let v34 : int32 = v28 + 1                                            │

00:02:11 #12713 [Verbose] > │         v26.l0 <- v34                                                        │

00:02:11 #12714 [Verbose] > │         ()                                                                   │

00:02:11 #12715 [Verbose] > │     v2.l0 <- v25                                                             │

00:02:11 #12716 [Verbose] > │     let v35 : (int32 []) = v2.l0                                             │

00:02:11 #12717 [Verbose] > │     let v36 : (int32 []) = [|2|]                                             │

00:02:11 #12718 [Verbose] > │     let v37 : (int32 []) = method1(v36)                                      │

00:02:11 #12719 [Verbose] > │     let v38 : int32 = v35.Length                                             │

00:02:11 #12720 [Verbose] > │     let v39 : int32 = v37.Length                                             │

00:02:11 #12721 [Verbose] > │     let v40 : int32 = v38 + v39                                              │

00:02:11 #12722 [Verbose] > │     let v41 : (int32 []) = Array.zeroCreate<int32> (v40)                     │

00:02:11 #12723 [Verbose] > │     let v42 : Mut1 = {l0 = 0} : Mut1                                         │

00:02:11 #12724 [Verbose] > │     while method2(v40, v42) do                                               │

00:02:11 #12725 [Verbose] > │         let v44 : int32 = v42.l0                                             │

00:02:11 #12726 [Verbose] > │         let v45 : bool = v44 < v38                                           │

00:02:11 #12727 [Verbose] > │         let v49 : int32 =                                                    │

00:02:11 #12728 [Verbose] > │             if v45 then                                                      │

00:02:11 #12729 [Verbose] > │                 let v46 : int32 = v35.[int v44]                              │

00:02:11 #12730 [Verbose] > │                 v46                                                          │

00:02:11 #12731 [Verbose] > │             else                                                             │

00:02:11 #12732 [Verbose] > │                 let v47 : int32 = v44 - v38                                  │

00:02:11 #12733 [Verbose] > │                 let v48 : int32 = v37.[int v47]                              │

00:02:11 #12734 [Verbose] > │                 v48                                                          │

00:02:11 #12735 [Verbose] > │         v41.[int v44] <- v49                                                 │

00:02:11 #12736 [Verbose] > │         let v50 : int32 = v44 + 1                                            │

00:02:11 #12737 [Verbose] > │         v42.l0 <- v50                                                        │

00:02:11 #12738 [Verbose] > │         ()                                                                   │

00:02:11 #12739 [Verbose] > │     v2.l0 <- v41                                                             │

00:02:11 #12740 [Verbose] > │     let v51 : (int32 []) = v2.l0                                             │

00:02:11 #12741 [Verbose] > │     let v52 : (int32 []) = [|3|]                                             │

00:02:11 #12742 [Verbose] > │     let v53 : (int32 []) = method1(v52)                                      │

00:02:11 #12743 [Verbose] > │     let v54 : int32 = v51.Length                                             │

00:02:11 #12744 [Verbose] > │     let v55 : int32 = v53.Length                                             │

00:02:11 #12745 [Verbose] > │     let v56 : int32 = v54 + v55                                              │

00:02:11 #12746 [Verbose] > │     let v57 : (int32 []) = Array.zeroCreate<int32> (v56)                     │

00:02:11 #12747 [Verbose] > │     let v58 : Mut1 = {l0 = 0} : Mut1                                         │

00:02:11 #12748 [Verbose] > │     while method2(v56, v58) do                                               │

00:02:11 #12749 [Verbose] > │         let v60 : int32 = v58.l0                                             │

00:02:11 #12750 [Verbose] > │         let v61 : bool = v60 < v54                                           │

00:02:11 #12751 [Verbose] > │         let v65 : int32 =                                                    │

00:02:11 #12752 [Verbose] > │             if v61 then                                                      │

00:02:11 #12753 [Verbose] > │                 let v62 : int32 = v51.[int v60]                              │

00:02:11 #12754 [Verbose] > │                 v62                                                          │

00:02:11 #12755 [Verbose] > │             else                                                             │

00:02:11 #12756 [Verbose] > │                 let v63 : int32 = v60 - v54                                  │

00:02:11 #12757 [Verbose] > │                 let v64 : int32 = v53.[int v63]                              │

00:02:11 #12758 [Verbose] > │                 v64                                                          │

00:02:11 #12759 [Verbose] > │         v57.[int v60] <- v65                                                 │

00:02:11 #12760 [Verbose] > │         let v66 : int32 = v60 + 1                                            │

00:02:11 #12761 [Verbose] > │         v58.l0 <- v66                                                        │

00:02:11 #12762 [Verbose] > │         ()                                                                   │

00:02:12 #12763 [Verbose] > │     v2.l0 <- v57                                                             │

00:02:12 #12764 [Verbose] > │     let v67 : (int32 []) = v2.l0                                             │

00:02:12 #12765 [Verbose] > │     let v68 : (int32 []) = [|4|]                                             │

00:02:12 #12766 [Verbose] > │     let v69 : (int32 []) = method1(v68)                                      │

00:02:12 #12767 [Verbose] > │     let v70 : int32 = v67.Length                                             │

00:02:12 #12768 [Verbose] > │     let v71 : int32 = v69.Length                                             │

00:02:12 #12769 [Verbose] > │     let v72 : int32 = v70 + v71                                              │

00:02:12 #12770 [Verbose] > │     let v73 : (int32 []) = Array.zeroCreate<int32> (v72)                     │

00:02:12 #12771 [Verbose] > │     let v74 : Mut1 = {l0 = 0} : Mut1                                         │

00:02:12 #12772 [Verbose] > │     while method2(v72, v74) do                                               │

00:02:12 #12773 [Verbose] > │         let v76 : int32 = v74.l0                                             │

00:02:12 #12774 [Verbose] > │         let v77 : bool = v76 < v70                                           │

00:02:12 #12775 [Verbose] > │         let v81 : int32 =                                                    │

00:02:12 #12776 [Verbose] > │             if v77 then                                                      │

00:02:12 #12777 [Verbose] > │                 let v78 : int32 = v67.[int v76]                              │

00:02:12 #12778 [Verbose] > │                 v78                                                          │

00:02:12 #12779 [Verbose] > │             else                                                             │

00:02:12 #12780 [Verbose] > │                 let v79 : int32 = v76 - v70                                  │

00:02:12 #12781 [Verbose] > │                 let v80 : int32 = v69.[int v79]                              │

00:02:12 #12782 [Verbose] > │                 v80                                                          │

00:02:12 #12783 [Verbose] > │         v73.[int v76] <- v81                                                 │

00:02:12 #12784 [Verbose] > │         let v82 : int32 = v76 + 1                                            │

00:02:12 #12785 [Verbose] > │         v74.l0 <- v82                                                        │

00:02:12 #12786 [Verbose] > │         ()                                                                   │

00:02:12 #12787 [Verbose] > │     v2.l0 <- v73                                                             │

00:02:12 #12788 [Verbose] > │     let v83 : (int32 []) = v2.l0                                             │

00:02:12 #12789 [Verbose] > │     let v84 : (int32 []) = [|5|]                                             │

00:02:12 #12790 [Verbose] > │     let v85 : (int32 []) = method1(v84)                                      │

00:02:12 #12791 [Verbose] > │     let v86 : int32 = v83.Length                                             │

00:02:12 #12792 [Verbose] > │     let v87 : int32 = v85.Length                                             │

00:02:12 #12793 [Verbose] > │     let v88 : int32 = v86 + v87                                              │

00:02:12 #12794 [Verbose] > │     let v89 : (int32 []) = Array.zeroCreate<int32> (v88)                     │

00:02:12 #12795 [Verbose] > │     let v90 : Mut1 = {l0 = 0} : Mut1                                         │

00:02:12 #12796 [Verbose] > │     while method2(v88, v90) do                                               │

00:02:12 #12797 [Verbose] > │         let v92 : int32 = v90.l0                                             │

00:02:12 #12798 [Verbose] > │         let v93 : bool = v92 < v86                                           │

00:02:12 #12799 [Verbose] > │         let v97 : int32 =                                                    │

00:02:12 #12800 [Verbose] > │             if v93 then                                                      │

00:02:12 #12801 [Verbose] > │                 let v94 : int32 = v83.[int v92]                              │

00:02:12 #12802 [Verbose] > │                 v94                                                          │

00:02:12 #12803 [Verbose] > │             else                                                             │

00:02:12 #12804 [Verbose] > │                 let v95 : int32 = v92 - v86                                  │

00:02:12 #12805 [Verbose] > │                 let v96 : int32 = v85.[int v95]                              │

00:02:12 #12806 [Verbose] > │                 v96                                                          │

00:02:12 #12807 [Verbose] > │         v89.[int v92] <- v97                                                 │

00:02:12 #12808 [Verbose] > │         let v98 : int32 = v92 + 1                                            │

00:02:12 #12809 [Verbose] > │         v90.l0 <- v98                                                        │

00:02:12 #12810 [Verbose] > │         ()                                                                   │

00:02:12 #12811 [Verbose] > │     v2.l0 <- v89                                                             │

00:02:12 #12812 [Verbose] > │     let v99 : (int32 []) = v2.l0                                             │

00:02:12 #12813 [Verbose] > │     let v100 : (int32 []) = [|6|]                                            │

00:02:12 #12814 [Verbose] > │     let v101 : (int32 []) = method1(v100)                                    │

00:02:12 #12815 [Verbose] > │     let v102 : int32 = v99.Length                                            │

00:02:12 #12816 [Verbose] > │     let v103 : int32 = v101.Length                                           │

00:02:12 #12817 [Verbose] > │     let v104 : int32 = v102 + v103                                           │

00:02:12 #12818 [Verbose] > │     let v105 : (int32 []) = Array.zeroCreate<int32> (v104)                   │

00:02:12 #12819 [Verbose] > │     let v106 : Mut1 = {l0 = 0} : Mut1                                        │

00:02:12 #12820 [Verbose] > │     while method2(v104, v106) do                                             │

00:02:12 #12821 [Verbose] > │         let v108 : int32 = v106.l0                                           │

00:02:12 #12822 [Verbose] > │         let v109 : bool = v108 < v102                                        │

00:02:12 #12823 [Verbose] > │         let v113 : int32 =                                                   │

00:02:12 #12824 [Verbose] > │             if v109 then                                                     │

00:02:12 #12825 [Verbose] > │                 let v110 : int32 = v99.[int v108]                            │

00:02:12 #12826 [Verbose] > │                 v110                                                         │

00:02:12 #12827 [Verbose] > │             else                                                             │

00:02:12 #12828 [Verbose] > │                 let v111 : int32 = v108 - v102                               │

00:02:12 #12829 [Verbose] > │                 let v112 : int32 = v101.[int v111]                           │

00:02:12 #12830 [Verbose] > │                 v112                                                         │

00:02:12 #12831 [Verbose] > │         v105.[int v108] <- v113                                              │

00:02:12 #12832 [Verbose] > │         let v114 : int32 = v108 + 1                                          │

00:02:12 #12833 [Verbose] > │         v106.l0 <- v114                                                      │

00:02:12 #12834 [Verbose] > │         ()                                                                   │

00:02:12 #12835 [Verbose] > │     v2.l0 <- v105                                                            │

00:02:12 #12836 [Verbose] > │     let v115 : (int32 []) = v2.l0                                            │

00:02:12 #12837 [Verbose] > │     let v116 : (int32 []) = [|7|]                                            │

00:02:12 #12838 [Verbose] > │     let v117 : (int32 []) = method1(v116)                                    │

00:02:12 #12839 [Verbose] > │     let v118 : int32 = v115.Length                                           │

00:02:12 #12840 [Verbose] > │     let v119 : int32 = v117.Length                                           │

00:02:12 #12841 [Verbose] > │     let v120 : int32 = v118 + v119                                           │

00:02:12 #12842 [Verbose] > │     let v121 : (int32 []) = Array.zeroCreate<int32> (v120)                   │

00:02:12 #12843 [Verbose] > │     let v122 : Mut1 = {l0 = 0} : Mut1                                        │

00:02:12 #12844 [Verbose] > │     while method2(v120, v122) do                                             │

00:02:12 #12845 [Verbose] > │         let v124 : int32 = v122.l0                                           │

00:02:12 #12846 [Verbose] > │         let v125 : bool = v124 < v118                                        │

00:02:12 #12847 [Verbose] > │         let v129 : int32 =                                                   │

00:02:12 #12848 [Verbose] > │             if v125 then                                                     │

00:02:12 #12849 [Verbose] > │                 let v126 : int32 = v115.[int v124]                           │

00:02:12 #12850 [Verbose] > │                 v126                                                         │

00:02:12 #12851 [Verbose] > │             else                                                             │

00:02:12 #12852 [Verbose] > │                 let v127 : int32 = v124 - v118                               │

00:02:12 #12853 [Verbose] > │                 let v128 : int32 = v117.[int v127]                           │

00:02:12 #12854 [Verbose] > │                 v128                                                         │

00:02:12 #12855 [Verbose] > │         v121.[int v124] <- v129                                              │

00:02:12 #12856 [Verbose] > │         let v130 : int32 = v124 + 1                                          │

00:02:12 #12857 [Verbose] > │         v122.l0 <- v130                                                      │

00:02:12 #12858 [Verbose] > │         ()                                                                   │

00:02:12 #12859 [Verbose] > │     v2.l0 <- v121                                                            │

00:02:12 #12860 [Verbose] > │     let v131 : (int32 []) = v2.l0                                            │

00:02:12 #12861 [Verbose] > │     let v132 : (int32 []) = [|8|]                                            │

00:02:12 #12862 [Verbose] > │     let v133 : (int32 []) = method1(v132)                                    │

00:02:12 #12863 [Verbose] > │     let v134 : int32 = v131.Length                                           │

00:02:12 #12864 [Verbose] > │     let v135 : int32 = v133.Length                                           │

00:02:12 #12865 [Verbose] > │     let v136 : int32 = v134 + v135                                           │

00:02:12 #12866 [Verbose] > │     let v137 : (int32 []) = Array.zeroCreate<int32> (v136)                   │

00:02:12 #12867 [Verbose] > │     let v138 : Mut1 = {l0 = 0} : Mut1                                        │

00:02:12 #12868 [Verbose] > │     while method2(v136, v138) do                                             │

00:02:12 #12869 [Verbose] > │         let v140 : int32 = v138.l0                                           │

00:02:12 #12870 [Verbose] > │         let v141 : bool = v140 < v134                                        │

00:02:12 #12871 [Verbose] > │         let v145 : int32 =                                                   │

00:02:12 #12872 [Verbose] > │             if v141 then                                                     │

00:02:12 #12873 [Verbose] > │                 let v142 : int32 = v131.[int v140]                           │

00:02:12 #12874 [Verbose] > │                 v142                                                         │

00:02:12 #12875 [Verbose] > │             else                                                             │

00:02:12 #12876 [Verbose] > │                 let v143 : int32 = v140 - v134                               │

00:02:12 #12877 [Verbose] > │                 let v144 : int32 = v133.[int v143]                           │

00:02:12 #12878 [Verbose] > │                 v144                                                         │

00:02:12 #12879 [Verbose] > │         v137.[int v140] <- v145                                              │

00:02:12 #12880 [Verbose] > │         let v146 : int32 = v140 + 1                                          │

00:02:12 #12881 [Verbose] > │         v138.l0 <- v146                                                      │

00:02:12 #12882 [Verbose] > │         ()                                                                   │

00:02:12 #12883 [Verbose] > │     v2.l0 <- v137                                                            │

00:02:12 #12884 [Verbose] > │     let v147 : (int32 []) = v2.l0                                            │

00:02:12 #12885 [Verbose] > │     let v148 : (int32 []) = [|9|]                                            │

00:02:12 #12886 [Verbose] > │     let v149 : (int32 []) = method1(v148)                                    │

00:02:12 #12887 [Verbose] > │     let v150 : int32 = v147.Length                                           │

00:02:12 #12888 [Verbose] > │     let v151 : int32 = v149.Length                                           │

00:02:12 #12889 [Verbose] > │     let v152 : int32 = v150 + v151                                           │

00:02:12 #12890 [Verbose] > │     let v153 : (int32 []) = Array.zeroCreate<int32> (v152)                   │

00:02:12 #12891 [Verbose] > │     let v154 : Mut1 = {l0 = 0} : Mut1                                        │

00:02:12 #12892 [Verbose] > │     while method2(v152, v154) do                                             │

00:02:12 #12893 [Verbose] > │         let v156 : int32 = v154.l0                                           │

00:02:12 #12894 [Verbose] > │         let v157 : bool = v156 < v150                                        │

00:02:12 #12895 [Verbose] > │         let v161 : int32 =                                                   │

00:02:12 #12896 [Verbose] > │             if v157 then                                                     │

00:02:12 #12897 [Verbose] > │                 let v158 : int32 = v147.[int v156]                           │

00:02:12 #12898 [Verbose] > │                 v158                                                         │

00:02:12 #12899 [Verbose] > │             else                                                             │

00:02:12 #12900 [Verbose] > │                 let v159 : int32 = v156 - v150                               │

00:02:12 #12901 [Verbose] > │                 let v160 : int32 = v149.[int v159]                           │

00:02:12 #12902 [Verbose] > │                 v160                                                         │

00:02:12 #12903 [Verbose] > │         v153.[int v156] <- v161                                              │

00:02:12 #12904 [Verbose] > │         let v162 : int32 = v156 + 1                                          │

00:02:12 #12905 [Verbose] > │         v154.l0 <- v162                                                      │

00:02:12 #12906 [Verbose] > │         ()                                                                   │

00:02:12 #12907 [Verbose] > │     v2.l0 <- v153                                                            │

00:02:12 #12908 [Verbose] > │     let v163 : (int32 []) = v2.l0                                            │

00:02:12 #12909 [Verbose] > │     let v164 : (int32 []) = [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|]                 │

00:02:12 #12910 [Verbose] > │     let v165 : (int32 []) = method1(v164)                                    │

00:02:12 #12911 [Verbose] > │     let v166 : string = $"%A{v163}"                                          │

00:02:12 #12912 [Verbose] > │     System.Console.WriteLine v166                                            │

00:02:12 #12913 [Verbose] > │     let v167 : int32 = v163.Length                                           │

00:02:12 #12914 [Verbose] > │     let v168 : int32 = v165.Length                                           │

00:02:12 #12915 [Verbose] > │     let v169 : bool = v167 = v168                                            │

00:02:12 #12916 [Verbose] > │     let v170 : bool = v169 <> true                                           │

00:02:12 #12917 [Verbose] > │     let v173 : bool =                                                        │

00:02:12 #12918 [Verbose] > │         if v170 then                                                         │

00:02:12 #12919 [Verbose] > │             false                                                            │

00:02:12 #12920 [Verbose] > │         else                                                                 │

00:02:12 #12921 [Verbose] > │             let v171 : int32 = 0                                             │

00:02:12 #12922 [Verbose] > │             method3(v163, v165, v171)                                        │

00:02:12 #12923 [Verbose] > │     let v175 : bool =                                                        │

00:02:12 #12924 [Verbose] > │         if v173 then                                                         │

00:02:12 #12925 [Verbose] > │             true                                                             │

00:02:12 #12926 [Verbose] > │         else                                                                 │

00:02:12 #12927 [Verbose] > │             method4(v173)                                                    │

00:02:12 #12928 [Verbose] > │     let v176 : string = $"__expect / actual: %A{v163} / expected: %A{v165}"  │

00:02:12 #12929 [Verbose] > │     let v177 : bool = v175 = false                                           │

00:02:12 #12930 [Verbose] > │     if v177 then                                                             │

00:02:12 #12931 [Verbose] > │         failwith<unit> v176                                                  │

00:02:12 #12932 [Verbose] > │ method0()                                                                    │

00:02:12 #12933 [Verbose] > │                                                                              │

00:02:12 #12934 [Verbose] > │ [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|]                                             │

00:02:12 #12935 [Verbose] > │                                                                              │

00:02:12 #12936 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:12 #12937 [Verbose] >

00:02:12 #12938 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:12 #12939 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:12 #12940 [Verbose] > │ ## take_while                                                                │

00:02:12 #12941 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:12 #12942 [Verbose] >

00:02:12 #12943 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:12 #12944 [Verbose] > inl take_while cond seq =

00:02:12 #12945 [Verbose] >     inl rec loop acc i =

00:02:12 #12946 [Verbose] >         match seq i with

00:02:12 #12947 [Verbose] >         | Some st when cond st i => loop (st :: acc) (i + 1)

00:02:12 #12948 [Verbose] >         | _ => acc |> listm.rev

00:02:12 #12949 [Verbose] >     loop [[]] 0

00:02:12 #12950 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0772-7299-7dd1359dd883\main.spi

00:02:12 #12951 [Verbose] >

00:02:12 #12952 [Verbose] > ╭─[ 895.61ms - stdout ]────────────────────────────────────────────────────────╮

00:02:12 #12953 [Verbose] > │ type Mut0 = {mutable l0 : int32; mutable l1 : string}                        │

00:02:12 #12954 [Verbose] > │ and Mut1 = {mutable l0 : int32}                                              │

00:02:12 #12955 [Verbose] >

00:02:12 #12956 [Verbose] > │ let rec closure1 (v0 : string) (v1 : string) : bool =                        │

00:02:12 #12957 [Verbose] > │     let v2 : bool = v1.Contains v0                                           │

00:02:12 #12958 [Verbose] > ╭─[ 429.41ms - stdout ]────────────────────────────────────────────────────────╮

00:02:12 #12959 [Verbose] > │     v2                                                                       │

00:02:12 #12960 [Verbose] > │ ()                                                                           │

00:02:12 #12961 [Verbose] > │ and closure0 () (v0 : string) : (string -> bool) =                           │

00:02:12 #12962 [Verbose] > │                                                                              │

00:02:12 #12963 [Verbose] > │     closure1(v0)                                                             │

00:02:12 #12964 [Verbose] > │                                                                              │

00:02:12 #12965 [Verbose] > │ and closure3 (v0 : string) (v1 : string) : bool =                            │

00:02:12 #12966 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:12 #12967 [Verbose] > │     let v2 : bool = v1.EndsWith v0                                           │

00:02:12 #12968 [Verbose] > │     v2                                                                       │

00:02:12 #12969 [Verbose] >

00:02:12 #12970 [Verbose] > │ and closure2 () (v0 : string) : (string -> bool) =                           │

00:02:12 #12971 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:12 #12972 [Verbose] > │     closure3(v0)                                                             │

00:02:12 #12973 [Verbose] > // // test

00:02:12 #12974 [Verbose] > │ and closure6 (v0 : int32, v1 : char) (v2 : string) : string =                │

00:02:12 #12975 [Verbose] >

00:02:12 #12976 [Verbose] > listm.init 10i32 id

00:02:12 #12977 [Verbose] > |> from_list

00:02:12 #12978 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)

00:02:12 #12979 [Verbose] > |> listm'.sum

00:02:12 #12980 [Verbose] > |> _assert_eq 10

00:02:12 #12981 [Verbose] > │     let v3 : string = v2.PadLeft (v0, v1)                                    │

00:02:12 #12982 [Verbose] > │     v3                                                                       │

00:02:12 #12983 [Verbose] > │ and closure5 (v0 : int32) (v1 : char) : (string -> string) =                 │

00:02:12 #12984 [Verbose] > │     closure6(v0, v1)                                                         │

00:02:12 #12985 [Verbose] > │ and closure4 () (v0 : int32) : (char -> (string -> string)) =                │

00:02:12 #12986 [Verbose] > │     closure5(v0)                                                             │

00:02:12 #12987 [Verbose] > │ and closure8 (v0 : int32) (v1 : string) : string =                           │

00:02:12 #12988 [Verbose] > │     let v2 : string = v1.PadRight v0                                         │

00:02:12 #12989 [Verbose] > │     v2                                                                       │

00:02:12 #12990 [Verbose] > │ and closure7 () (v0 : int32) : (string -> string) =                          │

00:02:12 #12991 [Verbose] > │     closure8(v0)                                                             │

00:02:12 #12992 [Verbose] > │ and closure11 (v0 : string, v1 : string) (v2 : string) : string =            │

00:02:12 #12993 [Verbose] > │     let v3 : string = v2.Replace (v0, v1)                                    │

00:02:12 #12994 [Verbose] > │     v3                                                                       │

00:02:12 #12995 [Verbose] > │ and closure10 (v0 : string) (v1 : string) : (string -> string) =             │

00:02:12 #12996 [Verbose] > │     closure11(v0, v1)                                                        │

00:02:12 #12997 [Verbose] > │ and closure9 () (v0 : string) : (string -> (string -> string)) =             │

00:02:12 #12998 [Verbose] > │     closure10(v0)                                                            │

00:02:12 #12999 [Verbose] > │ and closure13 (v0 : string) (v1 : string) : (string []) =                    │

00:02:12 #13000 [Verbose] > │     let v2 : (string []) = v1.Split v0                                       │

00:02:12 #13001 [Verbose] > │     v2                                                                       │

00:02:12 #13002 [Verbose] > │ and closure12 () (v0 : string) : (string -> (string [])) =                   │

00:02:12 #13003 [Verbose] > │     closure13(v0)                                                            │

00:02:12 #13004 [Verbose] > │ and method0 () : string =                                                    │

00:02:12 #13005 [Verbose] > │     let v0 : string = ""                                                     │

00:02:12 #13006 [Verbose] > │     v0                                                                       │

00:02:12 #13007 [Verbose] > │ and closure15 (v0 : (string [])) (v1 : string) : (string []) =               │

00:02:12 #13008 [Verbose] > │     let mutable result = None                                                │

00:02:12 #13009 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:02:12 #13010 [Verbose] > │     let v2 : ((string []) -> string seq) = Seq.ofArray                       │

00:02:12 #13011 [Verbose] > │     let v3 : string seq = v2 v0                                              │

00:02:12 #13012 [Verbose] > │     let v4 : string = method0()                                              │

00:02:12 #13013 [Verbose] > │     let v5 : string = v3 |> String.concat v4                                 │

00:02:12 #13014 [Verbose] > │     let v6 : (string []) = v1.Split v5                                       │

00:02:12 #13015 [Verbose] > │     v6                                                                       │

00:02:12 #13016 [Verbose] > │     #endif                                                                   │

00:02:12 #13017 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:02:12 #13018 [Verbose] > │     let v7 : ((string []) -> string seq) = Seq.ofArray                       │

00:02:12 #13019 [Verbose] > │     let v8 : string seq = v7 v0                                              │

00:02:12 #13020 [Verbose] > │     let v9 : string = method0()                                              │

00:02:12 #13021 [Verbose] > │     let v10 : string = v8 |> String.concat v9                                │

00:02:12 #13022 [Verbose] > │     let v11 : (string []) = v1.Split v10                                     │

00:02:12 #13023 [Verbose] > │     v11                                                                      │

00:02:12 #13024 [Verbose] > │     #endif                                                                   │

00:02:12 #13025 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:02:12 #13026 [Verbose] > │     let v12 : (string []) = v1.Split (v0, System.StringSplitOptions.None)    │

00:02:12 #13027 [Verbose] > │     v12                                                                      │

00:02:12 #13028 [Verbose] > │     #endif                                                                   │

00:02:12 #13029 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:02:12 #13030 [Verbose] > │     let v13 : ((string []) -> string seq) = Seq.ofArray                      │

00:02:12 #13031 [Verbose] > │     let v14 : string seq = v13 v0                                            │

00:02:12 #13032 [Verbose] > │     let v15 : string = method0()                                             │

00:02:12 #13033 [Verbose] > │     let v16 : string = v14 |> String.concat v15                              │

00:02:12 #13034 [Verbose] > │     let v17 : (string []) = v1.Split v16                                     │

00:02:12 #13035 [Verbose] > │     v17                                                                      │

00:02:12 #13036 [Verbose] > │     #endif                                                                   │

00:02:12 #13037 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:02:12 #13038 [Verbose] > │     let v18 : ((string []) -> string seq) = Seq.ofArray                      │

00:02:12 #13039 [Verbose] > │     let v19 : string seq = v18 v0                                            │

00:02:12 #13040 [Verbose] > │     let v20 : string = method0()                                             │

00:02:12 #13041 [Verbose] > │     let v21 : string = v19 |> String.concat v20                              │

00:02:12 #13042 [Verbose] > │     let v22 : (string []) = v1.Split v21                                     │

00:02:12 #13043 [Verbose] > │     v22                                                                      │

00:02:12 #13044 [Verbose] > │     #endif                                                                   │

00:02:12 #13045 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:02:12 #13046 [Verbose] > │     let v23 : (string []) = result |> Option.get                             │

00:02:12 #13047 [Verbose] > │     v23                                                                      │

00:02:12 #13048 [Verbose] > │ and closure14 () (v0 : (string [])) : (string -> (string [])) =              │

00:02:12 #13049 [Verbose] > │     closure15(v0)                                                            │

00:02:12 #13050 [Verbose] > │ and closure17 (v0 : string) (v1 : string) : bool =                           │

00:02:12 #13051 [Verbose] > │     let v2 : bool = v1.StartsWith v0                                         │

00:02:12 #13052 [Verbose] > │     v2                                                                       │

00:02:12 #13053 [Verbose] > │ and closure16 () (v0 : string) : (string -> bool) =                          │

00:02:12 #13054 [Verbose] > │     closure17(v0)                                                            │

00:02:12 #13055 [Verbose] > │ and closure20 (v0 : int32, v1 : int32) (v2 : string) : string =              │

00:02:12 #13056 [Verbose] > │     let v3 : string = v2.Substring (v0, v1)                                  │

00:02:12 #13057 [Verbose] > │     v3                                                                       │

00:02:12 #13058 [Verbose] > │ and closure19 (v0 : int32) (v1 : int32) : (string -> string) =               │

00:02:12 #13059 [Verbose] > │     closure20(v0, v1)                                                        │

00:02:12 #13060 [Verbose] > │ and closure18 () (v0 : int32) : (int32 -> (string -> string)) =              │

00:02:12 #13061 [Verbose] > │     closure19(v0)                                                            │

00:02:12 #13062 [Verbose] > │ and closure21 () (v0 : string) : string =                                    │

00:02:12 #13063 [Verbose] > │     let v1 : string = v0.ToLower ()                                          │

00:02:12 #13064 [Verbose] > │     v1                                                                       │

00:02:12 #13065 [Verbose] > │ and closure22 () (v0 : string) : string =                                    │

00:02:12 #13066 [Verbose] > │     let v1 : string = v0.ToUpper ()                                          │

00:02:12 #13067 [Verbose] > │     v1                                                                       │

00:02:12 #13068 [Verbose] > │ and closure23 () (v0 : string) : string =                                    │

00:02:12 #13069 [Verbose] > │     let v1 : string = v0.Trim ()                                             │

00:02:12 #13070 [Verbose] > │     v1                                                                       │

00:02:12 #13071 [Verbose] > │ and closure25 (v0 : (char [])) (v1 : string) : string =                      │

00:02:12 #13072 [Verbose] > │     let v2 : string = v1.TrimEnd v0                                          │

00:02:12 #13073 [Verbose] > │     v2                                                                       │

00:02:12 #13074 [Verbose] > │ and closure24 () (v0 : (char [])) : (string -> string) =                     │

00:02:12 #13075 [Verbose] > │     closure25(v0)                                                            │

00:02:12 #13076 [Verbose] > │ and closure27 (v0 : (char [])) (v1 : string) : string =                      │

00:02:12 #13077 [Verbose] > │     let v2 : string = v1.TrimStart v0                                        │

00:02:12 #13078 [Verbose] > │     v2                                                                       │

00:02:12 #13079 [Verbose] > │ and closure26 () (v0 : (char [])) : (string -> string) =                     │

00:02:12 #13080 [Verbose] > │     closure27(v0)                                                            │

00:02:12 #13081 [Verbose] > │ and closure29 (v0 : int32) (v1 : string) : string =                          │

00:02:12 #13082 [Verbose] > │     let v2 : int32 = v1.Length                                               │

00:02:12 #13083 [Verbose] > │     let v3 : bool = v2 <= v0                                                 │

00:02:12 #13084 [Verbose] > │     if v3 then                                                               │

00:02:12 #13085 [Verbose] > │         v1                                                                   │

00:02:12 #13086 [Verbose] > │     else                                                                     │

00:02:12 #13087 [Verbose] > │         let v4 : string = v1.Substring (0, v0)                               │

00:02:12 #13088 [Verbose] > │         let v5 : string = v4 + "..."                                         │

00:02:12 #13089 [Verbose] > │         v5                                                                   │

00:02:12 #13090 [Verbose] > │ and closure28 () (v0 : int32) : (string -> string) =                         │

00:02:12 #13091 [Verbose] > │     closure29(v0)                                                            │

00:02:12 #13092 [Verbose] > │ and closure30 () (v0 : exn) : string =                                       │

00:02:12 #13093 [Verbose] > │     let mutable result = None                                                │

00:02:12 #13094 [Verbose] > │     #if FABLE_COMPILER_RUST && !WASM                                         │

00:02:12 #13095 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:02:12 #13096 [Verbose] > │     v1                                                                       │

00:02:12 #13097 [Verbose] > │     #endif                                                                   │

00:02:12 #13098 [Verbose] > │     #if FABLE_COMPILER_RUST && WASM                                          │

00:02:12 #13099 [Verbose] > │     let v2 : string = $"%A{v0}"                                              │

00:02:12 #13100 [Verbose] > │     v2                                                                       │

00:02:12 #13101 [Verbose] > │     #endif                                                                   │

00:02:12 #13102 [Verbose] > │     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                     │

00:02:12 #13103 [Verbose] > │     let v3 : string = $"{v0.GetType ()}: {v0.Message}"                       │

00:02:12 #13104 [Verbose] > │     v3                                                                       │

00:02:12 #13105 [Verbose] > │     #endif                                                                   │

00:02:12 #13106 [Verbose] > │     #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                      │

00:02:12 #13107 [Verbose] > │     let v4 : string = $"%A{v0}"                                              │

00:02:12 #13108 [Verbose] > │     v4                                                                       │

00:02:12 #13109 [Verbose] > │     #endif                                                                   │

00:02:12 #13110 [Verbose] > │     #if !FABLE_COMPILER_RUST && WASM                                         │

00:02:12 #13111 [Verbose] > │     let v5 : string = $"%A{v0}"                                              │

00:02:12 #13112 [Verbose] > │     v5                                                                       │

00:02:12 #13113 [Verbose] > │     #endif                                                                   │

00:02:12 #13114 [Verbose] > │     |> fun x -> result <- Some x                                             │

00:02:12 #13115 [Verbose] > │     let v6 : string = result |> Option.get                                   │

00:02:12 #13116 [Verbose] > │     v6                                                                       │

00:02:12 #13117 [Verbose] > │ and method1 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:12 #13118 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:12 #13119 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:12 #13120 [Verbose] > │     v3                                                                       │

00:02:12 #13121 [Verbose] > │ and closure32 (v0 : string) (v1 : (string [])) : string =                    │

00:02:12 #13122 [Verbose] > │     let v2 : int32 = v1.Length                                               │

00:02:12 #13123 [Verbose] > │     let v3 : string = ""                                                     │

00:02:12 #13124 [Verbose] > │     let v4 : Mut0 = {l0 = 0; l1 = v3} : Mut0                                 │

00:02:12 #13125 [Verbose] > │     while method1(v2, v4) do                                                 │

00:02:12 #13126 [Verbose] > │         let v6 : int32 = v4.l0                                               │

00:02:12 #13127 [Verbose] > │         let v7 : string = v4.l1                                              │

00:02:12 #13128 [Verbose] > │         let v8 : string = v1.[int v6]                                        │

00:02:12 #13129 [Verbose] > │         let v9 : string = v7 + v8 + v0 + ""                                  │

00:02:12 #13130 [Verbose] > │         let v10 : int32 = v6 + 1                                             │

00:02:12 #13131 [Verbose] > │         v4.l0 <- v10                                                         │

00:02:12 #13132 [Verbose] > │         v4.l1 <- v9                                                          │

00:02:12 #13133 [Verbose] > │         ()                                                                   │

00:02:12 #13134 [Verbose] > │     let v11 : string = v4.l1                                                 │

00:02:12 #13135 [Verbose] > │     v11                                                                      │

00:02:12 #13136 [Verbose] > │ and closure31 () (v0 : string) : ((string []) -> string) =                   │

00:02:12 #13137 [Verbose] > │     closure32(v0)                                                            │

00:02:12 #13138 [Verbose] > │ and closure34 (v0 : string) (v1 : string seq) : string =                     │

00:02:12 #13139 [Verbose] > │     let v2 : string = v1 |> String.concat v0                                 │

00:02:12 #13140 [Verbose] > │     v2                                                                       │

00:02:12 #13141 [Verbose] > │ and closure33 () (v0 : string) : (string seq -> string) =                    │

00:02:12 #13142 [Verbose] > │     closure34(v0)                                                            │

00:02:12 #13143 [Verbose] > │ and closure36 (v0 : string) (v1 : (string [])) : string =                    │

00:02:12 #13144 [Verbose] > │     let v2 : string = System.String.Join (v0, v1)                            │

00:02:12 #13145 [Verbose] > │     v2                                                                       │

00:02:12 #13146 [Verbose] > │ and closure35 () (v0 : string) : ((string []) -> string) =                   │

00:02:12 #13147 [Verbose] > │     closure36(v0)                                                            │

00:02:12 #13148 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:02:12 #13149 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:12 #13150 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:12 #13151 [Verbose] > │     v3                                                                       │

00:02:12 #13152 [Verbose] > │ and closure37 () (v0 : string) : (char []) =                                 │

00:02:12 #13153 [Verbose] > │     let v1 : int32 = v0.Length                                               │

00:02:12 #13154 [Verbose] > │     let v2 : (char []) = Array.zeroCreate<char> (v1)                         │

00:02:12 #13155 [Verbose] > │     let v3 : Mut1 = {l0 = 0} : Mut1                                          │

00:02:12 #13156 [Verbose] > │     while method2(v1, v3) do                                                 │

00:02:12 #13157 [Verbose] > │         let v5 : int32 = v3.l0                                               │

00:02:12 #13158 [Verbose] > │         let v6 : char = v0.[int v5]                                          │

00:02:12 #13159 [Verbose] > │         v2.[int v5] <- v6                                                    │

00:02:12 #13160 [Verbose] > │         let v7 : int32 = v5 + 1                                              │

00:02:12 #13161 [Verbose] > │         v3.l0 <- v7                                                          │

00:02:12 #13162 [Verbose] > │         ()                                                                   │

00:02:12 #13163 [Verbose] > │     v2                                                                       │

00:02:12 #13164 [Verbose] > │ let v0 : (string -> (string -> bool)) = closure0()                           │

00:02:12 #13165 [Verbose] > │ let contains x = v0 x                                                        │

00:02:12 #13166 [Verbose] > │ let v1 : (string -> (string -> bool)) = closure2()                           │

00:02:12 #13167 [Verbose] > │ let ends_with x = v1 x                                                       │

00:02:12 #13168 [Verbose] > │ let v2 : (int32 -> (char -> (string -> string))) = closure4()                │

00:02:12 #13169 [Verbose] > │ let pad_left x = v2 x                                                        │

00:02:12 #13170 [Verbose] > │ let v3 : (int32 -> (string -> string)) = closure7()                          │

00:02:12 #13171 [Verbose] > │ let pad_right x = v3 x                                                       │

00:02:12 #13172 [Verbose] > │ let v4 : (string -> (string -> (string -> string))) = closure9()             │

00:02:12 #13173 [Verbose] > │ let replace x = v4 x                                                         │

00:02:12 #13174 [Verbose] > │ let v5 : (string -> (string -> (string []))) = closure12()                   │

00:02:12 #13175 [Verbose] > │ let split x = v5 x                                                           │

00:02:12 #13176 [Verbose] > │ let v6 : ((string []) -> (string -> (string []))) = closure14()              │

00:02:12 #13177 [Verbose] > │ let split_string x = v6 x                                                    │

00:02:12 #13178 [Verbose] > │ let v7 : (string -> (string -> bool)) = closure16()                          │

00:02:12 #13179 [Verbose] > │ let starts_with x = v7 x                                                     │

00:02:12 #13180 [Verbose] > │ let v8 : (int32 -> (int32 -> (string -> string))) = closure18()              │

00:02:12 #13181 [Verbose] > │ let substring x = v8 x                                                       │

00:02:12 #13182 [Verbose] > │ let v9 : (string -> string) = closure21()                                    │

00:02:12 #13183 [Verbose] > │ let to_lower x = v9 x                                                        │

00:02:12 #13184 [Verbose] > │ let v10 : (string -> string) = closure22()                                   │

00:02:12 #13185 [Verbose] > │ let to_upper x = v10 x                                                       │

00:02:12 #13186 [Verbose] > │ let v11 : (string -> string) = closure23()                                   │

00:02:12 #13187 [Verbose] > │ let trim x = v11 x                                                           │

00:02:12 #13188 [Verbose] > │ let v12 : ((char []) -> (string -> string)) = closure24()                    │

00:02:12 #13189 [Verbose] > │ let trim_end x = v12 x                                                       │

00:02:12 #13190 [Verbose] > │ let v13 : ((char []) -> (string -> string)) = closure26()                    │

00:02:12 #13191 [Verbose] > │ let trim_start x = v13 x                                                     │

00:02:12 #13192 [Verbose] > │ let v14 : (int32 -> (string -> string)) = closure28()                        │

00:02:12 #13193 [Verbose] > │ let ellipsis x = v14 x                                                       │

00:02:12 #13194 [Verbose] > │ let v15 : (exn -> string) = closure30()                                      │

00:02:12 #13195 [Verbose] > │ let format_exception x = v15 x                                               │

00:02:12 #13196 [Verbose] > │ let v16 : (string -> ((string []) -> string)) = closure31()                  │

00:02:12 #13197 [Verbose] > │ let concat_array_trailing x = v16 x                                          │

00:02:12 #13198 [Verbose] > │ let v17 : (string -> (string seq -> string)) = closure33()                   │

00:02:12 #13199 [Verbose] > │ let concat x = v17 x                                                         │

00:02:12 #13200 [Verbose] > │ let v18 : (string -> ((string []) -> string)) = closure35()                  │

00:02:12 #13201 [Verbose] > │ let join' x = v18 x                                                          │

00:02:12 #13202 [Verbose] > │ let v19 : (string -> (char [])) = closure37()                                │

00:02:12 #13203 [Verbose] > │ let to_char_array x = v19 x                                                  │

00:02:12 #13204 [Verbose] > │ ()                                                                           │

00:02:12 #13205 [Verbose] > │                                                                              │

00:02:12 #13206 [Verbose] > │                                                                              │

00:02:12 #13207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:12 #13208 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0815-1590-1b63f37d18a4\main.spi

00:02:13 #13209 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:13 #13210 [Verbose] >   return _pygments_highlight(

00:02:13 #13211 [Verbose] >

00:02:13 #13212 [Verbose] > ╭─[ 1.05s - stdout ]───────────────────────────────────────────────────────────╮

00:02:13 #13213 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:13 #13214 [Verbose] > │     let v0 : string = $"%A{10}"                                              │

00:02:13 #13215 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:13 #13216 [Verbose] > │     let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}"        │

00:02:13 #13217 [Verbose] > │     ()                                                                       │

00:02:13 #13218 [Verbose] > │ method0()                                                                    │

00:02:13 #13219 [Verbose] > │                                                                              │

00:02:13 #13220 [Verbose] > │ 10                                                                           │

00:02:13 #13221 [Verbose] > │                                                                              │

00:02:13 #13222 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #13223 [Verbose] >

00:02:13 #13224 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:13 #13225 [Verbose] > // // test

00:02:13 #13226 [Verbose] >

00:02:13 #13227 [Verbose] > stream.new_finite_stream print_and_return 10i32

00:02:13 #13228 [Verbose] > |> flip stream.try_item

00:02:13 #13229 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)

00:02:13 #13230 [Verbose] > |> listm'.sum

00:02:13 #13231 [Verbose] > |> _assert_eq 10

00:02:13 #13232 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0921-2198-2a849f930db7\main.spi

00:02:14 #13233 [Verbose] >

00:02:14 #13234 [Verbose] > ╭─[ 393.61ms - stdout ]────────────────────────────────────────────────────────╮

00:02:14 #13235 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:14 #13236 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:14 #13237 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:14 #13238 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:14 #13239 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:14 #13240 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:14 #13241 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:14 #13242 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:14 #13243 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:14 #13244 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:14 #13245 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:14 #13246 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:14 #13247 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:14 #13248 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:14 #13249 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:14 #13250 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:14 #13251 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:14 #13252 [Verbose] > │     let v0 : string = $"%A{10}"                                              │

00:02:14 #13253 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:14 #13254 [Verbose] > │     let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}"        │

00:02:14 #13255 [Verbose] > │     ()                                                                       │

00:02:14 #13256 [Verbose] > │ method0()                                                                    │

00:02:14 #13257 [Verbose] > │                                                                              │

00:02:14 #13258 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:14 #13259 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:14 #13260 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:14 #13261 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:14 #13262 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:14 #13263 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:14 #13264 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:14 #13265 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:14 #13266 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:14 #13267 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:14 #13268 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:14 #13269 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:14 #13270 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:14 #13271 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:14 #13272 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:14 #13273 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:14 #13274 [Verbose] > │ 10                                                                           │

00:02:14 #13275 [Verbose] > │                                                                              │

00:02:14 #13276 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:14 #13277 [Verbose] >

00:02:14 #13278 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:14 #13279 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:14 #13280 [Verbose] > │ ## take_while_                                                               │

00:02:14 #13281 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:14 #13282 [Verbose] >

00:02:14 #13283 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:14 #13284 [Verbose] > inl take_while_ cond seq =

00:02:14 #13285 [Verbose] >     let rec loop acc i =

00:02:14 #13286 [Verbose] >         match seq i with

00:02:14 #13287 [Verbose] >         | Some st when cond st i => loop (st :: acc) (i + 1)

00:02:14 #13288 [Verbose] >         | _ => acc |> listm.rev

00:02:14 #13289 [Verbose] >     loop [[]] 0

00:02:14 #13290 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-0965-6525-6d73745066ab\main.spi

00:02:14 #13291 [Verbose] >

00:02:14 #13292 [Verbose] > ╭─[ 377.95ms - stdout ]────────────────────────────────────────────────────────╮

00:02:14 #13293 [Verbose] > │ ()                                                                           │

00:02:14 #13294 [Verbose] > │                                                                              │

00:02:14 #13295 [Verbose] > │                                                                              │

00:02:14 #13296 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:14 #13297 [Verbose] >

00:02:14 #13298 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:14 #13299 [Verbose] > // // test

00:02:14 #13300 [Verbose] >

00:02:14 #13301 [Verbose] > stream.new_infinite_stream_ print_and_return

00:02:14 #13302 [Verbose] > |> flip stream.try_item

00:02:14 #13303 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)

00:02:14 #13304 [Verbose] > |> listm'.sum

00:02:14 #13305 [Verbose] > |> _assert_eq 10

00:02:14 #13306 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1004-0430-0254d7dbd75a\main.spi

00:02:14 #13307 [Verbose] > [NbConvertApp] Converting notebook file_system.dib.ipynb to html

00:02:14 #13308 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:14 #13309 [Verbose] >   validate(nb)

00:02:14 #13310 [Verbose] > [NbConvertApp] Writing 360587 bytes to stream.dib.html

00:02:15 #13311 [Verbose] >

00:02:15 #13312 [Verbose] > ╭─[ 593.54ms - stdout ]────────────────────────────────────────────────────────╮

00:02:15 #13313 [Verbose] > │ type UH0 =                                                                   │

00:02:15 #13314 [Verbose] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:02:15 #13315 [Verbose] > │     | UH0_1                                                                  │

00:02:15 #13316 [Verbose] > │ and UH1 =                                                                    │

00:02:15 #13317 [Verbose] > │     | UH1_0 of int32 * UH1                                                   │

00:02:15 #13318 [Verbose] > │     | UH1_1                                                                  │

00:02:15 #13319 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:15 #13320 [Verbose] > │     | US0_0                                                                  │

00:02:15 #13321 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:15 #13322 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 =                                     │

00:02:15 #13323 [Verbose] > │     let v1 : int32 = v0 + 1                                                  │

00:02:15 #13324 [Verbose] > │     method1(v1)                                                              │

00:02:15 #13325 [Verbose] > │ and method1 (v0 : int32) : UH0 =                                             │

00:02:15 #13326 [Verbose] > │     printfn $"print_and_return / x: {v0}"                                    │

00:02:15 #13327 [Verbose] > │     let v1 : (unit -> UH0) = closure0(v0)                                    │

00:02:15 #13328 [Verbose] > │     UH0_0(v0, v1)                                                            │

00:02:15 #13329 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US0 =                                   │

00:02:15 #13330 [Verbose] > │     match v1 with                                                            │

00:02:15 #13331 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:02:15 #13332 [Verbose] > │         let v4 : bool = v0 <= 0                                              │

00:02:15 #13333 [Verbose] > │         if v4 then                                                           │

00:02:15 #13334 [Verbose] > │             US0_1(v2)                                                        │

00:02:15 #13335 [Verbose] > │         else                                                                 │

00:02:15 #13336 [Verbose] > │             let v6 : int32 = v0 - 1                                          │

00:02:15 #13337 [Verbose] > │             let v7 : UH0 = v3 ()                                             │

00:02:15 #13338 [Verbose] > │             method3(v6, v7)                                                  │

00:02:15 #13339 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:02:15 #13340 [Verbose] > │         US0_0                                                                │

00:02:15 #13341 [Verbose] > │ and method4 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:02:15 #13342 [Verbose] > │     match v0 with                                                            │

00:02:15 #13343 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:15 #13344 [Verbose] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:02:15 #13345 [Verbose] > │         method4(v3, v4)                                                      │

00:02:15 #13346 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:15 #13347 [Verbose] > │         v1                                                                   │

00:02:15 #13348 [Verbose] > │ and method2 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 =                         │

00:02:15 #13349 [Verbose] > │     let v3 : US0 = method3(v2, v0)                                           │

00:02:15 #13350 [Verbose] > │     match v3 with                                                            │

00:02:15 #13351 [Verbose] > │     | US0_1(v4) -> (* Some *)                                                │

00:02:15 #13352 [Verbose] > │         let v5 : bool = v4 < 5                                               │

00:02:15 #13353 [Verbose] > │         if v5 then                                                           │

00:02:15 #13354 [Verbose] > │             let v6 : UH1 = UH1_0(v4, v1)                                     │

00:02:15 #13355 [Verbose] > │             let v7 : int32 = v2 + 1                                          │

00:02:15 #13356 [Verbose] > │             method2(v0, v6, v7)                                              │

00:02:15 #13357 [Verbose] > │         else                                                                 │

00:02:15 #13358 [Verbose] > │             let v9 : UH1 = UH1_1                                             │

00:02:15 #13359 [Verbose] > │             method4(v1, v9)                                                  │

00:02:15 #13360 [Verbose] > │     | _ ->                                                                   │

00:02:15 #13361 [Verbose] > │         let v12 : UH1 = UH1_1                                                │

00:02:15 #13362 [Verbose] > │         method4(v1, v12)                                                     │

00:02:15 #13363 [Verbose] > │ and method5 (v0 : UH1, v1 : int32) : int32 =                                 │

00:02:15 #13364 [Verbose] > │     match v0 with                                                            │

00:02:15 #13365 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:15 #13366 [Verbose] > │         let v4 : int32 = v1 + v2                                             │

00:02:15 #13367 [Verbose] > │         method5(v3, v4)                                                      │

00:02:15 #13368 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:15 #13369 [Verbose] > │         v1                                                                   │

00:02:15 #13370 [Verbose] > │ and method6 (v0 : bool) : bool =                                             │

00:02:15 #13371 [Verbose] > │     v0                                                                       │

00:02:15 #13372 [Verbose] > │ and method0 () : unit =                                                      │

00:02:15 #13373 [Verbose] > │     let v0 : int32 = 0                                                       │

00:02:15 #13374 [Verbose] > │     let v1 : UH0 = method1(v0)                                               │

00:02:15 #13375 [Verbose] > │     let v2 : UH1 = UH1_1                                                     │

00:02:15 #13376 [Verbose] > │     let v3 : int32 = 0                                                       │

00:02:15 #13377 [Verbose] > │     let v4 : UH1 = method2(v1, v2, v3)                                       │

00:02:15 #13378 [Verbose] > │     let v5 : int32 = 0                                                       │

00:02:15 #13379 [Verbose] > │     let v6 : int32 = method5(v4, v5)                                         │

00:02:15 #13380 [Verbose] > │     let v7 : string = $"%A{v6}"                                              │

00:02:15 #13381 [Verbose] > │     System.Console.WriteLine v7                                              │

00:02:15 #13382 [Verbose] > │     let v8 : bool = v6 = 10                                                  │

00:02:15 #13383 [Verbose] > │     let v10 : bool =                                                         │

00:02:15 #13384 [Verbose] > │         if v8 then                                                           │

00:02:15 #13385 [Verbose] > │             true                                                             │

00:02:15 #13386 [Verbose] > │         else                                                                 │

00:02:15 #13387 [Verbose] > │             method6(v8)                                                      │

00:02:15 #13388 [Verbose] > │     let v11 : string = $"__expect / actual: %A{v6} / expected: %A{10}"       │

00:02:15 #13389 [Verbose] > │     let v12 : bool = v10 = false                                             │

00:02:15 #13390 [Verbose] > │     if v12 then                                                              │

00:02:15 #13391 [Verbose] > │         failwith<unit> v11                                                   │

00:02:15 #13392 [Verbose] > │ method0()                                                                    │

00:02:15 #13393 [Verbose] > │                                                                              │

00:02:15 #13394 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:15 #13395 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:15 #13396 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:15 #13397 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:15 #13398 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:15 #13399 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:15 #13400 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:15 #13401 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:15 #13402 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:15 #13403 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:15 #13404 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:15 #13405 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:15 #13406 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:15 #13407 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:15 #13408 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:15 #13409 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:15 #13410 [Verbose] > │ 10                                                                           │

00:02:15 #13411 [Verbose] > │                                                                              │

00:02:15 #13412 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:15 #13413 [Verbose] >

00:02:15 #13414 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:15 #13415 [Verbose] > // // test

00:02:15 #13416 [Verbose] >

00:02:15 #13417 [Verbose] > stream.new_infinite_stream_ print_and_return

00:02:15 #13418 [Verbose] > |> stream.memoize

00:02:15 #13419 [Verbose] > |> fun list =>

00:02:15 #13420 [Verbose] >     inl list = list ()

00:02:15 #13421 [Verbose] >     fun n =>

00:02:15 #13422 [Verbose] >         list |> stream.try_item n

00:02:15 #13423 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)

00:02:15 #13424 [Verbose] > |> listm'.sum

00:02:15 #13425 [Verbose] > |> _assert_eq 10

00:02:15 #13426 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1070-7085-74b1d5cf4429\main.spi

00:02:15 #13427 [Verbose] >

00:02:15 #13428 [Verbose] > ╭─[ 651.49ms - stdout ]────────────────────────────────────────────────────────╮

00:02:15 #13429 [Verbose] > │ type UH0 =                                                                   │

00:02:15 #13430 [Verbose] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:02:15 #13431 [Verbose] > │     | UH0_1                                                                  │

00:02:15 #13432 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:15 #13433 [Verbose] > │     | US0_0 of f0_0 : UH0                                                    │

00:02:15 #13434 [Verbose] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:02:15 #13435 [Verbose] > │ and Mut0 = {mutable l0 : US0}                                                │

00:02:15 #13436 [Verbose] > │ and UH1 =                                                                    │

00:02:15 #13437 [Verbose] > │     | UH1_0 of int32 * UH1                                                   │

00:02:15 #13438 [Verbose] > │     | UH1_1                                                                  │

00:02:15 #13439 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:15 #13440 [Verbose] > │     | US1_0                                                                  │

00:02:15 #13441 [Verbose] > │     | US1_1 of f1_0 : int32                                                  │

00:02:15 #13442 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 =                                     │

00:02:15 #13443 [Verbose] > │     let v1 : int32 = v0 + 1                                                  │

00:02:15 #13444 [Verbose] > │     method1(v1)                                                              │

00:02:15 #13445 [Verbose] > │ and method1 (v0 : int32) : UH0 =                                             │

00:02:15 #13446 [Verbose] > │     printfn $"print_and_return / x: {v0}"                                    │

00:02:15 #13447 [Verbose] > │     let v1 : (unit -> UH0) = closure0(v0)                                    │

00:02:15 #13448 [Verbose] > │     UH0_0(v0, v1)                                                            │

00:02:15 #13449 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 =                                           │

00:02:15 #13450 [Verbose] > │     v0                                                                       │

00:02:15 #13451 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 =                                │

00:02:15 #13452 [Verbose] > │     let v2 : US0 = v1.l0                                                     │

00:02:15 #13453 [Verbose] > │     match v2 with                                                            │

00:02:15 #13454 [Verbose] > │     | US0_0(v3) -> (* Computed *)                                            │

00:02:15 #13455 [Verbose] > │         v3                                                                   │

00:02:15 #13456 [Verbose] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:02:15 #13457 [Verbose] > │         let v5 : UH0 = v4 ()                                                 │

00:02:15 #13458 [Verbose] > │         let v12 : UH0 =                                                      │

00:02:15 #13459 [Verbose] > │             match v5 with                                                    │

00:02:15 #13460 [Verbose] > │             | UH0_0(v7, v8) -> (* StreamCons *)                              │

00:02:15 #13461 [Verbose] > │                 let v9 : (unit -> UH0) = method2(v0, v8)                     │

00:02:15 #13462 [Verbose] > │                 UH0_0(v7, v9)                                                │

00:02:15 #13463 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:02:15 #13464 [Verbose] > │                 UH0_1                                                        │

00:02:15 #13465 [Verbose] > │         let v13 : US0 = US0_0(v12)                                           │

00:02:15 #13466 [Verbose] > │         v1.l0 <- v13                                                         │

00:02:15 #13467 [Verbose] > │         v12                                                                  │

00:02:15 #13468 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) =                 │

00:02:15 #13469 [Verbose] > │     let v2 : US0 = US0_1(v1)                                                 │

00:02:15 #13470 [Verbose] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:02:15 #13471 [Verbose] > │     closure2(v0, v3)                                                         │

00:02:15 #13472 [Verbose] > │ and method4 (v0 : int32, v1 : UH0) : US1 =                                   │

00:02:15 #13473 [Verbose] > │     match v1 with                                                            │

00:02:15 #13474 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:02:15 #13475 [Verbose] > │         let v4 : bool = v0 <= 0                                              │

00:02:15 #13476 [Verbose] > │         if v4 then                                                           │

00:02:15 #13477 [Verbose] > │             US1_1(v2)                                                        │

00:02:15 #13478 [Verbose] > │         else                                                                 │

00:02:15 #13479 [Verbose] > │             let v6 : int32 = v0 - 1                                          │

00:02:15 #13480 [Verbose] > │             let v7 : UH0 = v3 ()                                             │

00:02:15 #13481 [Verbose] > │             method4(v6, v7)                                                  │

00:02:15 #13482 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:02:15 #13483 [Verbose] > │         US1_0                                                                │

00:02:15 #13484 [Verbose] > │ and method5 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:02:15 #13485 [Verbose] > │     match v0 with                                                            │

00:02:15 #13486 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:15 #13487 [Verbose] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:02:15 #13488 [Verbose] > │         method5(v3, v4)                                                      │

00:02:15 #13489 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:15 #13490 [Verbose] > │         v1                                                                   │

00:02:15 #13491 [Verbose] > │ and method3 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 =                         │

00:02:15 #13492 [Verbose] > │     let v3 : US1 = method4(v2, v0)                                           │

00:02:15 #13493 [Verbose] > │     match v3 with                                                            │

00:02:15 #13494 [Verbose] > │     | US1_1(v4) -> (* Some *)                                                │

00:02:15 #13495 [Verbose] > │         let v5 : bool = v4 < 5                                               │

00:02:15 #13496 [Verbose] > │         if v5 then                                                           │

00:02:15 #13497 [Verbose] > │             let v6 : UH1 = UH1_0(v4, v1)                                     │

00:02:15 #13498 [Verbose] > │             let v7 : int32 = v2 + 1                                          │

00:02:15 #13499 [Verbose] > │             method3(v0, v6, v7)                                              │

00:02:15 #13500 [Verbose] > │         else                                                                 │

00:02:15 #13501 [Verbose] > │             let v9 : UH1 = UH1_1                                             │

00:02:15 #13502 [Verbose] > │             method5(v1, v9)                                                  │

00:02:15 #13503 [Verbose] > │     | _ ->                                                                   │

00:02:15 #13504 [Verbose] > │         let v12 : UH1 = UH1_1                                                │

00:02:15 #13505 [Verbose] > │         method5(v1, v12)                                                     │

00:02:15 #13506 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 =                                 │

00:02:15 #13507 [Verbose] > │     match v0 with                                                            │

00:02:15 #13508 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:15 #13509 [Verbose] > │         let v4 : int32 = v1 + v2                                             │

00:02:15 #13510 [Verbose] > │         method6(v3, v4)                                                      │

00:02:15 #13511 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:15 #13512 [Verbose] > │         v1                                                                   │

00:02:15 #13513 [Verbose] > │ and method7 (v0 : bool) : bool =                                             │

00:02:15 #13514 [Verbose] > │     v0                                                                       │

00:02:15 #13515 [Verbose] > │ and method0 () : unit =                                                      │

00:02:15 #13516 [Verbose] > │     let v0 : int32 = 0                                                       │

00:02:15 #13517 [Verbose] > │     let v1 : UH0 = method1(v0)                                               │

00:02:15 #13518 [Verbose] > │     let v2 : (unit -> UH0) = closure1(v1)                                    │

00:02:15 #13519 [Verbose] > │     let v3 : (unit -> UH0) = method2(v1, v2)                                 │

00:02:15 #13520 [Verbose] > │     let v4 : UH0 = v3 ()                                                     │

00:02:15 #13521 [Verbose] > │     let v5 : UH1 = UH1_1                                                     │

00:02:15 #13522 [Verbose] > │     let v6 : int32 = 0                                                       │

00:02:15 #13523 [Verbose] > │     let v7 : UH1 = method3(v4, v5, v6)                                       │

00:02:15 #13524 [Verbose] > │     let v8 : int32 = 0                                                       │

00:02:15 #13525 [Verbose] > │     let v9 : int32 = method6(v7, v8)                                         │

00:02:15 #13526 [Verbose] > │     let v10 : string = $"%A{v9}"                                             │

00:02:15 #13527 [Verbose] > │     System.Console.WriteLine v10                                             │

00:02:15 #13528 [Verbose] > │     let v11 : bool = v9 = 10                                                 │

00:02:15 #13529 [Verbose] > │     let v13 : bool =                                                         │

00:02:15 #13530 [Verbose] > │         if v11 then                                                          │

00:02:15 #13531 [Verbose] > │             true                                                             │

00:02:15 #13532 [Verbose] > │         else                                                                 │

00:02:15 #13533 [Verbose] > │             method7(v11)                                                     │

00:02:15 #13534 [Verbose] > │     let v14 : string = $"__expect / actual: %A{v9} / expected: %A{10}"       │

00:02:15 #13535 [Verbose] > │     let v15 : bool = v13 = false                                             │

00:02:15 #13536 [Verbose] > │     if v15 then                                                              │

00:02:15 #13537 [Verbose] > │         failwith<unit> v14                                                   │

00:02:15 #13538 [Verbose] > │ method0()                                                                    │

00:02:15 #13539 [Verbose] > │                                                                              │

00:02:15 #13540 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:15 #13541 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:15 #13542 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:15 #13543 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:15 #13544 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:15 #13545 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:15 #13546 [Verbose] > │ 10                                                                           │

00:02:15 #13547 [Verbose] > │                                                                              │

00:02:15 #13548 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:15 #13549 [Verbose] >

00:02:15 #13550 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:15 #13551 [Verbose] > // // test

00:02:15 #13552 [Verbose] >

00:02:15 #13553 [Verbose] > stream.new_finite_stream print_and_return 10i32

00:02:15 #13554 [Verbose] > |> stream.memoize

00:02:15 #13555 [Verbose] > |> fun list =>

00:02:15 #13556 [Verbose] >     inl list = list ()

00:02:15 #13557 [Verbose] >     fun n =>

00:02:15 #13558 [Verbose] >         list |> stream.try_item n

00:02:15 #13559 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)

00:02:15 #13560 [Verbose] > |> listm'.sum

00:02:15 #13561 [Verbose] > |> _assert_eq 10

00:02:16 #13562 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1150-5082-552446330488\main.spi

00:02:16 #13563 [Verbose] >

00:02:16 #13564 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:16 #13565 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:16 #13566 [Verbose] > │ # rust                                                                       │

00:02:16 #13567 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:16 #13568 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:16 #13569 [Verbose] >   return _pygments_highlight(

00:02:16 #13570 [Verbose] >

00:02:16 #13571 [Verbose] > ╭─[ 646.22ms - stdout ]────────────────────────────────────────────────────────╮

00:02:16 #13572 [Verbose] > │ type UH0 =                                                                   │

00:02:16 #13573 [Verbose] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:02:16 #13574 [Verbose] > │     | UH0_1                                                                  │

00:02:16 #13575 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:16 #13576 [Verbose] > │     | US0_0 of f0_0 : UH0                                                    │

00:02:16 #13577 [Verbose] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:02:16 #13578 [Verbose] > │ and Mut0 = {mutable l0 : US0}                                                │

00:02:16 #13579 [Verbose] > │ and UH1 =                                                                    │

00:02:16 #13580 [Verbose] > │     | UH1_0 of int32 * UH1                                                   │

00:02:16 #13581 [Verbose] > │     | UH1_1                                                                  │

00:02:16 #13582 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:16 #13583 [Verbose] > │     | US1_0                                                                  │

00:02:16 #13584 [Verbose] > │     | US1_1 of f1_0 : int32                                                  │

00:02:16 #13585 [Verbose] > │ let rec closure10 () () : UH0 =                                              │

00:02:16 #13586 [Verbose] > │     UH0_1                                                                    │

00:02:16 #13587 [Verbose] > │ and closure9 () () : UH0 =                                                   │

00:02:16 #13588 [Verbose] > │     printfn $"print_and_return / x: {9}"                                     │

00:02:16 #13589 [Verbose] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:02:16 #13590 [Verbose] > │     UH0_0(9, v0)                                                             │

00:02:16 #13591 [Verbose] > │ and closure8 () () : UH0 =                                                   │

00:02:16 #13592 [Verbose] > │     printfn $"print_and_return / x: {8}"                                     │

00:02:16 #13593 [Verbose] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:02:16 #13594 [Verbose] > │     UH0_0(8, v0)                                                             │

00:02:16 #13595 [Verbose] > │ and closure7 () () : UH0 =                                                   │

00:02:16 #13596 [Verbose] > │     printfn $"print_and_return / x: {7}"                                     │

00:02:16 #13597 [Verbose] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:02:16 #13598 [Verbose] > │     UH0_0(7, v0)                                                             │

00:02:16 #13599 [Verbose] > │ and closure6 () () : UH0 =                                                   │

00:02:16 #13600 [Verbose] > │     printfn $"print_and_return / x: {6}"                                     │

00:02:16 #13601 [Verbose] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:02:16 #13602 [Verbose] > │     UH0_0(6, v0)                                                             │

00:02:16 #13603 [Verbose] >

00:02:16 #13604 [Verbose] > │ and closure5 () () : UH0 =                                                   │

00:02:16 #13606 [Verbose] > │     printfn $"print_and_return / x: {5}"                                     │

00:02:16 #13605 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:16 #13608 [Verbose] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:02:16 #13607 [Verbose] > // // test

00:02:16 #13609 [Verbose] >

00:02:16 #13610 [Verbose] > open testing

00:02:16 #13611 [Verbose] > │     UH0_0(5, v0)                                                             │

00:02:16 #13612 [Verbose] > │ and closure4 () () : UH0 =                                                   │

00:02:16 #13613 [Verbose] > │     printfn $"print_and_return / x: {4}"                                     │

00:02:16 #13614 [Verbose] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:02:16 #13615 [Verbose] > │     UH0_0(4, v0)                                                             │

00:02:16 #13616 [Verbose] > │ and closure3 () () : UH0 =                                                   │

00:02:16 #13617 [Verbose] > │     printfn $"print_and_return / x: {3}"                                     │

00:02:16 #13618 [Verbose] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:02:16 #13619 [Verbose] > │     UH0_0(3, v0)                                                             │

00:02:16 #13620 [Verbose] > │ and closure2 () () : UH0 =                                                   │

00:02:16 #13621 [Verbose] > │     printfn $"print_and_return / x: {2}"                                     │

00:02:16 #13622 [Verbose] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:02:16 #13623 [Verbose] > │     UH0_0(2, v0)                                                             │

00:02:16 #13624 [Verbose] > │ and closure1 () () : UH0 =                                                   │

00:02:16 #13625 [Verbose] > │     printfn $"print_and_return / x: {1}"                                     │

00:02:16 #13626 [Verbose] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:02:16 #13627 [Verbose] > │     UH0_0(1, v0)                                                             │

00:02:16 #13628 [Verbose] > │ and closure0 () () : UH0 =                                                   │

00:02:16 #13629 [Verbose] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:02:16 #13630 [Verbose] > │     UH0_0(0, v0)                                                             │

00:02:16 #13631 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 =                                         │

00:02:16 #13632 [Verbose] > │     let v1 : US0 = v0.l0                                                     │

00:02:16 #13633 [Verbose] > │     match v1 with                                                            │

00:02:16 #13634 [Verbose] > │     | US0_0(v2) -> (* Computed *)                                            │

00:02:16 #13635 [Verbose] > │         v2                                                                   │

00:02:16 #13636 [Verbose] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:02:16 #13637 [Verbose] > │         let v4 : UH0 = v3 ()                                                 │

00:02:16 #13638 [Verbose] > │         let v13 : UH0 =                                                      │

00:02:16 #13639 [Verbose] > │             match v4 with                                                    │

00:02:16 #13640 [Verbose] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:02:16 #13641 [Verbose] > │                 let v8 : US0 = US0_1(v7)                                     │

00:02:16 #13642 [Verbose] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:02:16 #13643 [Verbose] > │                 let v10 : (unit -> UH0) = closure11(v9)                      │

00:02:16 #13644 [Verbose] > │                 UH0_0(v6, v10)                                               │

00:02:16 #13645 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:02:16 #13646 [Verbose] > │                 UH0_1                                                        │

00:02:16 #13647 [Verbose] > │         let v14 : US0 = US0_0(v13)                                           │

00:02:16 #13648 [Verbose] > │         v0.l0 <- v14                                                         │

00:02:16 #13649 [Verbose] > │         v13                                                                  │

00:02:16 #13650 [Verbose] > │ and method2 (v0 : int32, v1 : UH0) : US1 =                                   │

00:02:16 #13651 [Verbose] > │     match v1 with                                                            │

00:02:16 #13652 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:02:16 #13653 [Verbose] > │         let v4 : bool = v0 <= 0                                              │

00:02:16 #13654 [Verbose] > │         if v4 then                                                           │

00:02:16 #13655 [Verbose] > │             US1_1(v2)                                                        │

00:02:16 #13656 [Verbose] > │         else                                                                 │

00:02:16 #13657 [Verbose] > │             let v6 : int32 = v0 - 1                                          │

00:02:16 #13658 [Verbose] > │             let v7 : UH0 = v3 ()                                             │

00:02:16 #13659 [Verbose] > │             method2(v6, v7)                                                  │

00:02:16 #13660 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:02:16 #13661 [Verbose] > │         US1_0                                                                │

00:02:16 #13662 [Debug] executeAsync / exitCode: 0 / output.Length: 66677

00:02:16 #13663 [Debug] main / executeCommand / exitCode: 0

00:02:16 #13665 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:02:16 #13664 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 physics.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:02:16 #13666 [Verbose] > │     match v0 with                                                            │

00:02:16 #13667 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:16 #13668 [Verbose] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:02:16 #13669 [Verbose] > │         method3(v3, v4)                                                      │

00:02:16 #13670 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:16 #13671 [Verbose] > │         v1                                                                   │

00:02:16 #13672 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 =                         │

00:02:16 #13673 [Verbose] > │     let v3 : US1 = method2(v2, v0)                                           │

00:02:16 #13674 [Verbose] > │     match v3 with                                                            │

00:02:16 #13675 [Verbose] > │     | US1_1(v4) -> (* Some *)                                                │

00:02:16 #13676 [Verbose] > │         let v5 : bool = v4 < 5                                               │

00:02:16 #13677 [Verbose] > │         if v5 then                                                           │

00:02:16 #13678 [Verbose] > │             let v6 : UH1 = UH1_0(v4, v1)                                     │

00:02:16 #13679 [Verbose] > │             let v7 : int32 = v2 + 1                                          │

00:02:16 #13680 [Verbose] > │             method1(v0, v6, v7)                                              │

00:02:16 #13681 [Verbose] > │         else                                                                 │

00:02:16 #13682 [Verbose] > │             let v9 : UH1 = UH1_1                                             │

00:02:16 #13683 [Verbose] > │             method3(v1, v9)                                                  │

00:02:16 #13684 [Verbose] > │     | _ ->                                                                   │

00:02:16 #13685 [Verbose] > │         let v12 : UH1 = UH1_1                                                │

00:02:16 #13686 [Verbose] > │         method3(v1, v12)                                                     │

00:02:16 #13687 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 =                                 │

00:02:16 #13688 [Verbose] > │     match v0 with                                                            │

00:02:16 #13689 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:16 #13690 [Verbose] > │         let v4 : int32 = v1 + v2                                             │

00:02:16 #13691 [Verbose] > │         method4(v3, v4)                                                      │

00:02:16 #13692 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:16 #13693 [Verbose] > │         v1                                                                   │

00:02:16 #13694 [Verbose] > │ and method5 (v0 : bool) : bool =                                             │

00:02:16 #13695 [Verbose] > │     v0                                                                       │

00:02:16 #13696 [Verbose] > │ and method0 () : unit =                                                      │

00:02:16 #13697 [Verbose] > │     printfn $"print_and_return / x: {0}"                                     │

00:02:16 #13698 [Verbose] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:02:16 #13699 [Verbose] > │     let v1 : US0 = US0_1(v0)                                                 │

00:02:16 #13700 [Verbose] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:02:16 #13701 [Verbose] > │     let v3 : US0 = v2.l0                                                     │

00:02:16 #13702 [Verbose] > │     let v18 : UH0 =                                                          │

00:02:16 #13703 [Verbose] > │         match v3 with                                                        │

00:02:16 #13704 [Verbose] > │         | US0_0(v4) -> (* Computed *)                                        │

00:02:16 #13705 [Verbose] > │             v4                                                               │

00:02:16 #13706 [Verbose] > │         | US0_1(v5) -> (* NotComputed *)                                     │

00:02:16 #13707 [Verbose] > │             let v6 : UH0 = v5 ()                                             │

00:02:16 #13708 [Verbose] > │             let v15 : UH0 =                                                  │

00:02:16 #13709 [Verbose] > │                 match v6 with                                                │

00:02:16 #13710 [Verbose] > │                 | UH0_0(v8, v9) -> (* StreamCons *)                          │

00:02:16 #13711 [Verbose] > │                     let v10 : US0 = US0_1(v9)                                │

00:02:16 #13712 [Verbose] > │                     let v11 : Mut0 = {l0 = v10} : Mut0                       │

00:02:16 #13713 [Verbose] > │                     let v12 : (unit -> UH0) = closure11(v11)                 │

00:02:16 #13714 [Verbose] > │                     UH0_0(v8, v12)                                           │

00:02:16 #13715 [Verbose] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:02:16 #13716 [Verbose] > │                     UH0_1                                                    │

00:02:16 #13717 [Verbose] > │             let v16 : US0 = US0_0(v15)                                       │

00:02:16 #13718 [Verbose] > │             v2.l0 <- v16                                                     │

00:02:16 #13719 [Verbose] > │             v15                                                              │

00:02:16 #13720 [Verbose] > │     let v19 : UH1 = UH1_1                                                    │

00:02:16 #13721 [Verbose] > │     let v20 : int32 = 0                                                      │

00:02:16 #13722 [Verbose] > │     let v21 : UH1 = method1(v18, v19, v20)                                   │

00:02:16 #13723 [Verbose] > │     let v22 : int32 = 0                                                      │

00:02:16 #13724 [Verbose] > │     let v23 : int32 = method4(v21, v22)                                      │

00:02:16 #13725 [Verbose] > │     let v24 : string = $"%A{v23}"                                            │

00:02:16 #13726 [Verbose] > │     System.Console.WriteLine v24                                             │

00:02:16 #13727 [Verbose] > │     let v25 : bool = v23 = 10                                                │

00:02:16 #13728 [Verbose] > │     let v27 : bool =                                                         │

00:02:16 #13729 [Verbose] > │         if v25 then                                                          │

00:02:16 #13730 [Verbose] > │             true                                                             │

00:02:16 #13731 [Verbose] > │         else                                                                 │

00:02:16 #13732 [Verbose] > │             method5(v25)                                                     │

00:02:16 #13733 [Verbose] > │     let v28 : string = $"__expect / actual: %A{v23} / expected: %A{10}"      │

00:02:16 #13734 [Verbose] > │     let v29 : bool = v27 = false                                             │

00:02:16 #13735 [Verbose] > │     if v29 then                                                              │

00:02:16 #13736 [Verbose] > │         failwith<unit> v28                                                   │

00:02:16 #13737 [Verbose] > │ method0()                                                                    │

00:02:16 #13738 [Verbose] > │                                                                              │

00:02:16 #13739 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:16 #13740 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:16 #13741 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:16 #13742 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:16 #13743 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:16 #13744 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:16 #13745 [Verbose] > │ 10                                                                           │

00:02:16 #13746 [Verbose] > │                                                                              │

00:02:16 #13747 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:16 #13748 [Verbose] >

00:02:16 #13749 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:16 #13750 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:16 #13751 [Verbose] > │ ## memoize                                                                   │

00:02:16 #13752 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:16 #13753 [Verbose] >

00:02:16 #13754 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:16 #13755 [Verbose] > inl memoize seq =

00:02:16 #13756 [Verbose] >     inl state = mut [[]]

00:02:16 #13757 [Verbose] >     fun n =>

00:02:16 #13758 [Verbose] >         match *state |> listm'.try_find (fun (n', _) => n' = n) with

00:02:16 #13759 [Verbose] >         | Some (_, v) => v

00:02:16 #13760 [Verbose] >         | None =>

00:02:16 #13761 [Verbose] >             inl new_state = seq n

00:02:16 #13762 [Verbose] >             state <- (n, new_state) :: *state

00:02:16 #13763 [Verbose] >             new_state

00:02:16 #13764 [Verbose] >

00:02:16 #13765 [Verbose] > inl memoize_ seq =

00:02:16 #13766 [Verbose] >     inl state = mut [[]]

00:02:16 #13767 [Verbose] >     fun n =>

00:02:16 #13768 [Verbose] >         match *state |> listm'.try_find_ (fun (n', _) => n' = n) with

00:02:16 #13769 [Verbose] >         | Some (_, v) => v

00:02:16 #13770 [Verbose] >         | None =>

00:02:16 #13771 [Verbose] >             inl new_state = seq n

00:02:16 #13772 [Verbose] >             state <- (n, new_state) :: *state

00:02:16 #13773 [Verbose] >             new_state

00:02:16 #13774 [Verbose] > [NbConvertApp] Writing 287626 bytes to file_system.dib.html

00:02:16 #13775 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1235-3526-39f80a5b191f\main.spi

00:02:17 #13776 [Verbose] >

00:02:17 #13777 [Verbose] > ╭─[ 394.24ms - stdout ]────────────────────────────────────────────────────────╮

00:02:17 #13778 [Verbose] > │ ()                                                                           │

00:02:17 #13779 [Verbose] > │                                                                              │

00:02:17 #13780 [Verbose] > │                                                                              │

00:02:17 #13781 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:17 #13782 [Verbose] >

00:02:17 #13783 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:17 #13784 [Verbose] > // // test

00:02:17 #13785 [Verbose] >

00:02:17 #13786 [Verbose] > inl seq =

00:02:17 #13787 [Verbose] >     fun n =>

00:02:17 #13788 [Verbose] >         n |> print_and_return |> Some

00:02:17 #13789 [Verbose] >     |> memoize_

00:02:17 #13790 [Verbose] >

00:02:17 #13791 [Verbose] > seq

00:02:17 #13792 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)

00:02:17 #13793 [Verbose] > |> listm'.sum

00:02:17 #13794 [Verbose] > |> _assert_eq 10

00:02:17 #13795 [Verbose] >

00:02:17 #13796 [Verbose] > seq

00:02:17 #13797 [Verbose] > |> take_while_ (fun n _ => n < 5)

00:02:17 #13798 [Verbose] > |> listm'.sum

00:02:17 #13799 [Verbose] > |> _assert_eq 10

00:02:17 #13800 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1275-7523-7641f96b6d0f\main.spi

00:02:17 #13801 [Verbose] >

00:02:17 #13802 [Verbose] > ╭─[ 674.34ms - stdout ]────────────────────────────────────────────────────────╮

00:02:17 #13803 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:02:17 #13804 [Verbose] > │     | US0_0                                                                  │

00:02:17 #13805 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:02:17 #13806 [Verbose] > │ and UH0 =                                                                    │

00:02:17 #13807 [Verbose] > │     | UH0_0 of int32 * US0 * UH0                                             │

00:02:17 #13808 [Verbose] > [NbConvertApp] Converting notebook sm'.dib.ipynb to html

00:02:17 #13809 [Verbose] > │     | UH0_1                                                                  │

00:02:17 #13810 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:17 #13811 [Verbose] >   validate(nb)

00:02:18 #13812 [Verbose] > │ and Mut0 = {mutable l0 : UH0}                                                │

00:02:18 #13813 [Verbose] > │ and UH1 =                                                                    │

00:02:18 #13814 [Verbose] > │     | UH1_0 of int32 * UH1                                                   │

00:02:18 #13815 [Verbose] > │     | UH1_1                                                                  │

00:02:18 #13816 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:18 #13817 [Verbose] > │     | US1_0                                                                  │

00:02:18 #13818 [Verbose] > │     | US1_1 of f1_0 : int32 * f1_1 : US0                                     │

00:02:18 #13819 [Verbose] > │ let rec method2 (v0 : int32, v1 : UH0) : US1 =                               │

00:02:18 #13820 [Verbose] > │     match v1 with                                                            │

00:02:18 #13821 [Verbose] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:18 #13822 [Verbose] > │         let v6 : bool = v3 = v0                                              │

00:02:18 #13823 [Verbose] > │         if v6 then                                                           │

00:02:18 #13824 [Verbose] > │             US1_1(v3, v4)                                                    │

00:02:18 #13825 [Verbose] > │         else                                                                 │

00:02:18 #13826 [Verbose] > │             method2(v0, v5)                                                  │

00:02:18 #13827 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:18 #13828 [Verbose] > │         US1_0                                                                │

00:02:18 #13829 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:02:18 #13830 [Verbose] > │     match v0 with                                                            │

00:02:18 #13831 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:18 #13832 [Verbose] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:02:18 #13833 [Verbose] > │         method3(v3, v4)                                                      │

00:02:18 #13834 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:18 #13835 [Verbose] > │         v1                                                                   │

00:02:18 #13836 [Verbose] > │ and method1 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 =                        │

00:02:18 #13837 [Verbose] > │     let v3 : UH0 = v0.l0                                                     │

00:02:18 #13838 [Verbose] > │     let v4 : US1 = method2(v2, v3)                                           │

00:02:18 #13839 [Verbose] > │     let v12 : US0 =                                                          │

00:02:18 #13840 [Verbose] > │         match v4 with                                                        │

00:02:18 #13841 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:02:18 #13842 [Verbose] > │             printfn $"print_and_return / x: {v2}"                            │

00:02:18 #13843 [Verbose] > │             let v7 : UH0 = v0.l0                                             │

00:02:18 #13844 [Verbose] > │             let v8 : US0 = US0_1(v2)                                         │

00:02:18 #13845 [Verbose] > │             let v9 : UH0 = UH0_0(v2, v8, v7)                                 │

00:02:18 #13846 [Verbose] > │             v0.l0 <- v9                                                      │

00:02:18 #13847 [Verbose] > │             US0_1(v2)                                                        │

00:02:18 #13848 [Verbose] > │         | US1_1(v5, v6) -> (* Some *)                                        │

00:02:18 #13849 [Verbose] > │             v6                                                               │

00:02:18 #13850 [Verbose] > │     match v12 with                                                           │

00:02:18 #13851 [Verbose] > │     | US0_1(v13) -> (* Some *)                                               │

00:02:18 #13852 [Verbose] > │         let v14 : bool = v13 < 5                                             │

00:02:18 #13853 [Verbose] > │         if v14 then                                                          │

00:02:18 #13854 [Verbose] > │             let v15 : UH1 = UH1_0(v13, v1)                                   │

00:02:18 #13855 [Verbose] > │             let v16 : int32 = v2 + 1                                         │

00:02:18 #13856 [Verbose] > │             method1(v0, v15, v16)                                            │

00:02:18 #13857 [Verbose] > │         else                                                                 │

00:02:18 #13858 [Verbose] > │             let v18 : UH1 = UH1_1                                            │

00:02:18 #13859 [Verbose] > │             method3(v1, v18)                                                 │

00:02:18 #13860 [Verbose] > │     | _ ->                                                                   │

00:02:18 #13861 [Verbose] > │         let v21 : UH1 = UH1_1                                                │

00:02:18 #13862 [Verbose] > │         method3(v1, v21)                                                     │

00:02:18 #13863 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 =                                 │

00:02:18 #13864 [Verbose] > │     match v0 with                                                            │

00:02:18 #13865 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:02:18 #13866 [Verbose] > │         let v4 : int32 = v1 + v2                                             │

00:02:18 #13867 [Verbose] > │         method4(v3, v4)                                                      │

00:02:18 #13868 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:18 #13869 [Debug] executeAsync / exitCode: 0 / output.Length: 18864

00:02:18 #13870 [Debug] main / executeCommand / exitCode: 0

00:02:18 #13871 [Verbose] > │         v1                                                                   │

00:02:18 #13872 [Verbose] > │ and method5 (v0 : bool) : bool =                                             │

00:02:18 #13873 [Verbose] > │     v0                                                                       │

00:02:18 #13874 [Verbose] > │ and method6 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 =                        │

00:02:18 #13875 [Verbose] > │     let v3 : UH0 = v0.l0                                                     │

00:02:18 #13876 [Verbose] > │     let v4 : US1 = method2(v2, v3)                                           │

00:02:18 #13877 [Verbose] > │     let v12 : US0 =                                                          │

00:02:18 #13878 [Verbose] > │         match v4 with                                                        │

00:02:18 #13879 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:02:18 #13880 [Verbose] > │             printfn $"print_and_return / x: {v2}"                            │

00:02:18 #13881 [Verbose] > │             let v7 : UH0 = v0.l0                                             │

00:02:18 #13882 [Verbose] > │             let v8 : US0 = US0_1(v2)                                         │

00:02:18 #13883 [Verbose] > │             let v9 : UH0 = UH0_0(v2, v8, v7)                                 │

00:02:18 #13884 [Verbose] > │             v0.l0 <- v9                                                      │

00:02:18 #13885 [Verbose] > │             US0_1(v2)                                                        │

00:02:18 #13886 [Verbose] > │         | US1_1(v5, v6) -> (* Some *)                                        │

00:02:18 #13887 [Verbose] > │             v6                                                               │

00:02:19 #13888 [Verbose] > │     match v12 with                                                           │

00:02:19 #13889 [Verbose] > │     | US0_1(v13) -> (* Some *)                                               │

00:02:19 #13890 [Verbose] > │         let v14 : bool = v13 < 5                                             │

00:02:19 #13891 [Verbose] > │         if v14 then                                                          │

00:02:19 #13892 [Verbose] > │             let v15 : UH1 = UH1_0(v13, v1)                                   │

00:02:19 #13893 [Verbose] > │             let v16 : int32 = v2 + 1                                         │

00:02:19 #13894 [Verbose] > │             method6(v0, v15, v16)                                            │

00:02:19 #13895 [Verbose] > │         else                                                                 │

00:02:19 #13896 [Verbose] > │             let v18 : UH1 = UH1_1                                            │

00:02:19 #13897 [Verbose] > │             method3(v1, v18)                                                 │

00:02:19 #13898 [Verbose] > │     | _ ->                                                                   │

00:02:19 #13899 [Verbose] > │         let v21 : UH1 = UH1_1                                                │

00:02:19 #13900 [Verbose] > │         method3(v1, v21)                                                     │

00:02:19 #13901 [Verbose] > │ and method0 () : unit =                                                      │

00:02:19 #13902 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:02:19 #13903 [Verbose] > │     let v1 : Mut0 = {l0 = v0} : Mut0                                         │

00:02:19 #13904 [Verbose] > │     let v2 : UH1 = UH1_1                                                     │

00:02:19 #13905 [Verbose] > │     let v3 : int32 = 0                                                       │

00:02:19 #13906 [Verbose] > │     let v4 : UH1 = method1(v1, v2, v3)                                       │

00:02:19 #13907 [Verbose] > │     let v5 : int32 = 0                                                       │

00:02:19 #13908 [Verbose] > │     let v6 : int32 = method4(v4, v5)                                         │

00:02:19 #13909 [Verbose] > │     let v7 : string = $"%A{v6}"                                              │

00:02:19 #13910 [Verbose] > │     System.Console.WriteLine v7                                              │

00:02:19 #13911 [Verbose] > │     let v8 : bool = v6 = 10                                                  │

00:02:19 #13912 [Verbose] > │     let v10 : bool =                                                         │

00:02:19 #13913 [Verbose] > │         if v8 then                                                           │

00:02:19 #13914 [Verbose] > │             true                                                             │

00:02:19 #13915 [Verbose] > │         else                                                                 │

00:02:19 #13916 [Verbose] > │             method5(v8)                                                      │

00:02:19 #13917 [Verbose] > │     let v11 : string = $"__expect / actual: %A{v6} / expected: %A{10}"       │

00:02:19 #13918 [Verbose] > │     let v12 : bool = v10 = false                                             │

00:02:19 #13919 [Verbose] > │     if v12 then                                                              │

00:02:19 #13920 [Verbose] > │         failwith<unit> v11                                                   │

00:02:19 #13921 [Verbose] > │     let v13 : UH1 = UH1_1                                                    │

00:02:19 #13922 [Verbose] > │     let v14 : int32 = 0                                                      │

00:02:19 #13923 [Verbose] > │     let v15 : UH1 = method6(v1, v13, v14)                                    │

00:02:19 #13924 [Verbose] > │     let v16 : int32 = 0                                                      │

00:02:19 #13925 [Verbose] > │     let v17 : int32 = method4(v15, v16)                                      │

00:02:19 #13926 [Verbose] > │     let v18 : string = $"%A{v17}"                                            │

00:02:19 #13927 [Verbose] > │     System.Console.WriteLine v18                                             │

00:02:19 #13928 [Verbose] > │     let v19 : bool = v17 = 10                                                │

00:02:19 #13929 [Verbose] > │     let v21 : bool =                                                         │

00:02:19 #13930 [Verbose] > │         if v19 then                                                          │

00:02:19 #13931 [Verbose] > │             true                                                             │

00:02:19 #13932 [Verbose] > │         else                                                                 │

00:02:19 #13933 [Verbose] > │             method5(v19)                                                     │

00:02:19 #13934 [Verbose] > │     let v22 : string = $"__expect / actual: %A{v17} / expected: %A{10}"      │

00:02:19 #13935 [Verbose] > │     let v23 : bool = v21 = false                                             │

00:02:19 #13936 [Verbose] > │     if v23 then                                                              │

00:02:19 #13937 [Verbose] > │         failwith<unit> v22                                                   │

00:02:19 #13938 [Verbose] > │ method0()                                                                    │

00:02:19 #13939 [Verbose] > │                                                                              │

00:02:19 #13940 [Verbose] > │ print_and_return / x: 0                                                      │

00:02:19 #13941 [Verbose] > │ print_and_return / x: 1                                                      │

00:02:19 #13942 [Verbose] > │ print_and_return / x: 2                                                      │

00:02:19 #13943 [Verbose] > │ print_and_return / x: 3                                                      │

00:02:19 #13944 [Verbose] > │ print_and_return / x: 4                                                      │

00:02:19 #13945 [Verbose] > │ print_and_return / x: 5                                                      │

00:02:19 #13946 [Verbose] > │ 10                                                                           │

00:02:19 #13947 [Verbose] > │ 10                                                                           │

00:02:19 #13948 [Verbose] > │                                                                              │

00:02:19 #13949 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:19 #13950 [Verbose] >

00:02:19 #13951 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:19 #13952 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:19 #13953 [Verbose] > │ ## iterate                                                                   │

00:02:19 #13954 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:19 #13955 [Verbose] >

00:02:19 #13956 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:19 #13957 [Verbose] > inl iterate f x0 num_steps =

00:02:19 #13958 [Verbose] >     inl rec loop x n =

00:02:19 #13959 [Verbose] >         if n <= 0

00:02:19 #13960 [Verbose] >         then x

00:02:19 #13961 [Verbose] >         else loop (f x) (n - 1)

00:02:19 #13962 [Verbose] >     loop x0 num_steps

00:02:19 #13963 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1484-8450-851d11890f48\main.spi

00:02:19 #13964 [Verbose] >

00:02:19 #13965 [Verbose] > ╭─[ 338.13ms - stdout ]────────────────────────────────────────────────────────╮

00:02:19 #13966 [Verbose] > │ ()                                                                           │

00:02:19 #13967 [Verbose] > │                                                                              │

00:02:19 #13968 [Verbose] > │                                                                              │

00:02:19 #13969 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:19 #13970 [Verbose] >

00:02:19 #13971 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:19 #13972 [Verbose] > // // test

00:02:19 #13973 [Verbose] >

00:02:19 #13974 [Verbose] > 10i32 |> iterate ((*) 2) 1i32

00:02:19 #13975 [Verbose] > |> _assert_eq 1024

00:02:19 #13976 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1517-1798-1a0822af9c2b\main.spi

00:02:19 #13977 [Verbose] >

00:02:19 #13978 [Verbose] > ╭─[ 356.82ms - stdout ]────────────────────────────────────────────────────────╮

00:02:19 #13979 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:19 #13980 [Verbose] > │     let v0 : string = $"%A{1024}"                                            │

00:02:19 #13981 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:19 #13982 [Verbose] > │     let v1 : string = $"__expect / actual: %A{1024} / expected: %A{1024}"    │

00:02:19 #13983 [Verbose] > │     ()                                                                       │

00:02:19 #13984 [Verbose] > │ method0()                                                                    │

00:02:19 #13985 [Verbose] > │                                                                              │

00:02:19 #13986 [Verbose] > │ 1024                                                                         │

00:02:19 #13987 [Verbose] > │                                                                              │

00:02:19 #13988 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:19 #13989 [Verbose] >

00:02:19 #13990 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:19 #13991 [Verbose] > inl iterate_ f x0 num_steps =

00:02:19 #13992 [Verbose] >     let rec loop x n =

00:02:19 #13993 [Verbose] >         if n <= 0

00:02:19 #13994 [Verbose] >         then x

00:02:19 #13995 [Verbose] >         else loop (f x) (n - 1)

00:02:19 #13996 [Verbose] >     loop x0 num_steps

00:02:20 #13997 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1554-5494-56eccbf21b86\main.spi

00:02:20 #13998 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:20 #13999 [Verbose] >   return _pygments_highlight(

00:02:20 #14000 [Verbose] >

00:02:20 #14001 [Verbose] > ╭─[ 325.78ms - stdout ]────────────────────────────────────────────────────────╮

00:02:20 #14002 [Verbose] > │ ()                                                                           │

00:02:20 #14003 [Verbose] > │                                                                              │

00:02:20 #14004 [Verbose] > │                                                                              │

00:02:20 #14005 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:20 #14006 [Verbose] >

00:02:20 #14007 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:20 #14008 [Verbose] > // // test

00:02:20 #14009 [Verbose] >

00:02:20 #14010 [Verbose] > 10i32 |> iterate_ ((*) 2) 1i32

00:02:20 #14011 [Verbose] > |> _assert_eq 1024

00:02:20 #14012 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1587-8779-85a21b72f40f\main.spi

00:02:20 #14013 [Verbose] >

00:02:20 #14014 [Verbose] >

00:02:20 #14015 [Verbose] > ╭─[ 368.42ms - stdout ]────────────────────────────────────────────────────────╮

00:02:20 #14016 [Verbose] > │ let rec method1 (v0 : int32, v1 : int32) : int32 =                           │

00:02:20 #14017 [Verbose] > │     let v2 : bool = v1 <= 0                                                  │

00:02:20 #14018 [Verbose] > │     if v2 then                                                               │

00:02:20 #14019 [Verbose] > │         v0                                                                   │

00:02:20 #14020 [Verbose] > │     else                                                                     │

00:02:20 #14021 [Verbose] > │         let v3 : int32 = 2 * v0                                              │

00:02:20 #14022 [Verbose] > │         let v4 : int32 = v1 - 1                                              │

00:02:20 #14023 [Verbose] > │         method1(v3, v4)                                                      │

00:02:20 #14024 [Verbose] > │ and method2 (v0 : bool) : bool =                                             │

00:02:20 #14025 [Verbose] > │     v0                                                                       │

00:02:20 #14026 [Verbose] > │ and method0 () : unit =                                                      │

00:02:20 #14027 [Verbose] > │     let v0 : int32 = 1                                                       │

00:02:20 #14028 [Verbose] > │     let v1 : int32 = 10                                                      │

00:02:20 #14029 [Verbose] > │     let v2 : int32 = method1(v0, v1)                                         │

00:02:20 #14030 [Verbose] > │     let v3 : string = $"%A{v2}"                                              │

00:02:20 #14031 [Verbose] > │     System.Console.WriteLine v3                                              │

00:02:20 #14032 [Verbose] > │     let v4 : bool = v2 = 1024                                                │

00:02:20 #14033 [Verbose] > │     let v6 : bool =                                                          │

00:02:20 #14034 [Verbose] > │         if v4 then                                                           │

00:02:20 #14035 [Verbose] > │             true                                                             │

00:02:20 #14036 [Verbose] > │         else                                                                 │

00:02:20 #14037 [Verbose] > │             method2(v4)                                                      │

00:02:20 #14038 [Verbose] > │     let v7 : string = $"__expect / actual: %A{v2} / expected: %A{1024}"      │

00:02:20 #14039 [Verbose] > │     let v8 : bool = v6 = false                                               │

00:02:20 #14040 [Verbose] > │     if v8 then                                                               │

00:02:20 #14041 [Verbose] > │         failwith<unit> v7                                                    │

00:02:20 #14042 [Verbose] > │ method0()                                                                    │

00:02:20 #14043 [Verbose] > │                                                                              │

00:02:20 #14044 [Verbose] > │ 1024                                                                         │

00:02:20 #14045 [Verbose] > │                                                                              │

00:02:20 #14046 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:20 #14047 [Verbose] >

00:02:20 #14048 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:20 #14049 [Verbose] > inl iterate' f x0 num_steps =

00:02:20 #14050 [Verbose] >     listm.init num_steps id

00:02:20 #14051 [Verbose] >     |> listm.fold (fun x _ => f x) x0

00:02:20 #14052 [Verbose] > ╭─[ 17.36s - stdout ]──────────────────────────────────────────────────────────╮

00:02:20 #14053 [Verbose] > │ type UH0 =                                                                   │

00:02:20 #14054 [Verbose] > │     | UH0_0 of float * float * UH0                                           │

00:02:20 #14055 [Verbose] > │     | UH0_1                                                                  │

00:02:20 #14056 [Verbose] > │ and Mut0 = {mutable l0 : uint64}                                             │

00:02:20 #14057 [Verbose] > │ and UH1 =                                                                    │

00:02:20 #14058 [Verbose] > │     | UH1_0 of int32 * string * (float -> float) * UH1                       │

00:02:20 #14059 [Verbose] > │     | UH1_1                                                                  │

00:02:20 #14060 [Verbose] > │ and Mut1 = {mutable l0 : int32}                                              │

00:02:20 #14061 [Verbose] > │ and UH2 =                                                                    │

00:02:20 #14062 [Verbose] > │     | UH2_0 of string * UH2                                                  │

00:02:20 #14063 [Verbose] > │     | UH2_1                                                                  │

00:02:20 #14064 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:20 #14065 [Verbose] > │     | US0_0                                                                  │

00:02:20 #14066 [Verbose] > │     | US0_1 of f1_0 : System.ConsoleColor                                    │

00:02:20 #14067 [Verbose] > │ and UH3 =                                                                    │

00:02:20 #14068 [Verbose] > │     | UH3_0 of int64 * int64 * UH3                                           │

00:02:20 #14069 [Verbose] > │     | UH3_1                                                                  │

00:02:20 #14070 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64}       │

00:02:20 #14071 [Verbose] > │ and UH4 =                                                                    │

00:02:20 #14072 [Verbose] > │     | UH4_0 of UH2 * US0 * UH4                                               │

00:02:20 #14073 [Verbose] > │     | UH4_1                                                                  │

00:02:20 #14074 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:20 #14075 [Verbose] > │     | US1_0                                                                  │

00:02:20 #14076 [Verbose] > │     | US1_1 of f1_0 : int64                                                  │

00:02:20 #14077 [Verbose] > │ and UH5 =                                                                    │

00:02:20 #14078 [Verbose] > │     | UH5_0 of int32 * int64 * UH5                                           │

00:02:20 #14079 [Verbose] > │     | UH5_1                                                                  │

00:02:20 #14080 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32}       │

00:02:20 #14081 [Verbose] > │ and UH6 =                                                                    │

00:02:20 #14082 [Verbose] > │     | UH6_0 of int32 * string * UH6                                          │

00:02:20 #14083 [Verbose] > │     | UH6_1                                                                  │

00:02:20 #14084 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 =                           │

00:02:20 #14085 [Verbose] > │     match v0 with                                                            │

00:02:20 #14086 [Verbose] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14087 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:02:20 #14088 [Verbose] > │         method2(v4, v5)                                                      │

00:02:20 #14089 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:20 #14090 [Verbose] > │         v1                                                                   │

00:02:20 #14091 [Verbose] > │ and method3 (v0 : (struct (float * float) []), v1 : UH0, v2 : uint64) :      │

00:02:20 #14092 [Verbose] > │ uint64 =                                                                     │

00:02:20 #14093 [Verbose] > │     match v1 with                                                            │

00:02:20 #14094 [Verbose] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:20 #14095 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:20 #14096 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:02:20 #14097 [Verbose] > │         method3(v0, v5, v6)                                                  │

00:02:20 #14098 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:20 #14099 [Verbose] > │         v2                                                                   │

00:02:20 #14100 [Verbose] > │ and method1 (v0 : UH0) : (struct (float * float) []) =                       │

00:02:20 #14101 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:20 #14102 [Verbose] > │     let v2 : uint64 = method2(v0, v1)                                        │

00:02:20 #14103 [Verbose] > │     let v3 : (struct (float * float) []) = Array.zeroCreate<struct (float *  │

00:02:20 #14104 [Verbose] > │ float)> (System.Convert.ToInt32(v2))                                         │

00:02:20 #14105 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:20 #14106 [Verbose] > │     let v5 : uint64 = method3(v3, v0, v4)                                    │

00:02:20 #14107 [Verbose] > │     v3                                                                       │

00:02:20 #14108 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool =                                │

00:02:20 #14109 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:02:20 #14110 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:20 #14111 [Verbose] > │     v3                                                                       │

00:02:20 #14112 [Verbose] > │ and closure1 () (v0 : float) : float =                                       │

00:02:20 #14113 [Verbose] > │     let v1 : float = v0 + 1.0                                                │

00:02:20 #14114 [Verbose] > │     v1                                                                       │

00:02:20 #14115 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 =                               │

00:02:20 #14116 [Verbose] > │     match v0 with                                                            │

00:02:20 #14117 [Verbose] > │     | UH1_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:02:20 #14118 [Verbose] > │         let v6 : uint64 = v1 + 1UL                                           │

00:02:20 #14119 [Verbose] > │         method6(v5, v6)                                                      │

00:02:20 #14120 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:20 #14121 [Verbose] > │         v1                                                                   │

00:02:20 #14122 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (float -> float)) []), v1 : UH1, │

00:02:20 #14123 [Verbose] > │ v2 : uint64) : uint64 =                                                      │

00:02:20 #14124 [Verbose] > │     match v1 with                                                            │

00:02:20 #14125 [Verbose] > │     | UH1_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:02:20 #14126 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:02:20 #14127 [Verbose] > │         let v7 : uint64 = v2 + 1UL                                           │

00:02:20 #14128 [Verbose] > │         method7(v0, v6, v7)                                                  │

00:02:20 #14129 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:02:20 #14130 [Verbose] > │         v2                                                                   │

00:02:20 #14131 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (float -> float)) []) =   │

00:02:20 #14132 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:20 #14133 [Verbose] > │     let v2 : uint64 = method6(v0, v1)                                        │

00:02:20 #14134 [Verbose] > │     let v3 : (struct (int32 * string * (float -> float)) []) =               │

00:02:20 #14135 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (float -> float))>                 │

00:02:20 #14136 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:02:20 #14137 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:20 #14138 [Verbose] > │     let v5 : uint64 = method7(v3, v0, v4)                                    │

00:02:20 #14139 [Verbose] > │     v3                                                                       │

00:02:20 #14140 [Verbose] > │ and method8 (v0 : Mut1) : bool =                                             │

00:02:20 #14141 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:20 #14142 [Verbose] > │     let v2 : bool = v1 < 2000001                                             │

00:02:20 #14143 [Verbose] > │     v2                                                                       │

00:02:20 #14144 [Verbose] > │ and closure2 (v0 : float, v1 : (float -> float)) (v2 : int32) : float =      │

00:02:20 #14145 [Verbose] > │     v1 v0                                                                    │

00:02:20 #14146 [Verbose] > │ and method9 (v0 : float, v1 : (float []), v2 : uint64) : bool =              │

00:02:20 #14147 [Verbose] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:02:20 #14148 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:02:20 #14149 [Verbose] > │     if v4 then                                                               │

00:02:20 #14150 [Verbose] > │         let v5 : float = v1.[int v2]                                         │

00:02:20 #14151 [Verbose] > │         let v6 : bool = v0 = v5                                              │

00:02:20 #14152 [Verbose] > │         if v6 then                                                           │

00:02:20 #14153 [Verbose] > │             let v7 : uint64 = v2 + 1UL                                       │

00:02:20 #14154 [Verbose] > │             method9(v0, v1, v7)                                              │

00:02:20 #14155 [Verbose] > │         else                                                                 │

00:02:20 #14156 [Verbose] > │             false                                                            │

00:02:20 #14157 [Verbose] > │     else                                                                     │

00:02:20 #14158 [Verbose] > │         true                                                                 │

00:02:20 #14159 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool =                               │

00:02:20 #14160 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:02:20 #14161 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:20 #14162 [Verbose] > │     v3                                                                       │

00:02:20 #14163 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 =                                    │

00:02:20 #14164 [Verbose] > │     match v0 with                                                            │

00:02:20 #14165 [Verbose] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14166 [Verbose] > │         let v5 : UH3 = UH3_0(v2, v3, v1)                                     │

00:02:20 #14167 [Verbose] > │         method11(v4, v5)                                                     │

00:02:20 #14168 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:02:20 #14169 [Verbose] > │         v1                                                                   │

00:02:20 #14170 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 =                                │

00:02:20 #14171 [Verbose] > │     match v0 with                                                            │

00:02:20 #14172 [Verbose] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14173 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:02:20 #14174 [Verbose] > │         method13(v4, v5)                                                     │

00:02:20 #14175 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:02:20 #14176 [Verbose] > │         v1                                                                   │

00:02:20 #14177 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) :      │

00:02:20 #14178 [Verbose] > │ int32 =                                                                      │

00:02:20 #14179 [Verbose] > │     match v1 with                                                            │

00:02:20 #14180 [Verbose] > │     | UH3_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:20 #14181 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:20 #14182 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:02:20 #14183 [Verbose] > │         method14(v0, v5, v6)                                                 │

00:02:20 #14184 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:02:20 #14185 [Verbose] > │         v2                                                                   │

00:02:20 #14186 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) =                      │

00:02:20 #14187 [Verbose] > │     let v1 : int32 = 0                                                       │

00:02:20 #14188 [Verbose] > │     let v2 : int32 = method13(v0, v1)                                        │

00:02:20 #14189 [Verbose] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:02:20 #14190 [Verbose] > │ int64)> (v2)                                                                 │

00:02:20 #14191 [Verbose] > │     let v4 : int32 = 0                                                       │

00:02:20 #14192 [Verbose] > │     let v5 : int32 = method14(v3, v0, v4)                                    │

00:02:20 #14193 [Verbose] > │     v3                                                                       │

00:02:20 #14194 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool =                                │

00:02:20 #14195 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:20 #14196 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:20 #14197 [Verbose] > │     v3                                                                       │

00:02:20 #14198 [Verbose] > │ and closure3 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:02:20 #14199 [Verbose] > │     v1                                                                       │

00:02:20 #14200 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 =                              │

00:02:20 #14201 [Verbose] > │     match v0 with                                                            │

00:02:20 #14202 [Verbose] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14203 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:02:20 #14204 [Verbose] > │         method17(v4, v5)                                                     │

00:02:20 #14205 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:02:20 #14206 [Verbose] > │         v1                                                                   │

00:02:20 #14207 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64  │

00:02:20 #14208 [Verbose] > │ =                                                                            │

00:02:20 #14209 [Verbose] > │     match v1 with                                                            │

00:02:20 #14210 [Verbose] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:20 #14211 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:20 #14212 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:02:20 #14213 [Verbose] > │         method18(v0, v5, v6)                                                 │

00:02:20 #14214 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:02:20 #14215 [Verbose] > │         v2                                                                   │

00:02:20 #14216 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) =                          │

00:02:20 #14217 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:20 #14218 [Verbose] > │     let v2 : uint64 = method17(v0, v1)                                       │

00:02:20 #14219 [Verbose] > │     let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)>  │

00:02:20 #14220 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:02:20 #14221 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:20 #14222 [Verbose] > │     let v5 : uint64 = method18(v3, v0, v4)                                   │

00:02:20 #14223 [Verbose] > │     v3                                                                       │

00:02:20 #14224 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:02:20 #14225 [Verbose] > │     match v0 with                                                            │

00:02:20 #14226 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:02:20 #14227 [Verbose] > │         let v4 : uint64 = v1 + 1UL                                           │

00:02:20 #14228 [Verbose] > │         method20(v3, v4)                                                     │

00:02:20 #14229 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:20 #14230 [Verbose] > │         v1                                                                   │

00:02:20 #14231 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:02:20 #14232 [Verbose] > │     match v1 with                                                            │

00:02:20 #14233 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:02:20 #14234 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:02:20 #14235 [Verbose] > │         let v5 : uint64 = v2 + 1UL                                           │

00:02:20 #14236 [Verbose] > │         method21(v0, v4, v5)                                                 │

00:02:20 #14237 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:20 #14238 [Verbose] > │         v2                                                                   │

00:02:20 #14239 [Verbose] > │ and method19 (v0 : UH2) : (string []) =                                      │

00:02:20 #14240 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:20 #14241 [Verbose] > │     let v2 : uint64 = method20(v0, v1)                                       │

00:02:20 #14242 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:02:20 #14243 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:02:20 #14244 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:20 #14245 [Verbose] > │     let v5 : uint64 = method21(v3, v0, v4)                                   │

00:02:20 #14246 [Verbose] > │     v3                                                                       │

00:02:20 #14247 [Verbose] > │ and closure4 () (v0 : int64) : US1 =                                         │

00:02:20 #14248 [Verbose] > │     US1_1(v0)                                                                │

00:02:20 #14249 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool =                               │

00:02:20 #14250 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:02:20 #14251 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:20 #14252 [Verbose] > │     v3                                                                       │

00:02:20 #14253 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 =                                    │

00:02:20 #14254 [Verbose] > │     match v0 with                                                            │

00:02:20 #14255 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14256 [Verbose] > │         let v5 : UH5 = UH5_0(v2, v3, v1)                                     │

00:02:20 #14257 [Verbose] > │         method23(v4, v5)                                                     │

00:02:20 #14258 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:20 #14259 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1627-2732-2113dd53ca9e\main.spi

00:02:20 #14260 [Verbose] > │         v1                                                                   │

00:02:20 #14261 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 =                                │

00:02:20 #14262 [Verbose] > │     match v0 with                                                            │

00:02:20 #14263 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14264 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:02:20 #14265 [Verbose] > │         method25(v4, v5)                                                     │

00:02:20 #14266 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:20 #14267 [Verbose] > │         v1                                                                   │

00:02:20 #14268 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) :      │

00:02:20 #14269 [Verbose] > │ int32 =                                                                      │

00:02:20 #14270 [Verbose] > │     match v1 with                                                            │

00:02:20 #14271 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:20 #14272 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:20 #14273 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:02:20 #14274 [Verbose] > │         method26(v0, v5, v6)                                                 │

00:02:20 #14275 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:20 #14276 [Verbose] > │         v2                                                                   │

00:02:20 #14277 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:02:20 #14278 [Verbose] > │     let v1 : int32 = 0                                                       │

00:02:20 #14279 [Verbose] > │     let v2 : int32 = method25(v0, v1)                                        │

00:02:20 #14280 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:02:20 #14281 [Verbose] > │ int64)> (v2)                                                                 │

00:02:20 #14282 [Verbose] > │     let v4 : int32 = 0                                                       │

00:02:20 #14283 [Verbose] > │     let v5 : int32 = method26(v3, v0, v4)                                    │

00:02:20 #14284 [Verbose] > │     v3                                                                       │

00:02:20 #14285 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) =       │

00:02:20 #14286 [Verbose] > │     match v0 with                                                            │

00:02:20 #14287 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:02:20 #14288 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:02:20 #14289 [Verbose] > │         let v6 : UH6 = UH6_0(v2, v3, v1)                                     │

00:02:20 #14290 [Verbose] > │         method27(v4, v6, v5)                                                 │

00:02:20 #14291 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:20 #14292 [Verbose] > │         struct (v1, v2)                                                      │

00:02:20 #14293 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:02:20 #14294 [Verbose] > │     match v0 with                                                            │

00:02:20 #14295 [Verbose] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:20 #14296 [Verbose] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:02:20 #14297 [Verbose] > │         method28(v4, v5)                                                     │

00:02:20 #14298 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:02:20 #14299 [Verbose] > │         v1                                                                   │

00:02:20 #14300 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 =            │

00:02:20 #14301 [Verbose] > │     match v1 with                                                            │

00:02:20 #14302 [Verbose] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:20 #14303 [Verbose] > │         let v6 : UH2 = method29(v0, v5, v2)                                  │

00:02:20 #14304 [Verbose] > │         let v7 : int64 = v0.[v3]                                             │

00:02:20 #14305 [Verbose] > │         let v8 : int32 = int32 v7                                            │

00:02:20 #14306 [Verbose] > │         let v9 : string = v4.PadRight v8                                     │

00:02:20 #14307 [Verbose] > │         UH2_0(v9, v6)                                                        │

00:02:20 #14308 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:02:20 #14309 [Verbose] > │         v2                                                                   │

00:02:20 #14310 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 =                                │

00:02:20 #14311 [Verbose] > │     match v0 with                                                            │

00:02:20 #14312 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:02:20 #14313 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:02:20 #14314 [Verbose] > │         method31(v3, v4)                                                     │

00:02:20 #14315 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:20 #14316 [Verbose] > │         v1                                                                   │

00:02:20 #14317 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:02:20 #14318 [Verbose] > │     match v1 with                                                            │

00:02:20 #14319 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:02:20 #14320 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:02:20 #14321 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:02:20 #14322 [Verbose] > │         method32(v0, v4, v5)                                                 │

00:02:20 #14323 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:02:20 #14324 [Verbose] > │         v2                                                                   │

00:02:20 #14325 [Verbose] > │ and method30 (v0 : UH2) : (string []) =                                      │

00:02:20 #14326 [Verbose] > │     let v1 : int32 = 0                                                       │

00:02:20 #14327 [Verbose] > │     let v2 : int32 = method31(v0, v1)                                        │

00:02:21 #14328 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:02:21 #14329 [Verbose] > │     let v4 : int32 = 0                                                       │

00:02:21 #14330 [Verbose] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:02:21 #14331 [Verbose] > │     v3                                                                       │

00:02:21 #14332 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:02:21 #14333 [Verbose] > │     match v0 with                                                            │

00:02:21 #14334 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:02:21 #14335 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:02:21 #14336 [Verbose] > │         method34(v4, v5)                                                     │

00:02:21 #14337 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:21 #14338 [Verbose] >

00:02:21 #14339 [Verbose] > ╭─[ 337.52ms - stdout ]────────────────────────────────────────────────────────╮

00:02:21 #14340 [Verbose] > │ ()                                                                           │

00:02:21 #14341 [Verbose] > │                                                                              │

00:02:21 #14342 [Verbose] > │         v1                                                                   │

00:02:21 #14343 [Verbose] > │                                                                              │

00:02:21 #14344 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:21 #14345 [Verbose] >

00:02:21 #14346 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:21 #14347 [Verbose] > // // test

00:02:21 #14348 [Verbose] >

00:02:21 #14349 [Verbose] > 10i32 |> iterate' ((*) 2) 1i32

00:02:21 #14350 [Verbose] > |> _assert_eq 1024

00:02:21 #14351 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) :     │

00:02:21 #14352 [Verbose] > │ uint64 =                                                                     │

00:02:21 #14353 [Verbose] > │     match v1 with                                                            │

00:02:21 #14354 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:02:21 #14355 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:02:21 #14356 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:02:21 #14357 [Verbose] > │         method35(v0, v5, v6)                                                 │

00:02:21 #14358 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:02:21 #14359 [Verbose] > │         v2                                                                   │

00:02:21 #14360 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:02:21 #14361 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:02:21 #14362 [Verbose] > │     let v2 : uint64 = method34(v0, v1)                                       │

00:02:21 #14363 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:02:21 #14364 [Verbose] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:02:21 #14365 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:02:21 #14366 [Verbose] > │     let v5 : uint64 = method35(v3, v0, v4)                                   │

00:02:21 #14367 [Verbose] > │     v3                                                                       │

00:02:21 #14368 [Verbose] > │ and closure5 () struct (v0 : int32, v1 : int64) : int64 =                    │

00:02:21 #14369 [Verbose] > │     v1                                                                       │

00:02:21 #14370 [Verbose] > │ and closure0 () () : unit =                                                  │

00:02:21 #14371 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:02:21 #14372 [Verbose] > │     let v1 : string = nameof v0                                              │

00:02:21 #14373 [Verbose] > │     let v2 : string = ""                                                     │

00:02:21 #14374 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:21 #14375 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:21 #14376 [Verbose] > │     let v3 : string = $"Test: {v1}"                                          │

00:02:21 #14377 [Verbose] > │     System.Console.WriteLine v3                                              │

00:02:21 #14378 [Verbose] > │     let v4 : float = 0.0                                                     │

00:02:21 #14379 [Verbose] > │     let v5 : float = 1.0                                                     │

00:02:21 #14380 [Verbose] > │     let v6 : float = 2.0                                                     │

00:02:21 #14381 [Verbose] > │     let v7 : float = 3.0                                                     │

00:02:21 #14382 [Verbose] > │     let v8 : float = 5.0                                                     │

00:02:21 #14383 [Verbose] > │     let v9 : float = 6.0                                                     │

00:02:21 #14384 [Verbose] > │     let v10 : UH0 = UH0_1                                                    │

00:02:21 #14385 [Verbose] > │     let v11 : UH0 = UH0_0(v8, v9, v10)                                       │

00:02:21 #14386 [Verbose] > │     let v12 : UH0 = UH0_0(v6, v7, v11)                                       │

00:02:21 #14387 [Verbose] > │     let v13 : UH0 = UH0_0(v4, v5, v12)                                       │

00:02:21 #14388 [Verbose] > │     let v14 : (struct (float * float) []) = method1(v13)                     │

00:02:21 #14389 [Verbose] > │     let v15 : uint64 = System.Convert.ToUInt64 v14.Length                    │

00:02:21 #14390 [Verbose] > │     let v16 : (struct (string * string * string * (int64 [])) []) =          │

00:02:21 #14391 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:02:21 #14392 [Verbose] > │ (System.Convert.ToInt32(v15))                                                │

00:02:21 #14393 [Verbose] > │     let v17 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:21 #14394 [Verbose] > │     while method4(v15, v17) do                                               │

00:02:21 #14395 [Verbose] > │         let v19 : uint64 = v17.l0                                            │

00:02:21 #14396 [Verbose] > │         let struct (v20 : float, v21 : float) = v14.[int v19]                │

00:02:21 #14397 [Verbose] > │         let v22 : string = $"%A{v20}"                                        │

00:02:21 #14398 [Verbose] > │         System.Console.WriteLine v2                                          │

00:02:21 #14399 [Verbose] > │         let v23 : string = $"Solution: {v22}  "                              │

00:02:21 #14400 [Verbose] > │         System.Console.WriteLine v23                                         │

00:02:21 #14401 [Verbose] > │         let v24 : int32 = 0                                                  │

00:02:21 #14402 [Verbose] > │         let v25 : string = "A"                                               │

00:02:21 #14403 [Verbose] > │         let v26 : (float -> float) = closure1()                              │

00:02:21 #14404 [Verbose] > │         let v27 : UH1 = UH1_1                                                │

00:02:21 #14405 [Verbose] > │         let v28 : UH1 = UH1_0(v24, v25, v26, v27)                            │

00:02:21 #14406 [Verbose] > │         let v29 : (struct (int32 * string * (float -> float)) []) =          │

00:02:21 #14407 [Verbose] > │ method5(v28)                                                                 │

00:02:21 #14408 [Verbose] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:02:21 #14409 [Verbose] > │         let v31 : (struct (float * int64) []) = Array.zeroCreate<struct      │

00:02:21 #14410 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30))                               │

00:02:21 #14411 [Verbose] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #14412 [Verbose] > │         while method4(v30, v32) do                                           │

00:02:21 #14413 [Verbose] > │             let v34 : uint64 = v32.l0                                        │

00:02:21 #14414 [Verbose] > │             let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │

00:02:21 #14415 [Verbose] > │ v29.[int v34]                                                                │

00:02:21 #14416 [Verbose] > │             let mutable result = None                                        │

00:02:21 #14417 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:21 #14418 [Verbose] > │             ()                                                               │

00:02:21 #14419 [Verbose] > │             #endif                                                           │

00:02:21 #14420 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:21 #14421 [Verbose] > │             ()                                                               │

00:02:21 #14422 [Verbose] > │             #endif                                                           │

00:02:21 #14423 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:21 #14424 [Verbose] > │             System.GC.Collect ()                                             │

00:02:21 #14425 [Verbose] > │             ()                                                               │

00:02:21 #14426 [Verbose] > │             #endif                                                           │

00:02:21 #14427 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:21 #14428 [Verbose] > │             System.GC.Collect ()                                             │

00:02:21 #14429 [Verbose] > │             ()                                                               │

00:02:21 #14430 [Verbose] > │             #endif                                                           │

00:02:21 #14431 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:21 #14432 [Verbose] > │             System.GC.Collect ()                                             │

00:02:21 #14433 [Verbose] > │             ()                                                               │

00:02:21 #14434 [Verbose] > │             #endif                                                           │

00:02:21 #14435 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:21 #14436 [Verbose] > │             result |> Option.get                                             │

00:02:21 #14437 [Verbose] > │             let v38 : (unit -> System.Diagnostics.Stopwatch) =               │

00:02:21 #14438 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:02:21 #14439 [Verbose] > │             let v39 : System.Diagnostics.Stopwatch = v38 ()                  │

00:02:21 #14440 [Verbose] > │             v39.Start ()                                                     │

00:02:21 #14441 [Verbose] > │             let v40 : int64 = v39.ElapsedMilliseconds                        │

00:02:21 #14442 [Verbose] > │             let v41 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:02:21 #14443 [Verbose] > │             let v42 : Mut1 = {l0 = 0} : Mut1                                 │

00:02:21 #14444 [Verbose] > │             while method8(v42) do                                            │

00:02:21 #14445 [Verbose] > │                 let v44 : int32 = v42.l0                                     │

00:02:21 #14446 [Verbose] > │                 v41.[int v44] <- v44                                         │

00:02:21 #14447 [Verbose] > │                 let v45 : int32 = v44 + 1                                    │

00:02:21 #14448 [Verbose] > │                 v42.l0 <- v45                                                │

00:02:21 #14449 [Verbose] > │                 ()                                                           │

00:02:21 #14450 [Verbose] > │             let v46 : (int32 -> float) = closure2(v20, v37)                  │

00:02:21 #14451 [Verbose] > │             let v47 : (float []) = v41 |> Array.Parallel.map v46             │

00:02:21 #14452 [Verbose] > │             let v48 : int32 = v47.Length                                     │

00:02:21 #14453 [Verbose] > │             let v49 : int32 = v48 - 1                                        │

00:02:21 #14454 [Verbose] > │             let v50 : float = v47.[int v49]                                  │

00:02:21 #14455 [Verbose] > │             let v51 : int64 = v39.ElapsedMilliseconds                        │

00:02:21 #14456 [Verbose] > │             let v52 : int64 = v51 - v40                                      │

00:02:21 #14457 [Verbose] > │             let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52}  "  │

00:02:21 #14458 [Verbose] > │             System.Console.WriteLine v53                                     │

00:02:21 #14459 [Verbose] > │             v31.[int v34] <- struct (v50, v52)                               │

00:02:21 #14460 [Verbose] > │             let v54 : uint64 = v34 + 1UL                                     │

00:02:21 #14461 [Verbose] > │             v32.l0 <- v54                                                    │

00:02:21 #14462 [Verbose] > │             ()                                                               │

00:02:21 #14463 [Verbose] > │         let v55 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:02:21 #14464 [Verbose] > │         let v56 : (float []) = Array.zeroCreate<float>                       │

00:02:21 #14465 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:21 #14466 [Verbose] > │         let v57 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #14467 [Verbose] > │         while method4(v55, v57) do                                           │

00:02:21 #14468 [Verbose] > │             let v59 : uint64 = v57.l0                                        │

00:02:21 #14469 [Verbose] > │             let struct (v60 : float, v61 : int64) = v31.[int v59]            │

00:02:21 #14470 [Verbose] > │             v56.[int v59] <- v60                                             │

00:02:21 #14471 [Verbose] > │             let v62 : uint64 = v59 + 1UL                                     │

00:02:21 #14472 [Verbose] > │             v57.l0 <- v62                                                    │

00:02:21 #14473 [Verbose] > │             ()                                                               │

00:02:21 #14474 [Verbose] > │         let v63 : uint64 = System.Convert.ToUInt64 v56.Length                │

00:02:21 #14475 [Verbose] > │         let v64 : bool = v63 <= 1UL                                          │

00:02:21 #14476 [Verbose] > │         if v64 then                                                          │

00:02:21 #14477 [Verbose] > │             ()                                                               │

00:02:21 #14478 [Verbose] > │         else                                                                 │

00:02:21 #14479 [Verbose] > │             let v65 : float = v56.[int 0UL]                                  │

00:02:21 #14480 [Verbose] > │             let v66 : uint64 = 0UL                                           │

00:02:21 #14481 [Verbose] > │             let v67 : bool = method9(v65, v56, v66)                          │

00:02:21 #14482 [Verbose] > │             if v67 then                                                      │

00:02:21 #14483 [Verbose] > │                 ()                                                           │

00:02:21 #14484 [Verbose] > │             else                                                             │

00:02:21 #14485 [Verbose] > │                 let v68 : string = $"Challenge error: {v56}"                 │

00:02:21 #14486 [Verbose] > │                 failwith<unit> v68                                           │

00:02:21 #14487 [Verbose] > │         let v69 : string = $"%A{v21}"                                        │

00:02:21 #14488 [Verbose] > │         let v70 : (float []) = Array.zeroCreate<float>                       │

00:02:21 #14489 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:21 #14490 [Verbose] > │         let v71 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #14491 [Verbose] > │         while method4(v55, v71) do                                           │

00:02:21 #14492 [Verbose] > │             let v73 : uint64 = v71.l0                                        │

00:02:21 #14493 [Verbose] > │             let struct (v74 : float, v75 : int64) = v31.[int v73]            │

00:02:21 #14494 [Verbose] > │             v70.[int v73] <- v74                                             │

00:02:21 #14495 [Verbose] > │             let v76 : uint64 = v73 + 1UL                                     │

00:02:21 #14496 [Verbose] > │             v71.l0 <- v76                                                    │

00:02:21 #14497 [Verbose] > │             ()                                                               │

00:02:21 #14498 [Verbose] > │         let v77 : float = v70.[int 0UL]                                      │

00:02:21 #14499 [Verbose] > │         let v78 : string = $"%A{v77}"                                        │

00:02:21 #14500 [Verbose] > │         let v79 : (int64 []) = Array.zeroCreate<int64>                       │

00:02:21 #14501 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:21 #14502 [Verbose] > │         let v80 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #14503 [Verbose] > │         while method4(v55, v80) do                                           │

00:02:21 #14504 [Verbose] > │             let v82 : uint64 = v80.l0                                        │

00:02:21 #14505 [Verbose] > │             let struct (v83 : float, v84 : int64) = v31.[int v82]            │

00:02:21 #14506 [Verbose] > │             v79.[int v82] <- v84                                             │

00:02:21 #14507 [Verbose] > │             let v85 : uint64 = v82 + 1UL                                     │

00:02:21 #14508 [Verbose] > │             v80.l0 <- v85                                                    │

00:02:21 #14509 [Verbose] > │             ()                                                               │

00:02:21 #14510 [Verbose] > │         v16.[int v19] <- struct (v69, v22, v78, v79)                         │

00:02:21 #14511 [Verbose] > │         let v86 : uint64 = v19 + 1UL                                         │

00:02:21 #14512 [Verbose] > │         v17.l0 <- v86                                                        │

00:02:21 #14513 [Verbose] > │         ()                                                                   │

00:02:21 #14514 [Verbose] > │     let v87 : uint64 = System.Convert.ToUInt64 v16.Length                    │

00:02:21 #14515 [Verbose] > │     let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:02:21 #14516 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:21 #14517 [Verbose] > │     let v89 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:21 #14518 [Verbose] > │     while method4(v87, v89) do                                               │

00:02:21 #14519 [Verbose] > │         let v91 : uint64 = v89.l0                                            │

00:02:21 #14520 [Verbose] > │         let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │

00:02:21 #14521 [Verbose] > │ ])) = v16.[int v91]                                                          │

00:02:21 #14522 [Verbose] > │         let v96 : uint64 = System.Convert.ToUInt64 v95.Length                │

00:02:21 #14523 [Verbose] > │         let v97 : UH3 = UH3_1                                                │

00:02:21 #14524 [Verbose] > │         let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2                │

00:02:21 #14525 [Verbose] > │         while method10(v96, v98) do                                          │

00:02:21 #14526 [Verbose] > │             let v100 : uint64 = v98.l0                                       │

00:02:21 #14527 [Verbose] > │             let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2           │

00:02:21 #14528 [Verbose] > │             let v103 : int64 = v95.[int v100]                                │

00:02:21 #14529 [Verbose] > │             let v104 : int64 = v102 + 1L                                     │

00:02:21 #14530 [Verbose] > │             let v105 : uint64 = v100 + 1UL                                   │

00:02:21 #14531 [Verbose] > │             let v106 : UH3 = UH3_0(v102, v103, v101)                         │

00:02:21 #14532 [Verbose] > │             v98.l0 <- v105                                                   │

00:02:21 #14533 [Verbose] > │             v98.l1 <- v106                                                   │

00:02:21 #14534 [Verbose] > │             v98.l2 <- v104                                                   │

00:02:21 #14535 [Verbose] > │             ()                                                               │

00:02:21 #14536 [Verbose] > │         let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2               │

00:02:21 #14537 [Verbose] > │         let v109 : UH3 = UH3_1                                               │

00:02:21 #14538 [Verbose] > │         let v110 : UH3 = method11(v107, v109)                                │

00:02:21 #14539 [Verbose] > │         let v111 : (struct (int64 * int64) []) = method12(v110)              │

00:02:21 #14540 [Verbose] > │         let v112 : int32 = v111.Length                                       │

00:02:21 #14541 [Verbose] > │         let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:02:21 #14542 [Verbose] > │ (int64 * int64)> (v112)                                                      │

00:02:21 #14543 [Verbose] > │         let v114 : Mut1 = {l0 = 0} : Mut1                                    │

00:02:21 #14544 [Verbose] > │         while method15(v112, v114) do                                        │

00:02:21 #14545 [Verbose] > │             let v116 : int32 = v114.l0                                       │

00:02:21 #14546 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1661-6103-666147755b55\main.spi

00:02:21 #14547 [Verbose] > │             let struct (v117 : int64, v118 : int64) = v111.[int v116]        │

00:02:21 #14548 [Verbose] > │             let v119 : int64 = v117 + 1L                                     │

00:02:21 #14549 [Verbose] > │             v113.[int v116] <- struct (v119, v118)                           │

00:02:21 #14550 [Verbose] > │             let v120 : int32 = v116 + 1                                      │

00:02:21 #14551 [Verbose] > │             v114.l0 <- v120                                                  │

00:02:21 #14552 [Verbose] > │             ()                                                               │

00:02:21 #14553 [Verbose] > │         let v121 : (struct (int64 * int64) -> int64) = closure3()            │

00:02:21 #14554 [Verbose] > │         let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121   │

00:02:21 #14555 [Verbose] > │         let struct (v123 : int64, v124 : int64) = v122.[int 0]               │

00:02:21 #14556 [Verbose] > │         let v125 : string = $"%A{struct (v123, v124)}"                       │

00:02:21 #14557 [Verbose] > │         let v126 : bool = v92 = v94                                          │

00:02:21 #14558 [Verbose] > │         let v131 : US0 =                                                     │

00:02:21 #14559 [Verbose] > │             if v126 then                                                     │

00:02:21 #14560 [Verbose] > │                 let v127 : System.ConsoleColor =                             │

00:02:21 #14561 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:02:21 #14562 [Verbose] > │                 US0_1(v127)                                                  │

00:02:21 #14563 [Verbose] > │             else                                                             │

00:02:21 #14564 [Verbose] > │                 let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:02:21 #14565 [Verbose] > │                 US0_1(v129)                                                  │

00:02:21 #14566 [Verbose] > │         let v132 : UH2 = UH2_1                                               │

00:02:21 #14567 [Verbose] > │         let v133 : UH2 = UH2_0(v125, v132)                                   │

00:02:21 #14568 [Verbose] > │         let v134 : UH2 = UH2_0(v94, v133)                                    │

00:02:21 #14569 [Verbose] > │         let v135 : UH2 = UH2_0(v92, v134)                                    │

00:02:21 #14570 [Verbose] > │         let v136 : UH2 = UH2_0(v93, v135)                                    │

00:02:21 #14571 [Verbose] > │         v88.[int v91] <- struct (v136, v131)                                 │

00:02:21 #14572 [Verbose] > │         let v137 : uint64 = v91 + 1UL                                        │

00:02:21 #14573 [Verbose] > │         v89.l0 <- v137                                                       │

00:02:21 #14574 [Verbose] > │         ()                                                                   │

00:02:21 #14575 [Verbose] > │     let v138 : string = "Input"                                              │

00:02:21 #14576 [Verbose] > │     let v139 : string = "Expected"                                           │

00:02:21 #14577 [Verbose] > │     let v140 : string = "Result"                                             │

00:02:21 #14578 [Verbose] > │     let v141 : string = "Best"                                               │

00:02:21 #14579 [Verbose] > │     let v142 : UH2 = UH2_1                                                   │

00:02:21 #14580 [Verbose] > │     let v143 : UH2 = UH2_0(v141, v142)                                       │

00:02:21 #14581 [Verbose] > │     let v144 : UH2 = UH2_0(v140, v143)                                       │

00:02:21 #14582 [Verbose] > │     let v145 : UH2 = UH2_0(v139, v144)                                       │

00:02:21 #14583 [Verbose] > │     let v146 : UH2 = UH2_0(v138, v145)                                       │

00:02:21 #14584 [Verbose] > │     let v147 : US0 = US0_0                                                   │

00:02:21 #14585 [Verbose] > │     let v148 : string = "---"                                                │

00:02:21 #14586 [Verbose] > │     let v149 : UH2 = UH2_1                                                   │

00:02:21 #14587 [Verbose] > │     let v150 : UH2 = UH2_0(v148, v149)                                       │

00:02:21 #14588 [Verbose] > │     let v151 : UH2 = UH2_0(v148, v150)                                       │

00:02:21 #14589 [Verbose] > │     let v152 : UH2 = UH2_0(v148, v151)                                       │

00:02:21 #14590 [Verbose] > │     let v153 : UH2 = UH2_0(v148, v152)                                       │

00:02:21 #14591 [Verbose] > │     let v154 : US0 = US0_0                                                   │

00:02:21 #14592 [Verbose] > │     let v155 : UH4 = UH4_1                                                   │

00:02:21 #14593 [Verbose] > │     let v156 : UH4 = UH4_0(v153, v154, v155)                                 │

00:02:21 #14594 [Verbose] > │     let v157 : UH4 = UH4_0(v146, v147, v156)                                 │

00:02:21 #14595 [Verbose] > │     let v158 : (struct (UH2 * US0) []) = method16(v157)                      │

00:02:21 #14596 [Verbose] > │     let v159 : uint64 = System.Convert.ToUInt64 v158.Length                  │

00:02:21 #14597 [Verbose] > │     let v160 : uint64 = System.Convert.ToUInt64 v88.Length                   │

00:02:21 #14598 [Verbose] > │     let v161 : uint64 = v159 + v160                                          │

00:02:21 #14599 [Verbose] > │     let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:02:21 #14600 [Verbose] > │ US0)> (System.Convert.ToInt32(v161))                                         │

00:02:21 #14601 [Verbose] > │     let v163 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14602 [Verbose] > │     while method4(v161, v163) do                                             │

00:02:21 #14603 [Verbose] > │         let v165 : uint64 = v163.l0                                          │

00:02:21 #14604 [Verbose] > │         let v166 : bool = v165 < v159                                        │

00:02:21 #14605 [Verbose] > │         let struct (v172 : UH2, v173 : US0) =                                │

00:02:21 #14606 [Verbose] > │             if v166 then                                                     │

00:02:21 #14607 [Verbose] > │                 let struct (v167 : UH2, v168 : US0) = v158.[int v165]        │

00:02:21 #14608 [Verbose] > │                 struct (v167, v168)                                          │

00:02:21 #14609 [Verbose] > │             else                                                             │

00:02:21 #14610 [Verbose] > │                 let v169 : uint64 = v165 - v159                              │

00:02:21 #14611 [Verbose] > │                 let struct (v170 : UH2, v171 : US0) = v88.[int v169]         │

00:02:21 #14612 [Verbose] > │                 struct (v170, v171)                                          │

00:02:21 #14613 [Verbose] > │         v162.[int v165] <- struct (v172, v173)                               │

00:02:21 #14614 [Verbose] > │         let v174 : uint64 = v165 + 1UL                                       │

00:02:21 #14615 [Verbose] > │         v163.l0 <- v174                                                      │

00:02:21 #14616 [Verbose] > │         ()                                                                   │

00:02:21 #14617 [Verbose] > │     let v175 : uint64 = System.Convert.ToUInt64 v162.Length                  │

00:02:21 #14618 [Verbose] > │     let v176 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:02:21 #14619 [Verbose] > │ (System.Convert.ToInt32(v175))                                               │

00:02:21 #14620 [Verbose] > │     let v177 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14621 [Verbose] > │     while method4(v175, v177) do                                             │

00:02:21 #14622 [Verbose] > │         let v179 : uint64 = v177.l0                                          │

00:02:21 #14623 [Verbose] > │         let struct (v180 : UH2, v181 : US0) = v162.[int v179]                │

00:02:21 #14624 [Verbose] > │         let v182 : (string []) = method19(v180)                              │

00:02:21 #14625 [Verbose] > │         v176.[int v179] <- v182                                              │

00:02:21 #14626 [Verbose] > │         let v183 : uint64 = v179 + 1UL                                       │

00:02:21 #14627 [Verbose] > │         v177.l0 <- v183                                                      │

00:02:21 #14628 [Verbose] > │         ()                                                                   │

00:02:21 #14629 [Verbose] > │     let v184 : ((string []) []) = v176 |> Array.transpose                    │

00:02:21 #14630 [Verbose] > │     let v185 : uint64 = System.Convert.ToUInt64 v184.Length                  │

00:02:21 #14631 [Verbose] > │     let v186 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:21 #14632 [Verbose] > │ (System.Convert.ToInt32(v185))                                               │

00:02:21 #14633 [Verbose] > │     let v187 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14634 [Verbose] > │     while method4(v185, v187) do                                             │

00:02:21 #14635 [Verbose] > │         let v189 : uint64 = v187.l0                                          │

00:02:21 #14636 [Verbose] > │         let v190 : (string []) = v184.[int v189]                             │

00:02:21 #14637 [Verbose] > │         let v191 : uint64 = System.Convert.ToUInt64 v190.Length              │

00:02:21 #14638 [Verbose] > │         let v192 : (int64 []) = Array.zeroCreate<int64>                      │

00:02:21 #14639 [Verbose] > │ (System.Convert.ToInt32(v191))                                               │

00:02:21 #14640 [Verbose] > │         let v193 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:21 #14641 [Verbose] > │         while method4(v191, v193) do                                         │

00:02:21 #14642 [Verbose] > │             let v195 : uint64 = v193.l0                                      │

00:02:21 #14643 [Verbose] > │             let v196 : string = v190.[int v195]                              │

00:02:21 #14644 [Verbose] > │             let v197 : int64 = System.Convert.ToInt64 v196.Length            │

00:02:21 #14645 [Verbose] > │             v192.[int v195] <- v197                                          │

00:02:21 #14646 [Verbose] > │             let v198 : uint64 = v195 + 1UL                                   │

00:02:21 #14647 [Verbose] > │             v193.l0 <- v198                                                  │

00:02:21 #14648 [Verbose] > │             ()                                                               │

00:02:21 #14649 [Verbose] > │         let v199 : (int64 []) = v192 |> Array.sortDescending                 │

00:02:21 #14650 [Verbose] > │         let v200 : int64 option = v199 |> Array.tryItem 0                    │

00:02:21 #14651 [Verbose] > │         let v201 : (int64 -> US1) = closure4()                               │

00:02:21 #14652 [Verbose] > │         let v202 : US1 = US1_0                                               │

00:02:21 #14653 [Verbose] > │         let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │

00:02:21 #14654 [Verbose] > │         let v206 : int64 =                                                   │

00:02:21 #14655 [Verbose] > │             match v203 with                                                  │

00:02:21 #14656 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:02:21 #14657 [Verbose] > │                 0L                                                           │

00:02:21 #14658 [Verbose] > │             | US1_1(v204) -> (* Some *)                                      │

00:02:21 #14659 [Verbose] > │                 v204                                                         │

00:02:21 #14660 [Verbose] > │         v186.[int v189] <- v206                                              │

00:02:21 #14661 [Verbose] > │         let v207 : uint64 = v189 + 1UL                                       │

00:02:21 #14662 [Verbose] > │         v187.l0 <- v207                                                      │

00:02:21 #14663 [Verbose] > │         ()                                                                   │

00:02:21 #14664 [Verbose] > │     let v208 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:02:21 #14665 [Verbose] > │     let v209 : UH5 = UH5_1                                                   │

00:02:21 #14666 [Verbose] > │     let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3                   │

00:02:21 #14667 [Verbose] > │     while method22(v208, v210) do                                            │

00:02:21 #14668 [Verbose] > │         let v212 : uint64 = v210.l0                                          │

00:02:21 #14669 [Verbose] > │         let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2             │

00:02:21 #14670 [Verbose] > │         let v215 : int64 = v186.[int v212]                                   │

00:02:21 #14671 [Verbose] > │         let v216 : int32 = v214 + 1                                          │

00:02:21 #14672 [Verbose] > │         let v217 : uint64 = v212 + 1UL                                       │

00:02:21 #14673 [Verbose] > │         let v218 : UH5 = UH5_0(v214, v215, v213)                             │

00:02:21 #14674 [Verbose] > │         v210.l0 <- v217                                                      │

00:02:21 #14675 [Verbose] > │         v210.l1 <- v218                                                      │

00:02:21 #14676 [Verbose] > │         v210.l2 <- v216                                                      │

00:02:21 #14677 [Verbose] > │         ()                                                                   │

00:02:21 #14678 [Verbose] > │     let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2                 │

00:02:21 #14679 [Verbose] > │     let v221 : UH5 = UH5_1                                                   │

00:02:21 #14680 [Verbose] > │     let v222 : UH5 = method23(v219, v221)                                    │

00:02:21 #14681 [Verbose] > │     let v223 : (struct (int32 * int64) []) = method24(v222)                  │

00:02:21 #14682 [Verbose] > │     let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │

00:02:21 #14683 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:02:21 #14684 [Verbose] > │     let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:02:21 #14685 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175))                          │

00:02:21 #14686 [Verbose] >

00:02:21 #14687 [Verbose] > │     let v226 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14688 [Verbose] > ╭─[ 491.84ms - stdout ]────────────────────────────────────────────────────────╮

00:02:21 #14689 [Verbose] > │     while method4(v175, v226) do                                             │

00:02:21 #14690 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:21 #14691 [Verbose] > │         let v228 : uint64 = v226.l0                                          │

00:02:21 #14692 [Verbose] > │     let v0 : string = $"%A{1024}"                                            │

00:02:21 #14693 [Verbose] > │         let struct (v229 : UH2, v230 : US0) = v162.[int v228]                │

00:02:21 #14694 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:21 #14695 [Verbose] > │     let v1 : string = $"__expect / actual: %A{1024} / expected: %A{1024}"    │

00:02:21 #14696 [Verbose] > │         let v231 : UH6 = UH6_1                                               │

00:02:21 #14697 [Verbose] > │     ()                                                                       │

00:02:21 #14698 [Verbose] > │         let v232 : int32 = 0                                                 │

00:02:21 #14699 [Verbose] > │ method0()                                                                    │

00:02:21 #14700 [Verbose] > │         let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232)   │

00:02:21 #14701 [Verbose] > │                                                                              │

00:02:21 #14702 [Verbose] > │ 1024                                                                         │

00:02:21 #14702 [Verbose] > │         let v235 : UH6 = UH6_1                                               │

00:02:21 #14703 [Verbose] > │                                                                              │

00:02:21 #14704 [Verbose] > │         let v236 : UH6 = method28(v233, v235)                                │

00:02:21 #14705 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:21 #14706 [Verbose] > │         let v237 : UH2 = UH2_1                                               │

00:02:21 #14707 [Verbose] >

00:02:21 #14708 [Verbose] > │         let v238 : UH2 = method29(v224, v236, v237)                          │

00:02:21 #14709 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:21 #14710 [Verbose] > │         let v239 : (string []) = method30(v238)                              │

00:02:21 #14711 [Verbose] > │         v225.[int v228] <- struct (v239, v230)                               │

00:02:21 #14712 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:21 #14713 [Verbose] > │ ## find_last                                                                 │

00:02:21 #14714 [Verbose] > │         let v240 : uint64 = v228 + 1UL                                       │

00:02:21 #14715 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:21 #14716 [Verbose] > │         v226.l0 <- v240                                                      │

00:02:21 #14717 [Verbose] > │         ()                                                                   │

00:02:21 #14718 [Verbose] >

00:02:21 #14719 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:21 #14720 [Verbose] > │     let v241 : uint64 = System.Convert.ToUInt64 v225.Length                  │

00:02:21 #14721 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:21 #14722 [Verbose] > │     let v242 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14723 [Verbose] > inl find_last forall item result. fold_fn fn target : option result =

00:02:21 #14724 [Verbose] >     fold_fn (fun (item : item) (result : option result) =>

00:02:21 #14725 [Verbose] >         match result with

00:02:21 #14726 [Verbose] >         | None => fn item

00:02:21 #14727 [Verbose] > │     while method4(v241, v242) do                                             │

00:02:21 #14728 [Verbose] >         | result => result

00:02:21 #14729 [Verbose] >     ) target (None : option result)

00:02:21 #14730 [Verbose] >

00:02:21 #14731 [Verbose] > inl array_find_last forall item result. (fn : item -> option result) (target : a

00:02:21 #14732 [Verbose] > i32 item) : option result =

00:02:21 #14733 [Verbose] > │         let v244 : uint64 = v242.l0                                          │

00:02:21 #14734 [Verbose] >     find_last am.foldBack fn target

00:02:21 #14735 [Verbose] > │         let struct (v245 : (string []), v246 : US0) = v225.[int v244]        │

00:02:21 #14736 [Verbose] >

00:02:21 #14737 [Verbose] > │         match v246 with                                                      │

00:02:21 #14738 [Verbose] > inl list_find_last forall item result. (fn : item -> option result) (target :

00:02:21 #14739 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:21 #14740 [Verbose] > list item) : option result =

00:02:21 #14741 [Verbose] >     find_last listm.foldBack fn target

00:02:21 #14742 [Verbose] > │             let mutable result = None                                        │

00:02:21 #14743 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:21 #14744 [Verbose] > │             ()                                                               │

00:02:21 #14745 [Verbose] > │             #endif                                                           │

00:02:21 #14746 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:21 #14747 [Verbose] > │             ()                                                               │

00:02:21 #14748 [Verbose] > │             #endif                                                           │

00:02:21 #14749 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:21 #14750 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:21 #14751 [Verbose] > │             ()                                                               │

00:02:21 #14752 [Verbose] > │             #endif                                                           │

00:02:21 #14753 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:21 #14754 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:21 #14755 [Verbose] > │             ()                                                               │

00:02:21 #14756 [Verbose] > │             #endif                                                           │

00:02:21 #14757 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:21 #14758 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:21 #14759 [Verbose] > │             ()                                                               │

00:02:21 #14760 [Verbose] > │             #endif                                                           │

00:02:21 #14761 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:21 #14762 [Verbose] > │             result |> Option.get                                             │

00:02:21 #14763 [Verbose] > │             ()                                                               │

00:02:21 #14764 [Verbose] > │         | US0_1(v247) -> (* Some *)                                          │

00:02:21 #14765 [Verbose] > │             let mutable result = None                                        │

00:02:21 #14766 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:21 #14767 [Verbose] > │             ()                                                               │

00:02:21 #14768 [Verbose] > │             #endif                                                           │

00:02:21 #14769 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:21 #14770 [Verbose] > │             ()                                                               │

00:02:21 #14771 [Verbose] > │             #endif                                                           │

00:02:21 #14772 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:21 #14773 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:21 #14774 [Verbose] > │             ()                                                               │

00:02:21 #14775 [Verbose] > │             #endif                                                           │

00:02:21 #14776 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:21 #14777 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:21 #14778 [Verbose] > │             ()                                                               │

00:02:21 #14779 [Verbose] > │             #endif                                                           │

00:02:21 #14780 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:21 #14781 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:21 #14782 [Verbose] > │             ()                                                               │

00:02:21 #14783 [Verbose] > │             #endif                                                           │

00:02:21 #14784 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:21 #14785 [Verbose] > │             result |> Option.get                                             │

00:02:21 #14786 [Verbose] > │             ()                                                               │

00:02:21 #14787 [Verbose] > │         let v248 : string = "\t| "                                           │

00:02:21 #14788 [Verbose] > │         let v249 : string = System.String.Join (v248, v245)                  │

00:02:21 #14789 [Verbose] > │         System.Console.WriteLine v249                                        │

00:02:21 #14790 [Verbose] > │         let mutable result = None                                            │

00:02:21 #14791 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:02:21 #14792 [Verbose] > │         ()                                                                   │

00:02:21 #14793 [Verbose] > │         #endif                                                               │

00:02:21 #14794 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:02:21 #14795 [Verbose] > │         ()                                                                   │

00:02:21 #14796 [Verbose] > │         #endif                                                               │

00:02:21 #14797 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:02:21 #14798 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:21 #14799 [Verbose] > │         ()                                                                   │

00:02:21 #14800 [Verbose] > │         #endif                                                               │

00:02:21 #14801 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:02:21 #14802 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:21 #14803 [Verbose] > │         ()                                                                   │

00:02:21 #14804 [Verbose] > │         #endif                                                               │

00:02:21 #14805 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:02:21 #14806 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:21 #14807 [Verbose] > │         ()                                                                   │

00:02:21 #14808 [Verbose] > │         #endif                                                               │

00:02:21 #14809 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:02:21 #14810 [Verbose] > │         result |> Option.get                                                 │

00:02:21 #14811 [Verbose] > │         let v250 : uint64 = v244 + 1UL                                       │

00:02:21 #14812 [Verbose] > │         v242.l0 <- v250                                                      │

00:02:21 #14813 [Verbose] > │         ()                                                                   │

00:02:21 #14814 [Verbose] > │     let v251 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:02:21 #14815 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:21 #14816 [Verbose] > │     let v252 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14817 [Verbose] > │     while method4(v87, v252) do                                              │

00:02:21 #14818 [Verbose] > │         let v254 : uint64 = v252.l0                                          │

00:02:21 #14819 [Verbose] > │         let struct (v255 : string, v256 : string, v257 : string, v258 :      │

00:02:21 #14820 [Verbose] > │ (int64 [])) = v16.[int v254]                                                 │

00:02:21 #14821 [Verbose] > │         let v259 : (int64 -> float) = float                                  │

00:02:21 #14822 [Verbose] > │         let v260 : uint64 = System.Convert.ToUInt64 v258.Length              │

00:02:21 #14823 [Verbose] > │         let v261 : (float []) = Array.zeroCreate<float>                      │

00:02:21 #14824 [Verbose] > │ (System.Convert.ToInt32(v260))                                               │

00:02:21 #14825 [Verbose] > │         let v262 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:21 #14826 [Verbose] > │         while method4(v260, v262) do                                         │

00:02:21 #14827 [Verbose] > │             let v264 : uint64 = v262.l0                                      │

00:02:21 #14828 [Verbose] > │             let v265 : int64 = v258.[int v264]                               │

00:02:21 #14829 [Verbose] > │             let v266 : float = v259 v265                                     │

00:02:21 #14830 [Verbose] > │             v261.[int v264] <- v266                                          │

00:02:21 #14831 [Verbose] > │             let v267 : uint64 = v264 + 1UL                                   │

00:02:21 #14832 [Verbose] > │             v262.l0 <- v267                                                  │

00:02:21 #14833 [Verbose] > │             ()                                                               │

00:02:21 #14834 [Verbose] > │         v251.[int v254] <- v261                                              │

00:02:21 #14835 [Verbose] > │         let v268 : uint64 = v254 + 1UL                                       │

00:02:21 #14836 [Verbose] > │         v252.l0 <- v268                                                      │

00:02:21 #14837 [Verbose] > │         ()                                                                   │

00:02:21 #14838 [Verbose] > │     let v269 : ((float []) []) = v251 |> Array.transpose                     │

00:02:21 #14839 [Verbose] > │     let v270 : uint64 = System.Convert.ToUInt64 v269.Length                  │

00:02:21 #14840 [Verbose] > │     let v271 : (float []) = Array.zeroCreate<float>                          │

00:02:21 #14841 [Verbose] > │ (System.Convert.ToInt32(v270))                                               │

00:02:21 #14842 [Verbose] > │     let v272 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14843 [Verbose] > │     while method4(v270, v272) do                                             │

00:02:21 #14844 [Verbose] > │         let v274 : uint64 = v272.l0                                          │

00:02:21 #14845 [Verbose] > │         let v275 : (float []) = v269.[int v274]                              │

00:02:21 #14846 [Verbose] > │         let v276 : float = v275 |> Array.average                             │

00:02:21 #14847 [Verbose] > │         v271.[int v274] <- v276                                              │

00:02:21 #14848 [Verbose] > │         let v277 : uint64 = v274 + 1UL                                       │

00:02:21 #14849 [Verbose] > │         v272.l0 <- v277                                                      │

00:02:21 #14850 [Verbose] > │         ()                                                                   │

00:02:21 #14851 [Verbose] > │     let v278 : (float -> int64) = int64                                      │

00:02:21 #14852 [Verbose] > │     let v279 : uint64 = System.Convert.ToUInt64 v271.Length                  │

00:02:21 #14853 [Verbose] > │     let v280 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:21 #14854 [Verbose] > │ (System.Convert.ToInt32(v279))                                               │

00:02:21 #14855 [Verbose] > │     let v281 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14856 [Verbose] > │     while method4(v279, v281) do                                             │

00:02:21 #14857 [Verbose] > │         let v283 : uint64 = v281.l0                                          │

00:02:21 #14858 [Verbose] > │         let v284 : float = v271.[int v283]                                   │

00:02:21 #14859 [Verbose] > │         let v285 : int64 = v278 v284                                         │

00:02:21 #14860 [Verbose] > │         v280.[int v283] <- v285                                              │

00:02:21 #14861 [Verbose] > │         let v286 : uint64 = v283 + 1UL                                       │

00:02:21 #14862 [Verbose] > │         v281.l0 <- v286                                                      │

00:02:21 #14863 [Verbose] > │         ()                                                                   │

00:02:21 #14864 [Verbose] > │     let v287 : uint64 = System.Convert.ToUInt64 v280.Length                  │

00:02:21 #14865 [Verbose] > │     let v288 : UH5 = UH5_1                                                   │

00:02:21 #14866 [Verbose] > │     let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3                   │

00:02:21 #14867 [Verbose] > │     while method22(v287, v289) do                                            │

00:02:21 #14868 [Verbose] > │         let v291 : uint64 = v289.l0                                          │

00:02:21 #14869 [Verbose] > │         let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2             │

00:02:21 #14870 [Verbose] > │         let v294 : int64 = v280.[int v291]                                   │

00:02:21 #14871 [Verbose] > │         let v295 : int32 = v293 + 1                                          │

00:02:21 #14872 [Verbose] > │         let v296 : uint64 = v291 + 1UL                                       │

00:02:21 #14873 [Verbose] > │         let v297 : UH5 = UH5_0(v293, v294, v292)                             │

00:02:21 #14874 [Verbose] > │         v289.l0 <- v296                                                      │

00:02:21 #14875 [Verbose] > │         v289.l1 <- v297                                                      │

00:02:21 #14876 [Verbose] > │         v289.l2 <- v295                                                      │

00:02:21 #14877 [Verbose] > │         ()                                                                   │

00:02:21 #14878 [Verbose] > │     let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2                 │

00:02:21 #14879 [Verbose] > │     let v300 : UH5 = UH5_1                                                   │

00:02:21 #14880 [Verbose] > │     let v301 : UH5 = method23(v298, v300)                                    │

00:02:21 #14881 [Verbose] > │     let v302 : (struct (int32 * int64) []) = method33(v301)                  │

00:02:21 #14882 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:21 #14883 [Verbose] > │     let v303 : string = "Average Ranking  "                                  │

00:02:21 #14884 [Verbose] > │     System.Console.WriteLine v303                                            │

00:02:21 #14885 [Verbose] > │     let v304 : (struct (int32 * int64) -> int64) = closure5()                │

00:02:21 #14886 [Verbose] > │     let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304       │

00:02:21 #14887 [Verbose] > │     let v306 : uint64 = System.Convert.ToUInt64 v305.Length                  │

00:02:21 #14888 [Verbose] > │     let v307 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #14889 [Verbose] > │     while method4(v306, v307) do                                             │

00:02:21 #14890 [Verbose] > │         let v309 : uint64 = v307.l0                                          │

00:02:21 #14891 [Verbose] > │         let struct (v310 : int32, v311 : int64) = v305.[int v309]            │

00:02:21 #14892 [Verbose] > │         let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │

00:02:21 #14893 [Verbose] > │ "                                                                            │

00:02:21 #14894 [Verbose] > │         System.Console.WriteLine v312                                        │

00:02:21 #14895 [Verbose] > │         let v313 : uint64 = v309 + 1UL                                       │

00:02:21 #14896 [Verbose] > │         v307.l0 <- v313                                                      │

00:02:21 #14897 [Verbose] > │         ()                                                                   │

00:02:21 #14898 [Verbose] > │     ()                                                                       │

00:02:21 #14899 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1711-1137-182028b3b2ac\main.spi

00:02:21 #14900 [Verbose] > │ and method0 () : unit =                                                      │

00:02:21 #14901 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:02:21 #14902 [Verbose] > │     let v1 : string = nameof v0                                              │

00:02:21 #14903 [Verbose] > │     let v2 : string = ""                                                     │

00:02:21 #14904 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:21 #14905 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:21 #14906 [Verbose] > │     let v3 : string = $"Test: {v1}"                                          │

00:02:21 #14907 [Verbose] > │     System.Console.WriteLine v3                                              │

00:02:21 #14908 [Verbose] > │     let v4 : float = 0.0                                                     │

00:02:21 #14909 [Verbose] > │     let v5 : float = 1.0                                                     │

00:02:21 #14910 [Verbose] > │     let v6 : float = 2.0                                                     │

00:02:21 #14911 [Verbose] > │     let v7 : float = 3.0                                                     │

00:02:21 #14912 [Verbose] > │     let v8 : float = 5.0                                                     │

00:02:21 #14913 [Verbose] > │     let v9 : float = 6.0                                                     │

00:02:21 #14914 [Verbose] > │     let v10 : UH0 = UH0_1                                                    │

00:02:21 #14915 [Verbose] > │     let v11 : UH0 = UH0_0(v8, v9, v10)                                       │

00:02:21 #14916 [Verbose] > │     let v12 : UH0 = UH0_0(v6, v7, v11)                                       │

00:02:21 #14917 [Verbose] > │     let v13 : UH0 = UH0_0(v4, v5, v12)                                       │

00:02:21 #14918 [Verbose] > │     let v14 : (struct (float * float) []) = method1(v13)                     │

00:02:21 #14919 [Verbose] > │     let v15 : uint64 = System.Convert.ToUInt64 v14.Length                    │

00:02:21 #14920 [Verbose] > │     let v16 : (struct (string * string * string * (int64 [])) []) =          │

00:02:21 #14921 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:02:21 #14922 [Verbose] > │ (System.Convert.ToInt32(v15))                                                │

00:02:21 #14923 [Verbose] > │     let v17 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:21 #14924 [Verbose] > │     while method4(v15, v17) do                                               │

00:02:21 #14925 [Verbose] > │         let v19 : uint64 = v17.l0                                            │

00:02:21 #14926 [Verbose] > │         let struct (v20 : float, v21 : float) = v14.[int v19]                │

00:02:21 #14927 [Verbose] > │         let v22 : string = $"%A{v20}"                                        │

00:02:21 #14928 [Verbose] > │         System.Console.WriteLine v2                                          │

00:02:21 #14929 [Verbose] > │         let v23 : string = $"Solution: {v22}  "                              │

00:02:21 #14930 [Verbose] > │         System.Console.WriteLine v23                                         │

00:02:21 #14931 [Verbose] > │         let v24 : int32 = 0                                                  │

00:02:21 #14932 [Verbose] > │         let v25 : string = "A"                                               │

00:02:21 #14933 [Verbose] > │         let v26 : (float -> float) = closure1()                              │

00:02:21 #14934 [Verbose] > │         let v27 : UH1 = UH1_1                                                │

00:02:21 #14935 [Verbose] > │         let v28 : UH1 = UH1_0(v24, v25, v26, v27)                            │

00:02:21 #14936 [Verbose] > │         let v29 : (struct (int32 * string * (float -> float)) []) =          │

00:02:21 #14937 [Verbose] > │ method5(v28)                                                                 │

00:02:21 #14938 [Verbose] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:02:21 #14939 [Verbose] > │         let v31 : (struct (float * int64) []) = Array.zeroCreate<struct      │

00:02:21 #14940 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30))                               │

00:02:21 #14941 [Verbose] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #14942 [Verbose] > │         while method4(v30, v32) do                                           │

00:02:21 #14943 [Verbose] > │             let v34 : uint64 = v32.l0                                        │

00:02:21 #14944 [Verbose] > │             let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │

00:02:21 #14945 [Verbose] > │ v29.[int v34]                                                                │

00:02:21 #14946 [Verbose] > │             let mutable result = None                                        │

00:02:21 #14947 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:21 #14948 [Verbose] > │             ()                                                               │

00:02:21 #14949 [Verbose] > │             #endif                                                           │

00:02:21 #14950 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:21 #14951 [Verbose] > │             ()                                                               │

00:02:21 #14952 [Verbose] > │             #endif                                                           │

00:02:21 #14953 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:21 #14954 [Verbose] > │             System.GC.Collect ()                                             │

00:02:21 #14955 [Verbose] > │             ()                                                               │

00:02:21 #14956 [Verbose] > │             #endif                                                           │

00:02:21 #14957 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:21 #14958 [Verbose] > │             System.GC.Collect ()                                             │

00:02:21 #14959 [Verbose] > │             ()                                                               │

00:02:21 #14960 [Verbose] > │             #endif                                                           │

00:02:21 #14961 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:21 #14962 [Verbose] > │             System.GC.Collect ()                                             │

00:02:21 #14963 [Verbose] > │             ()                                                               │

00:02:21 #14964 [Verbose] > │             #endif                                                           │

00:02:21 #14965 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:21 #14966 [Verbose] > │             result |> Option.get                                             │

00:02:21 #14967 [Verbose] > │             let v38 : (unit -> System.Diagnostics.Stopwatch) =               │

00:02:21 #14968 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:02:21 #14969 [Verbose] > │             let v39 : System.Diagnostics.Stopwatch = v38 ()                  │

00:02:21 #14970 [Verbose] > │             v39.Start ()                                                     │

00:02:21 #14971 [Verbose] > │             let v40 : int64 = v39.ElapsedMilliseconds                        │

00:02:21 #14972 [Verbose] > │             let v41 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:02:21 #14973 [Verbose] > │             let v42 : Mut1 = {l0 = 0} : Mut1                                 │

00:02:21 #14974 [Verbose] > │             while method8(v42) do                                            │

00:02:21 #14975 [Verbose] > │                 let v44 : int32 = v42.l0                                     │

00:02:21 #14976 [Verbose] > │                 v41.[int v44] <- v44                                         │

00:02:21 #14977 [Verbose] > │                 let v45 : int32 = v44 + 1                                    │

00:02:21 #14978 [Verbose] > │                 v42.l0 <- v45                                                │

00:02:21 #14979 [Verbose] > │                 ()                                                           │

00:02:21 #14980 [Verbose] > │             let v46 : (int32 -> float) = closure2(v20, v37)                  │

00:02:21 #14981 [Verbose] >

00:02:21 #14982 [Verbose] > │             let v47 : (float []) = v41 |> Array.Parallel.map v46             │

00:02:21 #14983 [Verbose] > ╭─[ 307.30ms - stdout ]────────────────────────────────────────────────────────╮

00:02:21 #14984 [Verbose] > │ ()                                                                           │

00:02:21 #14985 [Verbose] > │                                                                              │

00:02:21 #14986 [Verbose] > │             let v48 : int32 = v47.Length                                     │

00:02:21 #14987 [Verbose] > │                                                                              │

00:02:21 #14988 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:21 #14989 [Verbose] > │             let v49 : int32 = v48 - 1                                        │

00:02:21 #14990 [Verbose] > │             let v50 : float = v47.[int v49]                                  │

00:02:21 #14991 [Verbose] > │             let v51 : int64 = v39.ElapsedMilliseconds                        │

00:02:21 #14992 [Verbose] > │             let v52 : int64 = v51 - v40                                      │

00:02:21 #14993 [Verbose] > │             let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52}  "  │

00:02:21 #14994 [Verbose] > │             System.Console.WriteLine v53                                     │

00:02:21 #14995 [Verbose] > │             v31.[int v34] <- struct (v50, v52)                               │

00:02:21 #14996 [Verbose] > │             let v54 : uint64 = v34 + 1UL                                     │

00:02:21 #14997 [Verbose] > │             v32.l0 <- v54                                                    │

00:02:21 #14998 [Verbose] > │             ()                                                               │

00:02:21 #14999 [Verbose] > │         let v55 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:02:21 #15000 [Verbose] > │         let v56 : (float []) = Array.zeroCreate<float>                       │

00:02:21 #15001 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:21 #15002 [Verbose] > │         let v57 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #15003 [Verbose] > │         while method4(v55, v57) do                                           │

00:02:21 #15004 [Verbose] > │             let v59 : uint64 = v57.l0                                        │

00:02:21 #15005 [Verbose] > │             let struct (v60 : float, v61 : int64) = v31.[int v59]            │

00:02:21 #15006 [Verbose] > │             v56.[int v59] <- v60                                             │

00:02:21 #15007 [Verbose] > │             let v62 : uint64 = v59 + 1UL                                     │

00:02:21 #15008 [Verbose] > │             v57.l0 <- v62                                                    │

00:02:21 #15009 [Verbose] > │             ()                                                               │

00:02:21 #15010 [Verbose] > │         let v63 : uint64 = System.Convert.ToUInt64 v56.Length                │

00:02:21 #15011 [Verbose] > │         let v64 : bool = v63 <= 1UL                                          │

00:02:21 #15012 [Verbose] > │         if v64 then                                                          │

00:02:21 #15013 [Verbose] > │             ()                                                               │

00:02:21 #15014 [Verbose] > │         else                                                                 │

00:02:21 #15015 [Verbose] > │             let v65 : float = v56.[int 0UL]                                  │

00:02:21 #15016 [Verbose] > │             let v66 : uint64 = 0UL                                           │

00:02:21 #15017 [Verbose] > │             let v67 : bool = method9(v65, v56, v66)                          │

00:02:21 #15018 [Verbose] > │             if v67 then                                                      │

00:02:21 #15019 [Verbose] > │                 ()                                                           │

00:02:21 #15020 [Verbose] > │             else                                                             │

00:02:21 #15021 [Verbose] > │                 let v68 : string = $"Challenge error: {v56}"                 │

00:02:21 #15022 [Verbose] > │                 failwith<unit> v68                                           │

00:02:21 #15023 [Verbose] > │         let v69 : string = $"%A{v21}"                                        │

00:02:21 #15024 [Verbose] > │         let v70 : (float []) = Array.zeroCreate<float>                       │

00:02:21 #15025 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:21 #15026 [Verbose] > │         let v71 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #15027 [Verbose] > │         while method4(v55, v71) do                                           │

00:02:21 #15028 [Verbose] > │             let v73 : uint64 = v71.l0                                        │

00:02:21 #15029 [Verbose] > │             let struct (v74 : float, v75 : int64) = v31.[int v73]            │

00:02:21 #15030 [Verbose] > │             v70.[int v73] <- v74                                             │

00:02:21 #15031 [Verbose] > │             let v76 : uint64 = v73 + 1UL                                     │

00:02:21 #15032 [Verbose] > │             v71.l0 <- v76                                                    │

00:02:21 #15033 [Verbose] > │             ()                                                               │

00:02:21 #15034 [Verbose] > │         let v77 : float = v70.[int 0UL]                                      │

00:02:21 #15035 [Verbose] > │         let v78 : string = $"%A{v77}"                                        │

00:02:21 #15036 [Verbose] > │         let v79 : (int64 []) = Array.zeroCreate<int64>                       │

00:02:21 #15037 [Verbose] > │ (System.Convert.ToInt32(v55))                                                │

00:02:21 #15038 [Verbose] > │         let v80 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:02:21 #15039 [Verbose] > │         while method4(v55, v80) do                                           │

00:02:21 #15040 [Verbose] > │             let v82 : uint64 = v80.l0                                        │

00:02:21 #15041 [Verbose] > │             let struct (v83 : float, v84 : int64) = v31.[int v82]            │

00:02:21 #15042 [Verbose] > │             v79.[int v82] <- v84                                             │

00:02:21 #15043 [Verbose] > │             let v85 : uint64 = v82 + 1UL                                     │

00:02:21 #15044 [Verbose] > │             v80.l0 <- v85                                                    │

00:02:21 #15045 [Verbose] > │             ()                                                               │

00:02:21 #15046 [Verbose] > │         v16.[int v19] <- struct (v69, v22, v78, v79)                         │

00:02:21 #15047 [Verbose] > │         let v86 : uint64 = v19 + 1UL                                         │

00:02:21 #15048 [Verbose] > │         v17.l0 <- v86                                                        │

00:02:21 #15049 [Verbose] > │         ()                                                                   │

00:02:21 #15050 [Verbose] > │     let v87 : uint64 = System.Convert.ToUInt64 v16.Length                    │

00:02:21 #15051 [Verbose] > │     let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:02:21 #15052 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:21 #15053 [Verbose] > │     let v89 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:02:21 #15054 [Verbose] > │     while method4(v87, v89) do                                               │

00:02:21 #15055 [Verbose] > │         let v91 : uint64 = v89.l0                                            │

00:02:21 #15056 [Verbose] > │         let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │

00:02:21 #15057 [Verbose] > │ ])) = v16.[int v91]                                                          │

00:02:21 #15058 [Verbose] > │         let v96 : uint64 = System.Convert.ToUInt64 v95.Length                │

00:02:21 #15059 [Verbose] > │         let v97 : UH3 = UH3_1                                                │

00:02:21 #15060 [Verbose] > │         let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2                │

00:02:21 #15061 [Verbose] > │         while method10(v96, v98) do                                          │

00:02:21 #15062 [Verbose] > │             let v100 : uint64 = v98.l0                                       │

00:02:21 #15063 [Verbose] > │             let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2           │

00:02:21 #15064 [Verbose] > │             let v103 : int64 = v95.[int v100]                                │

00:02:21 #15065 [Verbose] > │             let v104 : int64 = v102 + 1L                                     │

00:02:21 #15066 [Verbose] > │             let v105 : uint64 = v100 + 1UL                                   │

00:02:21 #15067 [Verbose] > │             let v106 : UH3 = UH3_0(v102, v103, v101)                         │

00:02:21 #15068 [Verbose] > │             v98.l0 <- v105                                                   │

00:02:21 #15069 [Verbose] > │             v98.l1 <- v106                                                   │

00:02:21 #15070 [Verbose] > │             v98.l2 <- v104                                                   │

00:02:21 #15071 [Verbose] > │             ()                                                               │

00:02:21 #15072 [Verbose] > │         let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2               │

00:02:21 #15073 [Verbose] > │         let v109 : UH3 = UH3_1                                               │

00:02:21 #15074 [Verbose] > │         let v110 : UH3 = method11(v107, v109)                                │

00:02:21 #15075 [Verbose] > │         let v111 : (struct (int64 * int64) []) = method12(v110)              │

00:02:21 #15076 [Verbose] > │         let v112 : int32 = v111.Length                                       │

00:02:21 #15077 [Verbose] > │         let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:02:21 #15078 [Verbose] > │ (int64 * int64)> (v112)                                                      │

00:02:21 #15079 [Verbose] > │         let v114 : Mut1 = {l0 = 0} : Mut1                                    │

00:02:21 #15080 [Verbose] > │         while method15(v112, v114) do                                        │

00:02:21 #15081 [Verbose] > │             let v116 : int32 = v114.l0                                       │

00:02:21 #15082 [Verbose] > │             let struct (v117 : int64, v118 : int64) = v111.[int v116]        │

00:02:21 #15083 [Verbose] > │             let v119 : int64 = v117 + 1L                                     │

00:02:21 #15084 [Verbose] > │             v113.[int v116] <- struct (v119, v118)                           │

00:02:21 #15085 [Verbose] > │             let v120 : int32 = v116 + 1                                      │

00:02:21 #15086 [Verbose] > │             v114.l0 <- v120                                                  │

00:02:21 #15087 [Verbose] > │             ()                                                               │

00:02:21 #15088 [Verbose] > │         let v121 : (struct (int64 * int64) -> int64) = closure3()            │

00:02:21 #15089 [Verbose] > │         let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121   │

00:02:21 #15090 [Verbose] > │         let struct (v123 : int64, v124 : int64) = v122.[int 0]               │

00:02:21 #15091 [Verbose] > │         let v125 : string = $"%A{struct (v123, v124)}"                       │

00:02:21 #15092 [Verbose] > │         let v126 : bool = v92 = v94                                          │

00:02:21 #15093 [Verbose] > │         let v131 : US0 =                                                     │

00:02:21 #15094 [Verbose] > │             if v126 then                                                     │

00:02:21 #15095 [Verbose] > │                 let v127 : System.ConsoleColor =                             │

00:02:21 #15096 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:02:21 #15097 [Verbose] > │                 US0_1(v127)                                                  │

00:02:21 #15098 [Verbose] > │             else                                                             │

00:02:21 #15099 [Verbose] > │                 let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:02:21 #15100 [Verbose] > │                 US0_1(v129)                                                  │

00:02:21 #15101 [Verbose] > │         let v132 : UH2 = UH2_1                                               │

00:02:21 #15102 [Verbose] > │         let v133 : UH2 = UH2_0(v125, v132)                                   │

00:02:21 #15103 [Verbose] > │         let v134 : UH2 = UH2_0(v94, v133)                                    │

00:02:21 #15104 [Verbose] > │         let v135 : UH2 = UH2_0(v92, v134)                                    │

00:02:21 #15105 [Verbose] > │         let v136 : UH2 = UH2_0(v93, v135)                                    │

00:02:21 #15106 [Verbose] > │         v88.[int v91] <- struct (v136, v131)                                 │

00:02:21 #15107 [Verbose] > │         let v137 : uint64 = v91 + 1UL                                        │

00:02:21 #15108 [Verbose] > │         v89.l0 <- v137                                                       │

00:02:21 #15109 [Verbose] > │         ()                                                                   │

00:02:21 #15110 [Verbose] > │     let v138 : string = "Input"                                              │

00:02:21 #15111 [Verbose] > │     let v139 : string = "Expected"                                           │

00:02:21 #15112 [Verbose] > │     let v140 : string = "Result"                                             │

00:02:21 #15113 [Verbose] > │     let v141 : string = "Best"                                               │

00:02:21 #15114 [Verbose] > │     let v142 : UH2 = UH2_1                                                   │

00:02:21 #15115 [Verbose] > │     let v143 : UH2 = UH2_0(v141, v142)                                       │

00:02:21 #15116 [Verbose] > │     let v144 : UH2 = UH2_0(v140, v143)                                       │

00:02:21 #15117 [Verbose] > │     let v145 : UH2 = UH2_0(v139, v144)                                       │

00:02:21 #15118 [Verbose] > │     let v146 : UH2 = UH2_0(v138, v145)                                       │

00:02:21 #15119 [Verbose] > │     let v147 : US0 = US0_0                                                   │

00:02:21 #15120 [Verbose] > │     let v148 : string = "---"                                                │

00:02:21 #15121 [Verbose] > │     let v149 : UH2 = UH2_1                                                   │

00:02:21 #15122 [Verbose] > │     let v150 : UH2 = UH2_0(v148, v149)                                       │

00:02:21 #15123 [Verbose] > │     let v151 : UH2 = UH2_0(v148, v150)                                       │

00:02:21 #15124 [Verbose] > │     let v152 : UH2 = UH2_0(v148, v151)                                       │

00:02:21 #15125 [Verbose] > │     let v153 : UH2 = UH2_0(v148, v152)                                       │

00:02:21 #15126 [Verbose] > │     let v154 : US0 = US0_0                                                   │

00:02:21 #15127 [Verbose] > │     let v155 : UH4 = UH4_1                                                   │

00:02:21 #15128 [Verbose] > │     let v156 : UH4 = UH4_0(v153, v154, v155)                                 │

00:02:21 #15129 [Verbose] > │     let v157 : UH4 = UH4_0(v146, v147, v156)                                 │

00:02:21 #15130 [Verbose] > │     let v158 : (struct (UH2 * US0) []) = method16(v157)                      │

00:02:21 #15131 [Verbose] > │     let v159 : uint64 = System.Convert.ToUInt64 v158.Length                  │

00:02:21 #15132 [Verbose] > │     let v160 : uint64 = System.Convert.ToUInt64 v88.Length                   │

00:02:21 #15133 [Verbose] > │     let v161 : uint64 = v159 + v160                                          │

00:02:21 #15134 [Verbose] > │     let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:02:21 #15135 [Verbose] > │ US0)> (System.Convert.ToInt32(v161))                                         │

00:02:21 #15136 [Verbose] > │     let v163 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:21 #15137 [Verbose] > │     while method4(v161, v163) do                                             │

00:02:21 #15138 [Verbose] > │         let v165 : uint64 = v163.l0                                          │

00:02:21 #15139 [Verbose] > │         let v166 : bool = v165 < v159                                        │

00:02:21 #15140 [Verbose] > │         let struct (v172 : UH2, v173 : US0) =                                │

00:02:21 #15141 [Verbose] > │             if v166 then                                                     │

00:02:21 #15142 [Verbose] > │                 let struct (v167 : UH2, v168 : US0) = v158.[int v165]        │

00:02:21 #15143 [Verbose] > │                 struct (v167, v168)                                          │

00:02:21 #15144 [Verbose] > │             else                                                             │

00:02:21 #15145 [Verbose] > │                 let v169 : uint64 = v165 - v159                              │

00:02:21 #15146 [Verbose] > │                 let struct (v170 : UH2, v171 : US0) = v88.[int v169]         │

00:02:21 #15147 [Verbose] > │                 struct (v170, v171)                                          │

00:02:21 #15148 [Verbose] > │         v162.[int v165] <- struct (v172, v173)                               │

00:02:21 #15149 [Verbose] > │         let v174 : uint64 = v165 + 1UL                                       │

00:02:21 #15150 [Verbose] > │         v163.l0 <- v174                                                      │

00:02:21 #15151 [Verbose] > │         ()                                                                   │

00:02:21 #15152 [Verbose] > │     let v175 : uint64 = System.Convert.ToUInt64 v162.Length                  │

00:02:21 #15153 [Verbose] > │     let v176 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:02:22 #15154 [Verbose] > │ (System.Convert.ToInt32(v175))                                               │

00:02:22 #15155 [Verbose] > │     let v177 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15156 [Verbose] > │     while method4(v175, v177) do                                             │

00:02:22 #15157 [Verbose] > │         let v179 : uint64 = v177.l0                                          │

00:02:22 #15158 [Verbose] > │         let struct (v180 : UH2, v181 : US0) = v162.[int v179]                │

00:02:22 #15159 [Verbose] > │         let v182 : (string []) = method19(v180)                              │

00:02:22 #15160 [Verbose] > │         v176.[int v179] <- v182                                              │

00:02:22 #15161 [Verbose] > │         let v183 : uint64 = v179 + 1UL                                       │

00:02:22 #15162 [Verbose] > │         v177.l0 <- v183                                                      │

00:02:22 #15163 [Verbose] > │         ()                                                                   │

00:02:22 #15164 [Verbose] > │     let v184 : ((string []) []) = v176 |> Array.transpose                    │

00:02:22 #15165 [Verbose] > │     let v185 : uint64 = System.Convert.ToUInt64 v184.Length                  │

00:02:22 #15166 [Verbose] > │     let v186 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:22 #15167 [Verbose] > │ (System.Convert.ToInt32(v185))                                               │

00:02:22 #15168 [Verbose] > │     let v187 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15169 [Verbose] > │     while method4(v185, v187) do                                             │

00:02:22 #15170 [Verbose] > │         let v189 : uint64 = v187.l0                                          │

00:02:22 #15171 [Verbose] > │         let v190 : (string []) = v184.[int v189]                             │

00:02:22 #15172 [Verbose] > │         let v191 : uint64 = System.Convert.ToUInt64 v190.Length              │

00:02:22 #15173 [Verbose] > │         let v192 : (int64 []) = Array.zeroCreate<int64>                      │

00:02:22 #15174 [Verbose] > │ (System.Convert.ToInt32(v191))                                               │

00:02:22 #15175 [Verbose] > │         let v193 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:22 #15176 [Verbose] > │         while method4(v191, v193) do                                         │

00:02:22 #15177 [Verbose] > │             let v195 : uint64 = v193.l0                                      │

00:02:22 #15178 [Verbose] > │             let v196 : string = v190.[int v195]                              │

00:02:22 #15179 [Verbose] > │             let v197 : int64 = System.Convert.ToInt64 v196.Length            │

00:02:22 #15180 [Verbose] > │             v192.[int v195] <- v197                                          │

00:02:22 #15181 [Verbose] > │             let v198 : uint64 = v195 + 1UL                                   │

00:02:22 #15182 [Verbose] > │             v193.l0 <- v198                                                  │

00:02:22 #15183 [Verbose] > │             ()                                                               │

00:02:22 #15184 [Verbose] > │         let v199 : (int64 []) = v192 |> Array.sortDescending                 │

00:02:22 #15185 [Verbose] > │         let v200 : int64 option = v199 |> Array.tryItem 0                    │

00:02:22 #15186 [Verbose] > │         let v201 : (int64 -> US1) = closure4()                               │

00:02:22 #15187 [Verbose] > │         let v202 : US1 = US1_0                                               │

00:02:22 #15188 [Verbose] > │         let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │

00:02:22 #15189 [Verbose] > │         let v206 : int64 =                                                   │

00:02:22 #15190 [Verbose] > │             match v203 with                                                  │

00:02:22 #15191 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:02:22 #15192 [Verbose] > │                 0L                                                           │

00:02:22 #15193 [Verbose] > │             | US1_1(v204) -> (* Some *)                                      │

00:02:22 #15194 [Verbose] > │                 v204                                                         │

00:02:22 #15195 [Verbose] > │         v186.[int v189] <- v206                                              │

00:02:22 #15196 [Verbose] > │         let v207 : uint64 = v189 + 1UL                                       │

00:02:22 #15197 [Verbose] > │         v187.l0 <- v207                                                      │

00:02:22 #15198 [Verbose] > │         ()                                                                   │

00:02:22 #15199 [Verbose] > │     let v208 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:02:22 #15200 [Verbose] > │     let v209 : UH5 = UH5_1                                                   │

00:02:22 #15201 [Verbose] > │     let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3                   │

00:02:22 #15202 [Verbose] > │     while method22(v208, v210) do                                            │

00:02:22 #15203 [Verbose] > │         let v212 : uint64 = v210.l0                                          │

00:02:22 #15204 [Verbose] > │         let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2             │

00:02:22 #15205 [Verbose] > │         let v215 : int64 = v186.[int v212]                                   │

00:02:22 #15206 [Verbose] > │         let v216 : int32 = v214 + 1                                          │

00:02:22 #15207 [Verbose] > │         let v217 : uint64 = v212 + 1UL                                       │

00:02:22 #15208 [Verbose] > │         let v218 : UH5 = UH5_0(v214, v215, v213)                             │

00:02:22 #15209 [Verbose] > │         v210.l0 <- v217                                                      │

00:02:22 #15210 [Verbose] > │         v210.l1 <- v218                                                      │

00:02:22 #15211 [Verbose] > │         v210.l2 <- v216                                                      │

00:02:22 #15212 [Verbose] > │         ()                                                                   │

00:02:22 #15213 [Verbose] > │     let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2                 │

00:02:22 #15214 [Verbose] > │     let v221 : UH5 = UH5_1                                                   │

00:02:22 #15215 [Verbose] > │     let v222 : UH5 = method23(v219, v221)                                    │

00:02:22 #15216 [Verbose] > │     let v223 : (struct (int32 * int64) []) = method24(v222)                  │

00:02:22 #15217 [Verbose] > │     let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │

00:02:22 #15218 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:02:22 #15219 [Verbose] > │     let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:02:22 #15220 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175))                          │

00:02:22 #15221 [Verbose] > │     let v226 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15222 [Verbose] > │     while method4(v175, v226) do                                             │

00:02:22 #15223 [Verbose] > │         let v228 : uint64 = v226.l0                                          │

00:02:22 #15224 [Verbose] > │         let struct (v229 : UH2, v230 : US0) = v162.[int v228]                │

00:02:22 #15225 [Verbose] > │         let v231 : UH6 = UH6_1                                               │

00:02:22 #15226 [Verbose] > │         let v232 : int32 = 0                                                 │

00:02:22 #15227 [Verbose] > │         let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232)   │

00:02:22 #15228 [Verbose] > │         let v235 : UH6 = UH6_1                                               │

00:02:22 #15229 [Verbose] > │         let v236 : UH6 = method28(v233, v235)                                │

00:02:22 #15230 [Verbose] > │         let v237 : UH2 = UH2_1                                               │

00:02:22 #15231 [Verbose] > │         let v238 : UH2 = method29(v224, v236, v237)                          │

00:02:22 #15232 [Verbose] > │         let v239 : (string []) = method30(v238)                              │

00:02:22 #15233 [Verbose] > │         v225.[int v228] <- struct (v239, v230)                               │

00:02:22 #15234 [Verbose] > │         let v240 : uint64 = v228 + 1UL                                       │

00:02:22 #15235 [Verbose] > │         v226.l0 <- v240                                                      │

00:02:22 #15236 [Verbose] > │         ()                                                                   │

00:02:22 #15237 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:22 #15238 [Verbose] > │     let v241 : uint64 = System.Convert.ToUInt64 v225.Length                  │

00:02:22 #15239 [Verbose] > │     let v242 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15240 [Verbose] > │     while method4(v241, v242) do                                             │

00:02:22 #15241 [Verbose] > │         let v244 : uint64 = v242.l0                                          │

00:02:22 #15242 [Verbose] > │         let struct (v245 : (string []), v246 : US0) = v225.[int v244]        │

00:02:22 #15243 [Verbose] > │         match v246 with                                                      │

00:02:22 #15244 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:22 #15245 [Verbose] > │             let mutable result = None                                        │

00:02:22 #15246 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:22 #15247 [Verbose] > │             ()                                                               │

00:02:22 #15248 [Verbose] > │             #endif                                                           │

00:02:22 #15249 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:22 #15250 [Verbose] > │             ()                                                               │

00:02:22 #15251 [Verbose] > │             #endif                                                           │

00:02:22 #15252 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:22 #15253 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:22 #15254 [Verbose] > │             ()                                                               │

00:02:22 #15255 [Verbose] > │             #endif                                                           │

00:02:22 #15256 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:22 #15257 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:22 #15258 [Verbose] > │             ()                                                               │

00:02:22 #15259 [Verbose] > │             #endif                                                           │

00:02:22 #15260 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:22 #15261 [Verbose] > │             System.Console.ResetColor ()                                     │

00:02:22 #15262 [Verbose] > │             ()                                                               │

00:02:22 #15263 [Verbose] > │             #endif                                                           │

00:02:22 #15264 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:22 #15265 [Verbose] > │             result |> Option.get                                             │

00:02:22 #15266 [Verbose] > │             ()                                                               │

00:02:22 #15267 [Verbose] > │         | US0_1(v247) -> (* Some *)                                          │

00:02:22 #15268 [Verbose] > │             let mutable result = None                                        │

00:02:22 #15269 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:02:22 #15270 [Verbose] > │             ()                                                               │

00:02:22 #15271 [Verbose] > │             #endif                                                           │

00:02:22 #15272 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:02:22 #15273 [Verbose] > │             ()                                                               │

00:02:22 #15274 [Verbose] > │             #endif                                                           │

00:02:22 #15275 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:02:22 #15276 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:22 #15277 [Verbose] > │             ()                                                               │

00:02:22 #15278 [Verbose] > │             #endif                                                           │

00:02:22 #15279 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:02:22 #15280 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:22 #15281 [Verbose] > │             ()                                                               │

00:02:22 #15282 [Verbose] > │             #endif                                                           │

00:02:22 #15283 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:02:22 #15284 [Verbose] > │             System.Console.ForegroundColor <- v247                           │

00:02:22 #15285 [Verbose] > │             ()                                                               │

00:02:22 #15286 [Verbose] > │             #endif                                                           │

00:02:22 #15287 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:02:22 #15288 [Verbose] > │             result |> Option.get                                             │

00:02:22 #15289 [Verbose] > │             ()                                                               │

00:02:22 #15290 [Verbose] > │         let v248 : string = "\t| "                                           │

00:02:22 #15291 [Verbose] > │         let v249 : string = System.String.Join (v248, v245)                  │

00:02:22 #15292 [Verbose] > │         System.Console.WriteLine v249                                        │

00:02:22 #15293 [Verbose] > │         let mutable result = None                                            │

00:02:22 #15294 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:02:22 #15295 [Verbose] > │         ()                                                                   │

00:02:22 #15296 [Verbose] > │         #endif                                                               │

00:02:22 #15297 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:02:22 #15298 [Verbose] > │         ()                                                                   │

00:02:22 #15299 [Verbose] > │         #endif                                                               │

00:02:22 #15300 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:02:22 #15301 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:22 #15302 [Verbose] > │         ()                                                                   │

00:02:22 #15303 [Verbose] > │         #endif                                                               │

00:02:22 #15304 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:02:22 #15305 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:22 #15306 [Verbose] > │         ()                                                                   │

00:02:22 #15307 [Verbose] > │         #endif                                                               │

00:02:22 #15308 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:02:22 #15309 [Verbose] > │         System.Console.ResetColor ()                                         │

00:02:22 #15310 [Verbose] > │         ()                                                                   │

00:02:22 #15311 [Verbose] > │         #endif                                                               │

00:02:22 #15312 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:02:22 #15313 [Verbose] > │         result |> Option.get                                                 │

00:02:22 #15314 [Verbose] > │         let v250 : uint64 = v244 + 1UL                                       │

00:02:22 #15315 [Verbose] > │         v242.l0 <- v250                                                      │

00:02:22 #15316 [Verbose] > │         ()                                                                   │

00:02:22 #15317 [Verbose] > │     let v251 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:02:22 #15318 [Verbose] > │ (System.Convert.ToInt32(v87))                                                │

00:02:22 #15319 [Verbose] > │     let v252 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15320 [Verbose] > │     while method4(v87, v252) do                                              │

00:02:22 #15321 [Verbose] > │         let v254 : uint64 = v252.l0                                          │

00:02:22 #15322 [Verbose] > │         let struct (v255 : string, v256 : string, v257 : string, v258 :      │

00:02:22 #15323 [Verbose] > │ (int64 [])) = v16.[int v254]                                                 │

00:02:22 #15324 [Verbose] > │         let v259 : (int64 -> float) = float                                  │

00:02:22 #15325 [Verbose] > │         let v260 : uint64 = System.Convert.ToUInt64 v258.Length              │

00:02:22 #15326 [Verbose] > │         let v261 : (float []) = Array.zeroCreate<float>                      │

00:02:22 #15327 [Verbose] > │ (System.Convert.ToInt32(v260))                                               │

00:02:22 #15328 [Verbose] > │         let v262 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:02:22 #15329 [Verbose] > │         while method4(v260, v262) do                                         │

00:02:22 #15330 [Verbose] > │             let v264 : uint64 = v262.l0                                      │

00:02:22 #15331 [Verbose] > │             let v265 : int64 = v258.[int v264]                               │

00:02:22 #15332 [Verbose] > │             let v266 : float = v259 v265                                     │

00:02:22 #15333 [Verbose] > │             v261.[int v264] <- v266                                          │

00:02:22 #15334 [Verbose] > │             let v267 : uint64 = v264 + 1UL                                   │

00:02:22 #15335 [Verbose] > │             v262.l0 <- v267                                                  │

00:02:22 #15336 [Verbose] > │             ()                                                               │

00:02:22 #15337 [Verbose] > │         v251.[int v254] <- v261                                              │

00:02:22 #15338 [Verbose] > │         let v268 : uint64 = v254 + 1UL                                       │

00:02:22 #15339 [Verbose] > │         v252.l0 <- v268                                                      │

00:02:22 #15340 [Verbose] > │         ()                                                                   │

00:02:22 #15341 [Verbose] > │     let v269 : ((float []) []) = v251 |> Array.transpose                     │

00:02:22 #15342 [Verbose] > │     let v270 : uint64 = System.Convert.ToUInt64 v269.Length                  │

00:02:22 #15343 [Verbose] > │     let v271 : (float []) = Array.zeroCreate<float>                          │

00:02:22 #15344 [Verbose] > │ (System.Convert.ToInt32(v270))                                               │

00:02:22 #15345 [Verbose] > │     let v272 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15346 [Verbose] > │     while method4(v270, v272) do                                             │

00:02:22 #15347 [Verbose] > │         let v274 : uint64 = v272.l0                                          │

00:02:22 #15348 [Verbose] > │         let v275 : (float []) = v269.[int v274]                              │

00:02:22 #15349 [Verbose] > │         let v276 : float = v275 |> Array.average                             │

00:02:22 #15350 [Verbose] > │         v271.[int v274] <- v276                                              │

00:02:22 #15351 [Verbose] > │         let v277 : uint64 = v274 + 1UL                                       │

00:02:22 #15352 [Verbose] > │         v272.l0 <- v277                                                      │

00:02:22 #15353 [Verbose] > │         ()                                                                   │

00:02:22 #15354 [Verbose] > │     let v278 : (float -> int64) = int64                                      │

00:02:22 #15355 [Verbose] > │     let v279 : uint64 = System.Convert.ToUInt64 v271.Length                  │

00:02:22 #15356 [Verbose] > │     let v280 : (int64 []) = Array.zeroCreate<int64>                          │

00:02:22 #15357 [Verbose] > [NbConvertApp] Writing 425753 bytes to sm'.dib.html

00:02:22 #15358 [Verbose] > │ (System.Convert.ToInt32(v279))                                               │

00:02:22 #15359 [Verbose] > │     let v281 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15360 [Verbose] > │     while method4(v279, v281) do                                             │

00:02:22 #15361 [Verbose] > │         let v283 : uint64 = v281.l0                                          │

00:02:22 #15362 [Verbose] > │         let v284 : float = v271.[int v283]                                   │

00:02:22 #15363 [Verbose] > │         let v285 : int64 = v278 v284                                         │

00:02:22 #15364 [Verbose] > │         v280.[int v283] <- v285                                              │

00:02:22 #15365 [Verbose] > │         let v286 : uint64 = v283 + 1UL                                       │

00:02:22 #15366 [Verbose] > │         v281.l0 <- v286                                                      │

00:02:22 #15367 [Verbose] > │         ()                                                                   │

00:02:22 #15368 [Verbose] > │     let v287 : uint64 = System.Convert.ToUInt64 v280.Length                  │

00:02:22 #15369 [Verbose] > │     let v288 : UH5 = UH5_1                                                   │

00:02:22 #15370 [Verbose] > │     let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3                   │

00:02:22 #15371 [Verbose] > │     while method22(v287, v289) do                                            │

00:02:22 #15372 [Verbose] > │         let v291 : uint64 = v289.l0                                          │

00:02:22 #15373 [Verbose] > │         let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2             │

00:02:22 #15374 [Verbose] > │         let v294 : int64 = v280.[int v291]                                   │

00:02:22 #15375 [Verbose] > │         let v295 : int32 = v293 + 1                                          │

00:02:22 #15376 [Verbose] > │         let v296 : uint64 = v291 + 1UL                                       │

00:02:22 #15377 [Verbose] > │         let v297 : UH5 = UH5_0(v293, v294, v292)                             │

00:02:22 #15378 [Verbose] > │         v289.l0 <- v296                                                      │

00:02:22 #15379 [Verbose] > │         v289.l1 <- v297                                                      │

00:02:22 #15380 [Verbose] > │         v289.l2 <- v295                                                      │

00:02:22 #15381 [Verbose] > │         ()                                                                   │

00:02:22 #15382 [Verbose] > │     let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2                 │

00:02:22 #15383 [Verbose] > │     let v300 : UH5 = UH5_1                                                   │

00:02:22 #15384 [Verbose] > │     let v301 : UH5 = method23(v298, v300)                                    │

00:02:22 #15385 [Verbose] > │     let v302 : (struct (int32 * int64) []) = method33(v301)                  │

00:02:22 #15386 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:22 #15387 [Verbose] > │     let v303 : string = "Average Ranking  "                                  │

00:02:22 #15388 [Verbose] > │     System.Console.WriteLine v303                                            │

00:02:22 #15389 [Verbose] > │     let v304 : (struct (int32 * int64) -> int64) = closure5()                │

00:02:22 #15390 [Verbose] > │     let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304       │

00:02:22 #15391 [Verbose] > │     let v306 : uint64 = System.Convert.ToUInt64 v305.Length                  │

00:02:22 #15392 [Verbose] > │     let v307 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:02:22 #15393 [Verbose] > │     while method4(v306, v307) do                                             │

00:02:22 #15394 [Verbose] > │         let v309 : uint64 = v307.l0                                          │

00:02:22 #15395 [Verbose] > │         let struct (v310 : int32, v311 : int64) = v305.[int v309]            │

00:02:22 #15396 [Verbose] > │         let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │

00:02:22 #15397 [Verbose] > │ "                                                                            │

00:02:22 #15398 [Verbose] > │         System.Console.WriteLine v312                                        │

00:02:22 #15399 [Verbose] > │         let v313 : uint64 = v309 + 1UL                                       │

00:02:22 #15400 [Verbose] > │         v307.l0 <- v313                                                      │

00:02:22 #15401 [Verbose] > │         ()                                                                   │

00:02:22 #15402 [Verbose] > │     ()                                                                       │

00:02:22 #15403 [Verbose] > │ method0()                                                                    │

00:02:22 #15404 [Verbose] > │                                                                              │

00:02:22 #15405 [Verbose] > │                                                                              │

00:02:22 #15406 [Verbose] > │                                                                              │

00:02:22 #15407 [Verbose] > │ Test: v0                                                                     │

00:02:22 #15408 [Verbose] > │                                                                              │

00:02:22 #15409 [Verbose] > │ Solution: 0.0                                                                │

00:02:22 #15410 [Verbose] > │ Test case 1. A. Time: 60                                                     │

00:02:22 #15411 [Verbose] > │                                                                              │

00:02:22 #15412 [Verbose] > │ Solution: 2.0                                                                │

00:02:22 #15413 [Verbose] > │ Test case 1. A. Time: 30                                                     │

00:02:22 #15414 [Verbose] > │                                                                              │

00:02:22 #15415 [Verbose] > │ Solution: 5.0                                                                │

00:02:22 #15416 [Verbose] > │ Test case 1. A. Time: 37                                                     │

00:02:22 #15417 [Verbose] > │                                                                              │

00:02:22 #15418 [Verbose] > │ Input	| Expected	| Result	| Best                                                   │

00:02:22 #15419 [Verbose] > │ ---  	| ---     	| ---   	| ---                                                    │

00:02:22 #15420 [Verbose] > │ 0.0  	| 1.0     	| 1.0   	| struct (1L, 60L)                                       │

00:02:22 #15421 [Verbose] > │ 2.0  	| 3.0     	| 3.0   	| struct (1L, 30L)                                       │

00:02:22 #15422 [Verbose] > │ 5.0  	| 6.0     	| 6.0   	| struct (1L, 37L)                                       │

00:02:22 #15423 [Verbose] > │                                                                              │

00:02:22 #15424 [Verbose] > │ Average Ranking                                                              │

00:02:22 #15425 [Verbose] > │ Test case 1. Average Time: 42L                                               │

00:02:22 #15426 [Verbose] > │                                                                              │

00:02:22 #15427 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:23 #15428 [Verbose] >

00:02:23 #15429 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:23 #15430 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:23 #15431 [Verbose] > │ # physics                                                                    │

00:02:23 #15432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:23 #15433 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-1822-2259-2882fd1febc2\main.spi

00:02:23 #15434 [Verbose] >

00:02:23 #15435 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:02:23 #15436 [Verbose] > #!import ../../lib/fsharp/Plotting.dib

00:02:23 #15437 [Verbose] >

00:02:23 #15438 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:23 #15439 [Verbose] > #r

00:02:23 #15440 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

00:02:23 #15441 [Verbose] > spNetCore.Html.Abstractions.dll"

00:02:23 #15442 [Verbose] > #r

00:02:23 #15443 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:02:23 #15444 [Verbose] > otNet.Interactive.dll"

00:02:23 #15445 [Verbose] > #r

00:02:23 #15446 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:02:23 #15447 [Verbose] > otNet.Interactive.FSharp.dll"

00:02:23 #15448 [Verbose] > #r

00:02:23 #15449 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:02:23 #15450 [Verbose] > otNet.Interactive.Formatting.dll"

00:02:23 #15451 [Verbose] > open System

00:02:23 #15452 [Verbose] > open System.IO

00:02:23 #15453 [Verbose] > open System.Text

00:02:23 #15454 [Verbose] > open Microsoft.DotNet.Interactive.Formatting

00:02:24 #15455 [Debug] executeAsync / exitCode: 0 / output.Length: 122442

00:02:24 #15456 [Debug] main / executeCommand / exitCode: 0

00:02:26 #15457 [Verbose] >

00:02:26 #15458 [Verbose] > ╭─[ 9.56s - stdout ]───────────────────────────────────────────────────────────╮

00:02:26 #15459 [Verbose] > │ ()                                                                           │

00:02:26 #15460 [Verbose] > │                                                                              │

00:02:26 #15461 [Verbose] > │                                                                              │

00:02:26 #15462 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:26 #15463 [Verbose] >

00:02:26 #15464 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:26 #15465 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:26 #15466 [Verbose] > │ ## emit_expr                                                                 │

00:02:26 #15467 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:26 #15468 [Verbose] >

00:02:26 #15469 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:26 #15470 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =

00:02:26 #15471 [Verbose] >     real

00:02:26 #15472 [Verbose] >         $"Fable.Core.RustInterop.emitRustExpr !args !code" : t

00:02:26 #15473 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-2166-6621-650744bbb09b\main.spi

00:02:26 #15474 [Verbose] > [NbConvertApp] Converting notebook seq.dib.ipynb to html

00:02:26 #15475 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:26 #15476 [Verbose] >   validate(nb)

00:02:26 #15477 [Verbose] >

00:02:26 #15478 [Verbose] > ╭─[ 314.63ms - stdout ]────────────────────────────────────────────────────────╮

00:02:26 #15479 [Verbose] > │ ()                                                                           │

00:02:26 #15480 [Verbose] > │                                                                              │

00:02:26 #15481 [Verbose] > │                                                                              │

00:02:26 #15482 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:26 #15483 [Verbose] >

00:02:26 #15484 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:26 #15485 [Verbose] > inl types () =

00:02:26 #15486 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func0<$0>\")>]] type

00:02:26 #15487 [Verbose] > Func0<'T> = class end"

00:02:26 #15488 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func1<$0, $1>\")>]] type

00:02:26 #15489 [Verbose] > Func0<'T, 'U> = class end"

00:02:26 #15490 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Box<$0>\")>]] type Box<'T> =

00:02:26 #15491 [Verbose] > class end"

00:02:26 #15492 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn $0\")>]] type Dyn<'T> =

00:02:26 #15493 [Verbose] > class end"

00:02:26 #15494 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn() -> $0\")>]] type Fn<'T>

00:02:26 #15495 [Verbose] > = class end"

00:02:26 #15496 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()\")>]] type FnUnit =

00:02:26 #15497 [Verbose] > class end"

00:02:26 #15498 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"FnOnce() -> $0\")>]] type

00:02:26 #15499 [Verbose] > FnOnce<'T> = class end"

00:02:26 #15500 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn($0, $1)\")>]] type

00:02:26 #15501 [Verbose] > ActionFn2<'T, 'U> = class end"

00:02:26 #15502 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"impl $0\")>]] type Impl<'T> =

00:02:26 #15503 [Verbose] > class end"

00:02:26 #15504 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"mut $0\")>]] type Mut<'T> =

00:02:26 #15505 [Verbose] > class end"

00:02:26 #15506 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =

00:02:26 #15507 [Verbose] > class end"

00:02:26 #15508 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&'static $0\")>]] type

00:02:26 #15509 [Verbose] > StaticRef<'T> = class end"

00:02:26 #15510 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"MutCell<$0>\")>]] type

00:02:26 #15511 [Verbose] > MutCell<'T> = class end"

00:02:26 #15512 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::any::Any\")>]] type

00:02:26 #15513 [Verbose] > std_any_Any = class end"

00:02:26 #15514 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]

00:02:26 #15515 [Verbose] > type std_cell_RefCell<'T> = class end"

00:02:26 #15516 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::pin::Pin<$0>\")>]] type

00:02:26 #15517 [Verbose] > std_pin_Pin<'T> = class end"

00:02:26 #15518 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Rc<$0>\")>]] type

00:02:26 #15519 [Verbose] > std_rc_Rc<'T> = class end"

00:02:26 #15520 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Weak<$0>\")>]] type

00:02:26 #15521 [Verbose] > std_rc_Weak<'T> = class end"

00:02:26 #15522 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::sync::Arc<$0>\")>]] type

00:02:26 #15523 [Verbose] > std_sync_Arc<'T> = class end"

00:02:26 #15524 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-2197-9741-92a60f8803ba\main.spi

00:02:26 #15525 [Verbose] > [NbConvertApp] Converting notebook benchmark.dib.ipynb to html

00:02:26 #15526 [Verbose] >

00:02:26 #15527 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:26 #15528 [Verbose] >   validate(nb)

00:02:26 #15529 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-2220-2039-2a8e6a790859\main.spi

00:02:27 #15530 [Verbose] > ╭─[ 230.93ms - stdout ]────────────────────────────────────────────────────────╮

00:02:27 #15531 [Verbose] > │ ()                                                                           │

00:02:27 #15532 [Verbose] > │                                                                              │

00:02:27 #15533 [Verbose] > │                                                                              │

00:02:27 #15534 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:27 #15535 [Verbose] >

00:02:27 #15536 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:27 #15537 [Verbose] > nominal ref_cell t = $"std_cell_RefCell<`t>"

00:02:27 #15538 [Verbose] > nominal rc t = $"std_rc_Rc<`t>"

00:02:27 #15539 [Verbose] > nominal weak_rc t = $"std_rc_Weak<`t>"

00:02:27 #15540 [Verbose] > nominal box t = $"Box<`t>"

00:02:27 #15541 [Verbose] > nominal mut_cell t = $"MutCell<`t>"

00:02:27 #15542 [Verbose] > nominal pin t = $"std_pin_Pin<`t>"

00:02:27 #15543 [Verbose] > nominal arc t = $"std_sync_Arc<`t>"

00:02:27 #15544 [Verbose] > nominal dyn' t = $"Dyn<`t>"

00:02:27 #15545 [Verbose] > nominal fn' t = $"Fn<`t>"

00:02:27 #15546 [Verbose] > nominal action_fn2 t u = $"ActionFn2<`t, `u>"

00:02:27 #15547 [Verbose] > nominal fn_once t = $"FnOnce<`t>"

00:02:27 #15548 [Verbose] > nominal fn_unit = $"FnUnit"

00:02:27 #15549 [Verbose] > nominal func0 t = $"Func0<`t>"

00:02:27 #15550 [Verbose] > nominal func1 t u = $"Func0<`t, `u>"

00:02:27 #15551 [Verbose] > nominal impl t = $"Impl<`t>"

00:02:27 #15552 [Verbose] > nominal mut' t = $"Mut<`t>"

00:02:27 #15553 [Verbose] > nominal ref' t = $"Ref<`t>"

00:02:27 #15554 [Verbose] > nominal static_ref' t = $"StaticRef<`t>"

00:02:27 #15555 [Verbose] >

00:02:27 #15556 [Verbose] > ╭─[ 280.37ms - stdout ]────────────────────────────────────────────────────────╮

00:02:27 #15557 [Verbose] > │ ()                                                                           │

00:02:27 #15558 [Verbose] > │                                                                              │

00:02:27 #15559 [Verbose] > │                                                                              │

00:02:27 #15560 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:27 #15561 [Verbose] >

00:02:27 #15562 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:27 #15563 [Verbose] > inl (~!\) forall t. (code : string) : t =

00:02:27 #15564 [Verbose] >     emit_expr () code

00:02:27 #15565 [Verbose] >

00:02:27 #15566 [Verbose] > inl (~!\\) forall t u. ((args : t), (code : string)) : u =

00:02:27 #15567 [Verbose] >     emit_expr args code

00:02:27 #15568 [Verbose] >

00:02:27 #15569 [Verbose] > inl new_box forall t. (x : t) : box t =

00:02:27 #15570 [Verbose] >     inl x = join x

00:02:27 #15571 [Verbose] >     !\($'"Box::new(!x)"')

00:02:27 #15572 [Verbose] >

00:02:27 #15573 [Verbose] > inl new_rc forall t. (x : t) : rc t =

00:02:27 #15574 [Verbose] >     inl x = join x

00:02:27 #15575 [Verbose] >     !\($'"std::rc::Rc::new(!x)"')

00:02:27 #15576 [Verbose] >

00:02:27 #15577 [Verbose] > inl rc_clone forall t. (x : rc t) : rc t =

00:02:27 #15578 [Verbose] >     inl x = join x

00:02:27 #15579 [Verbose] >     !\($'"std::rc::Rc::clone(&!x)"')

00:02:27 #15580 [Verbose] >

00:02:27 #15581 [Verbose] > inl rc_downgrade forall t. (x : rc t) : weak_rc t =

00:02:27 #15582 [Verbose] >     inl x = join x

00:02:27 #15583 [Verbose] >     !\($'"std::rc::Rc::downgrade(&!x)"')

00:02:27 #15584 [Verbose] >

00:02:27 #15585 [Verbose] > inl new_ref_cell forall t. (x : t) : ref_cell t =

00:02:27 #15586 [Verbose] >     inl x = join x

00:02:27 #15587 [Verbose] >     !\($'"std::cell::RefCell::new(!x)"')

00:02:27 #15588 [Verbose] >

00:02:27 #15589 [Verbose] > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =

00:02:27 #15590 [Verbose] >     inl x = join x

00:02:27 #15591 [Verbose] >     !\($'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&!x))"')

00:02:27 #15592 [Verbose] >

00:02:27 #15593 [Verbose] > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =

00:02:27 #15594 [Verbose] >     inl x = join x

00:02:27 #15595 [Verbose] >     !\($'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&!x))"')

00:02:27 #15596 [Verbose] >

00:02:27 #15597 [Verbose] > inl to_mut forall t. (x : t) : mut' t =

00:02:27 #15598 [Verbose] >     // !\($'"let mut !x = !x"')

00:02:27 #15599 [Verbose] >     // !\($'"!x"')

00:02:27 #15600 [Verbose] >     emit_expr () $"\"let mut !x = !x\""

00:02:27 #15601 [Verbose] >     emit_expr () $"\"!x\""

00:02:27 #15602 [Verbose] >

00:02:27 #15603 [Verbose] > inl ref_map forall t u. (fn : t -> u) (x : ref' t) : ref' u =

00:02:27 #15604 [Verbose] >     !\($'"!fn(!x)"')

00:02:27 #15605 [Verbose] >

00:02:27 #15606 [Verbose] > inl from_mut forall t. (x : mut' t) : t =

00:02:27 #15607 [Verbose] >     !\($'"!x"')

00:02:27 #15608 [Verbose] >

00:02:27 #15609 [Verbose] > inl new_arc forall t. (x : t) : arc t =

00:02:27 #15610 [Verbose] >     inl x = join x

00:02:27 #15611 [Verbose] >     !\($'"std::sync::Arc::new(!x)"')

00:02:27 #15612 [Verbose] >

00:02:27 #15613 [Verbose] > inl box_fn forall t. (x : () -> ()) : box t =

00:02:27 #15614 [Verbose] >     inl x = join x

00:02:27 #15615 [Verbose] >     !\($'"Box::new(move || !x())"')

00:02:27 #15616 [Verbose] >

00:02:27 #15617 [Verbose] > inl new_pin forall t. (x : t) : pin (box t) =

00:02:27 #15618 [Verbose] >     inl x = join x

00:02:27 #15619 [Verbose] >     !\($'"Box::pin(!x)"')

00:02:27 #15620 [Verbose] >

00:02:27 #15621 [Verbose] > inl deref forall t. (ref : ref' t) : t =

00:02:27 #15622 [Verbose] >     inl ref = join ref

00:02:27 #15623 [Verbose] >     !\($'"*!ref"')

00:02:27 #15624 [Verbose] >

00:02:27 #15625 [Verbose] > inl ops_deref forall t. (ref : t) : t =

00:02:27 #15626 [Verbose] >     inl ref = join ref

00:02:27 #15627 [Verbose] >     !\($'"core::ops::Deref::deref(&!ref)"')

00:02:27 #15628 [Verbose] >

00:02:27 #15629 [Verbose] > inl func0_get forall t. (x : func0 t) : t =

00:02:27 #15630 [Verbose] >     inl x = join x

00:02:27 #15631 [Verbose] >     !\($'"!x()"')

00:02:27 #15632 [Verbose] >

00:02:27 #15633 [Verbose] > inl func0_move forall t. (fn : func0 t) : t =

00:02:27 #15634 [Verbose] >     inl fn = join fn

00:02:27 #15635 [Verbose] >     !\($'"(move || !fn())()"')

00:02:27 #15636 [Verbose] >

00:02:27 #15637 [Verbose] > inl move forall t. (fn : () -> t) : func0 t =

00:02:27 #15638 [Verbose] >     inl fn = join fn

00:02:27 #15639 [Verbose] >     !\($'"Func0::new(move || !fn())"')

00:02:27 #15640 [Verbose] >

00:02:27 #15641 [Verbose] > inl to_static_ref_unbox forall t. (x : ref' t) : static_ref' t =

00:02:27 #15642 [Verbose] >     $"!x |> unbox"

00:02:27 #15643 [Verbose] >

00:02:27 #15644 [Verbose] > inl from_static_ref_unbox forall t. (x : static_ref' t) : ref' t =

00:02:27 #15645 [Verbose] >     $"!x |> unbox"

00:02:27 #15646 [Verbose] >

00:02:27 #15647 [Verbose] > inl box_leak forall t. (x : box t) : static_ref' (mut' t) =

00:02:27 #15648 [Verbose] >     emit_expr () $"\"Box::leak(!x)\""

00:02:27 #15649 [Verbose] >

00:02:27 #15650 [Verbose] >

00:02:27 #15651 [Verbose] > inl fix_closure depth' x' =

00:02:27 #15652 [Verbose] >     inl depth = depth' |> fst

00:02:27 #15653 [Verbose] >     if depth = 1

00:02:27 #15654 [Verbose] >     then !\($'"!x' })"')

00:02:27 #15655 [Verbose] >     elif depth = 2

00:02:27 #15656 [Verbose] >     then !\($'"!x' }})"')

00:02:27 #15657 [Verbose] >     elif depth = 3

00:02:27 #15658 [Verbose] >     then !\($'"!x' }}})"')

00:02:27 #15659 [Verbose] >     elif depth = 4

00:02:27 #15660 [Verbose] >     then !\($'"!x' }}}})"')

00:02:27 #15661 [Verbose] >     elif depth = 5

00:02:27 #15662 [Verbose] >     then !\($'"!x' }}}}})"')

00:02:27 #15663 [Verbose] >     elif depth = 6 // , 4) // ?

00:02:27 #15664 [Verbose] >     then !\($'"!x' }}}}}})"')

00:02:27 #15665 [Verbose] >     elif depth = 7 // , 5) // 7

00:02:27 #15666 [Verbose] >     then !\($'"!x' }}}}}}})"')

00:02:27 #15667 [Verbose] >     elif depth = 8 // , 5) // 7

00:02:27 #15668 [Verbose] >     then !\($'"!x' }}}}}}}})"')

00:02:27 #15669 [Verbose] >

00:02:27 #15670 [Verbose] >     inl depth = depth' |> snd

00:02:27 #15671 [Verbose] >     if depth = 1

00:02:27 #15672 [Verbose] >     then !\($'"{ //"')

00:02:27 #15673 [Verbose] >     elif depth = 2

00:02:27 #15674 [Verbose] >     then !\($'"{{ //"')

00:02:27 #15675 [Verbose] >     elif depth = 3

00:02:27 #15676 [Verbose] >     then !\($'"{{{ //"')

00:02:27 #15677 [Verbose] >     elif depth = 4

00:02:27 #15678 [Verbose] >     then !\($'"{{{{ //"')

00:02:27 #15679 [Verbose] >     elif depth = 5

00:02:27 #15680 [Verbose] >     then !\($'"{{{{{ //"')

00:02:27 #15681 [Verbose] >     elif depth = 6

00:02:27 #15682 [Verbose] >     then !\($'"{{{{{{ //"')

00:02:27 #15683 [Verbose] >     elif depth = 7

00:02:27 #15684 [Verbose] >     then !\($'"{{{{{{{ //"')

00:02:27 #15685 [Verbose] >     elif depth = 8

00:02:27 #15686 [Verbose] >     then !\($'"{{{{{{{{ //"')

00:02:27 #15687 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-2302-0202-0226836de54c\main.spi

00:02:27 #15688 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:27 #15689 [Verbose] >   return _pygments_highlight(

00:02:27 #15690 [Verbose] >

00:02:27 #15691 [Verbose] > ╭─[ 792.51ms - stdout ]────────────────────────────────────────────────────────╮

00:02:27 #15692 [Verbose] > │ ()                                                                           │

00:02:27 #15693 [Verbose] > │                                                                              │

00:02:27 #15694 [Verbose] > │                                                                              │

00:02:27 #15695 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:28 #15696 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:28 #15697 [Verbose] >   return _pygments_highlight(

00:02:28 #15698 [Verbose] > [NbConvertApp] Writing 412469 bytes to benchmark.dib.html

00:02:28 #15699 [Verbose] > [NbConvertApp] Writing 411156 bytes to seq.dib.html

00:02:30 #15700 [Debug] executeAsync / exitCode: 0 / output.Length: 231625

00:02:30 #15701 [Debug] main / executeCommand / exitCode: 0

00:02:30 #15702 [Debug] executeAsync / exitCode: 0 / output.Length: 139448

00:02:30 #15703 [Debug] main / executeCommand / exitCode: 0

00:02:30 #15704 [Verbose] >

00:02:30 #15705 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:30 #15706 [Verbose] > #r

00:02:30 #15707 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:02:30 #15708 [Verbose] > otNet.Interactive.FSharp.dll"

00:02:30 #15709 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

00:02:30 #15710 [Verbose] > #r

00:02:30 #15711 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:02:30 #15712 [Verbose] > otNet.Interactive.dll"

00:02:30 #15713 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel

00:02:30 #15714 [Verbose] >

00:02:30 #15715 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:30 #15716 [Verbose] > //// test

00:02:30 #15717 [Verbose] >

00:02:30 #15718 [Verbose] > Formatter.ListExpansionLimit <- 100

00:02:31 #15719 [Verbose] > [NbConvertApp] Converting notebook rust.dib.ipynb to html

00:02:31 #15720 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:31 #15721 [Verbose] >   validate(nb)

00:02:31 #15722 [Verbose] >

00:02:31 #15723 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:31 #15724 [Verbose] > #r

00:02:31 #15725 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

00:02:31 #15726 [Verbose] > dard2.1/FSharp.Control.AsyncSeq.dll"

00:02:31 #15727 [Verbose] > #r

00:02:31 #15728 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

00:02:31 #15729 [Verbose] > 0/System.Reactive.dll"

00:02:31 #15730 [Verbose] > #r

00:02:31 #15731 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib

00:02:31 #15732 [Verbose] > netstandard2.0/System.Reactive.Linq.dll"

00:02:31 #15733 [Verbose] > #r

00:02:31 #15734 [Verbose] > @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

00:02:31 #15735 [Verbose] > #r

00:02:31 #15736 [Verbose] > @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

00:02:31 #15737 [Verbose] > b/net6.0/System.CommandLine.dll"

00:02:31 #15738 [Verbose] > #r

00:02:31 #15739 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha

00:02:31 #15740 [Verbose] > rp.Json.dll"

00:02:31 #15741 [Verbose] >

00:02:31 #15742 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:31 #15743 [Verbose] > type [[<Struct>]] US0 =

00:02:31 #15744 [Verbose] >     | US0_0

00:02:31 #15745 [Verbose] >     | US0_1

00:02:31 #15746 [Verbose] > and [[<Struct>]] US1 =

00:02:31 #15747 [Verbose] >     | US1_0

00:02:31 #15748 [Verbose] >     | US1_1 of f1_0 : US0

00:02:31 #15749 [Verbose] > let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

00:02:31 #15750 [Verbose] >     v0

00:02:31 #15751 [Verbose] > and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

00:02:31 #15752 [Verbose] >     let mutable result = None

00:02:31 #15753 [Verbose] >     #if FABLE_COMPILER_RUST && !WASM

00:02:31 #15754 [Verbose] >     let v1 : (unit -> unit) = method0(v0)

00:02:31 #15755 [Verbose] >     let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

00:02:31 #15756 [Verbose] > () = Fable.Core.RustInterop.emitRustExpr () "v1()" }

00:02:31 #15757 [Verbose] >     v2

00:02:31 #15758 [Verbose] >     #endif

00:02:31 #15759 [Verbose] >     #if FABLE_COMPILER_RUST && WASM

00:02:31 #15760 [Verbose] >     let v3 : (unit -> unit) = method0(v0)

00:02:31 #15761 [Verbose] >     let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

00:02:31 #15762 [Verbose] > () = Fable.Core.RustInterop.emitRustExpr () "v3()" }

00:02:31 #15763 [Verbose] >     v4

00:02:31 #15764 [Verbose] >     #endif

00:02:31 #15765 [Verbose] >     #if !FABLE_COMPILER && !F...

00:02:32 #15766 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:32 #15767 [Verbose] >   return _pygments_highlight(

00:02:32 #15768 [Verbose] > [NbConvertApp] Writing 304811 bytes to rust.dib.html

00:02:33 #15769 [Verbose] >

00:02:33 #15770 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:33 #15771 [Verbose] > type Mut0 = {mutable l0 : int32; mutable l1 : string}

00:02:33 #15772 [Verbose] > and Mut1 = {mutable l0 : int32}

00:02:33 #15773 [Verbose] > let rec closure1 (v0 : string) (v1 : string) : bool =

00:02:33 #15774 [Verbose] >     let v2 : bool = v1.Contains v0

00:02:33 #15775 [Verbose] >     v2

00:02:33 #15776 [Verbose] > and closure0 () (v0 : string) : (string -> bool) =

00:02:33 #15777 [Verbose] >     closure1(v0)

00:02:33 #15778 [Verbose] > and closure3 (v0 : string) (v1 : string) : bool =

00:02:33 #15779 [Verbose] >     let v2 : bool = v1.EndsWith v0

00:02:33 #15780 [Verbose] >     v2

00:02:33 #15781 [Verbose] > and closure2 () (v0 : string) : (string -> bool) =

00:02:33 #15782 [Verbose] >     closure3(v0)

00:02:33 #15783 [Verbose] > and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

00:02:33 #15784 [Verbose] >     let v3 : string = v2.PadLeft (v0, v1)

00:02:33 #15785 [Verbose] >     v3

00:02:33 #15786 [Verbose] > and closure5 (v0 : int32) (v1 : char) : (string -> string) =

00:02:33 #15787 [Verbose] >     closure6(v0, v1)

00:02:33 #15788 [Verbose] > and closure4 () (v0 : int32) : (char -> (string -> string)) =

00:02:33 #15789 [Verbose] >     closure5(v0)

00:02:33 #15790 [Verbose] > and closure8 (v0 : int32) (v1 : string) : string =

00:02:33 #15791 [Verbose] >     let v2 : stri...

00:02:33 #15792 [Debug] executeAsync / exitCode: 0 / output.Length: 9675

00:02:33 #15793 [Debug] main / executeCommand / exitCode: 0

00:02:33 #15794 [Verbose] >

00:02:33 #15795 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:33 #15796 [Verbose] > let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

00:02:33 #15797 [Verbose] >     let v2 : string = v0.ToString ()

00:02:33 #15798 [Verbose] >     let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

00:02:33 #15799 [Verbose] >     let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

00:02:33 #15800 [Verbose] >     v4

00:02:33 #15801 [Verbose] > and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

00:02:33 #15802 [Verbose] >     closure1(v0)

00:02:33 #15803 [Verbose] > and closure5 (v0 : string, v1 : string) (v2 : string) : string =

00:02:33 #15804 [Verbose] >     let v3 : string = v2.Replace (v0, v1)

00:02:33 #15805 [Verbose] >     v3

00:02:33 #15806 [Verbose] > and closure4 (v0 : string) (v1 : string) : (string -> string) =

00:02:33 #15807 [Verbose] >     closure5(v0, v1)

00:02:33 #15808 [Verbose] > and closure3 () (v0 : string) : (string -> (string -> string)) =

00:02:33 #15809 [Verbose] >     closure4(v0)

00:02:33 #15810 [Verbose] > and method0 () : (string -> (string -> (string -> string))) =

00:02:33 #15811 [Verbose] >     closure3()

00:02:33 #15812 [Verbose] > and closure2 () (v0 : System.Guid) : System.DateTime =

00:02:33 #15813 [Verbose] >   ...

00:02:34 #15814 [Verbose] >

00:02:34 #15815 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:34 #15816 [Verbose] > type [[<Struct>]] US0 =

00:02:34 #15817 [Verbose] >     | US0_0

00:02:34 #15818 [Verbose] >     | US0_1

00:02:34 #15819 [Verbose] >     | US0_2

00:02:34 #15820 [Verbose] > and [[<Struct>]] US1 =

00:02:34 #15821 [Verbose] >     | US1_0 of f0_0 : US0

00:02:34 #15822 [Verbose] >     | US1_1 of f1_0 : US0

00:02:34 #15823 [Verbose] > let rec closure0 () () : string =

00:02:34 #15824 [Verbose] >     let mutable result = None

00:02:34 #15825 [Verbose] >     #if FABLE_COMPILER_RUST && !WASM

00:02:34 #15826 [Verbose] >     let v0 : US0 = US0_1

00:02:34 #15827 [Verbose] >     let v1 : US1 = US1_1(v0)

00:02:34 #15828 [Verbose] >     let v2 : string = $"create_temp_directory_name target: {v1}"

00:02:34 #15829 [Verbose] >     let v3 : string = failwith<string> v2

00:02:34 #15830 [Verbose] >     v3

00:02:34 #15831 [Verbose] >     #endif

00:02:34 #15832 [Verbose] >     #if FABLE_COMPILER_RUST && WASM

00:02:34 #15833 [Verbose] >     let v4 : US0 = US0_2

00:02:34 #15834 [Verbose] >     let v5 : US1 = US1_1(v4)

00:02:34 #15835 [Verbose] >     let v6 : string = $"create_temp_directory_name target: {v5}"

00:02:34 #15836 [Verbose] >     let v7 : string = failwith<string> v6

00:02:34 #15837 [Verbose] >     v7

00:02:34 #15838 [Verbose] >     #endif

00:02:34 #15839 [Verbose] >     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

00:02:34 #15840 [Verbose] >     let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...

00:02:34 #15841 [Verbose] >

00:02:34 #15842 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:34 #15843 [Verbose] > #if !WASM && !FABLE_COMPILER

00:02:34 #15844 [Verbose] > module Date_time =

00:02:34 #15845 [Verbose] >     let new_guid_from_date_time x =

00:02:34 #15846 [Verbose] > #if !INTERACTIVE

00:02:34 #15847 [Verbose] >         Date_time.new_guid_from_date_time x

00:02:34 #15848 [Verbose] > #else

00:02:34 #15849 [Verbose] >         new_guid_from_date_time x

00:02:34 #15850 [Verbose] > #endif

00:02:34 #15851 [Verbose] > #endif

00:02:34 #15852 [Verbose] >

00:02:34 #15853 [Verbose] > module Sm =

00:02:34 #15854 [Verbose] >     let concat x =

00:02:34 #15855 [Verbose] > #if !INTERACTIVE

00:02:34 #15856 [Verbose] >         Sm.concat x

00:02:34 #15857 [Verbose] > #else

00:02:34 #15858 [Verbose] >         concat x

00:02:34 #15859 [Verbose] > #endif

00:02:34 #15860 [Verbose] >

00:02:34 #15861 [Verbose] >     let contains x =

00:02:34 #15862 [Verbose] > #if !INTERACTIVE

00:02:34 #15863 [Verbose] >         Sm.contains x

00:02:34 #15864 [Verbose] > #else

00:02:34 #15865 [Verbose] >         contains x

00:02:34 #15866 [Verbose] > #endif

00:02:34 #15867 [Verbose] >

00:02:34 #15868 [Verbose] >     let ellipsis x =

00:02:34 #15869 [Verbose] > #if !INTERACTIVE

00:02:34 #15870 [Verbose] >         Sm.ellipsis x

00:02:34 #15871 [Verbose] > #else

00:02:34 #15872 [Verbose] >         ellipsis x

00:02:34 #15873 [Verbose] > #endif

00:02:34 #15874 [Verbose] >

00:02:34 #15875 [Verbose] >     let ends_with x =

00:02:34 #15876 [Verbose] > #if !INTERACTIVE

00:02:34 #15877 [Verbose] >         Sm.ends_with x

00:02:34 #15878 [Verbose] > #else

00:02:34 #15879 [Verbose] >         ends_with x

00:02:34 #15880 [Verbose] > #endif

00:02:34 #15881 [Verbose] >

00:02:34 #15882 [Verbose] >     let format_exception x =

00:02:34 #15883 [Verbose] > #if !INTERACTIVE

00:02:34 #15884 [Verbose] >         Sm.format_exception x

00:02:34 #15885 [Verbose] > #else

00:02:34 #15886 [Verbose] >         format_exception x

00:02:34 #15887 [Verbose] > #endif

00:02:34 #15888 [Verbose] >

00:02:34 #15889 [Verbose] >     let replace x =

00:02:34 #15890 [Verbose] > #if !INTERACTIVE

00:02:34 #15891 [Verbose] >         Sm.repl...

00:02:34 #15892 [Verbose] >

00:02:34 #15893 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:34 #15894 [Verbose] > #if !INTERACTIVE

00:02:34 #15895 [Verbose] > namespace Polyglot

00:02:34 #15896 [Verbose] > #endif

00:02:34 #15897 [Verbose] >

00:02:34 #15898 [Verbose] > module Common =

00:02:34 #15899 [Verbose] >

00:02:34 #15900 [Verbose] > #if !INTERACTIVE

00:02:34 #15901 [Verbose] >     open Lib

00:02:34 #15902 [Verbose] > #endif

00:02:34 #15903 [Verbose] >

00:02:34 #15904 [Verbose] >     let nl = System.Environment.NewLine

00:02:34 #15905 [Verbose] >     let q = @""""

00:02:34 #15906 [Verbose] >

00:02:34 #15907 [Verbose] >     let inline cons head tail = head :: tail

00:02:34 #15908 [Verbose] >

00:02:34 #15909 [Verbose] >     /// ## memoize

00:02:34 #15910 [Verbose] >

00:02:34 #15911 [Verbose] >     let inline memoize fn =

00:02:34 #15912 [Verbose] >         let result = lazy fn ()

00:02:34 #15913 [Verbose] >         fun () -> result.Value

00:02:34 #15914 [Verbose] >

00:02:34 #15915 [Verbose] >     /// ## TraceLevel

00:02:34 #15916 [Verbose] >

00:02:34 #15917 [Verbose] >     type TraceLevel =

00:02:34 #15918 [Verbose] >         | Verbose

00:02:34 #15919 [Verbose] >         | Debug

00:02:34 #15920 [Verbose] >         | Info

00:02:34 #15921 [Verbose] >         | Warning

00:02:34 #15922 [Verbose] >         | Critical

00:02:34 #15923 [Verbose] >

00:02:34 #15924 [Verbose] >     let inline getLocals () = ""

00:02:34 #15925 [Verbose] >

00:02:34 #15926 [Verbose] >     let mutable traceEnabled = true

00:02:34 #15927 [Verbose] >     let mutable traceCount = 0

00:02:34 #15928 [Verbose] >     let mutable traceLevel = Verbose

00:02:34 #15929 [Verbose] >     let mutable traceDump = false

00:02:34 #15930 [Verbose] >

00:02:34 #15931 [Verbose] >     let testTraceLevel level =

00:02:34 #15932 [Verbose] >         traceEnabled && level >= traceLevel

00:02:34 #15933 [Verbose] >

00:02:34 #15934 [Verbose] >     /// ## traceRaw

00:02:34 #15935 [Verbose] >

00:02:34 #15936 [Verbose] >     let rec traceRaw level fn =

00:02:34 #15937 [Verbose] > ...

00:02:34 #15938 [Verbose] >

00:02:34 #15939 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:34 #15940 [Verbose] > #if !INTERACTIVE

00:02:34 #15941 [Verbose] > namespace Polyglot

00:02:34 #15942 [Verbose] > #endif

00:02:34 #15943 [Verbose] >

00:02:34 #15944 [Verbose] > module CommonFSharp =

00:02:34 #15945 [Verbose] >

00:02:34 #15946 [Verbose] >     open Common

00:02:34 #15947 [Verbose] >

00:02:34 #15948 [Verbose] >     /// ## getUnionCaseName

00:02:34 #15949 [Verbose] >

00:02:34 #15950 [Verbose] >     let inline getUnionCaseName<'T> (x: 'T) =

00:02:34 #15951 [Verbose] >         match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

00:02:34 #15952 [Verbose] >         | case, _ -> case.Name

00:02:34 #15953 [Verbose] >

00:02:34 #15954 [Verbose] >

00:02:34 #15955 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:34 #15956 [Verbose] > #if !INTERACTIVE

00:02:34 #15957 [Verbose] > namespace Polyglot

00:02:34 #15958 [Verbose] > #endif

00:02:34 #15959 [Verbose] >

00:02:34 #15960 [Verbose] > module Crypto =

00:02:34 #15961 [Verbose] >

00:02:34 #15962 [Verbose] >     open Common

00:02:34 #15963 [Verbose] >

00:02:34 #15964 [Verbose] >     /// ## hashText

00:02:34 #15965 [Verbose] >

00:02:34 #15966 [Verbose] >     let hashText (input : string) =

00:02:34 #15967 [Verbose] >         use sha256 = System.Security.Cryptography.SHA256.Create ()

00:02:34 #15968 [Verbose] >         input

00:02:34 #15969 [Verbose] >         |> System.Text.Encoding.UTF8.GetBytes

00:02:34 #15970 [Verbose] >         |> sha256.ComputeHash

00:02:34 #15971 [Verbose] >         |> Array.map (fun b -> b.ToString "x2")

00:02:34 #15972 [Verbose] >         |> Sm.concat ""

00:02:34 #15973 [Verbose] >

00:02:34 #15974 [Verbose] >

00:02:34 #15975 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:34 #15976 [Verbose] > #if !INTERACTIVE

00:02:34 #15977 [Verbose] > namespace Polyglot

00:02:34 #15978 [Verbose] > #endif

00:02:34 #15979 [Verbose] >

00:02:34 #15980 [Verbose] > module Async =

00:02:34 #15981 [Verbose] >

00:02:34 #15982 [Verbose] > #if !INTERACTIVE

00:02:34 #15983 [Verbose] >     open Lib

00:02:34 #15984 [Verbose] > #endif

00:02:34 #15985 [Verbose] >

00:02:34 #15986 [Verbose] >     open Common

00:02:34 #15987 [Verbose] >

00:02:34 #15988 [Verbose] >     /// ## choice

00:02:34 #15989 [Verbose] >

00:02:34 #15990 [Verbose] >     let inline choice asyncs = async {

00:02:34 #15991 [Verbose] >         let e = Event<_> ()

00:02:34 #15992 [Verbose] >         use cts = new System.Threading.CancellationTokenSource ()

00:02:34 #15993 [Verbose] >         let fn =

00:02:34 #15994 [Verbose] >             asyncs

00:02:34 #15995 [Verbose] >             |> Seq.map (fun a -> async {

00:02:34 #15996 [Verbose] >                 let! x = a

00:02:34 #15997 [Verbose] >                 e.Trigger x

00:02:34 #15998 [Verbose] >             })

00:02:34 #15999 [Verbose] >             |> Async.Parallel

00:02:34 #16000 [Verbose] >             |> Async.Ignore

00:02:34 #16001 [Verbose] >         Async.Start (fn, cts.Token)

00:02:34 #16002 [Verbose] >         let! result = Async.AwaitEvent e.Publish

00:02:34 #16003 [Verbose] >         cts.Cancel ()

00:02:34 #16004 [Verbose] >         return result

00:02:34 #16005 [Verbose] >     }

00:02:34 #16006 [Verbose] >

00:02:34 #16007 [Verbose] >     /// ## map

00:02:34 #16008 [Verbose] >

00:02:34 #16009 [Verbose] >     let inline map fn a = async {

00:02:34 #16010 [Verbose] >         let! x = a

00:02:34 #16011 [Verbose] >         return fn x

00:02:34 #16012 [Verbose] >     }

00:02:34 #16013 [Verbose] >

00:02:34 #16014 [Verbose] >     /// ## catch

00:02:34 #16015 [Verbose] >

00:02:34 #16016 [Verbose] >     let inline catch a =

00:02:34 #16017 [Verbose] >    ...

00:02:35 #16018 [Verbose] >

00:02:35 #16019 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:35 #16020 [Verbose] > #if !INTERACTIVE

00:02:35 #16021 [Verbose] > namespace Polyglot

00:02:35 #16022 [Verbose] > #endif

00:02:35 #16023 [Verbose] >

00:02:35 #16024 [Verbose] > module AsyncSeq =

00:02:35 #16025 [Verbose] >

00:02:35 #16026 [Verbose] > #if !INTERACTIVE

00:02:35 #16027 [Verbose] >     open Lib

00:02:35 #16028 [Verbose] > #endif

00:02:35 #16029 [Verbose] >

00:02:35 #16030 [Verbose] >     open Common

00:02:35 #16031 [Verbose] >

00:02:35 #16032 [Verbose] >     /// ## subscribeEvent

00:02:35 #16033 [Verbose] >

00:02:35 #16034 [Verbose] >     let inline subscribeEvent (event: IEvent<'H, 'A>) map =

00:02:35 #16035 [Verbose] >         let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,

00:02:35 #16036 [Verbose] > 'A>(event.AddHandler, event.RemoveHandler)

00:02:35 #16037 [Verbose] >         System.Reactive.Linq.Observable.Select (observable, fun event -> map

00:02:35 #16038 [Verbose] > event.EventArgs)

00:02:35 #16039 [Verbose] >         |> FSharp.Control.AsyncSeq.ofObservableBuffered

00:02:35 #16040 [Verbose] >

00:02:35 #16041 [Verbose] >     let subscribeToken (token : System.Threading.CancellationToken) =

00:02:35 #16042 [Verbose] >         let tcs = new System.Threading.Tasks.TaskCompletionSource ()

00:02:35 #16043 [Verbose] >         System.Action tcs.SetResult |> token.Register |> ignore

00:02:35 #16044 [Verbose] >         let start = System.DateTime.Now.Ticks

00:02:35 #16045 [Verbose] >         FSharp.Control.A...

00:02:35 #16046 [Verbose] >

00:02:35 #16047 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:35 #16048 [Verbose] > #if !INTERACTIVE

00:02:35 #16049 [Verbose] > namespace Polyglot

00:02:35 #16050 [Verbose] > #endif

00:02:35 #16051 [Verbose] >

00:02:35 #16052 [Verbose] > module Networking =

00:02:35 #16053 [Verbose] >

00:02:35 #16054 [Verbose] > #if !INTERACTIVE

00:02:35 #16055 [Verbose] >     open Lib

00:02:35 #16056 [Verbose] > #endif

00:02:35 #16057 [Verbose] >

00:02:35 #16058 [Verbose] >     open Common

00:02:35 #16059 [Verbose] >

00:02:35 #16060 [Verbose] >     /// ## testPortOpen

00:02:35 #16061 [Verbose] >

00:02:35 #16062 [Verbose] >     let inline testPortOpen port = async {

00:02:35 #16063 [Verbose] >         let! ct = Async.CancellationToken

00:02:35 #16064 [Verbose] >         use client = new System.Net.Sockets.TcpClient ()

00:02:35 #16065 [Verbose] >         try

00:02:35 #16066 [Verbose] >             do! client.ConnectAsync ("127.0.0.1", port, ct) |>

00:02:35 #16067 [Verbose] > Async.awaitValueTaskUnit

00:02:35 #16068 [Verbose] >             return true

00:02:35 #16069 [Verbose] >         with ex ->

00:02:35 #16070 [Verbose] >             trace Verbose (fun () -> $"testPortOpen / ex: {ex |>

00:02:35 #16071 [Verbose] > Sm.format_exception}") getLocals

00:02:35 #16072 [Verbose] >             return false

00:02:35 #16073 [Verbose] >     }

00:02:35 #16074 [Verbose] >

00:02:35 #16075 [Verbose] >     let inline testPortOpenTimeout timeout port = async {

00:02:35 #16076 [Verbose] >         let! result =

00:02:35 #16077 [Verbose] >             testPortOpen port

00:02:35 #16078 [Verbose] >             |> Async.runWithTimeoutAsync timeout

00:02:35 #16079 [Verbose] >         return

00:02:35 #16080 [Verbose] >             matc...

00:02:35 #16081 [Verbose] >

00:02:35 #16082 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:35 #16083 [Verbose] > #if !INTERACTIVE

00:02:35 #16084 [Verbose] > namespace Polyglot

00:02:35 #16085 [Verbose] > #endif

00:02:35 #16086 [Verbose] >

00:02:35 #16087 [Verbose] > module Runtime =

00:02:35 #16088 [Verbose] >

00:02:35 #16089 [Verbose] > #if !INTERACTIVE

00:02:35 #16090 [Verbose] >     open Lib

00:02:35 #16091 [Verbose] > #endif

00:02:35 #16092 [Verbose] >

00:02:35 #16093 [Verbose] >     open Common

00:02:35 #16094 [Verbose] >

00:02:35 #16095 [Verbose] >     /// ## isWindows

00:02:35 #16096 [Verbose] >

00:02:35 #16097 [Verbose] >     let isWindows =

00:02:35 #16098 [Verbose] >         fun () ->

00:02:35 #16099 [Verbose] >             System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

00:02:35 #16100 [Verbose] >                 System.Runtime.InteropServices.OSPlatform.Windows

00:02:35 #16101 [Verbose] >         |> memoize

00:02:35 #16102 [Verbose] >

00:02:35 #16103 [Verbose] >     /// ## getExecutableSuffix

00:02:35 #16104 [Verbose] >

00:02:35 #16105 [Verbose] >     let inline getExecutableSuffix () =

00:02:35 #16106 [Verbose] >         if isWindows ()

00:02:35 #16107 [Verbose] >         then ".exe"

00:02:35 #16108 [Verbose] >         else ""

00:02:35 #16109 [Verbose] >

00:02:35 #16110 [Verbose] >     /// ## splitCommand

00:02:35 #16111 [Verbose] >

00:02:35 #16112 [Verbose] >     type private CommandParseStep =

00:02:35 #16113 [Verbose] >         | Start

00:02:35 #16114 [Verbose] >         | Path of quoted: bool

00:02:35 #16115 [Verbose] >         | Arguments

00:02:35 #16116 [Verbose] >

00:02:35 #16117 [Verbose] >     let splitCommand (command: string) =

00:02:35 #16118 [Verbose] >         let rec loop (path, args) chars step =

00:02:35 #16119 [Verbose] >             match chars, step with

00:02:35 #16120 [Verbose] >             | ('"' | '\'') ...

00:02:36 #16121 [Verbose] >

00:02:36 #16122 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:36 #16123 [Verbose] > #if !INTERACTIVE

00:02:36 #16124 [Verbose] > namespace Polyglot

00:02:36 #16125 [Verbose] > #endif

00:02:36 #16126 [Verbose] >

00:02:36 #16127 [Verbose] > module FileSystem =

00:02:36 #16128 [Verbose] >

00:02:36 #16129 [Verbose] > #if !INTERACTIVE

00:02:36 #16130 [Verbose] >     open Lib

00:02:36 #16131 [Verbose] > #endif

00:02:36 #16132 [Verbose] >

00:02:36 #16133 [Verbose] >     open Common

00:02:36 #16134 [Verbose] >

00:02:36 #16135 [Verbose] >     /// ## Operators

00:02:36 #16136 [Verbose] >

00:02:36 #16137 [Verbose] >     module Operators =

00:02:36 #16138 [Verbose] >         let inline (</>) a b =

00:02:36 #16139 [Verbose] >             System.IO.Path.Combine (a, b)

00:02:36 #16140 [Verbose] >

00:02:36 #16141 [Verbose] >     open Operators

00:02:36 #16142 [Verbose] >

00:02:36 #16143 [Verbose] >     /// ## createTempDirectory

00:02:36 #16144 [Verbose] >

00:02:36 #16145 [Verbose] >     let inline createTempDirectory () =

00:02:36 #16146 [Verbose] >         let tempFolder = File_system.create_temp_directory_name ()

00:02:36 #16147 [Verbose] >         let result = System.IO.Directory.CreateDirectory tempFolder

00:02:36 #16148 [Verbose] >

00:02:36 #16149 [Verbose] >         if not result.Exists then

00:02:36 #16150 [Verbose] >             let getLocals () =

00:02:36 #16151 [Verbose] >                 $"tempFolder: {tempFolder} / result: {({|

00:02:36 #16152 [Verbose] >                     Exists = result.Exists

00:02:36 #16153 [Verbose] >                     CreationTime = result.CreationTime

00:02:36 #16154 [Verbose] >                 |})} {getLocals ()}"

00:02:36 #16155 [Verbose] >

00:02:36 #16156 [Verbose] >             trace Debug ...

00:02:39 #16157 [Verbose] >

00:02:39 #16158 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:39 #16159 [Verbose] > open Common

00:02:39 #16160 [Verbose] > open FileSystem.Operators

00:02:39 #16161 [Verbose] >

00:02:39 #16162 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:02:39 #16163 [Verbose] > let tmpSpiralPath = Path.GetTempPath () </> "!dotnet-interactive-spiral"

00:02:39 #16164 [Verbose] > let linePlotsDataPath = tmpSpiralPath </> "line-plots-data"

00:02:39 #16165 [Verbose] > let linePlotsSvgPath = tmpSpiralPath </> "line-plots-svg"

00:02:39 #16166 [Verbose] >

00:02:39 #16167 [Verbose] > [[ tmpSpiralPath; linePlotsDataPath; linePlotsSvgPath ]]

00:02:39 #16168 [Verbose] > |> List.iter (fun dir -> if Directory.Exists dir |> not then

00:02:39 #16169 [Verbose] > Directory.CreateDirectory dir |> ignore)

00:02:39 #16170 [Verbose] >

00:02:39 #16171 [Verbose] > Formatter.Register<struct (string * string * string * struct (string * float

00:02:39 #16172 [Verbose] > array * float array) array)> (

00:02:39 #16173 [Verbose] >     (fun struct (caption, x_desc, y_desc, ys) ->

00:02:39 #16174 [Verbose] >         let json = (caption, x_desc, y_desc, ys) |> FSharp.Json.Json.serialize

00:02:39 #16175 [Verbose] >         async {

00:02:39 #16176 [Verbose] >             let hashHex = json |> Crypto.hashText

00:02:39 #16177 [Verbose] >             let svgPath = linePlotsSvgPath </> $"{hashHex}.svg"

00:02:39 #16178 [Verbose] >

00:02:39 #16179 [Verbose] >             if System.IO.File.Exi...

00:02:40 #16180 [Verbose] >

00:02:40 #16181 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:40 #16182 [Verbose] > // // test

00:02:40 #16183 [Verbose] >

00:02:40 #16184 [Verbose] > open testing

00:02:41 #16185 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3614-1475-1a6bb9aa7402\main.spi

00:02:41 #16186 [Verbose] >

00:02:41 #16187 [Verbose] > ╭─[ 1.23s - stdout ]───────────────────────────────────────────────────────────╮

00:02:41 #16188 [Verbose] > │ ()                                                                           │

00:02:41 #16189 [Verbose] > │                                                                              │

00:02:41 #16190 [Verbose] > │                                                                              │

00:02:41 #16191 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:41 #16192 [Verbose] >

00:02:41 #16193 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:41 #16194 [Verbose] > open listm'_operators

00:02:41 #16195 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3683-8304-849224d4f0aa\main.spi

00:02:41 #16196 [Verbose] >

00:02:41 #16197 [Verbose] > ╭─[ 259.69ms - stdout ]────────────────────────────────────────────────────────╮

00:02:41 #16198 [Verbose] > │ ()                                                                           │

00:02:41 #16199 [Verbose] > │                                                                              │

00:02:41 #16200 [Verbose] > │                                                                              │

00:02:41 #16201 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:41 #16202 [Verbose] >

00:02:41 #16203 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:41 #16204 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:41 #16205 [Verbose] > │ ## init_series                                                               │

00:02:41 #16206 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:41 #16207 [Verbose] >

00:02:41 #16208 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:41 #16209 [Verbose] > // // test

00:02:41 #16210 [Verbose] >

00:02:41 #16211 [Verbose] > inl x : a _ f64 = am'.init_series -3 3 0.01

00:02:41 #16212 [Verbose] > inl y = x |> am.map math.square

00:02:41 #16213 [Verbose] > "square", "x", "y", ;[[ "square", x, y ]]

00:02:41 #16214 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3709-0932-0ffd4b76f4bb\main.spi

00:02:41 #16215 [Verbose] >

00:02:41 #16216 [Verbose] > ╭─[ 310.13ms - return value ]──────────────────────────────────────────────────╮

00:02:41 #16217 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:41 #16218 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:41 #16219 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:41 #16220 [Verbose] > │ stroke="none"/>                                                              │

00:02:41 #16221 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:41 #16222 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:41 #16223 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:41 #16224 [Verbose] > │ square                                                                       │

00:02:41 #16225 [Verbose] > │ </text>                                                                      │

00:02:41 #16226 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:02:41 #16227 [Verbose] > │ y2="75"/>                                                                    │

00:02:41 #16228 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:41 #16229 [Verbose] > │ y2="75"/>                                                                    │

00:02:41 #16230 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:02:41 #16231 [Verbose] > │ y2="75"/>                                                                    │

00:02:41 #16232 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:02:41 #16233 [Verbose] > │ y2="75"/>                                                                    │

00:02:41 #16234 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │

00:02:41 #16235 [Verbose] > │ ...                                                                          │

00:02:41 #16236 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:41 #16237 [Verbose] >

00:02:41 #16238 [Verbose] > ╭─[ 325.58ms - stdout ]────────────────────────────────────────────────────────╮

00:02:41 #16239 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:41 #16240 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:41 #16241 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:41 #16242 [Verbose] > │     let v2 : bool = v1 < 601                                                 │

00:02:41 #16243 [Verbose] > │     v2                                                                       │

00:02:41 #16244 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:41 #16245 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:41 #16246 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:41 #16247 [Verbose] > │     v3                                                                       │

00:02:41 #16248 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:41 #16249 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:41 #16250 [Verbose] > │     v0                                                                       │

00:02:41 #16251 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:41 #16252 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:41 #16253 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (601)                      │

00:02:41 #16254 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:41 #16255 [Verbose] > │     while method1(v1) do                                                     │

00:02:41 #16256 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:41 #16257 [Verbose] > │         let v4 : float = float v3                                            │

00:02:41 #16258 [Verbose] > │         let v5 : float = 0.01 * v4                                           │

00:02:41 #16259 [Verbose] > │         let v6 : float = -3.0 + v5                                           │

00:02:41 #16260 [Verbose] > │         v0.[int v3] <- v6                                                    │

00:02:41 #16261 [Verbose] > │         let v7 : int32 = v3 + 1                                              │

00:02:41 #16262 [Verbose] > │         v1.l0 <- v7                                                          │

00:02:41 #16263 [Verbose] > │         ()                                                                   │

00:02:41 #16264 [Verbose] > │     let v8 : int32 = v0.Length                                               │

00:02:41 #16265 [Verbose] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:02:41 #16266 [Verbose] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:41 #16267 [Verbose] > │     while method2(v8, v10) do                                                │

00:02:41 #16268 [Verbose] > │         let v12 : int32 = v10.l0                                             │

00:02:41 #16269 [Verbose] > │         let v13 : float = v0.[int v12]                                       │

00:02:41 #16270 [Verbose] > │         let v14 : float = v13 ** 2.0                                         │

00:02:41 #16271 [Verbose] > │         v9.[int v12] <- v14                                                  │

00:02:41 #16272 [Verbose] > │         let v15 : int32 = v12 + 1                                            │

00:02:41 #16273 [Verbose] > │         v10.l0 <- v15                                                        │

00:02:41 #16274 [Verbose] > │         ()                                                                   │

00:02:41 #16275 [Verbose] > │     let v16 : string = "square"                                              │

00:02:41 #16276 [Verbose] > │     let v17 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:41 #16277 [Verbose] > │ (v16, v0, v9)|]                                                              │

00:02:41 #16278 [Verbose] > │     let v18 : (struct (string * (float []) * (float [])) []) = method3(v17)  │

00:02:41 #16279 [Verbose] > │     let v19 : string = "x"                                                   │

00:02:41 #16280 [Verbose] > │     let v20 : string = "y"                                                   │

00:02:41 #16281 [Verbose] > │     struct (v16, v19, v20, v18)                                              │

00:02:41 #16282 [Verbose] > │ method0()                                                                    │

00:02:41 #16283 [Verbose] > │                                                                              │

00:02:41 #16284 [Verbose] > │                                                                              │

00:02:41 #16285 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:41 #16286 [Verbose] >

00:02:41 #16287 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:41 #16288 [Verbose] > // // test

00:02:41 #16289 [Verbose] >

00:02:41 #16290 [Verbose] > inl x : a _ f64 = am'.init_series -10 10 0.1

00:02:41 #16291 [Verbose] > inl y_sin = x |> am.map sin

00:02:41 #16292 [Verbose] > inl y_cos = x |> am.map cos

00:02:41 #16293 [Verbose] > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]

00:02:42 #16294 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3743-4389-424862c1d5ac\main.spi

00:02:42 #16295 [Verbose] >

00:02:42 #16296 [Verbose] > ╭─[ 273.89ms - return value ]──────────────────────────────────────────────────╮

00:02:42 #16297 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:42 #16298 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:42 #16299 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:42 #16300 [Verbose] > │ stroke="none"/>                                                              │

00:02:42 #16301 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:42 #16302 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:42 #16303 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:42 #16304 [Verbose] > │ sin cos                                                                      │

00:02:42 #16305 [Verbose] > │ </text>                                                                      │

00:02:42 #16306 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │

00:02:42 #16307 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16308 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:42 #16309 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16310 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │

00:02:42 #16311 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16312 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │

00:02:42 #16313 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16314 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │

00:02:42 #16315 [Verbose] > │ x2="10...                                                                    │

00:02:42 #16316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16317 [Verbose] >

00:02:42 #16318 [Verbose] > ╭─[ 284.97ms - stdout ]────────────────────────────────────────────────────────╮

00:02:42 #16319 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:42 #16320 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:42 #16321 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:42 #16322 [Verbose] > │     let v2 : bool = v1 < 201                                                 │

00:02:42 #16323 [Verbose] > │     v2                                                                       │

00:02:42 #16324 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:42 #16325 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:42 #16326 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:42 #16327 [Verbose] > │     v3                                                                       │

00:02:42 #16328 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:42 #16329 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:42 #16330 [Verbose] > │     v0                                                                       │

00:02:42 #16331 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:42 #16332 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:42 #16333 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (201)                      │

00:02:42 #16334 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:42 #16335 [Verbose] > │     while method1(v1) do                                                     │

00:02:42 #16336 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:42 #16337 [Verbose] > │         let v4 : float = float v3                                            │

00:02:42 #16338 [Verbose] > │         let v5 : float = 0.1 * v4                                            │

00:02:42 #16339 [Verbose] > │         let v6 : float = -10.0 + v5                                          │

00:02:42 #16340 [Verbose] > │         v0.[int v3] <- v6                                                    │

00:02:42 #16341 [Verbose] > │         let v7 : int32 = v3 + 1                                              │

00:02:42 #16342 [Verbose] > │         v1.l0 <- v7                                                          │

00:02:42 #16343 [Verbose] > │         ()                                                                   │

00:02:42 #16344 [Verbose] > │     let v8 : int32 = v0.Length                                               │

00:02:42 #16345 [Verbose] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:02:42 #16346 [Verbose] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:42 #16347 [Verbose] > │     while method2(v8, v10) do                                                │

00:02:42 #16348 [Verbose] > │         let v12 : int32 = v10.l0                                             │

00:02:42 #16349 [Verbose] > │         let v13 : float = v0.[int v12]                                       │

00:02:42 #16350 [Verbose] > │         let v14 : float = sin v13                                            │

00:02:42 #16351 [Verbose] > │         v9.[int v12] <- v14                                                  │

00:02:42 #16352 [Verbose] > │         let v15 : int32 = v12 + 1                                            │

00:02:42 #16353 [Verbose] > │         v10.l0 <- v15                                                        │

00:02:42 #16354 [Verbose] > │         ()                                                                   │

00:02:42 #16355 [Verbose] > │     let v16 : (float []) = Array.zeroCreate<float> (v8)                      │

00:02:42 #16356 [Verbose] > │     let v17 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:42 #16357 [Verbose] > │     while method2(v8, v17) do                                                │

00:02:42 #16358 [Verbose] > │         let v19 : int32 = v17.l0                                             │

00:02:42 #16359 [Verbose] > │         let v20 : float = v0.[int v19]                                       │

00:02:42 #16360 [Verbose] > │         let v21 : float = cos v20                                            │

00:02:42 #16361 [Verbose] > │         v16.[int v19] <- v21                                                 │

00:02:42 #16362 [Verbose] > │         let v22 : int32 = v19 + 1                                            │

00:02:42 #16363 [Verbose] > │         v17.l0 <- v22                                                        │

00:02:42 #16364 [Verbose] > │         ()                                                                   │

00:02:42 #16365 [Verbose] > │     let v23 : string = "sin"                                                 │

00:02:42 #16366 [Verbose] > │     let v24 : string = "cos"                                                 │

00:02:42 #16367 [Verbose] > │     let v25 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:42 #16368 [Verbose] > │ (v23, v0, v9); struct (v24, v0, v16)|]                                       │

00:02:42 #16369 [Verbose] > │     let v26 : (struct (string * (float []) * (float [])) []) = method3(v25)  │

00:02:42 #16370 [Verbose] > │     let v27 : string = "sin cos"                                             │

00:02:42 #16371 [Verbose] > │     let v28 : string = "x"                                                   │

00:02:42 #16372 [Verbose] > │     let v29 : string = "y"                                                   │

00:02:42 #16373 [Verbose] > │     struct (v27, v28, v29, v26)                                              │

00:02:42 #16374 [Verbose] > │ method0()                                                                    │

00:02:42 #16375 [Verbose] > │                                                                              │

00:02:42 #16376 [Verbose] > │                                                                              │

00:02:42 #16377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16378 [Verbose] >

00:02:42 #16379 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:42 #16380 [Verbose] > // // test

00:02:42 #16381 [Verbose] >

00:02:42 #16382 [Verbose] > inl y_pos y0 vy0 ay t =

00:02:42 #16383 [Verbose] >     y0 + vy0 * t + ay * (t |> math.square) / 2

00:02:42 #16384 [Verbose] >

00:02:42 #16385 [Verbose] > inl x : a _ f64 = am'.init_series 0 5 0.01

00:02:42 #16386 [Verbose] > inl y = x |> am.map (y_pos 0 20 -9.8)

00:02:42 #16387 [Verbose] > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]

00:02:42 #16388 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3774-7468-72c4673fea89\main.spi

00:02:42 #16389 [Verbose] >

00:02:42 #16390 [Verbose] > ╭─[ 277.05ms - return value ]──────────────────────────────────────────────────╮

00:02:42 #16391 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:42 #16392 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:42 #16393 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:42 #16394 [Verbose] > │ stroke="none"/>                                                              │

00:02:42 #16395 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:42 #16396 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:42 #16397 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:42 #16398 [Verbose] > │ projectile motion                                                            │

00:02:42 #16399 [Verbose] > │ </text>                                                                      │

00:02:42 #16400 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:02:42 #16401 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16402 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:42 #16403 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16404 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:02:42 #16405 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16406 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:02:42 #16407 [Verbose] > │ y2="75"/>                                                                    │

00:02:42 #16408 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="42...        │

00:02:42 #16409 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16410 [Verbose] >

00:02:42 #16411 [Verbose] > ╭─[ 287.30ms - stdout ]────────────────────────────────────────────────────────╮

00:02:42 #16412 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:42 #16413 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:42 #16414 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:42 #16415 [Verbose] > │     let v2 : bool = v1 < 501                                                 │

00:02:42 #16416 [Verbose] > │     v2                                                                       │

00:02:42 #16417 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:42 #16418 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:42 #16419 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:42 #16420 [Verbose] > │     v3                                                                       │

00:02:42 #16421 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:42 #16422 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:42 #16423 [Verbose] > │     v0                                                                       │

00:02:42 #16424 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:42 #16425 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:42 #16426 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (501)                      │

00:02:42 #16427 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:42 #16428 [Verbose] > │     while method1(v1) do                                                     │

00:02:42 #16429 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:42 #16430 [Verbose] > │         let v4 : float = float v3                                            │

00:02:42 #16431 [Verbose] > │         let v5 : float = 0.01 * v4                                           │

00:02:42 #16432 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:42 #16433 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:42 #16434 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:42 #16435 [Verbose] > │         ()                                                                   │

00:02:42 #16436 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:02:42 #16437 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:02:42 #16438 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:42 #16439 [Verbose] > │     while method2(v7, v9) do                                                 │

00:02:42 #16440 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:02:42 #16441 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:02:42 #16442 [Verbose] > │         let v13 : float = 20.0 * v12                                         │

00:02:42 #16443 [Verbose] > │         let v14 : float = v12 ** 2.0                                         │

00:02:42 #16444 [Verbose] > │         let v15 : float = -9.8 * v14                                         │

00:02:42 #16445 [Verbose] > │         let v16 : float = v15 / 2.0                                          │

00:02:42 #16446 [Verbose] > │         let v17 : float = v13 + v16                                          │

00:02:42 #16447 [Verbose] > │         v8.[int v11] <- v17                                                  │

00:02:42 #16448 [Verbose] > │         let v18 : int32 = v11 + 1                                            │

00:02:42 #16449 [Verbose] > │         v9.l0 <- v18                                                         │

00:02:42 #16450 [Verbose] > │         ()                                                                   │

00:02:42 #16451 [Verbose] > │     let v19 : string = "height of projectile (m)"                            │

00:02:42 #16452 [Verbose] > │     let v20 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:42 #16453 [Verbose] > │ (v19, v0, v8)|]                                                              │

00:02:42 #16454 [Verbose] > │     let v21 : (struct (string * (float []) * (float [])) []) = method3(v20)  │

00:02:42 #16455 [Verbose] > │     let v22 : string = "projectile motion"                                   │

00:02:42 #16456 [Verbose] > │     let v23 : string = "time (s)"                                            │

00:02:42 #16457 [Verbose] > │     let v24 : string = ""                                                    │

00:02:42 #16458 [Verbose] > │     struct (v22, v23, v24, v21)                                              │

00:02:42 #16459 [Verbose] > │ method0()                                                                    │

00:02:42 #16460 [Verbose] > │                                                                              │

00:02:42 #16461 [Verbose] > │                                                                              │

00:02:42 #16462 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16463 [Verbose] >

00:02:42 #16464 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:42 #16465 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:42 #16466 [Verbose] > │ ## velocity_cf                                                               │

00:02:42 #16467 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16468 [Verbose] >

00:02:42 #16469 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:42 #16470 [Verbose] > type mass = f64

00:02:42 #16471 [Verbose] > type time = f64

00:02:42 #16472 [Verbose] > type position = f64

00:02:42 #16473 [Verbose] > type velocity = f64

00:02:42 #16474 [Verbose] > type force = f64

00:02:42 #16475 [Verbose] >

00:02:42 #16476 [Verbose] > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)

00:02:42 #16477 [Verbose] >

00:02:42 #16478 [Verbose] > inl velocity_cf m v0 fs =

00:02:42 #16479 [Verbose] >     inl f_net = fs |> listm'.sum

00:02:42 #16480 [Verbose] >     inl a0 = f_net / m

00:02:42 #16481 [Verbose] >     inl v t = v0 + a0 * t

00:02:42 #16482 [Verbose] >     v

00:02:42 #16483 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3805-0565-0256fd91c67a\main.spi

00:02:42 #16484 [Verbose] >

00:02:42 #16485 [Verbose] > ╭─[ 252.78ms - stdout ]────────────────────────────────────────────────────────╮

00:02:42 #16486 [Verbose] > │ ()                                                                           │

00:02:42 #16487 [Verbose] > │                                                                              │

00:02:42 #16488 [Verbose] > │                                                                              │

00:02:42 #16489 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16490 [Verbose] >

00:02:42 #16491 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:42 #16492 [Verbose] > // // test

00:02:42 #16493 [Verbose] >

00:02:42 #16494 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0

00:02:42 #16495 [Verbose] > |> _assert_eq 0.6

00:02:42 #16496 [Verbose] >

00:02:42 #16497 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1

00:02:42 #16498 [Verbose] > |> _assert_eq 0.2

00:02:42 #16499 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3831-3100-3305caeee995\main.spi

00:02:42 #16500 [Verbose] >

00:02:42 #16501 [Verbose] > ╭─[ 252.87ms - stdout ]────────────────────────────────────────────────────────╮

00:02:42 #16502 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:42 #16503 [Verbose] > │     let v0 : string = $"%A{0.6}"                                             │

00:02:42 #16504 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:42 #16505 [Verbose] > │     let v1 : string = $"__expect / actual: %A{0.6} / expected: %A{0.6}"      │

00:02:42 #16506 [Verbose] > │     let v2 : string = $"%A{0.2}"                                             │

00:02:42 #16507 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:42 #16508 [Verbose] > │     let v3 : string = $"__expect / actual: %A{0.2} / expected: %A{0.2}"      │

00:02:42 #16509 [Verbose] > │     ()                                                                       │

00:02:42 #16510 [Verbose] > │ method0()                                                                    │

00:02:42 #16511 [Verbose] > │                                                                              │

00:02:42 #16512 [Verbose] > │ 0.6                                                                          │

00:02:42 #16513 [Verbose] > │ 0.2                                                                          │

00:02:42 #16514 [Verbose] > │                                                                              │

00:02:42 #16515 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:42 #16516 [Verbose] >

00:02:42 #16517 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:42 #16518 [Verbose] > // // test

00:02:42 #16519 [Verbose] >

00:02:42 #16520 [Verbose] > inl x = am'.init_series 0 4 0.1

00:02:42 #16521 [Verbose] > inl y = x |> am.map (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])

00:02:42 #16522 [Verbose] > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]

00:02:43 #16523 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3856-5690-53532a0754e6\main.spi

00:02:43 #16524 [Verbose] >

00:02:43 #16525 [Verbose] > ╭─[ 314.37ms - return value ]──────────────────────────────────────────────────╮

00:02:43 #16526 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:43 #16527 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:43 #16528 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:43 #16529 [Verbose] > │ stroke="none"/>                                                              │

00:02:43 #16530 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:43 #16531 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:43 #16532 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:43 #16533 [Verbose] > │ car on an air track                                                          │

00:02:43 #16534 [Verbose] > │ </text>                                                                      │

00:02:43 #16535 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │

00:02:43 #16536 [Verbose] > │ y2="75"/>                                                                    │

00:02:43 #16537 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:43 #16538 [Verbose] > │ y2="75"/>                                                                    │

00:02:43 #16539 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │

00:02:43 #16540 [Verbose] > │ y2="75"/>                                                                    │

00:02:43 #16541 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │

00:02:43 #16542 [Verbose] > │ y2="75"/>                                                                    │

00:02:43 #16543 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1=...          │

00:02:43 #16544 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:43 #16545 [Verbose] >

00:02:43 #16546 [Verbose] > ╭─[ 325.20ms - stdout ]────────────────────────────────────────────────────────╮

00:02:43 #16547 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:43 #16548 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:43 #16549 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:43 #16550 [Verbose] > │     let v2 : bool = v1 < 41                                                  │

00:02:43 #16551 [Verbose] > │     v2                                                                       │

00:02:43 #16552 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:43 #16553 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:43 #16554 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:43 #16555 [Verbose] > │     v3                                                                       │

00:02:43 #16556 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:43 #16557 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:43 #16558 [Verbose] > │     v0                                                                       │

00:02:43 #16559 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:43 #16560 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:43 #16561 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (41)                       │

00:02:43 #16562 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:43 #16563 [Verbose] > │     while method1(v1) do                                                     │

00:02:43 #16564 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:43 #16565 [Verbose] > │         let v4 : float = float v3                                            │

00:02:43 #16566 [Verbose] > │         let v5 : float = 0.1 * v4                                            │

00:02:43 #16567 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:43 #16568 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:43 #16569 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:43 #16570 [Verbose] > │         ()                                                                   │

00:02:43 #16571 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:02:43 #16572 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:02:43 #16573 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:43 #16574 [Verbose] > │     while method2(v7, v9) do                                                 │

00:02:43 #16575 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:02:43 #16576 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:02:43 #16577 [Verbose] > │         let v13 : float = -0.39999999999999997 * v12                         │

00:02:43 #16578 [Verbose] > │         let v14 : float = 0.6 + v13                                          │

00:02:43 #16579 [Verbose] > │         v8.[int v11] <- v14                                                  │

00:02:43 #16580 [Verbose] > │         let v15 : int32 = v11 + 1                                            │

00:02:43 #16581 [Verbose] > │         v9.l0 <- v15                                                         │

00:02:43 #16582 [Verbose] > │         ()                                                                   │

00:02:43 #16583 [Verbose] > │     let v16 : string = "velocity of car (m/s)"                               │

00:02:43 #16584 [Verbose] > │     let v17 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:43 #16585 [Verbose] > │ (v16, v0, v8)|]                                                              │

00:02:43 #16586 [Verbose] > │     let v18 : (struct (string * (float []) * (float [])) []) = method3(v17)  │

00:02:43 #16587 [Verbose] > │     let v19 : string = "car on an air track"                                 │

00:02:43 #16588 [Verbose] > │     let v20 : string = "time (s)"                                            │

00:02:43 #16589 [Verbose] > │     let v21 : string = ""                                                    │

00:02:43 #16590 [Verbose] > │     struct (v19, v20, v21, v18)                                              │

00:02:43 #16591 [Verbose] > │ method0()                                                                    │

00:02:43 #16592 [Verbose] > │                                                                              │

00:02:43 #16593 [Verbose] > │                                                                              │

00:02:43 #16594 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:43 #16595 [Verbose] >

00:02:43 #16596 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:43 #16597 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:43 #16598 [Verbose] > │ ## derivative                                                                │

00:02:43 #16599 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:43 #16600 [Verbose] >

00:02:43 #16601 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:43 #16602 [Verbose] > type derivative = (f64 -> f64) -> f64 -> f64

00:02:43 #16603 [Verbose] >

00:02:43 #16604 [Verbose] > inl derivative dt : derivative =

00:02:43 #16605 [Verbose] >     fun x t =>

00:02:43 #16606 [Verbose] >         (x (t + dt / 2) - x (t - dt / 2)) / dt

00:02:43 #16607 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3891-9161-9e42f92a8436\main.spi

00:02:43 #16608 [Verbose] >

00:02:43 #16609 [Verbose] > ╭─[ 188.39ms - stdout ]────────────────────────────────────────────────────────╮

00:02:43 #16610 [Verbose] > │ ()                                                                           │

00:02:43 #16611 [Verbose] > │                                                                              │

00:02:43 #16612 [Verbose] > │                                                                              │

00:02:43 #16613 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:43 #16614 [Verbose] >

00:02:43 #16615 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:43 #16616 [Verbose] > // // test

00:02:43 #16617 [Verbose] >

00:02:43 #16618 [Verbose] > derivative 1 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16619 [Verbose] > |> _assert_approx_eq None 0.25

00:02:43 #16620 [Verbose] >

00:02:43 #16621 [Verbose] > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16622 [Verbose] > |> _assert_approx_eq None 0.0000002499998827953931

00:02:43 #16623 [Verbose] >

00:02:43 #16624 [Verbose] > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16625 [Verbose] > |> _assert_approx_eq None 0.000000000001000088900582341

00:02:43 #16626 [Verbose] >

00:02:43 #16627 [Verbose] > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16628 [Verbose] > |> _assert_approx_eq None 0.00000008274037099909037

00:02:43 #16629 [Verbose] >

00:02:43 #16630 [Verbose] > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16631 [Verbose] > |> _assert_approx_eq None 0.00008890058234101161

00:02:43 #16632 [Verbose] >

00:02:43 #16633 [Verbose] > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16634 [Verbose] > |> _assert_approx_eq None -0.0007992778373592246

00:02:43 #16635 [Verbose] >

00:02:43 #16636 [Verbose] > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1

00:02:43 #16637 [Verbose] > |> _assert_approx_eq None -1

00:02:43 #16638 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3910-1064-1d401c0648f5\main.spi

00:02:43 #16639 [Verbose] >

00:02:43 #16640 [Verbose] > ╭─[ 288.60ms - stdout ]────────────────────────────────────────────────────────╮

00:02:43 #16641 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:43 #16642 [Verbose] > │     let v0 : string = $"%A{0.25}"                                            │

00:02:43 #16643 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:43 #16644 [Verbose] > │     let v1 : string = $"__expect / actual: %A{0.25} / expected: %A{0.25}"    │

00:02:43 #16645 [Verbose] > │     let v2 : string = $"%A{2.499998827953931E-07}"                           │

00:02:43 #16646 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:43 #16647 [Verbose] > │     let v3 : string = $"__expect / actual: %A{2.499998827953931E-07} /       │

00:02:43 #16648 [Verbose] > │ expected: %A{2.499998827953931E-07}"                                         │

00:02:43 #16649 [Verbose] > │     let v4 : string = $"%A{1.000088900582341E-12}"                           │

00:02:43 #16650 [Verbose] > │     System.Console.WriteLine v4                                              │

00:02:43 #16651 [Verbose] > │     let v5 : string = $"__expect / actual: %A{1.000088900582341E-12} /       │

00:02:43 #16652 [Verbose] > │ expected: %A{1.000088900582341E-12}"                                         │

00:02:43 #16653 [Verbose] > │     let v6 : string = $"%A{8.274037099909037E-08}"                           │

00:02:43 #16654 [Verbose] > │     System.Console.WriteLine v6                                              │

00:02:43 #16655 [Verbose] > │     let v7 : string = $"__expect / actual: %A{8.274037099909037E-08} /       │

00:02:43 #16656 [Verbose] > │ expected: %A{8.274037099909037E-08}"                                         │

00:02:43 #16657 [Verbose] > │     let v8 : string = $"%A{8.890058234101161E-05}"                           │

00:02:43 #16658 [Verbose] > │     System.Console.WriteLine v8                                              │

00:02:43 #16659 [Verbose] > │     let v9 : string = $"__expect / actual: %A{8.890058234101161E-05} /       │

00:02:43 #16660 [Verbose] > │ expected: %A{8.890058234101161E-05}"                                         │

00:02:43 #16661 [Verbose] > │     let v10 : string = $"%A{-0.0007992778373592246}"                         │

00:02:43 #16662 [Verbose] > │     System.Console.WriteLine v10                                             │

00:02:43 #16663 [Verbose] > │     let v11 : string = $"__expect / actual: %A{-0.0007992778373592246} /     │

00:02:43 #16664 [Verbose] > │ expected: %A{-0.0007992778373592246}"                                        │

00:02:43 #16665 [Verbose] > │     let v12 : string = $"%A{-1.0}"                                           │

00:02:43 #16666 [Verbose] > │     System.Console.WriteLine v12                                             │

00:02:43 #16667 [Verbose] > │     let v13 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}"   │

00:02:43 #16668 [Verbose] > │     ()                                                                       │

00:02:43 #16669 [Verbose] > │ method0()                                                                    │

00:02:43 #16670 [Verbose] > │                                                                              │

00:02:43 #16671 [Verbose] > │ 0.25                                                                         │

00:02:43 #16672 [Verbose] > │ 2.499998828e-07                                                              │

00:02:43 #16673 [Verbose] > │ 1.000088901e-12                                                              │

00:02:43 #16674 [Verbose] > │ 8.2740371e-08                                                                │

00:02:43 #16675 [Verbose] > │ 8.890058234e-05                                                              │

00:02:43 #16676 [Verbose] > │ -0.0007992778374                                                             │

00:02:43 #16677 [Verbose] > │ -1.0                                                                         │

00:02:43 #16678 [Verbose] > │                                                                              │

00:02:43 #16679 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:43 #16680 [Verbose] >

00:02:43 #16681 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:43 #16682 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:43 #16683 [Verbose] > │ ## integration                                                               │

00:02:43 #16684 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:43 #16685 [Verbose] >

00:02:43 #16686 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:43 #16687 [Verbose] > type integration = (f64 -> f64) -> f64 -> f64 -> f64

00:02:43 #16688 [Verbose] >

00:02:43 #16689 [Verbose] > inl integral dt : integration =

00:02:43 #16690 [Verbose] >     fun f a b =>

00:02:43 #16691 [Verbose] >         inl rec loop t y =

00:02:43 #16692 [Verbose] >             if t < b

00:02:43 #16693 [Verbose] >             then loop (t + dt) (y + f t * dt)

00:02:43 #16694 [Verbose] >             else t, y

00:02:43 #16695 [Verbose] >         loop (a + dt / 2) 0

00:02:43 #16696 [Verbose] >         |> snd

00:02:43 #16697 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3941-4128-41251a7ceaf2\main.spi

00:02:44 #16698 [Verbose] >

00:02:44 #16699 [Verbose] > ╭─[ 238.51ms - stdout ]────────────────────────────────────────────────────────╮

00:02:44 #16700 [Verbose] > │ ()                                                                           │

00:02:44 #16701 [Verbose] > │                                                                              │

00:02:44 #16702 [Verbose] > │                                                                              │

00:02:44 #16703 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:44 #16704 [Verbose] >

00:02:44 #16705 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:44 #16706 [Verbose] > // // test

00:02:44 #16707 [Verbose] >

00:02:44 #16708 [Verbose] > integral 0.01 math.square 0 1

00:02:44 #16709 [Verbose] > |> _assert_approx_eq None 0.33332500000000004

00:02:44 #16710 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-3965-6527-627ac5fec55c\main.spi

00:02:44 #16711 [Verbose] >

00:02:44 #16712 [Verbose] > ╭─[ 815.89ms - stdout ]────────────────────────────────────────────────────────╮

00:02:44 #16713 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:44 #16714 [Verbose] > │     let v0 : string = $"%A{0.3333250000000004}"                              │

00:02:44 #16715 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:44 #16716 [Verbose] > │     let v1 : string = $"__expect / actual: %A{0.3333250000000004} /          │

00:02:44 #16717 [Verbose] > │ expected: %A{0.33332500000000004}"                                           │

00:02:44 #16718 [Verbose] > │     ()                                                                       │

00:02:44 #16719 [Verbose] > │ method0()                                                                    │

00:02:44 #16720 [Verbose] > │                                                                              │

00:02:44 #16721 [Verbose] > │ 0.333325                                                                     │

00:02:44 #16722 [Verbose] > │                                                                              │

00:02:44 #16723 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:44 #16724 [Verbose] >

00:02:44 #16725 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:44 #16726 [Verbose] > inl integral' dt : integration =

00:02:44 #16727 [Verbose] >     fun f a b =>

00:02:44 #16728 [Verbose] >         listm'.init_series (a + dt / 2) (b - dt / 2) dt

00:02:44 #16729 [Verbose] >         |> listm.map (f >> (*) dt)

00:02:44 #16730 [Verbose] >         |> listm'.sum

00:02:45 #16731 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4047-4779-4a7caf43db96\main.spi

00:02:45 #16732 [Verbose] >

00:02:45 #16733 [Verbose] > ╭─[ 194.83ms - stdout ]────────────────────────────────────────────────────────╮

00:02:45 #16734 [Verbose] > │ ()                                                                           │

00:02:45 #16735 [Verbose] > │                                                                              │

00:02:45 #16736 [Verbose] > │                                                                              │

00:02:45 #16737 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:45 #16738 [Verbose] >

00:02:45 #16739 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:45 #16740 [Verbose] > // // test

00:02:45 #16741 [Verbose] >

00:02:45 #16742 [Verbose] > integral' 0.1 math.square 0 1

00:02:45 #16743 [Verbose] > |> _assert_approx_eq None (integral 0.1 math.square 0 1)

00:02:45 #16744 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4067-6749-6908acb17e0d\main.spi

00:02:45 #16745 [Verbose] >

00:02:45 #16746 [Verbose] > ╭─[ 281.51ms - stdout ]────────────────────────────────────────────────────────╮

00:02:45 #16747 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:45 #16748 [Verbose] > │     let v0 : string = $"%A{0.3325000000000001}"                              │

00:02:45 #16749 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:45 #16750 [Verbose] > │     let v1 : string = $"__expect / actual: %A{0.3325000000000001} /          │

00:02:45 #16751 [Verbose] > │ expected: %A{0.33249999999999996}"                                           │

00:02:45 #16752 [Verbose] > │     ()                                                                       │

00:02:45 #16753 [Verbose] > │ method0()                                                                    │

00:02:45 #16754 [Verbose] > │                                                                              │

00:02:45 #16755 [Verbose] > │ 0.3325                                                                       │

00:02:45 #16756 [Verbose] > │                                                                              │

00:02:45 #16757 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:45 #16758 [Verbose] >

00:02:45 #16759 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:45 #16760 [Verbose] > inl integral'' dt : integration =

00:02:45 #16761 [Verbose] >     fun f a b =>

00:02:45 #16762 [Verbose] >         am'.init_series (a + dt / 2) (b - dt / 2) dt

00:02:45 #16763 [Verbose] >         |> am.map (f >> (*) dt)

00:02:45 #16764 [Verbose] >         |> am'.sum

00:02:45 #16765 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4096-9602-9f5eda39facb\main.spi

00:02:45 #16766 [Verbose] >

00:02:45 #16767 [Verbose] > ╭─[ 190.45ms - stdout ]────────────────────────────────────────────────────────╮

00:02:45 #16768 [Verbose] > │ ()                                                                           │

00:02:45 #16769 [Verbose] > │                                                                              │

00:02:45 #16770 [Verbose] > │                                                                              │

00:02:45 #16771 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:45 #16772 [Verbose] >

00:02:45 #16773 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:45 #16774 [Verbose] > // // test

00:02:45 #16775 [Verbose] >

00:02:45 #16776 [Verbose] > integral'' 0.01 math.square 0 1

00:02:45 #16777 [Verbose] > |> _assert_approx_eq None (integral 0.01 math.square 0 1)

00:02:45 #16778 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4115-1523-1d4bb912cdff\main.spi

00:02:45 #16779 [Verbose] >

00:02:45 #16780 [Verbose] > ╭─[ 288.84ms - stdout ]────────────────────────────────────────────────────────╮

00:02:45 #16781 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:45 #16782 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : float}                          │

00:02:45 #16783 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:45 #16784 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:45 #16785 [Verbose] > │     let v2 : bool = v1 < 100                                                 │

00:02:45 #16786 [Verbose] > │     v2                                                                       │

00:02:45 #16787 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:45 #16788 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:45 #16789 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:45 #16790 [Verbose] > │     v3                                                                       │

00:02:45 #16791 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool =                                 │

00:02:45 #16792 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:45 #16793 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:45 #16794 [Verbose] > │     v3                                                                       │

00:02:45 #16795 [Verbose] > │ and method4 (v0 : bool) : bool =                                             │

00:02:45 #16796 [Verbose] > │     v0                                                                       │

00:02:45 #16797 [Verbose] > │ and method0 () : unit =                                                      │

00:02:45 #16798 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (100)                      │

00:02:45 #16799 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:45 #16800 [Verbose] > │     while method1(v1) do                                                     │

00:02:45 #16801 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:45 #16802 [Verbose] > │         let v4 : float = float v3                                            │

00:02:45 #16803 [Verbose] > │         let v5 : float = 0.01 * v4                                           │

00:02:45 #16804 [Verbose] > │         let v6 : float = 0.005 + v5                                          │

00:02:45 #16805 [Verbose] > │         v0.[int v3] <- v6                                                    │

00:02:45 #16806 [Verbose] > │         let v7 : int32 = v3 + 1                                              │

00:02:45 #16807 [Verbose] > │         v1.l0 <- v7                                                          │

00:02:45 #16808 [Verbose] > │         ()                                                                   │

00:02:45 #16809 [Verbose] > │     let v8 : int32 = v0.Length                                               │

00:02:45 #16810 [Verbose] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:02:45 #16811 [Verbose] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:45 #16812 [Verbose] > │     while method2(v8, v10) do                                                │

00:02:45 #16813 [Verbose] > │         let v12 : int32 = v10.l0                                             │

00:02:45 #16814 [Verbose] > │         let v13 : float = v0.[int v12]                                       │

00:02:45 #16815 [Verbose] > │         let v14 : float = v13 ** 2.0                                         │

00:02:45 #16816 [Verbose] > │         let v15 : float = 0.01 * v14                                         │

00:02:45 #16817 [Verbose] > │         v9.[int v12] <- v15                                                  │

00:02:45 #16818 [Verbose] > │         let v16 : int32 = v12 + 1                                            │

00:02:45 #16819 [Verbose] > │         v10.l0 <- v16                                                        │

00:02:45 #16820 [Verbose] > │         ()                                                                   │

00:02:45 #16821 [Verbose] > │     let v17 : int32 = v9.Length                                              │

00:02:45 #16822 [Verbose] > │     let v18 : Mut1 = {l0 = 0; l1 = 0.0} : Mut1                               │

00:02:45 #16823 [Verbose] > │     while method3(v17, v18) do                                               │

00:02:45 #16824 [Verbose] > │         let v20 : int32 = v18.l0                                             │

00:02:45 #16825 [Verbose] > │         let v21 : float = v18.l1                                             │

00:02:45 #16826 [Verbose] > │         let v22 : float = v9.[int v20]                                       │

00:02:45 #16827 [Verbose] > │         let v23 : float = v21 + v22                                          │

00:02:45 #16828 [Verbose] > │         let v24 : int32 = v20 + 1                                            │

00:02:45 #16829 [Verbose] > │         v18.l0 <- v24                                                        │

00:02:45 #16830 [Verbose] > │         v18.l1 <- v23                                                        │

00:02:45 #16831 [Verbose] > │         ()                                                                   │

00:02:45 #16832 [Verbose] > │     let v25 : float = v18.l1                                                 │

00:02:45 #16833 [Verbose] > │     let v26 : string = $"%A{v25}"                                            │

00:02:45 #16834 [Verbose] > │     System.Console.WriteLine v26                                             │

00:02:45 #16835 [Verbose] > │     let v27 : float = 0.3333250000000004 - v25                               │

00:02:45 #16836 [Verbose] > │     let v28 : float =  -v27                                                  │

00:02:45 #16837 [Verbose] > │     let v29 : bool = v27 >= v28                                              │

00:02:45 #16838 [Verbose] > │     let v30 : float =                                                        │

00:02:45 #16839 [Verbose] > │         if v29 then                                                          │

00:02:45 #16840 [Verbose] > │             v27                                                              │

00:02:45 #16841 [Verbose] > │         else                                                                 │

00:02:45 #16842 [Verbose] > │             v28                                                              │

00:02:45 #16843 [Verbose] > │     let v31 : bool = v30 < 1E-08                                             │

00:02:45 #16844 [Verbose] > │     let v33 : bool =                                                         │

00:02:45 #16845 [Verbose] > │         if v31 then                                                          │

00:02:45 #16846 [Verbose] > │             true                                                             │

00:02:45 #16847 [Verbose] > │         else                                                                 │

00:02:45 #16848 [Verbose] > │             method4(v31)                                                     │

00:02:45 #16849 [Verbose] > │     let v34 : string = $"__expect / actual: %A{v25} / expected:              │

00:02:45 #16850 [Verbose] > │ %A{0.3333250000000004}"                                                      │

00:02:45 #16851 [Verbose] > │     let v35 : bool = v33 = false                                             │

00:02:45 #16852 [Verbose] > │     if v35 then                                                              │

00:02:45 #16853 [Verbose] > │         failwith<unit> v34                                                   │

00:02:45 #16854 [Verbose] > │ method0()                                                                    │

00:02:45 #16855 [Verbose] > │                                                                              │

00:02:45 #16856 [Verbose] > │ 0.333325                                                                     │

00:02:45 #16857 [Verbose] > │                                                                              │

00:02:45 #16858 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:45 #16859 [Verbose] >

00:02:45 #16860 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:45 #16861 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:45 #16862 [Verbose] > │ ## anti_derivative                                                           │

00:02:45 #16863 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:45 #16864 [Verbose] >

00:02:45 #16865 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:45 #16866 [Verbose] > inl anti_derivative dt v0 a t =

00:02:45 #16867 [Verbose] >     v0 + integral' dt a 0 t

00:02:46 #16868 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4147-4704-42b6766b3378\main.spi

00:02:46 #16869 [Verbose] >

00:02:46 #16870 [Verbose] > ╭─[ 274.42ms - stdout ]────────────────────────────────────────────────────────╮

00:02:46 #16871 [Verbose] > │ ()                                                                           │

00:02:46 #16872 [Verbose] > │                                                                              │

00:02:46 #16873 [Verbose] > │                                                                              │

00:02:46 #16874 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #16875 [Verbose] >

00:02:46 #16876 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:46 #16877 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:46 #16878 [Verbose] > │ ## velocity_ft                                                               │

00:02:46 #16879 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #16880 [Verbose] >

00:02:46 #16881 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:46 #16882 [Verbose] > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->

00:02:46 #16883 [Verbose] > velocity)

00:02:46 #16884 [Verbose] >

00:02:46 #16885 [Verbose] > inl velocity_ft dt : velocity_ft =

00:02:46 #16886 [Verbose] >     fun m v0 fs =>

00:02:46 #16887 [Verbose] >         inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum

00:02:46 #16888 [Verbose] >         inl a t = f_net t / m

00:02:46 #16889 [Verbose] >         anti_derivative dt v0 a

00:02:46 #16890 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4174-7498-73d0cf7315a2\main.spi

00:02:46 #16891 [Verbose] >

00:02:46 #16892 [Verbose] > ╭─[ 247.27ms - stdout ]────────────────────────────────────────────────────────╮

00:02:46 #16893 [Verbose] > │ ()                                                                           │

00:02:46 #16894 [Verbose] > │                                                                              │

00:02:46 #16895 [Verbose] > │                                                                              │

00:02:46 #16896 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #16897 [Verbose] >

00:02:46 #16898 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:46 #16899 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:46 #16900 [Verbose] > │ ## position_ft                                                               │

00:02:46 #16901 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #16902 [Verbose] >

00:02:46 #16903 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:46 #16904 [Verbose] > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time

00:02:46 #16905 [Verbose] > -> position)

00:02:46 #16906 [Verbose] >

00:02:46 #16907 [Verbose] > inl position_ft dt : position_ft =

00:02:46 #16908 [Verbose] >     fun m x0 v0 fs =>

00:02:46 #16909 [Verbose] >         velocity_ft dt m v0 fs

00:02:46 #16910 [Verbose] >         |> anti_derivative dt x0

00:02:46 #16911 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4200-0008-0c052191e8b7\main.spi

00:02:46 #16912 [Verbose] >

00:02:46 #16913 [Verbose] > ╭─[ 230.08ms - stdout ]────────────────────────────────────────────────────────╮

00:02:46 #16914 [Verbose] > │ ()                                                                           │

00:02:46 #16915 [Verbose] > │                                                                              │

00:02:46 #16916 [Verbose] > │                                                                              │

00:02:46 #16917 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #16918 [Verbose] >

00:02:46 #16919 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:46 #16920 [Verbose] > // // test

00:02:46 #16921 [Verbose] >

00:02:46 #16922 [Verbose] > inl pedal_coast (t : time) : force =

00:02:46 #16923 [Verbose] >     inl t_cycle = 20

00:02:46 #16924 [Verbose] >     inl n_complete : i32 = t / t_cycle |> conv

00:02:46 #16925 [Verbose] >     inl remainder = t - conv n_complete * t_cycle

00:02:46 #16926 [Verbose] >     if remainder > 0 && remainder < 10

00:02:46 #16927 [Verbose] >     then 10

00:02:46 #16928 [Verbose] >     else 0

00:02:46 #16929 [Verbose] >

00:02:46 #16930 [Verbose] > inl x = am'.init_series -5 45 0.1

00:02:46 #16931 [Verbose] > inl y = x |> am.map pedal_coast

00:02:46 #16932 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]

00:02:46 #16933 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4223-2323-2fcefc9ecf9a\main.spi

00:02:46 #16934 [Verbose] >

00:02:46 #16935 [Verbose] > ╭─[ 253.49ms - return value ]──────────────────────────────────────────────────╮

00:02:46 #16936 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:46 #16937 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:46 #16938 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:46 #16939 [Verbose] > │ stroke="none"/>                                                              │

00:02:46 #16940 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:46 #16941 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:46 #16942 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:46 #16943 [Verbose] > │ child pedaling then coasting                                                 │

00:02:46 #16944 [Verbose] > │ </text>                                                                      │

00:02:46 #16945 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:02:46 #16946 [Verbose] > │ y2="75"/>                                                                    │

00:02:46 #16947 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:46 #16948 [Verbose] > │ y2="75"/>                                                                    │

00:02:46 #16949 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:02:46 #16950 [Verbose] > │ y2="75"/>                                                                    │

00:02:46 #16951 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:02:46 #16952 [Verbose] > │ y2="75"/>                                                                    │

00:02:46 #16953 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=...                   │

00:02:46 #16954 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #16955 [Verbose] >

00:02:46 #16956 [Verbose] > ╭─[ 261.74ms - stdout ]────────────────────────────────────────────────────────╮

00:02:46 #16957 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:46 #16958 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:46 #16959 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:46 #16960 [Verbose] > │     let v2 : bool = v1 < 501                                                 │

00:02:46 #16961 [Verbose] > │     v2                                                                       │

00:02:46 #16962 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:46 #16963 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:46 #16964 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:46 #16965 [Verbose] > │     v3                                                                       │

00:02:46 #16966 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:46 #16967 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:46 #16968 [Verbose] > │     v0                                                                       │

00:02:46 #16969 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:46 #16970 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:46 #16971 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (501)                      │

00:02:46 #16972 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:46 #16973 [Verbose] > │     while method1(v1) do                                                     │

00:02:46 #16974 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:46 #16975 [Verbose] > │         let v4 : float = float v3                                            │

00:02:46 #16976 [Verbose] > │         let v5 : float = 0.1 * v4                                            │

00:02:46 #16977 [Verbose] > │         let v6 : float = -5.0 + v5                                           │

00:02:46 #16978 [Verbose] > │         v0.[int v3] <- v6                                                    │

00:02:46 #16979 [Verbose] > │         let v7 : int32 = v3 + 1                                              │

00:02:46 #16980 [Verbose] > │         v1.l0 <- v7                                                          │

00:02:46 #16981 [Verbose] > │         ()                                                                   │

00:02:46 #16982 [Verbose] > │     let v8 : int32 = v0.Length                                               │

00:02:46 #16983 [Verbose] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:02:46 #16984 [Verbose] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:46 #16985 [Verbose] > │     while method2(v8, v10) do                                                │

00:02:46 #16986 [Verbose] > │         let v12 : int32 = v10.l0                                             │

00:02:46 #16987 [Verbose] > │         let v13 : float = v0.[int v12]                                       │

00:02:46 #16988 [Verbose] > │         let v14 : float = v13 / 20.0                                         │

00:02:46 #16989 [Verbose] > │         let v15 : int32 = int32 v14                                          │

00:02:46 #16990 [Verbose] > │         let v16 : float = float v15                                          │

00:02:46 #16991 [Verbose] > │         let v17 : float = v16 * 20.0                                         │

00:02:46 #16992 [Verbose] > │         let v18 : float = v13 - v17                                          │

00:02:46 #16993 [Verbose] > │         let v19 : bool = v18 > 0.0                                           │

00:02:46 #16994 [Verbose] > │         let v21 : bool =                                                     │

00:02:46 #16995 [Verbose] > │             if v19 then                                                      │

00:02:46 #16996 [Verbose] > │                 let v20 : bool = v18 < 10.0                                  │

00:02:46 #16997 [Verbose] > │                 v20                                                          │

00:02:46 #16998 [Verbose] > │             else                                                             │

00:02:46 #16999 [Verbose] > │                 false                                                        │

00:02:46 #17000 [Verbose] > │         let v22 : float =                                                    │

00:02:46 #17001 [Verbose] > │             if v21 then                                                      │

00:02:46 #17002 [Verbose] > │                 10.0                                                         │

00:02:46 #17003 [Verbose] > │             else                                                             │

00:02:46 #17004 [Verbose] > │                 0.0                                                          │

00:02:46 #17005 [Verbose] > │         v9.[int v12] <- v22                                                  │

00:02:46 #17006 [Verbose] > │         let v23 : int32 = v12 + 1                                            │

00:02:46 #17007 [Verbose] > │         v10.l0 <- v23                                                        │

00:02:46 #17008 [Verbose] > │         ()                                                                   │

00:02:46 #17009 [Verbose] > │     let v24 : string = "force on bike (N)"                                   │

00:02:46 #17010 [Verbose] > │     let v25 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:46 #17011 [Verbose] > │ (v24, v0, v9)|]                                                              │

00:02:46 #17012 [Verbose] > │     let v26 : (struct (string * (float []) * (float [])) []) = method3(v25)  │

00:02:46 #17013 [Verbose] > │     let v27 : string = "child pedaling then coasting"                        │

00:02:46 #17014 [Verbose] > │     let v28 : string = "time (s)"                                            │

00:02:46 #17015 [Verbose] > │     let v29 : string = ""                                                    │

00:02:46 #17016 [Verbose] > │     struct (v27, v28, v29, v26)                                              │

00:02:46 #17017 [Verbose] > │ method0()                                                                    │

00:02:46 #17018 [Verbose] > │                                                                              │

00:02:46 #17019 [Verbose] > │                                                                              │

00:02:46 #17020 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:46 #17021 [Verbose] >

00:02:46 #17022 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:46 #17023 [Verbose] > // // test

00:02:46 #17024 [Verbose] >

00:02:46 #17025 [Verbose] > inl x = am'.init_series -5 45 1

00:02:46 #17026 [Verbose] > inl y = x |> am.map (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])

00:02:46 #17027 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y

00:02:46 #17028 [Verbose] > ]]

00:02:47 #17029 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4251-5136-584ab9c1bc2e\main.spi

00:02:47 #17030 [Verbose] >

00:02:47 #17031 [Verbose] > ╭─[ 651.41ms - return value ]──────────────────────────────────────────────────╮

00:02:47 #17032 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:47 #17033 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:47 #17034 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:47 #17035 [Verbose] > │ stroke="none"/>                                                              │

00:02:47 #17036 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:47 #17037 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:47 #17038 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:47 #17039 [Verbose] > │ child pedaling then coasting                                                 │

00:02:47 #17040 [Verbose] > │ </text>                                                                      │

00:02:47 #17041 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:02:47 #17042 [Verbose] > │ y2="75"/>                                                                    │

00:02:47 #17043 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:47 #17044 [Verbose] > │ y2="75"/>                                                                    │

00:02:47 #17045 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:02:47 #17046 [Verbose] > │ y2="75"/>                                                                    │

00:02:47 #17047 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:02:47 #17048 [Verbose] > │ y2="75"/>                                                                    │

00:02:47 #17049 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=...                   │

00:02:47 #17050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:47 #17051 [Verbose] >

00:02:47 #17052 [Verbose] > ╭─[ 662.60ms - stdout ]────────────────────────────────────────────────────────╮

00:02:47 #17053 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:47 #17054 [Verbose] > │ and UH0 =                                                                    │

00:02:47 #17055 [Verbose] > │     | UH0_0 of float * UH0                                                   │

00:02:47 #17056 [Verbose] > │     | UH0_1                                                                  │

00:02:47 #17057 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:47 #17058 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:47 #17059 [Verbose] > │     let v2 : bool = v1 < 51                                                  │

00:02:47 #17060 [Verbose] > │     v2                                                                       │

00:02:47 #17061 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:47 #17062 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:47 #17063 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:47 #17064 [Verbose] > │     v3                                                                       │

00:02:47 #17065 [Verbose] > │ and method3 (v0 : float, v1 : float) : UH0 =                                 │

00:02:47 #17066 [Verbose] > │     let v2 : bool = v1 < v0                                                  │

00:02:47 #17067 [Verbose] > │     if v2 then                                                               │

00:02:47 #17068 [Verbose] > │         let v3 : float = 0.1 * v1                                            │

00:02:47 #17069 [Verbose] > │         let v4 : float = 0.05 + v3                                           │

00:02:47 #17070 [Verbose] > │         let v5 : float = v1 + 1.0                                            │

00:02:47 #17071 [Verbose] > │         let v6 : UH0 = method3(v0, v5)                                       │

00:02:47 #17072 [Verbose] > │         UH0_0(v4, v6)                                                        │

00:02:47 #17073 [Verbose] > │     else                                                                     │

00:02:47 #17074 [Verbose] > │         UH0_1                                                                │

00:02:47 #17075 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:02:47 #17076 [Verbose] > │     match v0 with                                                            │

00:02:47 #17077 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:02:47 #17078 [Verbose] > │         let v4 : UH0 = method5(v3, v1)                                       │

00:02:47 #17079 [Verbose] > │         let v5 : float = v2 / 20.0                                           │

00:02:47 #17080 [Verbose] > │         let v6 : int32 = int32 v5                                            │

00:02:47 #17081 [Verbose] > │         let v7 : float = float v6                                            │

00:02:47 #17082 [Verbose] > │         let v8 : float = v7 * 20.0                                           │

00:02:47 #17083 [Verbose] > │         let v9 : float = v2 - v8                                             │

00:02:47 #17084 [Verbose] > │         let v10 : bool = v9 > 0.0                                            │

00:02:47 #17085 [Verbose] > │         let v12 : bool =                                                     │

00:02:47 #17086 [Verbose] > │             if v10 then                                                      │

00:02:47 #17087 [Verbose] > │                 let v11 : bool = v9 < 10.0                                   │

00:02:47 #17088 [Verbose] > │                 v11                                                          │

00:02:47 #17089 [Verbose] > │             else                                                             │

00:02:47 #17090 [Verbose] > │                 false                                                        │

00:02:47 #17091 [Verbose] > │         let v13 : float =                                                    │

00:02:47 #17092 [Verbose] > │             if v12 then                                                      │

00:02:47 #17093 [Verbose] > │                 10.0                                                         │

00:02:47 #17094 [Verbose] > │             else                                                             │

00:02:47 #17095 [Verbose] > │                 0.0                                                          │

00:02:47 #17096 [Verbose] > │         let v14 : float = v13 / 20.0                                         │

00:02:47 #17097 [Verbose] > │         let v15 : float = 0.1 * v14                                          │

00:02:47 #17098 [Verbose] > │         UH0_0(v15, v4)                                                       │

00:02:47 #17099 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:47 #17100 [Verbose] > │         v1                                                                   │

00:02:47 #17101 [Verbose] > │ and method6 (v0 : UH0, v1 : float) : float =                                 │

00:02:47 #17102 [Verbose] > │     match v0 with                                                            │

00:02:47 #17103 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:02:47 #17104 [Verbose] > │         let v4 : float = v1 + v2                                             │

00:02:47 #17105 [Verbose] > │         method6(v3, v4)                                                      │

00:02:47 #17106 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:47 #17107 [Verbose] > │         v1                                                                   │

00:02:47 #17108 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:02:47 #17109 [Verbose] > │     match v0 with                                                            │

00:02:47 #17110 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:02:47 #17111 [Verbose] > │         let v4 : UH0 = method4(v3, v1)                                       │

00:02:47 #17112 [Verbose] > │         let v5 : float = v2 - 0.05                                           │

00:02:47 #17113 [Verbose] > │         let v6 : float = v5 - 0.05                                           │

00:02:47 #17114 [Verbose] > │         let v7 : float = v6 / 0.1                                            │

00:02:47 #17115 [Verbose] > │         let v8 : float = v7 + 1.0                                            │

00:02:47 #17116 [Verbose] > │         let v9 : float = 0.0                                                 │

00:02:47 #17117 [Verbose] > │         let v10 : UH0 = method3(v8, v9)                                      │

00:02:47 #17118 [Verbose] > │         let v11 : UH0 = UH0_1                                                │

00:02:47 #17119 [Verbose] > │         let v12 : UH0 = method5(v10, v11)                                    │

00:02:47 #17120 [Verbose] > │         let v13 : float = 0.0                                                │

00:02:47 #17121 [Verbose] > │         let v14 : float = method6(v12, v13)                                  │

00:02:47 #17122 [Verbose] > │         let v15 : float = 0.1 * v14                                          │

00:02:47 #17123 [Verbose] > │         UH0_0(v15, v4)                                                       │

00:02:47 #17124 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:47 #17125 [Verbose] > │         v1                                                                   │

00:02:47 #17126 [Verbose] > │ and method7 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:47 #17127 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:47 #17128 [Verbose] > │     v0                                                                       │

00:02:47 #17129 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:47 #17130 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:47 #17131 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (51)                       │

00:02:47 #17132 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:47 #17133 [Verbose] > │     while method1(v1) do                                                     │

00:02:47 #17134 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:47 #17135 [Verbose] > │         let v4 : float = float v3                                            │

00:02:47 #17136 [Verbose] > │         let v5 : float = -5.0 + v4                                           │

00:02:47 #17137 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:47 #17138 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:47 #17139 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:47 #17140 [Verbose] > │         ()                                                                   │

00:02:47 #17141 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:02:47 #17142 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:02:47 #17143 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:47 #17144 [Verbose] > │     while method2(v7, v9) do                                                 │

00:02:47 #17145 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:02:47 #17146 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:02:47 #17147 [Verbose] > │         let v13 : float = v12 - 0.05                                         │

00:02:47 #17148 [Verbose] > │         let v14 : float = v13 - 0.05                                         │

00:02:47 #17149 [Verbose] > │         let v15 : float = v14 / 0.1                                          │

00:02:47 #17150 [Verbose] > │         let v16 : float = v15 + 1.0                                          │

00:02:47 #17151 [Verbose] > │         let v17 : float = 0.0                                                │

00:02:47 #17152 [Verbose] > │         let v18 : UH0 = method3(v16, v17)                                    │

00:02:47 #17153 [Verbose] > │         let v19 : UH0 = UH0_1                                                │

00:02:47 #17154 [Verbose] > │         let v20 : UH0 = method4(v18, v19)                                    │

00:02:47 #17155 [Verbose] > │         let v21 : float = 0.0                                                │

00:02:47 #17156 [Verbose] > │         let v22 : float = method6(v20, v21)                                  │

00:02:47 #17157 [Verbose] > │         v8.[int v11] <- v22                                                  │

00:02:47 #17158 [Verbose] > │         let v23 : int32 = v11 + 1                                            │

00:02:47 #17159 [Verbose] > │         v9.l0 <- v23                                                         │

00:02:47 #17160 [Verbose] > │         ()                                                                   │

00:02:47 #17161 [Verbose] > │     let v24 : string = "position of bike (m)"                                │

00:02:47 #17162 [Verbose] > │     let v25 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:47 #17163 [Verbose] > │ (v24, v0, v8)|]                                                              │

00:02:47 #17164 [Verbose] > │     let v26 : (struct (string * (float []) * (float [])) []) = method7(v25)  │

00:02:47 #17165 [Verbose] > │     let v27 : string = "child pedaling then coasting"                        │

00:02:47 #17166 [Verbose] > │     let v28 : string = "time (s)"                                            │

00:02:47 #17167 [Verbose] > │     let v29 : string = ""                                                    │

00:02:47 #17168 [Verbose] > │     struct (v27, v28, v29, v26)                                              │

00:02:47 #17169 [Verbose] > │ method0()                                                                    │

00:02:47 #17170 [Verbose] > │                                                                              │

00:02:47 #17171 [Verbose] > │                                                                              │

00:02:47 #17172 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:47 #17173 [Verbose] >

00:02:47 #17174 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:47 #17175 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:47 #17176 [Verbose] > │ ## velocity_fv                                                               │

00:02:47 #17177 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:47 #17178 [Verbose] >

00:02:47 #17179 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:47 #17180 [Verbose] > inl newton_second_v m fs v0 =

00:02:47 #17181 [Verbose] >     fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m

00:02:47 #17182 [Verbose] >

00:02:47 #17183 [Verbose] > inl update_velocity dt m fs v0 =

00:02:47 #17184 [Verbose] >     v0 + newton_second_v m fs v0 * dt

00:02:47 #17185 [Verbose] >

00:02:47 #17186 [Verbose] > inl velocity_fv dt m v0 fs t =

00:02:47 #17187 [Verbose] >     stream.iterate (update_velocity dt m fs) v0

00:02:47 #17188 [Verbose] >     |> stream.try_item (t / dt |> math.round |> abs)

00:02:47 #17189 [Verbose] >     |> optionm'.default_value 0

00:02:47 #17190 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4323-2314-29f5970e2c76\main.spi

00:02:47 #17191 [Verbose] >

00:02:47 #17192 [Verbose] > ╭─[ 189.90ms - stdout ]────────────────────────────────────────────────────────╮

00:02:47 #17193 [Verbose] > │ ()                                                                           │

00:02:47 #17194 [Verbose] > │                                                                              │

00:02:47 #17195 [Verbose] > │                                                                              │

00:02:47 #17196 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:47 #17197 [Verbose] >

00:02:47 #17198 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:47 #17199 [Verbose] > inl f_air drag rho area v =

00:02:47 #17200 [Verbose] >     -drag * rho * area * abs v * v / 2

00:02:47 #17201 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4342-4219-43a5a1da1557\main.spi

00:02:48 #17202 [Verbose] >

00:02:48 #17203 [Verbose] > ╭─[ 215.10ms - stdout ]────────────────────────────────────────────────────────╮

00:02:48 #17204 [Verbose] > │ ()                                                                           │

00:02:48 #17205 [Verbose] > │                                                                              │

00:02:48 #17206 [Verbose] > │                                                                              │

00:02:48 #17207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:48 #17208 [Verbose] >

00:02:48 #17209 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:48 #17210 [Verbose] > // // test

00:02:48 #17211 [Verbose] >

00:02:48 #17212 [Verbose] > inl x = am'.init_series 0 60 0.5

00:02:48 #17213 [Verbose] > inl y = x |> am.map (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225 0.6

00:02:48 #17214 [Verbose] > ]])

00:02:48 #17215 [Verbose] > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]

00:02:48 #17216 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4363-6391-65b75ac5dffd\main.spi

00:02:48 #17217 [Verbose] >

00:02:48 #17218 [Verbose] > ╭─[ 498.27ms - return value ]──────────────────────────────────────────────────╮

00:02:48 #17219 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:48 #17220 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:48 #17221 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:48 #17222 [Verbose] > │ stroke="none"/>                                                              │

00:02:48 #17223 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:48 #17224 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:48 #17225 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:48 #17226 [Verbose] > │ bike velocity                                                                │

00:02:48 #17227 [Verbose] > │ </text>                                                                      │

00:02:48 #17228 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:02:48 #17229 [Verbose] > │ y2="75"/>                                                                    │

00:02:48 #17230 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:48 #17231 [Verbose] > │ y2="75"/>                                                                    │

00:02:48 #17232 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:02:48 #17233 [Verbose] > │ y2="75"/>                                                                    │

00:02:48 #17234 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:02:48 #17235 [Verbose] > │ y2="75"/>                                                                    │

00:02:48 #17236 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x...    │

00:02:48 #17237 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:48 #17238 [Verbose] >

00:02:48 #17239 [Verbose] > ╭─[ 510.03ms - stdout ]────────────────────────────────────────────────────────╮

00:02:48 #17240 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:48 #17241 [Verbose] > │ and UH0 =                                                                    │

00:02:48 #17242 [Verbose] > │     | UH0_0 of float * (unit -> UH0)                                         │

00:02:48 #17243 [Verbose] > │     | UH0_1                                                                  │

00:02:48 #17244 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:48 #17245 [Verbose] > │     | US0_0                                                                  │

00:02:48 #17246 [Verbose] > │     | US0_1 of f1_0 : float                                                  │

00:02:48 #17247 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:48 #17248 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:48 #17249 [Verbose] > │     let v2 : bool = v1 < 121                                                 │

00:02:48 #17250 [Verbose] > │     v2                                                                       │

00:02:48 #17251 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:48 #17252 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:48 #17253 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:48 #17254 [Verbose] > │     v3                                                                       │

00:02:48 #17255 [Verbose] > │ and closure129 () () : UH0 =                                                 │

00:02:48 #17256 [Verbose] > │     let v0 : (unit -> UH0) = closure129()                                    │

00:02:48 #17257 [Verbose] > │     UH0_0(11.664236870396083, v0)                                            │

00:02:48 #17258 [Verbose] > │ and closure128 () () : UH0 =                                                 │

00:02:48 #17259 [Verbose] > │     let v0 : (unit -> UH0) = closure129()                                    │

00:02:48 #17260 [Verbose] > │     UH0_0(11.664236870396081, v0)                                            │

00:02:48 #17261 [Verbose] > │ and closure127 () () : UH0 =                                                 │

00:02:48 #17262 [Verbose] > │     let v0 : (unit -> UH0) = closure128()                                    │

00:02:48 #17263 [Verbose] > │     UH0_0(11.66423687039608, v0)                                             │

00:02:48 #17264 [Verbose] > │ and closure126 () () : UH0 =                                                 │

00:02:48 #17265 [Verbose] > │     let v0 : (unit -> UH0) = closure127()                                    │

00:02:48 #17266 [Verbose] > │     UH0_0(11.664236870396078, v0)                                            │

00:02:48 #17267 [Verbose] > │ and closure125 () () : UH0 =                                                 │

00:02:48 #17268 [Verbose] > │     let v0 : (unit -> UH0) = closure126()                                    │

00:02:48 #17269 [Verbose] > │     UH0_0(11.664236870396074, v0)                                            │

00:02:48 #17270 [Verbose] > │ and closure124 () () : UH0 =                                                 │

00:02:48 #17271 [Verbose] > │     let v0 : (unit -> UH0) = closure125()                                    │

00:02:48 #17272 [Verbose] > │     UH0_0(11.66423687039607, v0)                                             │

00:02:48 #17273 [Verbose] > │ and closure123 () () : UH0 =                                                 │

00:02:48 #17274 [Verbose] > │     let v0 : (unit -> UH0) = closure124()                                    │

00:02:48 #17275 [Verbose] > │     UH0_0(11.664236870396065, v0)                                            │

00:02:48 #17276 [Verbose] > │ and closure122 () () : UH0 =                                                 │

00:02:48 #17277 [Verbose] > │     let v0 : (unit -> UH0) = closure123()                                    │

00:02:48 #17278 [Verbose] > │     UH0_0(11.664236870396058, v0)                                            │

00:02:48 #17279 [Verbose] > │ and closure121 () () : UH0 =                                                 │

00:02:48 #17280 [Verbose] > │     let v0 : (unit -> UH0) = closure122()                                    │

00:02:48 #17281 [Verbose] > │     UH0_0(11.66423687039605, v0)                                             │

00:02:48 #17282 [Verbose] > │ and closure120 () () : UH0 =                                                 │

00:02:48 #17283 [Verbose] > │     let v0 : (unit -> UH0) = closure121()                                    │

00:02:48 #17284 [Verbose] > │     UH0_0(11.664236870396037, v0)                                            │

00:02:48 #17285 [Verbose] > │ and closure119 () () : UH0 =                                                 │

00:02:48 #17286 [Verbose] > │     let v0 : (unit -> UH0) = closure120()                                    │

00:02:48 #17287 [Verbose] > │     UH0_0(11.66423687039602, v0)                                             │

00:02:48 #17288 [Verbose] > │ and closure118 () () : UH0 =                                                 │

00:02:48 #17289 [Verbose] > │     let v0 : (unit -> UH0) = closure119()                                    │

00:02:48 #17290 [Verbose] > │     UH0_0(11.664236870396, v0)                                               │

00:02:48 #17291 [Verbose] > │ and closure117 () () : UH0 =                                                 │

00:02:48 #17292 [Verbose] > │     let v0 : (unit -> UH0) = closure118()                                    │

00:02:48 #17293 [Verbose] > │     UH0_0(11.664236870395971, v0)                                            │

00:02:48 #17294 [Verbose] > │ and closure116 () () : UH0 =                                                 │

00:02:48 #17295 [Verbose] > │     let v0 : (unit -> UH0) = closure117()                                    │

00:02:48 #17296 [Verbose] > │     UH0_0(11.664236870395934, v0)                                            │

00:02:48 #17297 [Verbose] > │ and closure115 () () : UH0 =                                                 │

00:02:48 #17298 [Verbose] > │     let v0 : (unit -> UH0) = closure116()                                    │

00:02:48 #17299 [Verbose] > │     UH0_0(11.664236870395884, v0)                                            │

00:02:48 #17300 [Verbose] > │ and closure114 () () : UH0 =                                                 │

00:02:48 #17301 [Verbose] > │     let v0 : (unit -> UH0) = closure115()                                    │

00:02:48 #17302 [Verbose] > │     UH0_0(11.664236870395818, v0)                                            │

00:02:48 #17303 [Verbose] > │ and closure113 () () : UH0 =                                                 │

00:02:48 #17304 [Verbose] > │     let v0 : (unit -> UH0) = closure114()                                    │

00:02:48 #17305 [Verbose] > │     UH0_0(11.664236870395731, v0)                                            │

00:02:48 #17306 [Verbose] > │ and closure112 () () : UH0 =                                                 │

00:02:48 #17307 [Verbose] > │     let v0 : (unit -> UH0) = closure113()                                    │

00:02:48 #17308 [Verbose] > │     UH0_0(11.664236870395616, v0)                                            │

00:02:48 #17309 [Verbose] > │ and closure111 () () : UH0 =                                                 │

00:02:48 #17310 [Verbose] > │     let v0 : (unit -> UH0) = closure112()                                    │

00:02:48 #17311 [Verbose] > │     UH0_0(11.664236870395463, v0)                                            │

00:02:48 #17312 [Verbose] > │ and closure110 () () : UH0 =                                                 │

00:02:48 #17313 [Verbose] > │     let v0 : (unit -> UH0) = closure111()                                    │

00:02:48 #17314 [Verbose] > │     UH0_0(11.66423687039526, v0)                                             │

00:02:48 #17315 [Verbose] > │ and closure109 () () : UH0 =                                                 │

00:02:48 #17316 [Verbose] > │     let v0 : (unit -> UH0) = closure110()                                    │

00:02:48 #17317 [Verbose] > │     UH0_0(11.664236870394992, v0)                                            │

00:02:48 #17318 [Verbose] > │ and closure108 () () : UH0 =                                                 │

00:02:48 #17319 [Verbose] > │     let v0 : (unit -> UH0) = closure109()                                    │

00:02:48 #17320 [Verbose] > │     UH0_0(11.664236870394637, v0)                                            │

00:02:48 #17321 [Verbose] > │ and closure107 () () : UH0 =                                                 │

00:02:48 #17322 [Verbose] > │     let v0 : (unit -> UH0) = closure108()                                    │

00:02:48 #17323 [Verbose] > │     UH0_0(11.664236870394168, v0)                                            │

00:02:48 #17324 [Verbose] > │ and closure106 () () : UH0 =                                                 │

00:02:48 #17325 [Verbose] > │     let v0 : (unit -> UH0) = closure107()                                    │

00:02:48 #17326 [Verbose] > │     UH0_0(11.664236870393546, v0)                                            │

00:02:48 #17327 [Verbose] > │ and closure105 () () : UH0 =                                                 │

00:02:48 #17328 [Verbose] > │     let v0 : (unit -> UH0) = closure106()                                    │

00:02:48 #17329 [Verbose] > │     UH0_0(11.664236870392722, v0)                                            │

00:02:48 #17330 [Verbose] > │ and closure104 () () : UH0 =                                                 │

00:02:48 #17331 [Verbose] > │     let v0 : (unit -> UH0) = closure105()                                    │

00:02:48 #17332 [Verbose] > │     UH0_0(11.664236870391631, v0)                                            │

00:02:48 #17333 [Verbose] > │ and closure103 () () : UH0 =                                                 │

00:02:48 #17334 [Verbose] > │     let v0 : (unit -> UH0) = closure104()                                    │

00:02:48 #17335 [Verbose] > │     UH0_0(11.664236870390187, v0)                                            │

00:02:48 #17336 [Verbose] > │ and closure102 () () : UH0 =                                                 │

00:02:48 #17337 [Verbose] > │     let v0 : (unit -> UH0) = closure103()                                    │

00:02:48 #17338 [Verbose] > │     UH0_0(11.664236870388274, v0)                                            │

00:02:48 #17339 [Verbose] > │ and closure101 () () : UH0 =                                                 │

00:02:48 #17340 [Verbose] > │     let v0 : (unit -> UH0) = closure102()                                    │

00:02:48 #17341 [Verbose] > │     UH0_0(11.66423687038574, v0)                                             │

00:02:48 #17342 [Verbose] > │ and closure100 () () : UH0 =                                                 │

00:02:48 #17343 [Verbose] > │     let v0 : (unit -> UH0) = closure101()                                    │

00:02:48 #17344 [Verbose] > │     UH0_0(11.664236870382384, v0)                                            │

00:02:48 #17345 [Verbose] > │ and closure99 () () : UH0 =                                                  │

00:02:48 #17346 [Verbose] > │     let v0 : (unit -> UH0) = closure100()                                    │

00:02:48 #17347 [Verbose] > │     UH0_0(11.664236870377938, v0)                                            │

00:02:48 #17348 [Verbose] > │ and closure98 () () : UH0 =                                                  │

00:02:48 #17349 [Verbose] > │     let v0 : (unit -> UH0) = closure99()                                     │

00:02:48 #17350 [Verbose] > │     UH0_0(11.66423687037205, v0)                                             │

00:02:48 #17351 [Verbose] > │ and closure97 () () : UH0 =                                                  │

00:02:48 #17352 [Verbose] > │     let v0 : (unit -> UH0) = closure98()                                     │

00:02:48 #17353 [Verbose] > │     UH0_0(11.664236870364254, v0)                                            │

00:02:48 #17354 [Verbose] > │ and closure96 () () : UH0 =                                                  │

00:02:48 #17355 [Verbose] > │     let v0 : (unit -> UH0) = closure97()                                     │

00:02:48 #17356 [Verbose] > │     UH0_0(11.664236870353927, v0)                                            │

00:02:48 #17357 [Verbose] > │ and closure95 () () : UH0 =                                                  │

00:02:48 #17358 [Verbose] > │     let v0 : (unit -> UH0) = closure96()                                     │

00:02:48 #17359 [Verbose] > │     UH0_0(11.664236870340249, v0)                                            │

00:02:48 #17360 [Verbose] > │ and closure94 () () : UH0 =                                                  │

00:02:48 #17361 [Verbose] > │     let v0 : (unit -> UH0) = closure95()                                     │

00:02:48 #17362 [Verbose] > │     UH0_0(11.664236870322135, v0)                                            │

00:02:48 #17363 [Verbose] > │ and closure93 () () : UH0 =                                                  │

00:02:48 #17364 [Verbose] > │     let v0 : (unit -> UH0) = closure94()                                     │

00:02:48 #17365 [Verbose] > │     UH0_0(11.664236870298145, v0)                                            │

00:02:48 #17366 [Verbose] > │ and closure92 () () : UH0 =                                                  │

00:02:48 #17367 [Verbose] > │     let v0 : (unit -> UH0) = closure93()                                     │

00:02:48 #17368 [Verbose] > │     UH0_0(11.664236870266372, v0)                                            │

00:02:48 #17369 [Verbose] > │ and closure91 () () : UH0 =                                                  │

00:02:48 #17370 [Verbose] > │     let v0 : (unit -> UH0) = closure92()                                     │

00:02:48 #17371 [Verbose] > │     UH0_0(11.664236870224292, v0)                                            │

00:02:48 #17372 [Verbose] > │ and closure90 () () : UH0 =                                                  │

00:02:48 #17373 [Verbose] > │     let v0 : (unit -> UH0) = closure91()                                     │

00:02:48 #17374 [Verbose] > │     UH0_0(11.66423687016856, v0)                                             │

00:02:48 #17375 [Verbose] > │ and closure89 () () : UH0 =                                                  │

00:02:48 #17376 [Verbose] > │     let v0 : (unit -> UH0) = closure90()                                     │

00:02:48 #17377 [Verbose] > │     UH0_0(11.664236870094747, v0)                                            │

00:02:48 #17378 [Verbose] > │ and closure88 () () : UH0 =                                                  │

00:02:48 #17379 [Verbose] > │     let v0 : (unit -> UH0) = closure89()                                     │

00:02:48 #17380 [Verbose] > │     UH0_0(11.664236869996989, v0)                                            │

00:02:48 #17381 [Verbose] > │ and closure87 () () : UH0 =                                                  │

00:02:48 #17382 [Verbose] > │     let v0 : (unit -> UH0) = closure88()                                     │

00:02:48 #17383 [Verbose] > │     UH0_0(11.664236869867516, v0)                                            │

00:02:48 #17384 [Verbose] > │ and closure86 () () : UH0 =                                                  │

00:02:48 #17385 [Verbose] > │     let v0 : (unit -> UH0) = closure87()                                     │

00:02:48 #17386 [Verbose] > │     UH0_0(11.66423686969604, v0)                                             │

00:02:48 #17387 [Verbose] > │ and closure85 () () : UH0 =                                                  │

00:02:48 #17388 [Verbose] > │     let v0 : (unit -> UH0) = closure86()                                     │

00:02:48 #17389 [Verbose] > │     UH0_0(11.664236869468937, v0)                                            │

00:02:48 #17390 [Verbose] > │ and closure84 () () : UH0 =                                                  │

00:02:48 #17391 [Verbose] > │     let v0 : (unit -> UH0) = closure85()                                     │

00:02:48 #17392 [Verbose] > │     UH0_0(11.664236869168157, v0)                                            │

00:02:48 #17393 [Verbose] > │ and closure83 () () : UH0 =                                                  │

00:02:48 #17394 [Verbose] > │     let v0 : (unit -> UH0) = closure84()                                     │

00:02:48 #17395 [Verbose] > │     UH0_0(11.6642368687698, v0)                                              │

00:02:48 #17396 [Verbose] > │ and closure82 () () : UH0 =                                                  │

00:02:48 #17397 [Verbose] > │     let v0 : (unit -> UH0) = closure83()                                     │

00:02:48 #17398 [Verbose] > │     UH0_0(11.664236868242211, v0)                                            │

00:02:48 #17399 [Verbose] > │ and closure81 () () : UH0 =                                                  │

00:02:48 #17400 [Verbose] > │     let v0 : (unit -> UH0) = closure82()                                     │

00:02:48 #17401 [Verbose] > │     UH0_0(11.664236867543465, v0)                                            │

00:02:48 #17402 [Verbose] > │ and closure80 () () : UH0 =                                                  │

00:02:48 #17403 [Verbose] > │     let v0 : (unit -> UH0) = closure81()                                     │

00:02:48 #17404 [Verbose] > │     UH0_0(11.664236866618037, v0)                                            │

00:02:48 #17405 [Verbose] > │ and closure79 () () : UH0 =                                                  │

00:02:48 #17406 [Verbose] > │     let v0 : (unit -> UH0) = closure80()                                     │

00:02:48 #17407 [Verbose] > │     UH0_0(11.664236865392386, v0)                                            │

00:02:48 #17408 [Verbose] > │ and closure78 () () : UH0 =                                                  │

00:02:48 #17409 [Verbose] > │     let v0 : (unit -> UH0) = closure79()                                     │

00:02:48 #17410 [Verbose] > │     UH0_0(11.664236863769117, v0)                                            │

00:02:48 #17411 [Verbose] > │ and closure77 () () : UH0 =                                                  │

00:02:48 #17412 [Verbose] > │     let v0 : (unit -> UH0) = closure78()                                     │

00:02:48 #17413 [Verbose] > │     UH0_0(11.664236861619237, v0)                                            │

00:02:48 #17414 [Verbose] > │ and closure76 () () : UH0 =                                                  │

00:02:48 #17415 [Verbose] > │     let v0 : (unit -> UH0) = closure77()                                     │

00:02:48 #17416 [Verbose] > │     UH0_0(11.664236858771906, v0)                                            │

00:02:48 #17417 [Verbose] > │ and closure75 () () : UH0 =                                                  │

00:02:48 #17418 [Verbose] > │     let v0 : (unit -> UH0) = closure76()                                     │

00:02:48 #17419 [Verbose] > │     UH0_0(11.66423685500086, v0)                                             │

00:02:48 #17420 [Verbose] > │ and closure74 () () : UH0 =                                                  │

00:02:48 #17421 [Verbose] > │     let v0 : (unit -> UH0) = closure75()                                     │

00:02:48 #17422 [Verbose] > │     UH0_0(11.664236850006436, v0)                                            │

00:02:48 #17423 [Verbose] > │ and closure73 () () : UH0 =                                                  │

00:02:48 #17424 [Verbose] > │     let v0 : (unit -> UH0) = closure74()                                     │

00:02:48 #17425 [Verbose] > │     UH0_0(11.664236843391752, v0)                                            │

00:02:48 #17426 [Verbose] > │ and closure72 () () : UH0 =                                                  │

00:02:48 #17427 [Verbose] > │     let v0 : (unit -> UH0) = closure73()                                     │

00:02:48 #17428 [Verbose] > │     UH0_0(11.664236834631172, v0)                                            │

00:02:48 #17429 [Verbose] > │ and closure71 () () : UH0 =                                                  │

00:02:48 #17430 [Verbose] > │     let v0 : (unit -> UH0) = closure72()                                     │

00:02:48 #17431 [Verbose] > │     UH0_0(11.66423682302854, v0)                                             │

00:02:48 #17432 [Verbose] > │ and closure70 () () : UH0 =                                                  │

00:02:48 #17433 [Verbose] > │     let v0 : (unit -> UH0) = closure71()                                     │

00:02:48 #17434 [Verbose] > │     UH0_0(11.664236807661855, v0)                                            │

00:02:48 #17435 [Verbose] > │ and closure69 () () : UH0 =                                                  │

00:02:48 #17436 [Verbose] > │     let v0 : (unit -> UH0) = closure70()                                     │

00:02:48 #17437 [Verbose] > │     UH0_0(11.664236787310005, v0)                                            │

00:02:48 #17438 [Verbose] > │ and closure68 () () : UH0 =                                                  │

00:02:48 #17439 [Verbose] > │     let v0 : (unit -> UH0) = closure69()                                     │

00:02:48 #17440 [Verbose] > │     UH0_0(11.664236760355733, v0)                                            │

00:02:48 #17441 [Verbose] > │ and closure67 () () : UH0 =                                                  │

00:02:48 #17442 [Verbose] > │     let v0 : (unit -> UH0) = closure68()                                     │

00:02:48 #17443 [Verbose] > │     UH0_0(11.664236724657123, v0)                                            │

00:02:48 #17444 [Verbose] > │ and closure66 () () : UH0 =                                                  │

00:02:48 #17445 [Verbose] > │     let v0 : (unit -> UH0) = closure67()                                     │

00:02:48 #17446 [Verbose] > │     UH0_0(11.66423667737739, v0)                                             │

00:02:48 #17447 [Verbose] > │ and closure65 () () : UH0 =                                                  │

00:02:48 #17448 [Verbose] > │     let v0 : (unit -> UH0) = closure66()                                     │

00:02:48 #17449 [Verbose] > │     UH0_0(11.664236614759462, v0)                                            │

00:02:48 #17450 [Verbose] > │ and closure64 () () : UH0 =                                                  │

00:02:48 #17451 [Verbose] > │     let v0 : (unit -> UH0) = closure65()                                     │

00:02:48 #17452 [Verbose] > │     UH0_0(11.664236531827415, v0)                                            │

00:02:48 #17453 [Verbose] > │ and closure63 () () : UH0 =                                                  │

00:02:48 #17454 [Verbose] > │     let v0 : (unit -> UH0) = closure64()                                     │

00:02:48 #17455 [Verbose] > │     UH0_0(11.664236421991067, v0)                                            │

00:02:48 #17456 [Verbose] > │ and closure62 () () : UH0 =                                                  │

00:02:48 #17457 [Verbose] > │     let v0 : (unit -> UH0) = closure63()                                     │

00:02:48 #17458 [Verbose] > │     UH0_0(11.664236276522294, v0)                                            │

00:02:48 #17459 [Verbose] > │ and closure61 () () : UH0 =                                                  │

00:02:48 #17460 [Verbose] > │     let v0 : (unit -> UH0) = closure62()                                     │

00:02:48 #17461 [Verbose] > │     UH0_0(11.664236083861448, v0)                                            │

00:02:48 #17462 [Verbose] > │ and closure60 () () : UH0 =                                                  │

00:02:48 #17463 [Verbose] > │     let v0 : (unit -> UH0) = closure61()                                     │

00:02:48 #17464 [Verbose] > │     UH0_0(11.664235828698772, v0)                                            │

00:02:48 #17465 [Verbose] > │ and closure59 () () : UH0 =                                                  │

00:02:48 #17466 [Verbose] > │     let v0 : (unit -> UH0) = closure60()                                     │

00:02:48 #17467 [Verbose] > │     UH0_0(11.664235490757811, v0)                                            │

00:02:48 #17468 [Verbose] > │ and closure58 () () : UH0 =                                                  │

00:02:48 #17469 [Verbose] > │     let v0 : (unit -> UH0) = closure59()                                     │

00:02:48 #17470 [Verbose] > │     UH0_0(11.664235043184158, v0)                                            │

00:02:48 #17471 [Verbose] > │ and closure57 () () : UH0 =                                                  │

00:02:48 #17472 [Verbose] > │     let v0 : (unit -> UH0) = closure58()                                     │

00:02:48 #17473 [Verbose] > │     UH0_0(11.66423445041147, v0)                                             │

00:02:48 #17474 [Verbose] > │ and closure56 () () : UH0 =                                                  │

00:02:48 #17475 [Verbose] > │     let v0 : (unit -> UH0) = closure57()                                     │

00:02:48 #17476 [Verbose] > │     UH0_0(11.664233665335203, v0)                                            │

00:02:48 #17477 [Verbose] > │ and closure55 () () : UH0 =                                                  │

00:02:48 #17478 [Verbose] > │     let v0 : (unit -> UH0) = closure56()                                     │

00:02:48 #17479 [Verbose] > │     UH0_0(11.664232625569467, v0)                                            │

00:02:48 #17480 [Verbose] > │ and closure54 () () : UH0 =                                                  │

00:02:48 #17481 [Verbose] > │     let v0 : (unit -> UH0) = closure55()                                     │

00:02:48 #17482 [Verbose] > │     UH0_0(11.664231248489562, v0)                                            │

00:02:48 #17483 [Verbose] > │ and closure53 () () : UH0 =                                                  │

00:02:48 #17484 [Verbose] > │     let v0 : (unit -> UH0) = closure54()                                     │

00:02:48 #17485 [Verbose] > │     UH0_0(11.664229424666262, v0)                                            │

00:02:48 #17486 [Verbose] > │ and closure52 () () : UH0 =                                                  │

00:02:48 #17487 [Verbose] > │     let v0 : (unit -> UH0) = closure53()                                     │

00:02:48 #17488 [Verbose] > │     UH0_0(11.66422700917009, v0)                                             │

00:02:48 #17489 [Verbose] > │ and closure51 () () : UH0 =                                                  │

00:02:48 #17490 [Verbose] > │     let v0 : (unit -> UH0) = closure52()                                     │

00:02:48 #17491 [Verbose] > │     UH0_0(11.664223810054642, v0)                                            │

00:02:48 #17492 [Verbose] > │ and closure50 () () : UH0 =                                                  │

00:02:48 #17493 [Verbose] > │     let v0 : (unit -> UH0) = closure51()                                     │

00:02:48 #17494 [Verbose] > │     UH0_0(11.664219573103773, v0)                                            │

00:02:48 #17495 [Verbose] > │ and closure49 () () : UH0 =                                                  │

00:02:48 #17496 [Verbose] > │     let v0 : (unit -> UH0) = closure50()                                     │

00:02:48 #17497 [Verbose] > │     UH0_0(11.6642139616307, v0)                                              │

00:02:48 #17498 [Verbose] > │ and closure48 () () : UH0 =                                                  │

00:02:48 #17499 [Verbose] > │     let v0 : (unit -> UH0) = closure49()                                     │

00:02:48 #17500 [Verbose] > │     UH0_0(11.664206529723813, v0)                                            │

00:02:48 #17501 [Verbose] > │ and closure47 () () : UH0 =                                                  │

00:02:48 #17502 [Verbose] > │     let v0 : (unit -> UH0) = closure48()                                     │

00:02:48 #17503 [Verbose] > │     UH0_0(11.664196686813408, v0)                                            │

00:02:48 #17504 [Verbose] > │ and closure46 () () : UH0 =                                                  │

00:02:48 #17505 [Verbose] > │     let v0 : (unit -> UH0) = closure47()                                     │

00:02:48 #17506 [Verbose] > │     UH0_0(11.664183650743945, v0)                                            │

00:02:48 #17507 [Verbose] > │ and closure45 () () : UH0 =                                                  │

00:02:48 #17508 [Verbose] > │     let v0 : (unit -> UH0) = closure46()                                     │

00:02:48 #17509 [Verbose] > │     UH0_0(11.664166385623318, v0)                                            │

00:02:48 #17510 [Verbose] > │ and closure44 () () : UH0 =                                                  │

00:02:48 #17511 [Verbose] > │     let v0 : (unit -> UH0) = closure45()                                     │

00:02:48 #17512 [Verbose] > │     UH0_0(11.664143519511356, v0)                                            │

00:02:48 #17513 [Verbose] > │ and closure43 () () : UH0 =                                                  │

00:02:48 #17514 [Verbose] > │     let v0 : (unit -> UH0) = closure44()                                     │

00:02:48 #17515 [Verbose] > │     UH0_0(11.664113235408447, v0)                                            │

00:02:48 #17516 [Verbose] > │ and closure42 () () : UH0 =                                                  │

00:02:48 #17517 [Verbose] > │     let v0 : (unit -> UH0) = closure43()                                     │

00:02:48 #17518 [Verbose] > │     UH0_0(11.66407312688485, v0)                                             │

00:02:48 #17519 [Verbose] > │ and closure41 () () : UH0 =                                                  │

00:02:48 #17520 [Verbose] > │     let v0 : (unit -> UH0) = closure42()                                     │

00:02:48 #17521 [Verbose] > │     UH0_0(11.664020006883758, v0)                                            │

00:02:48 #17522 [Verbose] > │ and closure40 () () : UH0 =                                                  │

00:02:48 #17523 [Verbose] > │     let v0 : (unit -> UH0) = closure41()                                     │

00:02:48 #17524 [Verbose] > │     UH0_0(11.663949654514292, v0)                                            │

00:02:48 #17525 [Verbose] > │ and closure39 () () : UH0 =                                                  │

00:02:48 #17526 [Verbose] > │     let v0 : (unit -> UH0) = closure40()                                     │

00:02:48 #17527 [Verbose] > │     UH0_0(11.663856479730171, v0)                                            │

00:02:48 #17528 [Verbose] > │ and closure38 () () : UH0 =                                                  │

00:02:48 #17529 [Verbose] > │     let v0 : (unit -> UH0) = closure39()                                     │

00:02:48 #17530 [Verbose] > │     UH0_0(11.663733079277343, v0)                                            │

00:02:48 #17531 [Verbose] > │ and closure37 () () : UH0 =                                                  │

00:02:48 #17532 [Verbose] > │     let v0 : (unit -> UH0) = closure38()                                     │

00:02:48 #17533 [Verbose] > │     UH0_0(11.663569648675777, v0)                                            │

00:02:48 #17534 [Verbose] > │ and closure36 () () : UH0 =                                                  │

00:02:48 #17535 [Verbose] > │     let v0 : (unit -> UH0) = closure37()                                     │

00:02:48 #17536 [Verbose] > │     UH0_0(11.663353203599439, v0)                                            │

00:02:48 #17537 [Verbose] > │ and closure35 () () : UH0 =                                                  │

00:02:48 #17538 [Verbose] > │     let v0 : (unit -> UH0) = closure36()                                     │

00:02:48 #17539 [Verbose] > │     UH0_0(11.663066548940721, v0)                                            │

00:02:48 #17540 [Verbose] > │ and closure34 () () : UH0 =                                                  │

00:02:48 #17541 [Verbose] > │     let v0 : (unit -> UH0) = closure35()                                     │

00:02:48 #17542 [Verbose] > │     UH0_0(11.662686913915445, v0)                                            │

00:02:48 #17543 [Verbose] > │ and closure33 () () : UH0 =                                                  │

00:02:48 #17544 [Verbose] > │     let v0 : (unit -> UH0) = closure34()                                     │

00:02:48 #17545 [Verbose] > │     UH0_0(11.662184145236864, v0)                                            │

00:02:48 #17546 [Verbose] > │ and closure32 () () : UH0 =                                                  │

00:02:48 #17547 [Verbose] > │     let v0 : (unit -> UH0) = closure33()                                     │

00:02:48 #17548 [Verbose] > │     UH0_0(11.661518315638029, v0)                                            │

00:02:48 #17549 [Verbose] > │ and closure31 () () : UH0 =                                                  │

00:02:48 #17550 [Verbose] > │     let v0 : (unit -> UH0) = closure32()                                     │

00:02:48 #17551 [Verbose] > │     UH0_0(11.66063655920926, v0)                                             │

00:02:48 #17552 [Verbose] > │ and closure30 () () : UH0 =                                                  │

00:02:48 #17553 [Verbose] > │     let v0 : (unit -> UH0) = closure31()                                     │

00:02:48 #17554 [Verbose] > │     UH0_0(11.659468884709733, v0)                                            │

00:02:48 #17555 [Verbose] > │ and closure29 () () : UH0 =                                                  │

00:02:48 #17556 [Verbose] > │     let v0 : (unit -> UH0) = closure30()                                     │

00:02:48 #17557 [Verbose] > │     UH0_0(11.657922638782631, v0)                                            │

00:02:48 #17558 [Verbose] > │ and closure28 () () : UH0 =                                                  │

00:02:48 #17559 [Verbose] > │     let v0 : (unit -> UH0) = closure29()                                     │

00:02:48 #17560 [Verbose] > │     UH0_0(11.655875187195818, v0)                                            │

00:02:48 #17561 [Verbose] > │ and closure27 () () : UH0 =                                                  │

00:02:48 #17562 [Verbose] > │     let v0 : (unit -> UH0) = closure28()                                     │

00:02:48 #17563 [Verbose] > │     UH0_0(11.653164246713697, v0)                                            │

00:02:48 #17564 [Verbose] > │ and closure26 () () : UH0 =                                                  │

00:02:48 #17565 [Verbose] > │     let v0 : (unit -> UH0) = closure27()                                     │

00:02:48 #17566 [Verbose] > │     UH0_0(11.64957512416459, v0)                                             │

00:02:48 #17567 [Verbose] > │ and closure25 () () : UH0 =                                                  │

00:02:48 #17568 [Verbose] > │     let v0 : (unit -> UH0) = closure26()                                     │

00:02:48 #17569 [Verbose] > │     UH0_0(11.644823892116417, v0)                                            │

00:02:48 #17570 [Verbose] > │ and closure24 () () : UH0 =                                                  │

00:02:48 #17571 [Verbose] > │     let v0 : (unit -> UH0) = closure25()                                     │

00:02:48 #17572 [Verbose] > │     UH0_0(11.63853524018339, v0)                                             │

00:02:48 #17573 [Verbose] > │ and closure23 () () : UH0 =                                                  │

00:02:48 #17574 [Verbose] > │     let v0 : (unit -> UH0) = closure24()                                     │

00:02:48 #17575 [Verbose] > │     UH0_0(11.630213374558416, v0)                                            │

00:02:48 #17576 [Verbose] > │ and closure22 () () : UH0 =                                                  │

00:02:48 #17577 [Verbose] > │     let v0 : (unit -> UH0) = closure23()                                     │

00:02:48 #17578 [Verbose] > │     UH0_0(11.619203884549703, v0)                                            │

00:02:48 #17579 [Verbose] > │ and closure21 () () : UH0 =                                                  │

00:02:48 #17580 [Verbose] > │     let v0 : (unit -> UH0) = closure22()                                     │

00:02:48 #17581 [Verbose] > │     UH0_0(11.604643948207235, v0)                                            │

00:02:48 #17582 [Verbose] > │ and closure20 () () : UH0 =                                                  │

00:02:48 #17583 [Verbose] > │     let v0 : (unit -> UH0) = closure21()                                     │

00:02:48 #17584 [Verbose] > │     UH0_0(11.585397618384544, v0)                                            │

00:02:48 #17585 [Verbose] > │ and closure19 () () : UH0 =                                                  │

00:02:48 #17586 [Verbose] > │     let v0 : (unit -> UH0) = closure20()                                     │

00:02:48 #17587 [Verbose] > │     UH0_0(11.559972254267073, v0)                                            │

00:02:48 #17588 [Verbose] > │ and closure18 () () : UH0 =                                                  │

00:02:48 #17589 [Verbose] > │     let v0 : (unit -> UH0) = closure19()                                     │

00:02:48 #17590 [Verbose] > │     UH0_0(11.526411536153837, v0)                                            │

00:02:48 #17591 [Verbose] > │ and closure17 () () : UH0 =                                                  │

00:02:48 #17592 [Verbose] > │     let v0 : (unit -> UH0) = closure18()                                     │

00:02:48 #17593 [Verbose] > │     UH0_0(11.48216011776808, v0)                                             │

00:02:48 #17594 [Verbose] > │ and closure16 () () : UH0 =                                                  │

00:02:48 #17595 [Verbose] > │     let v0 : (unit -> UH0) = closure17()                                     │

00:02:48 #17596 [Verbose] > │     UH0_0(11.42389519391233, v0)                                             │

00:02:48 #17597 [Verbose] > │ and closure15 () () : UH0 =                                                  │

00:02:48 #17598 [Verbose] > │     let v0 : (unit -> UH0) = closure16()                                     │

00:02:48 #17599 [Verbose] > │     UH0_0(11.347321723441393, v0)                                            │

00:02:48 #17600 [Verbose] > │ and closure14 () () : UH0 =                                                  │

00:02:48 #17601 [Verbose] > │     let v0 : (unit -> UH0) = closure15()                                     │

00:02:48 #17602 [Verbose] > │     UH0_0(11.246931775734161, v0)                                            │

00:02:48 #17603 [Verbose] > │ and closure13 () () : UH0 =                                                  │

00:02:48 #17604 [Verbose] > │     let v0 : (unit -> UH0) = closure14()                                     │

00:02:48 #17605 [Verbose] > │     UH0_0(11.115736011467376, v0)                                            │

00:02:48 #17606 [Verbose] > │ and closure12 () () : UH0 =                                                  │

00:02:48 #17607 [Verbose] > │     let v0 : (unit -> UH0) = closure13()                                     │

00:02:48 #17608 [Verbose] > │     UH0_0(10.94498876251829, v0)                                             │

00:02:48 #17609 [Verbose] > │ and closure11 () () : UH0 =                                                  │

00:02:48 #17610 [Verbose] > │     let v0 : (unit -> UH0) = closure12()                                     │

00:02:48 #17611 [Verbose] > │     UH0_0(10.72394989903564, v0)                                             │

00:02:48 #17612 [Verbose] > │ and closure10 () () : UH0 =                                                  │

00:02:48 #17613 [Verbose] > │     let v0 : (unit -> UH0) = closure11()                                     │

00:02:48 #17614 [Verbose] > │     UH0_0(10.439758275369812, v0)                                            │

00:02:48 #17615 [Verbose] > │ and closure9 () () : UH0 =                                                   │

00:02:48 #17616 [Verbose] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:02:48 #17617 [Verbose] > │     UH0_0(10.077531599826058, v0)                                            │

00:02:48 #17618 [Verbose] > │ and closure8 () () : UH0 =                                                   │

00:02:48 #17619 [Verbose] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:02:48 #17620 [Verbose] > │     UH0_0(9.62084761372258, v0)                                              │

00:02:48 #17621 [Verbose] > │ and closure7 () () : UH0 =                                                   │

00:02:48 #17622 [Verbose] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:02:48 #17623 [Verbose] > │     UH0_0(9.052781056066443, v0)                                             │

00:02:48 #17624 [Verbose] > │ and closure6 () () : UH0 =                                                   │

00:02:48 #17625 [Verbose] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:02:48 #17626 [Verbose] > │     UH0_0(8.357635347880503, v0)                                             │

00:02:48 #17627 [Verbose] > │ and closure5 () () : UH0 =                                                   │

00:02:48 #17628 [Verbose] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:02:48 #17629 [Verbose] > │     UH0_0(7.523376447621674, v0)                                             │

00:02:48 #17630 [Verbose] > │ and closure4 () () : UH0 =                                                   │

00:02:48 #17631 [Verbose] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:02:48 #17632 [Verbose] > │     UH0_0(6.544529054818572, v0)                                             │

00:02:48 #17633 [Verbose] > │ and closure3 () () : UH0 =                                                   │

00:02:48 #17634 [Verbose] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:02:48 #17635 [Verbose] > │     UH0_0(5.424976512996006, v0)                                             │

00:02:48 #17636 [Verbose] > │ and closure2 () () : UH0 =                                                   │

00:02:48 #17637 [Verbose] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:02:48 #17638 [Verbose] > │     UH0_0(4.179852321428571, v0)                                             │

00:02:48 #17639 [Verbose] > │ and closure1 () () : UH0 =                                                   │

00:02:48 #17640 [Verbose] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:02:48 #17641 [Verbose] > │     UH0_0(2.835714285714286, v0)                                             │

00:02:48 #17642 [Verbose] > │ and closure0 () () : UH0 =                                                   │

00:02:48 #17643 [Verbose] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:02:48 #17644 [Verbose] > │     UH0_0(1.4285714285714286, v0)                                            │

00:02:48 #17645 [Verbose] > │ and method3 (v0 : float, v1 : UH0) : US0 =                                   │

00:02:48 #17646 [Verbose] > │     match v1 with                                                            │

00:02:48 #17647 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:02:48 #17648 [Verbose] > │         let v4 : bool = v0 <= 0.0                                            │

00:02:48 #17649 [Verbose] > │         if v4 then                                                           │

00:02:48 #17650 [Verbose] > │             US0_1(v2)                                                        │

00:02:48 #17651 [Verbose] > │         else                                                                 │

00:02:48 #17652 [Verbose] > │             let v6 : float = v0 - 1.0                                        │

00:02:48 #17653 [Verbose] > │             let v7 : UH0 = v3 ()                                             │

00:02:48 #17654 [Verbose] > │             method3(v6, v7)                                                  │

00:02:48 #17655 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:02:48 #17656 [Verbose] > │         US0_0                                                                │

00:02:48 #17657 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:48 #17658 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:48 #17659 [Verbose] > │     v0                                                                       │

00:02:48 #17660 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:48 #17661 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:48 #17662 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (121)                      │

00:02:48 #17663 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:48 #17664 [Verbose] > │     while method1(v1) do                                                     │

00:02:48 #17665 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:48 #17666 [Verbose] > │         let v4 : float = float v3                                            │

00:02:48 #17667 [Verbose] > │         let v5 : float = 0.5 * v4                                            │

00:02:48 #17668 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:48 #17669 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:48 #17670 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:48 #17671 [Verbose] > │         ()                                                                   │

00:02:48 #17672 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:02:48 #17673 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:02:48 #17674 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:48 #17675 [Verbose] > │     while method2(v7, v9) do                                                 │

00:02:48 #17676 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:02:48 #17677 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:02:48 #17678 [Verbose] > │         let v13 : float = round v12                                          │

00:02:48 #17679 [Verbose] > │         let v14 : float =  -v13                                              │

00:02:48 #17680 [Verbose] > │         let v15 : bool = v13 >= v14                                          │

00:02:48 #17681 [Verbose] > │         let v16 : float =                                                    │

00:02:48 #17682 [Verbose] > │             if v15 then                                                      │

00:02:48 #17683 [Verbose] > │                 v13                                                          │

00:02:48 #17684 [Verbose] > │             else                                                             │

00:02:48 #17685 [Verbose] > │                 v14                                                          │

00:02:48 #17686 [Verbose] > │         let v17 : float = 0.0                                                │

00:02:48 #17687 [Verbose] > │         let v18 : (unit -> UH0) = closure0()                                 │

00:02:48 #17688 [Verbose] > │         let v19 : UH0 = UH0_0(v17, v18)                                      │

00:02:48 #17689 [Verbose] > │         let v20 : US0 = method3(v16, v19)                                    │

00:02:48 #17690 [Verbose] > │         let v23 : float =                                                    │

00:02:48 #17691 [Verbose] > │             match v20 with                                                   │

00:02:48 #17692 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:48 #17693 [Verbose] > │                 0.0                                                          │

00:02:48 #17694 [Verbose] > │             | US0_1(v21) -> (* Some *)                                       │

00:02:48 #17695 [Verbose] > │                 v21                                                          │

00:02:48 #17696 [Verbose] > │         v8.[int v11] <- v23                                                  │

00:02:48 #17697 [Verbose] > │         let v24 : int32 = v11 + 1                                            │

00:02:48 #17698 [Verbose] > │         v9.l0 <- v24                                                         │

00:02:48 #17699 [Verbose] > │         ()                                                                   │

00:02:48 #17700 [Verbose] > │     let v25 : string = "velocity of bike (m/s)"                              │

00:02:48 #17701 [Verbose] > │     let v26 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:48 #17702 [Verbose] > │ (v25, v0, v8)|]                                                              │

00:02:48 #17703 [Verbose] > │     let v27 : (struct (string * (float []) * (float [])) []) = method4(v26)  │

00:02:48 #17704 [Verbose] > │     let v28 : string = "bike velocity"                                       │

00:02:48 #17705 [Verbose] > │     let v29 : string = "time (s)"                                            │

00:02:48 #17706 [Verbose] > │     let v30 : string = ""                                                    │

00:02:48 #17707 [Verbose] > │     struct (v28, v29, v30, v27)                                              │

00:02:48 #17708 [Verbose] > │ method0()                                                                    │

00:02:48 #17709 [Verbose] > │                                                                              │

00:02:48 #17710 [Verbose] > │                                                                              │

00:02:48 #17711 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:48 #17712 [Verbose] >

00:02:48 #17713 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:48 #17714 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:48 #17715 [Verbose] > │ ## velocity_ftv                                                              │

00:02:48 #17716 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:48 #17717 [Verbose] >

00:02:48 #17718 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:48 #17719 [Verbose] > inl newton_second_tv m fs (t, v0) =

00:02:48 #17720 [Verbose] >     inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum

00:02:48 #17721 [Verbose] >     inl acc = f_net / m

00:02:48 #17722 [Verbose] >     1, acc

00:02:48 #17723 [Verbose] >

00:02:48 #17724 [Verbose] > inl update_tv dt m fs (t, v0) =

00:02:48 #17725 [Verbose] >     inl dtdt, dvdt = newton_second_tv m fs (t, v0)

00:02:48 #17726 [Verbose] >     t + dtdt * dt, v0 + dvdt * dt

00:02:48 #17727 [Verbose] >

00:02:48 #17728 [Verbose] > inl velocity_ftv dt m tv0 fs t =

00:02:48 #17729 [Verbose] >     stream.iterate (join update_tv dt m fs) tv0

00:02:48 #17730 [Verbose] >     |> stream.try_item (t / dt |> math.round |> abs)

00:02:48 #17731 [Verbose] >     |> optionm.map snd

00:02:48 #17732 [Verbose] >     |> optionm'.default_value 0

00:02:48 #17733 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4438-3814-37f01f24516a\main.spi

00:02:48 #17734 [Verbose] >

00:02:48 #17735 [Verbose] > ╭─[ 198.00ms - stdout ]────────────────────────────────────────────────────────╮

00:02:48 #17736 [Verbose] > │ ()                                                                           │

00:02:48 #17737 [Verbose] > │                                                                              │

00:02:48 #17738 [Verbose] > │                                                                              │

00:02:48 #17739 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:48 #17740 [Verbose] >

00:02:48 #17741 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:48 #17742 [Verbose] > // // test

00:02:48 #17743 [Verbose] >

00:02:48 #17744 [Verbose] > inl x = am'.init_series 0 100 0.1

00:02:48 #17745 [Verbose] > inl y =

00:02:48 #17746 [Verbose] >     x

00:02:48 #17747 [Verbose] >     |> am.map (

00:02:48 #17748 [Verbose] >         velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,

00:02:48 #17749 [Verbose] > v) => f_air 2 1.225 0.5 v ]]

00:02:48 #17750 [Verbose] >     )

00:02:48 #17751 [Verbose] > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",

00:02:48 #17752 [Verbose] > x, y ]]

00:02:49 #17753 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4458-5811-5a70f683ee84\main.spi

00:02:49 #17754 [Verbose] >

00:02:49 #17755 [Verbose] > ╭─[ 459.44ms - return value ]──────────────────────────────────────────────────╮

00:02:49 #17756 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:49 #17757 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:49 #17758 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:49 #17759 [Verbose] > │ stroke="none"/>                                                              │

00:02:49 #17760 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:49 #17761 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:49 #17762 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:49 #17763 [Verbose] > │ pedaling and coasting with air                                               │

00:02:49 #17764 [Verbose] > │ </text>                                                                      │

00:02:49 #17765 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:02:49 #17766 [Verbose] > │ y2="75"/>                                                                    │

00:02:49 #17767 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:49 #17768 [Verbose] > │ y2="75"/>                                                                    │

00:02:49 #17769 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:02:49 #17770 [Verbose] > │ y2="75"/>                                                                    │

00:02:49 #17771 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:02:49 #17772 [Verbose] > │ y2="75"/>                                                                    │

00:02:49 #17773 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x...                     │

00:02:49 #17774 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:49 #17775 [Verbose] >

00:02:49 #17776 [Verbose] > ╭─[ 473.08ms - stdout ]────────────────────────────────────────────────────────╮

00:02:49 #17777 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:49 #17778 [Verbose] > │ and UH0 =                                                                    │

00:02:49 #17779 [Verbose] > │     | UH0_0 of float * float * (unit -> UH0)                                 │

00:02:49 #17780 [Verbose] > │     | UH0_1                                                                  │

00:02:49 #17781 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:49 #17782 [Verbose] > │     | US0_0                                                                  │

00:02:49 #17783 [Verbose] > │     | US0_1 of f1_0 : float * f1_1 : float                                   │

00:02:49 #17784 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:02:49 #17785 [Verbose] > │     | US1_0                                                                  │

00:02:49 #17786 [Verbose] > │     | US1_1 of f1_0 : float                                                  │

00:02:49 #17787 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:49 #17788 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:49 #17789 [Verbose] > │     let v2 : bool = v1 < 1001                                                │

00:02:49 #17790 [Verbose] > │     v2                                                                       │

00:02:49 #17791 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:49 #17792 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:49 #17793 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:49 #17794 [Verbose] > │     v3                                                                       │

00:02:49 #17795 [Verbose] > │ and closure0 () struct (v0 : float, v1 : float) : struct (float * float) =   │

00:02:49 #17796 [Verbose] > │     let v2 : float =  -v1                                                    │

00:02:49 #17797 [Verbose] > │     let v3 : bool = v1 >= v2                                                 │

00:02:49 #17798 [Verbose] > │     let v4 : float =                                                         │

00:02:49 #17799 [Verbose] > │         if v3 then                                                           │

00:02:49 #17800 [Verbose] > │             v1                                                               │

00:02:49 #17801 [Verbose] > │         else                                                                 │

00:02:49 #17802 [Verbose] > │             v2                                                               │

00:02:49 #17803 [Verbose] > │     let v5 : float = -1.225 * v4                                             │

00:02:49 #17804 [Verbose] > │     let v6 : float = v5 * v1                                                 │

00:02:49 #17805 [Verbose] > │     let v7 : float = v6 / 2.0                                                │

00:02:49 #17806 [Verbose] > │     let v8 : float = v0 / 20.0                                               │

00:02:49 #17807 [Verbose] > │     let v9 : int32 = int32 v8                                                │

00:02:49 #17808 [Verbose] > │     let v10 : float = float v9                                               │

00:02:49 #17809 [Verbose] > │     let v11 : float = v10 * 20.0                                             │

00:02:49 #17810 [Verbose] > │     let v12 : float = v0 - v11                                               │

00:02:49 #17811 [Verbose] > │     let v13 : bool = v12 > 0.0                                               │

00:02:49 #17812 [Verbose] > │     let v15 : bool =                                                         │

00:02:49 #17813 [Verbose] > │         if v13 then                                                          │

00:02:49 #17814 [Verbose] > │             let v14 : bool = v12 < 10.0                                      │

00:02:49 #17815 [Verbose] > │             v14                                                              │

00:02:49 #17816 [Verbose] > │         else                                                                 │

00:02:49 #17817 [Verbose] > │             false                                                            │

00:02:49 #17818 [Verbose] > │     let v16 : float =                                                        │

00:02:49 #17819 [Verbose] > │         if v15 then                                                          │

00:02:49 #17820 [Verbose] > │             10.0                                                             │

00:02:49 #17821 [Verbose] > │         else                                                                 │

00:02:49 #17822 [Verbose] > │             0.0                                                              │

00:02:49 #17823 [Verbose] > │     let v17 : float = v16 + v7                                               │

00:02:49 #17824 [Verbose] > │     let v18 : float = v17 / 20.0                                             │

00:02:49 #17825 [Verbose] > │     let v19 : float = v0 + 0.1                                               │

00:02:49 #17826 [Verbose] > │     let v20 : float = v18 * 0.1                                              │

00:02:49 #17827 [Verbose] > │     let v21 : float = v1 + v20                                               │

00:02:49 #17828 [Verbose] > │     struct (v19, v21)                                                        │

00:02:49 #17829 [Verbose] > │ and method3 () : (struct (float * float) -> struct (float * float)) =        │

00:02:49 #17830 [Verbose] > │     closure0()                                                               │

00:02:49 #17831 [Verbose] > │ and closure1 (v0 : (struct (float * float) -> struct (float * float)), v1 :  │

00:02:49 #17832 [Verbose] > │ float, v2 : float, v3 : float, v4 : float) () : UH0 =                        │

00:02:49 #17833 [Verbose] > │     let struct (v5 : float, v6 : float) = v0 struct (v3, v4)                 │

00:02:49 #17834 [Verbose] > │     let v7 : (unit -> UH0) = closure1(v0, v1, v2, v5, v6)                    │

00:02:49 #17835 [Verbose] > │     UH0_0(v3, v4, v7)                                                        │

00:02:49 #17836 [Verbose] > │ and method4 (v0 : float, v1 : UH0) : US0 =                                   │

00:02:49 #17837 [Verbose] > │     match v1 with                                                            │

00:02:49 #17838 [Verbose] > │     | UH0_0(v2, v3, v4) -> (* StreamCons *)                                  │

00:02:49 #17839 [Verbose] > │         let v5 : bool = v0 <= 0.0                                            │

00:02:49 #17840 [Verbose] > │         if v5 then                                                           │

00:02:49 #17841 [Verbose] > │             US0_1(v2, v3)                                                    │

00:02:49 #17842 [Verbose] > │         else                                                                 │

00:02:49 #17843 [Verbose] > │             let v7 : float = v0 - 1.0                                        │

00:02:49 #17844 [Verbose] > │             let v8 : UH0 = v4 ()                                             │

00:02:49 #17845 [Verbose] > │             method4(v7, v8)                                                  │

00:02:49 #17846 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:02:49 #17847 [Verbose] > │         US0_0                                                                │

00:02:49 #17848 [Verbose] > │ and method5 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:49 #17849 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:49 #17850 [Verbose] > │     v0                                                                       │

00:02:49 #17851 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:49 #17852 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:49 #17853 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (1001)                     │

00:02:49 #17854 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:49 #17855 [Verbose] > │     while method1(v1) do                                                     │

00:02:49 #17856 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:49 #17857 [Verbose] > │         let v4 : float = float v3                                            │

00:02:49 #17858 [Verbose] > │         let v5 : float = 0.1 * v4                                            │

00:02:49 #17859 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:49 #17860 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:49 #17861 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:49 #17862 [Verbose] > │         ()                                                                   │

00:02:49 #17863 [Verbose] > │     let v7 : float = 0.0                                                     │

00:02:49 #17864 [Verbose] > │     let v8 : float = 0.0                                                     │

00:02:49 #17865 [Verbose] > │     let v9 : int32 = v0.Length                                               │

00:02:49 #17866 [Verbose] > │     let v10 : (float []) = Array.zeroCreate<float> (v9)                      │

00:02:49 #17867 [Verbose] > │     let v11 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:49 #17868 [Verbose] > │     while method2(v9, v11) do                                                │

00:02:49 #17869 [Verbose] > │         let v13 : int32 = v11.l0                                             │

00:02:49 #17870 [Verbose] > │         let v14 : float = v0.[int v13]                                       │

00:02:49 #17871 [Verbose] > │         let v15 : (struct (float * float) -> struct (float * float)) =       │

00:02:49 #17872 [Verbose] > │ method3()                                                                    │

00:02:49 #17873 [Verbose] > │         let struct (v16 : float, v17 : float) = v15 struct (v7, v8)          │

00:02:49 #17874 [Verbose] > │         let v18 : float = v14 / 0.1                                          │

00:02:49 #17875 [Verbose] > │         let v19 : float = round v18                                          │

00:02:49 #17876 [Verbose] > │         let v20 : float =  -v19                                              │

00:02:49 #17877 [Verbose] > │         let v21 : bool = v19 >= v20                                          │

00:02:49 #17878 [Verbose] > │         let v22 : float =                                                    │

00:02:49 #17879 [Verbose] > │             if v21 then                                                      │

00:02:49 #17880 [Verbose] > │                 v19                                                          │

00:02:49 #17881 [Verbose] > │             else                                                             │

00:02:49 #17882 [Verbose] > │                 v20                                                          │

00:02:49 #17883 [Verbose] > │         let v23 : (unit -> UH0) = closure1(v15, v7, v8, v16, v17)            │

00:02:49 #17884 [Verbose] > │         let v24 : UH0 = UH0_0(v7, v8, v23)                                   │

00:02:49 #17885 [Verbose] > │         let v25 : US0 = method4(v22, v24)                                    │

00:02:49 #17886 [Verbose] > │         let v31 : US1 =                                                      │

00:02:49 #17887 [Verbose] > │             match v25 with                                                   │

00:02:49 #17888 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:49 #17889 [Verbose] > │                 US1_0                                                        │

00:02:49 #17890 [Verbose] > │             | US0_1(v26, v27) -> (* Some *)                                  │

00:02:49 #17891 [Verbose] > │                 US1_1(v27)                                                   │

00:02:49 #17892 [Verbose] > │         let v34 : float =                                                    │

00:02:49 #17893 [Verbose] > │             match v31 with                                                   │

00:02:49 #17894 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:02:49 #17895 [Verbose] > │                 0.0                                                          │

00:02:49 #17896 [Verbose] > │             | US1_1(v32) -> (* Some *)                                       │

00:02:49 #17897 [Verbose] > │                 v32                                                          │

00:02:49 #17898 [Verbose] > │         v10.[int v13] <- v34                                                 │

00:02:49 #17899 [Verbose] > │         let v35 : int32 = v13 + 1                                            │

00:02:49 #17900 [Verbose] > │         v11.l0 <- v35                                                        │

00:02:49 #17901 [Verbose] > │         ()                                                                   │

00:02:49 #17902 [Verbose] > │     let v36 : string = "velocity of bike (m/s)"                              │

00:02:49 #17903 [Verbose] > │     let v37 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:49 #17904 [Verbose] > │ (v36, v0, v10)|]                                                             │

00:02:49 #17905 [Verbose] > │     let v38 : (struct (string * (float []) * (float [])) []) = method5(v37)  │

00:02:49 #17906 [Verbose] > │     let v39 : string = "pedaling and coasting with air"                      │

00:02:49 #17907 [Verbose] > │     let v40 : string = "time (s)"                                            │

00:02:49 #17908 [Verbose] > │     let v41 : string = ""                                                    │

00:02:49 #17909 [Verbose] > │     struct (v39, v40, v41, v38)                                              │

00:02:49 #17910 [Verbose] > │ method0()                                                                    │

00:02:49 #17911 [Verbose] > │                                                                              │

00:02:49 #17912 [Verbose] > │                                                                              │

00:02:49 #17913 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:49 #17914 [Verbose] >

00:02:49 #17915 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:49 #17916 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:49 #17917 [Verbose] > │ ## velocity_ftxv                                                             │

00:02:49 #17918 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:49 #17919 [Verbose] >

00:02:49 #17920 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:49 #17921 [Verbose] > nominal state_1d = time * position * velocity

00:02:49 #17922 [Verbose] > nominal rrr = f64 * f64 * f64

00:02:49 #17923 [Verbose] >

00:02:49 #17924 [Verbose] > inl newton_second_1d m fs (state_1d (t, x0, v0)) =

00:02:49 #17925 [Verbose] >     inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>

00:02:49 #17926 [Verbose] > listm'.sum

00:02:49 #17927 [Verbose] >     inl acc = f_net / m

00:02:49 #17928 [Verbose] >     rrr (1f64, v0, acc)

00:02:49 #17929 [Verbose] >

00:02:49 #17930 [Verbose] > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =

00:02:49 #17931 [Verbose] >     inl (rrr (_, _, dvdt)) = deriv t

00:02:49 #17932 [Verbose] >     inl t1 = t0 + dt

00:02:49 #17933 [Verbose] >     inl x1 = x0 + v0 * dt

00:02:49 #17934 [Verbose] >     inl v1 = v0 + dvdt * dt

00:02:49 #17935 [Verbose] >     state_1d (t1, x1, v1)

00:02:49 #17936 [Verbose] >

00:02:49 #17937 [Verbose] > inl update_txv dt m fs =

00:02:49 #17938 [Verbose] >     newton_second_1d m fs |> euler_1d dt

00:02:49 #17939 [Verbose] >

00:02:49 #17940 [Verbose] > inl states_txv dt m txv0 fs =

00:02:49 #17941 [Verbose] >     seq.iterate_ (update_txv dt m fs) txv0

00:02:49 #17942 [Verbose] >

00:02:49 #17943 [Verbose] > inl velocity_1d sts t =

00:02:49 #17944 [Verbose] >     inl (state_1d (t0, _, _)) = sts 0

00:02:49 #17945 [Verbose] >     inl (state_1d (t1, _, _)) = sts 1

00:02:49 #17946 [Verbose] >     inl dt = t1 - t0

00:02:49 #17947 [Verbose] >     inl num_steps = t / dt |> math.round |> abs

00:02:49 #17948 [Verbose] >     inl (state_1d (_, _, v0)) = sts num_steps

00:02:49 #17949 [Verbose] >     v0

00:02:49 #17950 [Verbose] >

00:02:49 #17951 [Verbose] > inl velocity_ftxv dt m txv0 fs =

00:02:49 #17952 [Verbose] >     states_txv dt m txv0 fs |> velocity_1d

00:02:49 #17953 [Verbose] >

00:02:49 #17954 [Verbose] > inl position_1d sts t =

00:02:49 #17955 [Verbose] >     inl (state_1d (t0, _, _)) = sts 0

00:02:49 #17956 [Verbose] >     inl (state_1d (t1, _, _)) = sts 1

00:02:49 #17957 [Verbose] >     inl dt = t1 - t0

00:02:49 #17958 [Verbose] >     inl num_steps = t / dt |> math.round |> abs

00:02:49 #17959 [Verbose] >     inl (state_1d (_, x0, _)) = sts num_steps

00:02:49 #17960 [Verbose] >     x0

00:02:49 #17961 [Verbose] >

00:02:49 #17962 [Verbose] > inl position_ftxv dt m txv0 fs =

00:02:49 #17963 [Verbose] >     states_txv dt m txv0 fs |> position_1d

00:02:49 #17964 [Verbose] >

00:02:49 #17965 [Verbose] > inl spring_force k (state_1d (_, x0, _)) =

00:02:49 #17966 [Verbose] >     -k * x0

00:02:49 #17967 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4510-1090-17e996f425c1\main.spi

00:02:49 #17968 [Verbose] >

00:02:49 #17969 [Verbose] > ╭─[ 250.28ms - stdout ]────────────────────────────────────────────────────────╮

00:02:49 #17970 [Verbose] > │ ()                                                                           │

00:02:49 #17971 [Verbose] > │                                                                              │

00:02:49 #17972 [Verbose] > │                                                                              │

00:02:49 #17973 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:49 #17974 [Verbose] >

00:02:49 #17975 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:49 #17976 [Verbose] > // // test

00:02:49 #17977 [Verbose] >

00:02:49 #17978 [Verbose] > inl damped_ho_forces () =

00:02:49 #17979 [Verbose] >     [[

00:02:49 #17980 [Verbose] >         spring_force 0.8

00:02:49 #17981 [Verbose] >         fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0

00:02:49 #17982 [Verbose] >         fun _ => -0.0027 * 9.80665

00:02:49 #17983 [Verbose] >     ]]

00:02:49 #17984 [Verbose] >

00:02:49 #17985 [Verbose] > inl damped_ho_states () =

00:02:49 #17986 [Verbose] >     states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())

00:02:49 #17987 [Verbose] >

00:02:49 #17988 [Verbose] > inl pingpong_position t =

00:02:49 #17989 [Verbose] >     position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t

00:02:49 #17990 [Verbose] >

00:02:49 #17991 [Verbose] > inl x : a _ f64 = am'.init_series 0 3 0.01

00:02:49 #17992 [Verbose] > inl y = x |> am.map pingpong_position

00:02:49 #17993 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]

00:02:49 #17994 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4536-3612-3319d5f46506\main.spi

00:02:50 #17995 [Verbose] >

00:02:50 #17996 [Verbose] > ╭─[ 303.19ms - return value ]──────────────────────────────────────────────────╮

00:02:50 #17997 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:50 #17998 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:50 #17999 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:50 #18000 [Verbose] > │ stroke="none"/>                                                              │

00:02:50 #18001 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:50 #18002 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:50 #18003 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:50 #18004 [Verbose] > │ ping pong ball on a slinky                                                   │

00:02:50 #18005 [Verbose] > │ </text>                                                                      │

00:02:50 #18006 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:02:50 #18007 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18008 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:50 #18009 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18010 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:02:50 #18011 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18012 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:02:50 #18013 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18014 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9...                 │

00:02:50 #18015 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:50 #18016 [Verbose] >

00:02:50 #18017 [Verbose] > ╭─[ 314.82ms - stdout ]────────────────────────────────────────────────────────╮

00:02:50 #18018 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:50 #18019 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:50 #18020 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:50 #18021 [Verbose] > │     let v2 : bool = v1 < 301                                                 │

00:02:50 #18022 [Verbose] > │     v2                                                                       │

00:02:50 #18023 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:50 #18024 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:50 #18025 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:50 #18026 [Verbose] > │     v3                                                                       │

00:02:50 #18027 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │

00:02:50 #18028 [Verbose] > │ * float * float) =                                                           │

00:02:50 #18029 [Verbose] > │     let v4 : bool = v3 <= 0.0                                                │

00:02:50 #18030 [Verbose] > │     if v4 then                                                               │

00:02:50 #18031 [Verbose] > │         struct (v0, v1, v2)                                                  │

00:02:50 #18032 [Verbose] > │     else                                                                     │

00:02:50 #18033 [Verbose] > │         let v5 : float =  -v2                                                │

00:02:50 #18034 [Verbose] > │         let v6 : bool = v2 >= v5                                             │

00:02:50 #18035 [Verbose] > │         let v7 : float =                                                     │

00:02:50 #18036 [Verbose] > │             if v6 then                                                       │

00:02:50 #18037 [Verbose] > │                 v2                                                           │

00:02:50 #18038 [Verbose] > │             else                                                             │

00:02:50 #18039 [Verbose] > │                 v5                                                           │

00:02:50 #18040 [Verbose] > │         let v8 : float = -0.0030787608005179976 * v7                         │

00:02:50 #18041 [Verbose] > │         let v9 : float = v8 * v2                                             │

00:02:50 #18042 [Verbose] > │         let v10 : float = v9 / 2.0                                           │

00:02:50 #18043 [Verbose] > │         let v11 : float = -0.8 * v1                                          │

00:02:50 #18044 [Verbose] > │         let v12 : float = v11 + v10                                          │

00:02:50 #18045 [Verbose] > │         let v13 : float = v12 + -0.026477955                                 │

00:02:50 #18046 [Verbose] > │         let v14 : float = v13 / 0.0027                                       │

00:02:50 #18047 [Verbose] > │         let v15 : float = v0 + 0.001                                         │

00:02:50 #18048 [Verbose] > │         let v16 : float = v2 * 0.001                                         │

00:02:50 #18049 [Verbose] > │         let v17 : float = v1 + v16                                           │

00:02:50 #18050 [Verbose] > │         let v18 : float = v14 * 0.001                                        │

00:02:50 #18051 [Verbose] > │         let v19 : float = v2 + v18                                           │

00:02:50 #18052 [Verbose] > │         let v20 : float = v3 - 1.0                                           │

00:02:50 #18053 [Verbose] > │         method3(v15, v17, v19, v20)                                          │

00:02:50 #18054 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:50 #18055 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:50 #18056 [Verbose] > │     v0                                                                       │

00:02:50 #18057 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:50 #18058 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:50 #18059 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (301)                      │

00:02:50 #18060 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:50 #18061 [Verbose] > │     while method1(v1) do                                                     │

00:02:50 #18062 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:50 #18063 [Verbose] > │         let v4 : float = float v3                                            │

00:02:50 #18064 [Verbose] > │         let v5 : float = 0.01 * v4                                           │

00:02:50 #18065 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:50 #18066 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:50 #18067 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:50 #18068 [Verbose] > │         ()                                                                   │

00:02:50 #18069 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:02:50 #18070 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:02:50 #18071 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:50 #18072 [Verbose] > │     while method2(v7, v9) do                                                 │

00:02:50 #18073 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:02:50 #18074 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:02:50 #18075 [Verbose] > │         let v13 : float = 0.0                                                │

00:02:50 #18076 [Verbose] > │         let v14 : float = 0.1                                                │

00:02:50 #18077 [Verbose] > │         let v15 : float = 0.0                                                │

00:02:50 #18078 [Verbose] > │         let v16 : float = 0.0                                                │

00:02:50 #18079 [Verbose] > │         let struct (v17 : float, v18 : float, v19 : float) = method3(v13,    │

00:02:50 #18080 [Verbose] > │ v14, v15, v16)                                                               │

00:02:50 #18081 [Verbose] > │         let v20 : float = 0.0                                                │

00:02:50 #18082 [Verbose] > │         let v21 : float = 0.1                                                │

00:02:50 #18083 [Verbose] > │         let v22 : float = 0.0                                                │

00:02:50 #18084 [Verbose] > │         let v23 : float = 1.0                                                │

00:02:50 #18085 [Verbose] > │         let struct (v24 : float, v25 : float, v26 : float) = method3(v20,    │

00:02:50 #18086 [Verbose] > │ v21, v22, v23)                                                               │

00:02:50 #18087 [Verbose] > │         let v27 : float = v24 - v17                                          │

00:02:50 #18088 [Verbose] > │         let v28 : float = v12 / v27                                          │

00:02:50 #18089 [Verbose] > │         let v29 : float = round v28                                          │

00:02:50 #18090 [Verbose] > │         let v30 : float =  -v29                                              │

00:02:50 #18091 [Verbose] > │         let v31 : bool = v29 >= v30                                          │

00:02:50 #18092 [Verbose] > │         let v32 : float =                                                    │

00:02:50 #18093 [Verbose] > │             if v31 then                                                      │

00:02:50 #18094 [Verbose] > │                 v29                                                          │

00:02:50 #18095 [Verbose] > │             else                                                             │

00:02:50 #18096 [Verbose] > │                 v30                                                          │

00:02:50 #18097 [Verbose] > │         let v33 : float = 0.0                                                │

00:02:50 #18098 [Verbose] > │         let v34 : float = 0.1                                                │

00:02:50 #18099 [Verbose] > │         let v35 : float = 0.0                                                │

00:02:50 #18100 [Verbose] > │         let struct (v36 : float, v37 : float, v38 : float) = method3(v33,    │

00:02:50 #18101 [Verbose] > │ v34, v35, v32)                                                               │

00:02:50 #18102 [Verbose] > │         v8.[int v11] <- v37                                                  │

00:02:50 #18103 [Verbose] > │         let v39 : int32 = v11 + 1                                            │

00:02:50 #18104 [Verbose] > │         v9.l0 <- v39                                                         │

00:02:50 #18105 [Verbose] > │         ()                                                                   │

00:02:50 #18106 [Verbose] > │     let v40 : string = "position (m)"                                        │

00:02:50 #18107 [Verbose] > │     let v41 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:50 #18108 [Verbose] > │ (v40, v0, v8)|]                                                              │

00:02:50 #18109 [Verbose] > │     let v42 : (struct (string * (float []) * (float [])) []) = method4(v41)  │

00:02:50 #18110 [Verbose] > │     let v43 : string = "ping pong ball on a slinky"                          │

00:02:50 #18111 [Verbose] > │     let v44 : string = "time (s)"                                            │

00:02:50 #18112 [Verbose] > │     let v45 : string = ""                                                    │

00:02:50 #18113 [Verbose] > │     struct (v43, v44, v45, v42)                                              │

00:02:50 #18114 [Verbose] > │ method0()                                                                    │

00:02:50 #18115 [Verbose] > │                                                                              │

00:02:50 #18116 [Verbose] > │                                                                              │

00:02:50 #18117 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:50 #18118 [Verbose] >

00:02:50 #18119 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:50 #18120 [Verbose] > // // test

00:02:50 #18121 [Verbose] >

00:02:50 #18122 [Verbose] > inl pingpong_velocity t =

00:02:50 #18123 [Verbose] >     velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t

00:02:50 #18124 [Verbose] >

00:02:50 #18125 [Verbose] > inl x = am'.init_series 0 3 0.01

00:02:50 #18126 [Verbose] > inl y = x |> am.map pingpong_velocity

00:02:50 #18127 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]

00:02:50 #18128 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4571-7137-7209ff0343cb\main.spi

00:02:50 #18129 [Verbose] >

00:02:50 #18130 [Verbose] > ╭─[ 335.03ms - return value ]──────────────────────────────────────────────────╮

00:02:50 #18131 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:02:50 #18132 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:02:50 #18133 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:02:50 #18134 [Verbose] > │ stroke="none"/>                                                              │

00:02:50 #18135 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:02:50 #18136 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:02:50 #18137 [Verbose] > │ fill="#FFFFFF">                                                              │

00:02:50 #18138 [Verbose] > │ ping pong ball on a slinky                                                   │

00:02:50 #18139 [Verbose] > │ </text>                                                                      │

00:02:50 #18140 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:02:50 #18141 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18142 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:02:50 #18143 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18144 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:02:50 #18145 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18146 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:02:50 #18147 [Verbose] > │ y2="75"/>                                                                    │

00:02:50 #18148 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9...                 │

00:02:50 #18149 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:50 #18150 [Verbose] >

00:02:50 #18151 [Verbose] > ╭─[ 343.36ms - stdout ]────────────────────────────────────────────────────────╮

00:02:50 #18152 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:50 #18153 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:02:50 #18154 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:50 #18155 [Verbose] > │     let v2 : bool = v1 < 301                                                 │

00:02:50 #18156 [Verbose] > │     v2                                                                       │

00:02:50 #18157 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:50 #18158 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:50 #18159 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:50 #18160 [Verbose] > │     v3                                                                       │

00:02:50 #18161 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │

00:02:50 #18162 [Verbose] > │ * float * float) =                                                           │

00:02:50 #18163 [Verbose] > │     let v4 : bool = v3 <= 0.0                                                │

00:02:50 #18164 [Verbose] > │     if v4 then                                                               │

00:02:50 #18165 [Verbose] > │         struct (v0, v1, v2)                                                  │

00:02:50 #18166 [Verbose] > │     else                                                                     │

00:02:50 #18167 [Verbose] > │         let v5 : float =  -v2                                                │

00:02:50 #18168 [Verbose] > │         let v6 : bool = v2 >= v5                                             │

00:02:50 #18169 [Verbose] > │         let v7 : float =                                                     │

00:02:50 #18170 [Verbose] > │             if v6 then                                                       │

00:02:50 #18171 [Verbose] > │                 v2                                                           │

00:02:50 #18172 [Verbose] > │             else                                                             │

00:02:50 #18173 [Verbose] > │                 v5                                                           │

00:02:50 #18174 [Verbose] > │         let v8 : float = -0.0030787608005179976 * v7                         │

00:02:50 #18175 [Verbose] > │         let v9 : float = v8 * v2                                             │

00:02:50 #18176 [Verbose] > │         let v10 : float = v9 / 2.0                                           │

00:02:50 #18177 [Verbose] > │         let v11 : float = -0.8 * v1                                          │

00:02:50 #18178 [Verbose] > │         let v12 : float = v11 + v10                                          │

00:02:50 #18179 [Verbose] > │         let v13 : float = v12 + -0.026477955                                 │

00:02:50 #18180 [Verbose] > │         let v14 : float = v13 / 0.0027                                       │

00:02:50 #18181 [Verbose] > │         let v15 : float = v0 + 0.001                                         │

00:02:50 #18182 [Verbose] > │         let v16 : float = v2 * 0.001                                         │

00:02:50 #18183 [Verbose] > │         let v17 : float = v1 + v16                                           │

00:02:50 #18184 [Verbose] > │         let v18 : float = v14 * 0.001                                        │

00:02:50 #18185 [Verbose] > │         let v19 : float = v2 + v18                                           │

00:02:50 #18186 [Verbose] > │         let v20 : float = v3 - 1.0                                           │

00:02:50 #18187 [Verbose] > │         method3(v15, v17, v19, v20)                                          │

00:02:50 #18188 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:02:50 #18189 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:02:50 #18190 [Verbose] > │     v0                                                                       │

00:02:50 #18191 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:02:50 #18192 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:02:50 #18193 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (301)                      │

00:02:50 #18194 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:50 #18195 [Verbose] > │     while method1(v1) do                                                     │

00:02:50 #18196 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:02:50 #18197 [Verbose] > │         let v4 : float = float v3                                            │

00:02:50 #18198 [Verbose] > │         let v5 : float = 0.01 * v4                                           │

00:02:50 #18199 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:02:50 #18200 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:02:50 #18201 [Verbose] > │         v1.l0 <- v6                                                          │

00:02:50 #18202 [Verbose] > │         ()                                                                   │

00:02:50 #18203 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:02:50 #18204 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:02:50 #18205 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:50 #18206 [Verbose] > │     while method2(v7, v9) do                                                 │

00:02:50 #18207 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:02:50 #18208 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:02:50 #18209 [Verbose] > │         let v13 : float = 0.0                                                │

00:02:50 #18210 [Verbose] > │         let v14 : float = 0.1                                                │

00:02:50 #18211 [Verbose] > │         let v15 : float = 0.0                                                │

00:02:50 #18212 [Verbose] > │         let v16 : float = 0.0                                                │

00:02:50 #18213 [Verbose] > │         let struct (v17 : float, v18 : float, v19 : float) = method3(v13,    │

00:02:50 #18214 [Verbose] > │ v14, v15, v16)                                                               │

00:02:50 #18215 [Verbose] > │         let v20 : float = 0.0                                                │

00:02:50 #18216 [Verbose] > │         let v21 : float = 0.1                                                │

00:02:50 #18217 [Verbose] > │         let v22 : float = 0.0                                                │

00:02:50 #18218 [Verbose] > │         let v23 : float = 1.0                                                │

00:02:50 #18219 [Verbose] > │         let struct (v24 : float, v25 : float, v26 : float) = method3(v20,    │

00:02:50 #18220 [Verbose] > │ v21, v22, v23)                                                               │

00:02:50 #18221 [Verbose] > │         let v27 : float = v24 - v17                                          │

00:02:50 #18222 [Verbose] > │         let v28 : float = v12 / v27                                          │

00:02:50 #18223 [Verbose] > │         let v29 : float = round v28                                          │

00:02:50 #18224 [Verbose] > │         let v30 : float =  -v29                                              │

00:02:50 #18225 [Verbose] > │         let v31 : bool = v29 >= v30                                          │

00:02:50 #18226 [Verbose] > │         let v32 : float =                                                    │

00:02:50 #18227 [Verbose] > │             if v31 then                                                      │

00:02:50 #18228 [Verbose] > │                 v29                                                          │

00:02:50 #18229 [Verbose] > │             else                                                             │

00:02:50 #18230 [Verbose] > │                 v30                                                          │

00:02:50 #18231 [Verbose] > │         let v33 : float = 0.0                                                │

00:02:50 #18232 [Verbose] > │         let v34 : float = 0.1                                                │

00:02:50 #18233 [Verbose] > │         let v35 : float = 0.0                                                │

00:02:50 #18234 [Verbose] > │         let struct (v36 : float, v37 : float, v38 : float) = method3(v33,    │

00:02:50 #18235 [Verbose] > │ v34, v35, v32)                                                               │

00:02:50 #18236 [Verbose] > │         v8.[int v11] <- v38                                                  │

00:02:50 #18237 [Verbose] > │         let v39 : int32 = v11 + 1                                            │

00:02:50 #18238 [Verbose] > │         v9.l0 <- v39                                                         │

00:02:50 #18239 [Verbose] > │         ()                                                                   │

00:02:50 #18240 [Verbose] > │     let v40 : string = "velocity (m/s)"                                      │

00:02:50 #18241 [Verbose] > │     let v41 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:02:50 #18242 [Verbose] > │ (v40, v0, v8)|]                                                              │

00:02:50 #18243 [Verbose] > │     let v42 : (struct (string * (float []) * (float [])) []) = method4(v41)  │

00:02:50 #18244 [Verbose] > │     let v43 : string = "ping pong ball on a slinky"                          │

00:02:50 #18245 [Verbose] > │     let v44 : string = "time (s)"                                            │

00:02:50 #18246 [Verbose] > │     let v45 : string = ""                                                    │

00:02:50 #18247 [Verbose] > │     struct (v43, v44, v45, v42)                                              │

00:02:50 #18248 [Verbose] > │ method0()                                                                    │

00:02:50 #18249 [Verbose] > │                                                                              │

00:02:50 #18250 [Verbose] > │                                                                              │

00:02:50 #18251 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:50 #18252 [Verbose] >

00:02:50 #18253 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:50 #18254 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:50 #18255 [Verbose] > │ ## shift                                                                     │

00:02:50 #18256 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:50 #18257 [Verbose] >

00:02:50 #18258 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:50 #18259 [Verbose] > type update_function s = s -> s

00:02:50 #18260 [Verbose] >

00:02:50 #18261 [Verbose] > type differential_equation s ds = s -> ds

00:02:50 #18262 [Verbose] >

00:02:50 #18263 [Verbose] > type numerical_method s ds = differential_equation s ds -> update_function s

00:02:50 #18264 [Verbose] >

00:02:50 #18265 [Verbose] >

00:02:50 #18266 [Verbose] > inl solver method =

00:02:50 #18267 [Verbose] >     method >> seq.iterate

00:02:50 #18268 [Verbose] > inl solver' method =

00:02:50 #18269 [Verbose] >     method >> seq.iterate'

00:02:50 #18270 [Verbose] > inl solver_ method =

00:02:50 #18271 [Verbose] >     method >> seq.iterate_

00:02:50 #18272 [Verbose] >

00:02:50 #18273 [Verbose] >

00:02:50 #18274 [Verbose] > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =

00:02:50 #18275 [Verbose] >     inl (rrr (_, _, dvdt)) = deriv t

00:02:50 #18276 [Verbose] >     inl t1 = t0 + dt

00:02:50 #18277 [Verbose] >     inl v1 = v0 + dvdt * dt

00:02:50 #18278 [Verbose] >     inl x1 = x0 + v1 * dt

00:02:50 #18279 [Verbose] >     state_1d (t1, x1, v1)

00:02:50 #18280 [Verbose] >

00:02:50 #18281 [Verbose] > inl update_txv_ec dt m fs =

00:02:50 #18282 [Verbose] >     euler_cromer_1d dt (newton_second_1d m fs)

00:02:50 #18283 [Verbose] >

00:02:50 #18284 [Verbose] > prototype (+++) ds : ds -> ds -> ds

00:02:50 #18285 [Verbose] > prototype scale ds : f64 -> ds -> ds

00:02:50 #18286 [Verbose] >

00:02:50 #18287 [Verbose] > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))

00:02:50 #18288 [Verbose] > =>

00:02:50 #18289 [Verbose] >     rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)

00:02:50 #18290 [Verbose] >

00:02:50 #18291 [Verbose] > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>

00:02:50 #18292 [Verbose] >     rrr (w * dtdt0, w * dxdt0, w * dvdt0)

00:02:50 #18293 [Verbose] >

00:02:50 #18294 [Verbose] > prototype shift s : forall ds. f64 -> ds -> s -> s

00:02:50 #18295 [Verbose] >

00:02:50 #18296 [Verbose] > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>

00:02:50 #18297 [Verbose] >     inl dtdt, dxdt, dvdt =

00:02:50 #18298 [Verbose] >         real

00:02:50 #18299 [Verbose] >             match ds with

00:02:50 #18300 [Verbose] >             | rrr x => x

00:02:50 #18301 [Verbose] >             | state_1d x => x

00:02:50 #18302 [Verbose] >     state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)

00:02:50 #18303 [Verbose] >

00:02:50 #18304 [Verbose] > inl euler dt deriv st0 =

00:02:50 #18305 [Verbose] >     shift dt (deriv st0) st0

00:02:50 #18306 [Verbose] >

00:02:50 #18307 [Verbose] > inl runge_kutta_4 dt deriv st0 =

00:02:50 #18308 [Verbose] >     inl m0 = deriv st0

00:02:50 #18309 [Verbose] >     inl m1 = deriv (shift (dt / 2) m0 st0)

00:02:50 #18310 [Verbose] >     inl m2 = deriv (shift (dt / 2) m1 st0)

00:02:50 #18311 [Verbose] >     inl m3 = deriv (shift dt m2 st0)

00:02:50 #18312 [Verbose] >     shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0

00:02:50 #18313 [Verbose] >

00:02:50 #18314 [Verbose] > inl exponential (_, x0, v0) =

00:02:50 #18315 [Verbose] >     1f64, v0, x0

00:02:50 #18316 [Verbose] >

00:02:50 #18317 [Verbose] > inl of_state_1d (state_1d (t, x, v)) =

00:02:50 #18318 [Verbose] >     t, x, v

00:02:50 #18319 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4609-0952-0f09df9d24bd\main.spi

00:02:50 #18320 [Verbose] >

00:02:50 #18321 [Verbose] > ╭─[ 231.04ms - stdout ]────────────────────────────────────────────────────────╮

00:02:50 #18322 [Verbose] > │ ()                                                                           │

00:02:50 #18323 [Verbose] > │                                                                              │

00:02:50 #18324 [Verbose] > │                                                                              │

00:02:50 #18325 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:50 #18326 [Verbose] >

00:02:50 #18327 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:50 #18328 [Verbose] > // // test

00:02:50 #18329 [Verbose] >

00:02:50 #18330 [Verbose] > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,

00:02:50 #18331 [Verbose] > 1)) 800i32

00:02:50 #18332 [Verbose] > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,

00:02:50 #18333 [Verbose] > 2864.8311229272326))

00:02:50 #18334 [Verbose] >

00:02:50 #18335 [Verbose] > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,

00:02:50 #18336 [Verbose] > 1, 1)) 80i32

00:02:50 #18337 [Verbose] > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,

00:02:50 #18338 [Verbose] > 2895.0121485099035))

00:02:50 #18339 [Verbose] >

00:02:50 #18340 [Verbose] > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,

00:02:50 #18341 [Verbose] > 1)) 8i32

00:02:50 #18342 [Verbose] > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))

00:02:50 #18343 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4632-3273-33104101eb01\main.spi

00:02:51 #18344 [Verbose] >

00:02:51 #18345 [Verbose] > ╭─[ 315.49ms - stdout ]────────────────────────────────────────────────────────╮

00:02:51 #18346 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:51 #18347 [Verbose] > │     let v0 : string = $"%A{struct (7.999999999999874, 2864.8311229272326,    │

00:02:51 #18348 [Verbose] > │ 2864.8311229272326)}"                                                        │

00:02:51 #18349 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:51 #18350 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (7.999999999999874,     │

00:02:51 #18351 [Verbose] > │ 2864.8311229272326, 2864.8311229272326)} / expected: %A{struct               │

00:02:51 #18352 [Verbose] > │ (7.999999999999874, 2864.8311229272326, 2864.8311229272326)}"                │

00:02:51 #18353 [Verbose] > │     let v2 : string = $"%A{struct (7.999999999999988, 3043.379244966009,     │

00:02:51 #18354 [Verbose] > │ 2895.0121485099035)}"                                                        │

00:02:51 #18355 [Verbose] > │     System.Console.WriteLine v2                                              │

00:02:51 #18356 [Verbose] > │     let v3 : string = $"__expect / actual: %A{struct (7.999999999999988,     │

00:02:51 #18357 [Verbose] > │ 3043.379244966009, 2895.0121485099035)} / expected: %A{struct                │

00:02:51 #18358 [Verbose] > │ (7.999999999999988, 3043.379244966009, 2895.0121485099035)}"                 │

00:02:51 #18359 [Verbose] > │     let v4 : string = $"%A{struct (8.0, 2894.789038540849,                   │

00:02:51 #18360 [Verbose] > │ 2894.789038540849)}"                                                         │

00:02:51 #18361 [Verbose] > │     System.Console.WriteLine v4                                              │

00:02:51 #18362 [Verbose] > │     let v5 : string = $"__expect / actual: %A{struct (8.0,                   │

00:02:51 #18363 [Verbose] > │ 2894.789038540849, 2894.789038540849)} / expected: %A{struct (8.0,           │

00:02:51 #18364 [Verbose] > │ 2894.789038540849, 2894.789038540849)}"                                      │

00:02:51 #18365 [Verbose] > │     ()                                                                       │

00:02:51 #18366 [Verbose] > │ method0()                                                                    │

00:02:51 #18367 [Verbose] > │                                                                              │

00:02:51 #18368 [Verbose] > │ struct (8.0, 2864.831123, 2864.831123)                                       │

00:02:51 #18369 [Verbose] > │ struct (8.0, 3043.379245, 2895.012149)                                       │

00:02:51 #18370 [Verbose] > │ struct (8.0, 2894.789039, 2894.789039)                                       │

00:02:51 #18371 [Verbose] > │                                                                              │

00:02:51 #18372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18373 [Verbose] >

00:02:51 #18374 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:51 #18375 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:51 #18376 [Verbose] > │ ## vec                                                                       │

00:02:51 #18377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18378 [Verbose] >

00:02:51 #18379 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:51 #18380 [Verbose] > type vec =

00:02:51 #18381 [Verbose] >     {

00:02:51 #18382 [Verbose] >         x : f64

00:02:51 #18383 [Verbose] >         y : f64

00:02:51 #18384 [Verbose] >         z : f64

00:02:51 #18385 [Verbose] >     }

00:02:51 #18386 [Verbose] >

00:02:51 #18387 [Verbose] > inl vec x y z : vec =

00:02:51 #18388 [Verbose] >     { x y z }

00:02:51 #18389 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4665-6537-66a18bf89e72\main.spi

00:02:51 #18390 [Verbose] >

00:02:51 #18391 [Verbose] > ╭─[ 281.83ms - stdout ]────────────────────────────────────────────────────────╮

00:02:51 #18392 [Verbose] > │ ()                                                                           │

00:02:51 #18393 [Verbose] > │                                                                              │

00:02:51 #18394 [Verbose] > │                                                                              │

00:02:51 #18395 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18396 [Verbose] >

00:02:51 #18397 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:51 #18398 [Verbose] > // // test

00:02:51 #18399 [Verbose] >

00:02:51 #18400 [Verbose] > vec 1 2 3 .z

00:02:51 #18401 [Verbose] > |> _assert_eq 3

00:02:51 #18402 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4693-9375-98c8a2429f73\main.spi

00:02:51 #18403 [Verbose] >

00:02:51 #18404 [Verbose] > ╭─[ 206.53ms - stdout ]────────────────────────────────────────────────────────╮

00:02:51 #18405 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:51 #18406 [Verbose] > │     let v0 : string = $"%A{3.0}"                                             │

00:02:51 #18407 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:51 #18408 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3.0} / expected: %A{3.0}"      │

00:02:51 #18409 [Verbose] > │     ()                                                                       │

00:02:51 #18410 [Verbose] > │ method0()                                                                    │

00:02:51 #18411 [Verbose] > │                                                                              │

00:02:51 #18412 [Verbose] > │ 3.0                                                                          │

00:02:51 #18413 [Verbose] > │                                                                              │

00:02:51 #18414 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18415 [Verbose] >

00:02:51 #18416 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:51 #18417 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:51 #18418 [Verbose] > │ ### consts                                                                   │

00:02:51 #18419 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18420 [Verbose] >

00:02:51 #18421 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:51 #18422 [Verbose] > inl i_hat () = vec 1 0 0

00:02:51 #18423 [Verbose] > inl j_hat () = vec 0 1 0

00:02:51 #18424 [Verbose] > inl k_hat () = vec 0 0 1

00:02:51 #18425 [Verbose] > inl zero_vec () = vec 0 0 0

00:02:51 #18426 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4715-1510-1bcedf583a3a\main.spi

00:02:51 #18427 [Verbose] >

00:02:51 #18428 [Verbose] > ╭─[ 221.09ms - stdout ]────────────────────────────────────────────────────────╮

00:02:51 #18429 [Verbose] > │ ()                                                                           │

00:02:51 #18430 [Verbose] > │                                                                              │

00:02:51 #18431 [Verbose] > │                                                                              │

00:02:51 #18432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18433 [Verbose] >

00:02:51 #18434 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:51 #18435 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:51 #18436 [Verbose] > │ ### ^+^                                                                      │

00:02:51 #18437 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:51 #18438 [Verbose] >

00:02:51 #18439 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:51 #18440 [Verbose] > inl (^+^) (a : vec) (b : vec) =

00:02:51 #18441 [Verbose] >     vec (a.x + b.x) (a.y + b.y) (a.z + b.z)

00:02:51 #18442 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4737-3770-3886f1a92dc5\main.spi

00:02:52 #18443 [Verbose] >

00:02:52 #18444 [Verbose] > ╭─[ 244.37ms - stdout ]────────────────────────────────────────────────────────╮

00:02:52 #18445 [Verbose] > │ ()                                                                           │

00:02:52 #18446 [Verbose] > │                                                                              │

00:02:52 #18447 [Verbose] > │                                                                              │

00:02:52 #18448 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:52 #18449 [Verbose] >

00:02:52 #18450 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:52 #18451 [Verbose] > // // test

00:02:52 #18452 [Verbose] >

00:02:52 #18453 [Verbose] > vec 1 2 3 ^+^ vec 4 5 6

00:02:52 #18454 [Verbose] > |> _assert_eq (vec 5 7 9)

00:02:52 #18455 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4762-6231-6d08897d07c9\main.spi

00:02:52 #18456 [Verbose] >

00:02:52 #18457 [Verbose] > ╭─[ 368.12ms - stdout ]────────────────────────────────────────────────────────╮

00:02:52 #18458 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:52 #18459 [Verbose] > │     let v0 : string = $"%A{struct (5.0, 7.0, 9.0)}"                          │

00:02:52 #18460 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:52 #18461 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} /      │

00:02:52 #18462 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}"                                        │

00:02:52 #18463 [Verbose] > │     ()                                                                       │

00:02:52 #18464 [Verbose] > │ method0()                                                                    │

00:02:52 #18465 [Verbose] > │                                                                              │

00:02:52 #18466 [Verbose] > │ struct (5.0, 7.0, 9.0)                                                       │

00:02:52 #18467 [Verbose] > │                                                                              │

00:02:52 #18468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:52 #18469 [Verbose] >

00:02:52 #18470 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:52 #18471 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:52 #18472 [Verbose] > │ ### sum_vec                                                                  │

00:02:52 #18473 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:52 #18474 [Verbose] >

00:02:52 #18475 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:52 #18476 [Verbose] > inl sum_vec vs =

00:02:52 #18477 [Verbose] >     vs |> listm.fold (^+^) (zero_vec ())

00:02:52 #18478 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4799-9997-9d277ee933b0\main.spi

00:02:52 #18479 [Verbose] >

00:02:52 #18480 [Verbose] > ╭─[ 516.32ms - stdout ]────────────────────────────────────────────────────────╮

00:02:52 #18481 [Verbose] > │ ()                                                                           │

00:02:52 #18482 [Verbose] > │                                                                              │

00:02:52 #18483 [Verbose] > │                                                                              │

00:02:52 #18484 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:52 #18485 [Verbose] >

00:02:52 #18486 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:52 #18487 [Verbose] > // // test

00:02:52 #18488 [Verbose] >

00:02:52 #18489 [Verbose] > [[ vec 1 2 3; vec 4 5 6 ]]

00:02:52 #18490 [Verbose] > |> sum_vec

00:02:52 #18491 [Verbose] > |> _assert_eq (vec 5 7 9)

00:02:53 #18492 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4851-5187-5b155f2fa7d2\main.spi

00:02:53 #18493 [Verbose] >

00:02:53 #18494 [Verbose] > ╭─[ 207.02ms - stdout ]────────────────────────────────────────────────────────╮

00:02:53 #18495 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:53 #18496 [Verbose] > │     let v0 : string = $"%A{struct (5.0, 7.0, 9.0)}"                          │

00:02:53 #18497 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:53 #18498 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} /      │

00:02:53 #18499 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}"                                        │

00:02:53 #18500 [Verbose] > │     ()                                                                       │

00:02:53 #18501 [Verbose] > │ method0()                                                                    │

00:02:53 #18502 [Verbose] > │                                                                              │

00:02:53 #18503 [Verbose] > │ struct (5.0, 7.0, 9.0)                                                       │

00:02:53 #18504 [Verbose] > │                                                                              │

00:02:53 #18505 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:53 #18506 [Verbose] >

00:02:53 #18507 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:53 #18508 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:53 #18509 [Verbose] > │ ### *^                                                                       │

00:02:53 #18510 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:53 #18511 [Verbose] >

00:02:53 #18512 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:53 #18513 [Verbose] > inl (*^) c { x y z } =

00:02:53 #18514 [Verbose] >     vec (c * x) (c * y) (c * z)

00:02:53 #18515 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4873-7319-7f2081b8eee8\main.spi

00:02:53 #18516 [Verbose] >

00:02:53 #18517 [Verbose] > ╭─[ 202.80ms - stdout ]────────────────────────────────────────────────────────╮

00:02:53 #18518 [Verbose] > │ ()                                                                           │

00:02:53 #18519 [Verbose] > │                                                                              │

00:02:53 #18520 [Verbose] > │                                                                              │

00:02:53 #18521 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:53 #18522 [Verbose] >

00:02:53 #18523 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:53 #18524 [Verbose] > // // test

00:02:53 #18525 [Verbose] >

00:02:53 #18526 [Verbose] > 5 *^ vec 1 2 3

00:02:53 #18527 [Verbose] > |> _assert_eq (vec 5 10 15)

00:02:53 #18528 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4893-9369-90371bd1cfc7\main.spi

00:02:53 #18529 [Verbose] >

00:02:53 #18530 [Verbose] > ╭─[ 303.71ms - stdout ]────────────────────────────────────────────────────────╮

00:02:53 #18531 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:53 #18532 [Verbose] > │     let v0 : string = $"%A{struct (5.0, 10.0, 15.0)}"                        │

00:02:53 #18533 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:53 #18534 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} /    │

00:02:53 #18535 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}"                                      │

00:02:53 #18536 [Verbose] > │     ()                                                                       │

00:02:53 #18537 [Verbose] > │ method0()                                                                    │

00:02:53 #18538 [Verbose] > │                                                                              │

00:02:53 #18539 [Verbose] > │ struct (5.0, 10.0, 15.0)                                                     │

00:02:53 #18540 [Verbose] > │                                                                              │

00:02:53 #18541 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:53 #18542 [Verbose] >

00:02:53 #18543 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:53 #18544 [Verbose] > // // test

00:02:53 #18545 [Verbose] >

00:02:53 #18546 [Verbose] > 3 *^ i_hat () ^+^ 4 *^ k_hat ()

00:02:53 #18547 [Verbose] > |> _assert_eq (vec 3 0 4)

00:02:53 #18548 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4924-2477-22bac066ed2d\main.spi

00:02:53 #18549 [Verbose] >

00:02:53 #18550 [Verbose] > ╭─[ 208.26ms - stdout ]────────────────────────────────────────────────────────╮

00:02:53 #18551 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:53 #18552 [Verbose] > │     let v0 : string = $"%A{struct (3.0, 0.0, 4.0)}"                          │

00:02:53 #18553 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:53 #18554 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (3.0, 0.0, 4.0)} /      │

00:02:53 #18555 [Verbose] > │ expected: %A{struct (3.0, 0.0, 4.0)}"                                        │

00:02:53 #18556 [Verbose] > │     ()                                                                       │

00:02:53 #18557 [Verbose] > │ method0()                                                                    │

00:02:53 #18558 [Verbose] > │                                                                              │

00:02:53 #18559 [Verbose] > │ struct (3.0, 0.0, 4.0)                                                       │

00:02:53 #18560 [Verbose] > │                                                                              │

00:02:53 #18561 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:53 #18562 [Verbose] >

00:02:53 #18563 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:53 #18564 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:53 #18565 [Verbose] > │ ### ^*                                                                       │

00:02:53 #18566 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:53 #18567 [Verbose] >

00:02:53 #18568 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:53 #18569 [Verbose] > inl (^*) v c =

00:02:53 #18570 [Verbose] >     (*^) c v

00:02:54 #18571 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4946-4621-497579597736\main.spi

00:02:54 #18572 [Verbose] >

00:02:54 #18573 [Verbose] > ╭─[ 224.09ms - stdout ]────────────────────────────────────────────────────────╮

00:02:54 #18574 [Verbose] > │ ()                                                                           │

00:02:54 #18575 [Verbose] > │                                                                              │

00:02:54 #18576 [Verbose] > │                                                                              │

00:02:54 #18577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:54 #18578 [Verbose] >

00:02:54 #18579 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:54 #18580 [Verbose] > // // test

00:02:54 #18581 [Verbose] >

00:02:54 #18582 [Verbose] > vec 1 2 3 ^* 5

00:02:54 #18583 [Verbose] > |> _assert_eq (vec 5 10 15)

00:02:54 #18584 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4968-6877-6925ef856a2c\main.spi

00:02:54 #18585 [Verbose] >

00:02:54 #18586 [Verbose] > ╭─[ 245.14ms - stdout ]────────────────────────────────────────────────────────╮

00:02:54 #18587 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:54 #18588 [Verbose] > │     let v0 : string = $"%A{struct (5.0, 10.0, 15.0)}"                        │

00:02:54 #18589 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:54 #18590 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} /    │

00:02:54 #18591 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}"                                      │

00:02:54 #18592 [Verbose] > │     ()                                                                       │

00:02:54 #18593 [Verbose] > │ method0()                                                                    │

00:02:54 #18594 [Verbose] > │                                                                              │

00:02:54 #18595 [Verbose] > │ struct (5.0, 10.0, 15.0)                                                     │

00:02:54 #18596 [Verbose] > │                                                                              │

00:02:54 #18597 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:54 #18598 [Verbose] >

00:02:54 #18599 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:54 #18600 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:54 #18601 [Verbose] > │ ### ^/                                                                       │

00:02:54 #18602 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:54 #18603 [Verbose] >

00:02:54 #18604 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:54 #18605 [Verbose] > inl (^/) { x y z } c =

00:02:54 #18606 [Verbose] >     vec (x / c) (y / c) (z / c)

00:02:54 #18607 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-4993-9396-9303a50a35fe\main.spi

00:02:54 #18608 [Verbose] >

00:02:54 #18609 [Verbose] > ╭─[ 214.19ms - stdout ]────────────────────────────────────────────────────────╮

00:02:54 #18610 [Verbose] > │ ()                                                                           │

00:02:54 #18611 [Verbose] > │                                                                              │

00:02:54 #18612 [Verbose] > │                                                                              │

00:02:54 #18613 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:54 #18614 [Verbose] >

00:02:54 #18615 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:54 #18616 [Verbose] > // // test

00:02:54 #18617 [Verbose] >

00:02:54 #18618 [Verbose] > vec 1 2 3 ^/ 5

00:02:54 #18619 [Verbose] > |> _assert_eq (vec 0.2 0.4 0.6)

00:02:54 #18620 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5015-1552-12fd579e7a92\main.spi

00:02:54 #18621 [Verbose] >

00:02:54 #18622 [Verbose] > ╭─[ 253.63ms - stdout ]────────────────────────────────────────────────────────╮

00:02:54 #18623 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:54 #18624 [Verbose] > │     let v0 : string = $"%A{struct (0.2, 0.4, 0.6)}"                          │

00:02:54 #18625 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:54 #18626 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (0.2, 0.4, 0.6)} /      │

00:02:54 #18627 [Verbose] > │ expected: %A{struct (0.2, 0.4, 0.6)}"                                        │

00:02:54 #18628 [Verbose] > │     ()                                                                       │

00:02:54 #18629 [Verbose] > │ method0()                                                                    │

00:02:54 #18630 [Verbose] > │                                                                              │

00:02:54 #18631 [Verbose] > │ struct (0.2, 0.4, 0.6)                                                       │

00:02:54 #18632 [Verbose] > │                                                                              │

00:02:54 #18633 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:54 #18634 [Verbose] >

00:02:54 #18635 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:54 #18636 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:54 #18637 [Verbose] > │ ### negate_vec                                                               │

00:02:54 #18638 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:54 #18639 [Verbose] >

00:02:54 #18640 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:54 #18641 [Verbose] > inl negate_vec v =

00:02:54 #18642 [Verbose] >     v ^* -1

00:02:54 #18643 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5041-4195-4e05acab6502\main.spi

00:02:55 #18644 [Verbose] >

00:02:55 #18645 [Verbose] > ╭─[ 219.29ms - stdout ]────────────────────────────────────────────────────────╮

00:02:55 #18646 [Verbose] > │ ()                                                                           │

00:02:55 #18647 [Verbose] > │                                                                              │

00:02:55 #18648 [Verbose] > │                                                                              │

00:02:55 #18649 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:55 #18650 [Verbose] >

00:02:55 #18651 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:55 #18652 [Verbose] > // // test

00:02:55 #18653 [Verbose] >

00:02:55 #18654 [Verbose] > vec 1 2 3

00:02:55 #18655 [Verbose] > |> negate_vec

00:02:55 #18656 [Verbose] > |> _assert_eq (vec -1 -2 -3)

00:02:55 #18657 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5064-6411-64c3216ea828\main.spi

00:02:55 #18658 [Verbose] >

00:02:55 #18659 [Verbose] > ╭─[ 347.22ms - stdout ]────────────────────────────────────────────────────────╮

00:02:55 #18660 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:55 #18661 [Verbose] > │     let v0 : string = $"%A{struct (-1.0, -2.0, -3.0)}"                       │

00:02:55 #18662 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:55 #18663 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (-1.0, -2.0, -3.0)} /   │

00:02:55 #18664 [Verbose] > │ expected: %A{struct (-1.0, -2.0, -3.0)}"                                     │

00:02:55 #18665 [Verbose] > │     ()                                                                       │

00:02:55 #18666 [Verbose] > │ method0()                                                                    │

00:02:55 #18667 [Verbose] > │                                                                              │

00:02:55 #18668 [Verbose] > │ struct (-1.0, -2.0, -3.0)                                                    │

00:02:55 #18669 [Verbose] > │                                                                              │

00:02:55 #18670 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:55 #18671 [Verbose] >

00:02:55 #18672 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:55 #18673 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:55 #18674 [Verbose] > │ ### ^-^                                                                      │

00:02:55 #18675 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:55 #18676 [Verbose] >

00:02:55 #18677 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:55 #18678 [Verbose] > inl (^-^) a b =

00:02:55 #18679 [Verbose] >     a ^+^ (negate_vec b)

00:02:55 #18680 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5099-9967-94cfe87d1fc0\main.spi

00:02:55 #18681 [Verbose] >

00:02:55 #18682 [Verbose] > ╭─[ 252.19ms - stdout ]────────────────────────────────────────────────────────╮

00:02:55 #18683 [Verbose] > │ ()                                                                           │

00:02:55 #18684 [Verbose] > │                                                                              │

00:02:55 #18685 [Verbose] > │                                                                              │

00:02:55 #18686 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:55 #18687 [Verbose] >

00:02:55 #18688 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:55 #18689 [Verbose] > // // test

00:02:55 #18690 [Verbose] >

00:02:55 #18691 [Verbose] > vec 1 2 3 ^-^ vec 4 5 6

00:02:55 #18692 [Verbose] > |> _assert_eq (vec -3 -3 -3)

00:02:55 #18693 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5125-2523-276a0395e837\main.spi

00:02:55 #18694 [Verbose] >

00:02:55 #18695 [Verbose] > ╭─[ 235.24ms - stdout ]────────────────────────────────────────────────────────╮

00:02:55 #18696 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:55 #18697 [Verbose] > │     let v0 : string = $"%A{struct (-3.0, -3.0, -3.0)}"                       │

00:02:55 #18698 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:55 #18699 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (-3.0, -3.0, -3.0)} /   │

00:02:55 #18700 [Verbose] > │ expected: %A{struct (-3.0, -3.0, -3.0)}"                                     │

00:02:55 #18701 [Verbose] > │     ()                                                                       │

00:02:55 #18702 [Verbose] > │ method0()                                                                    │

00:02:55 #18703 [Verbose] > │                                                                              │

00:02:55 #18704 [Verbose] > │ struct (-3.0, -3.0, -3.0)                                                    │

00:02:55 #18705 [Verbose] > │                                                                              │

00:02:55 #18706 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:55 #18707 [Verbose] >

00:02:55 #18708 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:55 #18709 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:55 #18710 [Verbose] > │ ### <.>                                                                      │

00:02:55 #18711 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:55 #18712 [Verbose] >

00:02:55 #18713 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:55 #18714 [Verbose] > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =

00:02:55 #18715 [Verbose] >     ax * bx + ay * by + az * bz

00:02:56 #18716 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5149-4921-4288e9321547\main.spi

00:02:56 #18717 [Verbose] >

00:02:56 #18718 [Verbose] > ╭─[ 223.15ms - stdout ]────────────────────────────────────────────────────────╮

00:02:56 #18719 [Verbose] > │ ()                                                                           │

00:02:56 #18720 [Verbose] > │                                                                              │

00:02:56 #18721 [Verbose] > │                                                                              │

00:02:56 #18722 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:56 #18723 [Verbose] >

00:02:56 #18724 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:56 #18725 [Verbose] > // // test

00:02:56 #18726 [Verbose] >

00:02:56 #18727 [Verbose] > vec 1 2 3 <.> vec 4 5 6

00:02:56 #18728 [Verbose] > |> _assert_eq 32

00:02:56 #18729 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5171-7179-79405de694fe\main.spi

00:02:56 #18730 [Verbose] >

00:02:56 #18731 [Verbose] > ╭─[ 270.48ms - stdout ]────────────────────────────────────────────────────────╮

00:02:56 #18732 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:56 #18733 [Verbose] > │     let v0 : string = $"%A{32.0}"                                            │

00:02:56 #18734 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:56 #18735 [Verbose] > │     let v1 : string = $"__expect / actual: %A{32.0} / expected: %A{32.0}"    │

00:02:56 #18736 [Verbose] > │     ()                                                                       │

00:02:56 #18737 [Verbose] > │ method0()                                                                    │

00:02:56 #18738 [Verbose] > │                                                                              │

00:02:56 #18739 [Verbose] > │ 32.0                                                                         │

00:02:56 #18740 [Verbose] > │                                                                              │

00:02:56 #18741 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:56 #18742 [Verbose] >

00:02:56 #18743 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:56 #18744 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:56 #18745 [Verbose] > │ ### \>\<                                                                     │

00:02:56 #18746 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:56 #18747 [Verbose] >

00:02:56 #18748 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:56 #18749 [Verbose] > inl (><) (a : vec) (b : vec) =

00:02:56 #18750 [Verbose] >     vec

00:02:56 #18751 [Verbose] >         (a.y * b.z - a.z * b.y)

00:02:56 #18752 [Verbose] >         (a.z * b.x - a.x * b.z)

00:02:56 #18753 [Verbose] >         (a.x * b.y - a.y * b.x)

00:02:56 #18754 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5199-9982-9be5c91651a8\main.spi

00:02:56 #18755 [Verbose] >

00:02:56 #18756 [Verbose] > ╭─[ 299.23ms - stdout ]────────────────────────────────────────────────────────╮

00:02:56 #18757 [Verbose] > │ ()                                                                           │

00:02:56 #18758 [Verbose] > │                                                                              │

00:02:56 #18759 [Verbose] > │                                                                              │

00:02:56 #18760 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:56 #18761 [Verbose] >

00:02:56 #18762 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:56 #18763 [Verbose] > // // test

00:02:56 #18764 [Verbose] >

00:02:56 #18765 [Verbose] > vec 1 2 3 >< vec 4 5 6

00:02:56 #18766 [Verbose] > |> _assert_eq (vec -3 6 -3)

00:02:56 #18767 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5230-3001-319b2a05de82\main.spi

00:02:56 #18768 [Verbose] >

00:02:56 #18769 [Verbose] > ╭─[ 222.29ms - stdout ]────────────────────────────────────────────────────────╮

00:02:56 #18770 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:56 #18771 [Verbose] > │     let v0 : string = $"%A{struct (-3.0, 6.0, -3.0)}"                        │

00:02:56 #18772 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:56 #18773 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (-3.0, 6.0, -3.0)} /    │

00:02:56 #18774 [Verbose] > │ expected: %A{struct (-3.0, 6.0, -3.0)}"                                      │

00:02:56 #18775 [Verbose] > │     ()                                                                       │

00:02:56 #18776 [Verbose] > │ method0()                                                                    │

00:02:56 #18777 [Verbose] > │                                                                              │

00:02:56 #18778 [Verbose] > │ struct (-3.0, 6.0, -3.0)                                                     │

00:02:56 #18779 [Verbose] > │                                                                              │

00:02:56 #18780 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:56 #18781 [Verbose] >

00:02:56 #18782 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:56 #18783 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:56 #18784 [Verbose] > │ ### magnitude                                                                │

00:02:56 #18785 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:56 #18786 [Verbose] >

00:02:56 #18787 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:56 #18788 [Verbose] > inl magnitude v =

00:02:56 #18789 [Verbose] >     v <.> v |> sqrt

00:02:57 #18790 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5252-5287-51638e5b4dce\main.spi

00:02:57 #18791 [Verbose] >

00:02:57 #18792 [Verbose] > ╭─[ 236.21ms - stdout ]────────────────────────────────────────────────────────╮

00:02:57 #18793 [Verbose] > │ ()                                                                           │

00:02:57 #18794 [Verbose] > │                                                                              │

00:02:57 #18795 [Verbose] > │                                                                              │

00:02:57 #18796 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:57 #18797 [Verbose] >

00:02:57 #18798 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:57 #18799 [Verbose] > // // test

00:02:57 #18800 [Verbose] >

00:02:57 #18801 [Verbose] > vec 1 2 3

00:02:57 #18802 [Verbose] > |> magnitude

00:02:57 #18803 [Verbose] > |> _assert_approx_eq None 3.7416573867739413

00:02:57 #18804 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5276-7681-76d9b98ace00\main.spi

00:02:57 #18805 [Verbose] >

00:02:57 #18806 [Verbose] > ╭─[ 305.04ms - stdout ]────────────────────────────────────────────────────────╮

00:02:57 #18807 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:57 #18808 [Verbose] > │     let v0 : string = $"%A{3.7416573867739413}"                              │

00:02:57 #18809 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:57 #18810 [Verbose] > │     let v1 : string = $"__expect / actual: %A{3.7416573867739413} /          │

00:02:57 #18811 [Verbose] > │ expected: %A{3.7416573867739413}"                                            │

00:02:57 #18812 [Verbose] > │     ()                                                                       │

00:02:57 #18813 [Verbose] > │ method0()                                                                    │

00:02:57 #18814 [Verbose] > │                                                                              │

00:02:57 #18815 [Verbose] > │ 3.741657387                                                                  │

00:02:57 #18816 [Verbose] > │                                                                              │

00:02:57 #18817 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:57 #18818 [Verbose] >

00:02:57 #18819 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:57 #18820 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:57 #18821 [Verbose] > │ ### v1                                                                       │

00:02:57 #18822 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:57 #18823 [Verbose] >

00:02:57 #18824 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:57 #18825 [Verbose] > inl v1 t =

00:02:57 #18826 [Verbose] >     2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat

00:02:57 #18827 [Verbose] > ()))

00:02:57 #18828 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5307-0797-0a4320c58ffa\main.spi

00:02:57 #18829 [Verbose] >

00:02:57 #18830 [Verbose] > ╭─[ 262.39ms - stdout ]────────────────────────────────────────────────────────╮

00:02:57 #18831 [Verbose] > │ ()                                                                           │

00:02:57 #18832 [Verbose] > │                                                                              │

00:02:57 #18833 [Verbose] > │                                                                              │

00:02:57 #18834 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:57 #18835 [Verbose] >

00:02:57 #18836 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:57 #18837 [Verbose] > // // test

00:02:57 #18838 [Verbose] >

00:02:57 #18839 [Verbose] > v1 1

00:02:57 #18840 [Verbose] > |> _assert_eq (vec 2 6 6)

00:02:57 #18841 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5334-3446-3d7445cf7e05\main.spi

00:02:58 #18842 [Verbose] >

00:02:58 #18843 [Verbose] > ╭─[ 595.42ms - stdout ]────────────────────────────────────────────────────────╮

00:02:58 #18844 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:58 #18845 [Verbose] > │     let v0 : string = $"%A{struct (2.0, 6.0, 6.0)}"                          │

00:02:58 #18846 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:58 #18847 [Verbose] > │     let v1 : string = $"__expect / actual: %A{struct (2.0, 6.0, 6.0)} /      │

00:02:58 #18848 [Verbose] > │ expected: %A{struct (2.0, 6.0, 6.0)}"                                        │

00:02:58 #18849 [Verbose] > │     ()                                                                       │

00:02:58 #18850 [Verbose] > │ method0()                                                                    │

00:02:58 #18851 [Verbose] > │                                                                              │

00:02:58 #18852 [Verbose] > │ struct (2.0, 6.0, 6.0)                                                       │

00:02:58 #18853 [Verbose] > │                                                                              │

00:02:58 #18854 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:58 #18855 [Verbose] >

00:02:58 #18856 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:58 #18857 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:58 #18858 [Verbose] > │ ### vec_derivative                                                           │

00:02:58 #18859 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:58 #18860 [Verbose] >

00:02:58 #18861 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:58 #18862 [Verbose] > type vec_derivative = (f64 -> vec) -> f64 -> vec

00:02:58 #18863 [Verbose] >

00:02:58 #18864 [Verbose] > inl vec_derivative dt : vec_derivative =

00:02:58 #18865 [Verbose] >     fun v t =>

00:02:58 #18866 [Verbose] >         (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt

00:02:58 #18867 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5394-9458-97c7f7f5521b\main.spi

00:02:58 #18868 [Verbose] >

00:02:58 #18869 [Verbose] > ╭─[ 192.30ms - stdout ]────────────────────────────────────────────────────────╮

00:02:58 #18870 [Verbose] > │ ()                                                                           │

00:02:58 #18871 [Verbose] > │                                                                              │

00:02:58 #18872 [Verbose] > │                                                                              │

00:02:58 #18873 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:58 #18874 [Verbose] >

00:02:58 #18875 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:58 #18876 [Verbose] > // // test

00:02:58 #18877 [Verbose] >

00:02:58 #18878 [Verbose] > vec_derivative 0.01 v1 3 .x

00:02:58 #18879 [Verbose] > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)

00:02:58 #18880 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5414-1419-1ef4e8e3df02\main.spi

00:02:58 #18881 [Verbose] >

00:02:58 #18882 [Verbose] > ╭─[ 253.74ms - stdout ]────────────────────────────────────────────────────────╮

00:02:58 #18883 [Verbose] > │ let rec method0 () : unit =                                                  │

00:02:58 #18884 [Verbose] > │     let v0 : string = $"%A{11.999999999999744}"                              │

00:02:58 #18885 [Verbose] > │     System.Console.WriteLine v0                                              │

00:02:58 #18886 [Verbose] > │     let v1 : string = $"__expect / actual: %A{11.999999999999744} /          │

00:02:58 #18887 [Verbose] > │ expected: %A{11.999999999999744}"                                            │

00:02:58 #18888 [Verbose] > │     ()                                                                       │

00:02:58 #18889 [Verbose] > │ method0()                                                                    │

00:02:58 #18890 [Verbose] > │                                                                              │

00:02:58 #18891 [Verbose] > │ 12.0                                                                         │

00:02:58 #18892 [Verbose] > │                                                                              │

00:02:58 #18893 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:58 #18894 [Verbose] >

00:02:58 #18895 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:58 #18896 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:58 #18897 [Verbose] > │ ## states_ps                                                                 │

00:02:58 #18898 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:58 #18899 [Verbose] >

00:02:58 #18900 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:58 #18901 [Verbose] > nominal particle_state =

00:02:58 #18902 [Verbose] >     {

00:02:58 #18903 [Verbose] >         mass : f64

00:02:58 #18904 [Verbose] >         charge : f64

00:02:58 #18905 [Verbose] >         time : f64

00:02:58 #18906 [Verbose] >         pos_vec : vec

00:02:58 #18907 [Verbose] >         velocity : vec

00:02:58 #18908 [Verbose] >     }

00:02:58 #18909 [Verbose] >

00:02:58 #18910 [Verbose] > inl default_particle_state () : particle_state =

00:02:58 #18911 [Verbose] >     particle_state {

00:02:58 #18912 [Verbose] >         mass = 1

00:02:58 #18913 [Verbose] >         charge = 0

00:02:58 #18914 [Verbose] >         time = 0

00:02:58 #18915 [Verbose] >         pos_vec = zero_vec ()

00:02:58 #18916 [Verbose] >         velocity = zero_vec ()

00:02:58 #18917 [Verbose] >     }

00:02:58 #18918 [Verbose] >

00:02:58 #18919 [Verbose] > type one_body_force = particle_state -> vec

00:02:58 #18920 [Verbose] >

00:02:58 #18921 [Verbose] > nominal d_particle_state =

00:02:58 #18922 [Verbose] >     {

00:02:58 #18923 [Verbose] >         dmdt : f64

00:02:58 #18924 [Verbose] >         dqdt : f64

00:02:58 #18925 [Verbose] >         dtdt : f64

00:02:58 #18926 [Verbose] >         drdt : vec

00:02:58 #18927 [Verbose] >         dvdt : vec

00:02:58 #18928 [Verbose] >     }

00:02:58 #18929 [Verbose] >

00:02:58 #18930 [Verbose] > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :

00:02:58 #18931 [Verbose] > d_particle_state =

00:02:58 #18932 [Verbose] >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec

00:02:58 #18933 [Verbose] >     d_particle_state {

00:02:58 #18934 [Verbose] >         dmdt = 0

00:02:58 #18935 [Verbose] >         dqdt = 0

00:02:58 #18936 [Verbose] >         dtdt = 1

00:02:58 #18937 [Verbose] >         drdt = st.velocity

00:02:58 #18938 [Verbose] >         dvdt = f_net ^/ st.mass

00:02:58 #18939 [Verbose] >     }

00:02:58 #18940 [Verbose] >

00:02:58 #18941 [Verbose] > inl earth_surface_gravity (st : particle_state) =

00:02:58 #18942 [Verbose] >     inl g = 9.80665

00:02:58 #18943 [Verbose] >     -st.mass * g *^ k_hat ()

00:02:58 #18944 [Verbose] >

00:02:58 #18945 [Verbose] > inl air_resistance drag rho area (st : particle_state) =

00:02:58 #18946 [Verbose] >     -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity

00:02:58 #18947 [Verbose] >

00:02:58 #18948 [Verbose] > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)

00:02:58 #18949 [Verbose] > (particle_state st) =

00:02:58 #18950 [Verbose] >     inl dst : d_particle_state = deriv (particle_state st)

00:02:58 #18951 [Verbose] >     inl v' = st.velocity ^+^ dst.dvdt ^* dt

00:02:58 #18952 [Verbose] >     particle_state { st with

00:02:58 #18953 [Verbose] >         time = st.time + dt

00:02:58 #18954 [Verbose] >         pos_vec = st.pos_vec ^+^ v' ^* dt

00:02:58 #18955 [Verbose] >         velocity = st.velocity ^+^ dst.dvdt ^* dt

00:02:58 #18956 [Verbose] >     }

00:02:58 #18957 [Verbose] >

00:02:58 #18958 [Verbose] > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :

00:02:58 #18959 [Verbose] > d_particle_state) =>

00:02:58 #18960 [Verbose] >     d_particle_state {

00:02:58 #18961 [Verbose] >         dmdt = dps.dmdt + dps'.dmdt

00:02:58 #18962 [Verbose] >         dqdt = dps.dqdt + dps'.dqdt

00:02:58 #18963 [Verbose] >         dtdt = dps.dtdt + dps'.dtdt

00:02:58 #18964 [Verbose] >         drdt = dps.drdt ^+^ dps'.drdt

00:02:58 #18965 [Verbose] >         dvdt = dps.dvdt ^+^ dps'.dvdt

00:02:58 #18966 [Verbose] >     }

00:02:58 #18967 [Verbose] >

00:02:58 #18968 [Verbose] > instance scale d_particle_state = fun w (dps : d_particle_state) =>

00:02:58 #18969 [Verbose] >     d_particle_state {

00:02:58 #18970 [Verbose] >         dmdt = w * dps.dmdt

00:02:58 #18971 [Verbose] >         dqdt = w * dps.dqdt

00:02:58 #18972 [Verbose] >         dtdt = w * dps.dtdt

00:02:58 #18973 [Verbose] >         drdt = w *^ dps.drdt

00:02:58 #18974 [Verbose] >         dvdt = w *^ dps.dvdt

00:02:58 #18975 [Verbose] >     }

00:02:58 #18976 [Verbose] >

00:02:58 #18977 [Verbose] > instance shift particle_state = fun dt dps (particle_state st) =>

00:02:58 #18978 [Verbose] >     inl (d_particle_state dps) =

00:02:58 #18979 [Verbose] >         real

00:02:58 #18980 [Verbose] >             match dps with

00:02:58 #18981 [Verbose] >             | d_particle_state _ => dps

00:02:58 #18982 [Verbose] >     particle_state { st with

00:02:58 #18983 [Verbose] >         time = st.time + dps.dtdt * dt

00:02:58 #18984 [Verbose] >         pos_vec = st.pos_vec ^+^ dps.drdt ^* dt

00:02:58 #18985 [Verbose] >         velocity = st.velocity ^+^ dps.dvdt ^* dt

00:02:58 #18986 [Verbose] >     }

00:02:58 #18987 [Verbose] >

00:02:58 #18988 [Verbose] > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->

00:02:58 #18989 [Verbose] > _ -> i32 -> particle_state =

00:02:58 #18990 [Verbose] >     newton_second_ps >> method >> seq.iterate_

00:02:58 #18991 [Verbose] >

00:02:58 #18992 [Verbose] > inl z_ge0 sts =

00:02:58 #18993 [Verbose] >     sts

00:02:58 #18994 [Verbose] >     |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)

00:02:58 #18995 [Verbose] >

00:02:58 #18996 [Verbose] > inl trajectory sts =

00:02:58 #18997 [Verbose] >     sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)

00:02:58 #18998 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5440-4029-43453c781f1e\main.spi

00:02:59 #18999 [Verbose] >

00:02:59 #19000 [Verbose] > ╭─[ 193.93ms - stdout ]────────────────────────────────────────────────────────╮

00:02:59 #19001 [Verbose] > │ ()                                                                           │

00:02:59 #19002 [Verbose] > │                                                                              │

00:02:59 #19003 [Verbose] > │                                                                              │

00:02:59 #19004 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:59 #19005 [Verbose] >

00:02:59 #19006 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:59 #19007 [Verbose] > // // test

00:02:59 #19008 [Verbose] >

00:02:59 #19009 [Verbose] > inl update_ps (method : numerical_method particle_state d_particle_state) =

00:02:59 #19010 [Verbose] >     newton_second_ps >> method

00:02:59 #19011 [Verbose] >

00:02:59 #19012 [Verbose] > inl position_ps (method : numerical_method particle_state d_particle_state) fs

00:02:59 #19013 [Verbose] > st t =

00:02:59 #19014 [Verbose] >     inl states : i32 -> particle_state = states_ps method fs st

00:02:59 #19015 [Verbose] >     inl dt = (states 1).time - (states 0).time

00:02:59 #19016 [Verbose] >     inl num_steps = t / dt |> math.round |> abs

00:02:59 #19017 [Verbose] >     inl st1 = solver' method (newton_second_ps fs) st num_steps

00:02:59 #19018 [Verbose] >     st1.pos_vec

00:02:59 #19019 [Verbose] >

00:02:59 #19020 [Verbose] > inl sun_gravity (st : particle_state) : vec =

00:02:59 #19021 [Verbose] >     inl big_g = 0.0000000000667408

00:02:59 #19022 [Verbose] >     inl sun_mass = 1988480000000000000000000000000

00:02:59 #19023 [Verbose] >     -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3

00:02:59 #19024 [Verbose] >

00:02:59 #19025 [Verbose] > inl wind_force v_wind drag rho area (st : particle_state) =

00:02:59 #19026 [Verbose] >     inl v_rel = st.velocity ^-^ v_wind

00:02:59 #19027 [Verbose] >     -0.5 * drag * rho * area * magnitude v_rel *^ v_rel

00:02:59 #19028 [Verbose] >

00:02:59 #19029 [Verbose] > inl rock_state () =

00:02:59 #19030 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:02:59 #19031 [Verbose] >     particle_state { default_particle_state' with

00:02:59 #19032 [Verbose] >         mass = 2

00:02:59 #19033 [Verbose] >         velocity = vec 3 0 4

00:02:59 #19034 [Verbose] >     }

00:02:59 #19035 [Verbose] >

00:02:59 #19036 [Verbose] > inl halley_update dt =

00:02:59 #19037 [Verbose] >     update_ps (euler_cromer_ps dt) [[ sun_gravity ]]

00:02:59 #19038 [Verbose] >

00:02:59 #19039 [Verbose] > inl halley_initial () =

00:02:59 #19040 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:02:59 #19041 [Verbose] >     particle_state { default_particle_state' with

00:02:59 #19042 [Verbose] >         mass = 220000000000000

00:02:59 #19043 [Verbose] >         pos_vec = 87660000000 *^ i_hat ()

00:02:59 #19044 [Verbose] >         velocity = 54569 *^ j_hat ()

00:02:59 #19045 [Verbose] >     }

00:02:59 #19046 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5460-6001-67edd7bc13a5\main.spi

00:02:59 #19047 [Verbose] >

00:02:59 #19048 [Verbose] > ╭─[ 273.07ms - stdout ]────────────────────────────────────────────────────────╮

00:02:59 #19049 [Verbose] > │ ()                                                                           │

00:02:59 #19050 [Verbose] > │                                                                              │

00:02:59 #19051 [Verbose] > │                                                                              │

00:02:59 #19052 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:59 #19053 [Verbose] >

00:02:59 #19054 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:59 #19055 [Verbose] > // // test

00:02:59 #19056 [Verbose] >

00:02:59 #19057 [Verbose] > inl baseball_forces () =

00:02:59 #19058 [Verbose] >     inl area = pi * (0.074 / 2) ** 2

00:02:59 #19059 [Verbose] >     [[

00:02:59 #19060 [Verbose] >         earth_surface_gravity

00:02:59 #19061 [Verbose] >         air_resistance 0.3 1.225 area

00:02:59 #19062 [Verbose] >     ]]

00:02:59 #19063 [Verbose] >

00:02:59 #19064 [Verbose] > inl baseball_trajectory dt v0 theta_deg =

00:02:59 #19065 [Verbose] >     inl theta_rad = theta_deg * pi / 180

00:02:59 #19066 [Verbose] >     inl vy0 = v0 * cos theta_rad

00:02:59 #19067 [Verbose] >     inl vz0 = v0 * sin theta_rad

00:02:59 #19068 [Verbose] >     inl initial_state =

00:02:59 #19069 [Verbose] >         particle_state {

00:02:59 #19070 [Verbose] >             mass = 0.145

00:02:59 #19071 [Verbose] >             charge = 0

00:02:59 #19072 [Verbose] >             time = 0

00:02:59 #19073 [Verbose] >             pos_vec = zero_vec ()

00:02:59 #19074 [Verbose] >             velocity = vec 0 vy0 vz0

00:02:59 #19075 [Verbose] >         }

00:02:59 #19076 [Verbose] >     states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state

00:02:59 #19077 [Verbose] >     >> Some

00:02:59 #19078 [Verbose] >     |> z_ge0

00:02:59 #19079 [Verbose] >     |> trajectory

00:02:59 #19080 [Verbose] >

00:02:59 #19081 [Verbose] > inl baseball_range dt v0 theta_deg =

00:02:59 #19082 [Verbose] >     baseball_trajectory dt v0 theta_deg

00:02:59 #19083 [Verbose] >     |> listm.fold (fun _ (y, _) => y) 0

00:02:59 #19084 [Verbose] >

00:02:59 #19085 [Verbose] > inl x : a _ f64 = am'.init_series 10 80 1

00:02:59 #19086 [Verbose] > inl y = x |> am.map (baseball_range 0.01 45)

00:02:59 #19087 [Verbose] > "range for a baseball hit at 45 m/s",

00:02:59 #19088 [Verbose] > "angle above horizontal (degrees)",

00:02:59 #19089 [Verbose] > "",

00:02:59 #19090 [Verbose] > ;[[ "horizontal range (m)", x, y ]]

00:02:59 #19091 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5487-8743-8c53008ad4c4\main.spi

00:03:00 #19092 [Verbose] >

00:03:00 #19093 [Verbose] > ╭─[ 1.08s - return value ]─────────────────────────────────────────────────────╮

00:03:00 #19094 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:03:00 #19095 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:00 #19096 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:00 #19097 [Verbose] > │ stroke="none"/>                                                              │

00:03:00 #19098 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:00 #19099 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:00 #19100 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:00 #19101 [Verbose] > │ range for a baseball hit at 45 m/s                                           │

00:03:00 #19102 [Verbose] > │ </text>                                                                      │

00:03:00 #19103 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │

00:03:00 #19104 [Verbose] > │ y2="75"/>                                                                    │

00:03:00 #19105 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │

00:03:00 #19106 [Verbose] > │ y2="75"/>                                                                    │

00:03:00 #19107 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:00 #19108 [Verbose] > │ y2="75"/>                                                                    │

00:03:00 #19109 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │

00:03:00 #19110 [Verbose] > │ y2="75"/>                                                                    │

00:03:00 #19111 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="...                         │

00:03:00 #19112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:00 #19113 [Verbose] >

00:03:00 #19114 [Verbose] > ╭─[ 1.09s - stdout ]───────────────────────────────────────────────────────────╮

00:03:00 #19115 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:03:00 #19116 [Verbose] > │ and UH0 =                                                                    │

00:03:00 #19117 [Verbose] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:03:00 #19118 [Verbose] > │ * float * UH0                                                                │

00:03:00 #19119 [Verbose] > │     | UH0_1                                                                  │

00:03:00 #19120 [Verbose] > │ and UH1 =                                                                    │

00:03:00 #19121 [Verbose] > │     | UH1_0 of float * float * UH1                                           │

00:03:00 #19122 [Verbose] > │     | UH1_1                                                                  │

00:03:00 #19123 [Verbose] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:03:00 #19124 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:03:00 #19125 [Verbose] > │     let v2 : bool = v1 < 71                                                  │

00:03:00 #19126 [Verbose] > │     v2                                                                       │

00:03:00 #19127 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:03:00 #19128 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:03:00 #19129 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:03:00 #19130 [Verbose] > │     v3                                                                       │

00:03:00 #19131 [Verbose] > │ and method4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5  │

00:03:00 #19132 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float *   │

00:03:00 #19133 [Verbose] > │ float * float * float * float * float * float * float * float) =             │

00:03:00 #19134 [Verbose] > │     let v10 : bool = v9 <= 0                                                 │

00:03:00 #19135 [Verbose] > │     if v10 then                                                              │

00:03:00 #19136 [Verbose] > │         struct (v0, v1, v2, v3, v4, v5, v6, v7, v8)                          │

00:03:00 #19137 [Verbose] > │     else                                                                     │

00:03:00 #19138 [Verbose] > │         let v11 : float = v6 * v6                                            │

00:03:00 #19139 [Verbose] > │         let v12 : float = v7 * v7                                            │

00:03:00 #19140 [Verbose] > │         let v13 : float = v11 + v12                                          │

00:03:00 #19141 [Verbose] > │         let v14 : float = v8 * v8                                            │

00:03:00 #19142 [Verbose] > │         let v15 : float = v13 + v14                                          │

00:03:00 #19143 [Verbose] > │         let v16 : float = sqrt v15                                           │

00:03:00 #19144 [Verbose] > │         let v17 : float = -0.0007902794129829633 * v16                       │

00:03:00 #19145 [Verbose] > │         let v18 : float = v17 * v6                                           │

00:03:00 #19146 [Verbose] > │         let v19 : float = v17 * v7                                           │

00:03:00 #19147 [Verbose] > │         let v20 : float = v17 * v8                                           │

00:03:00 #19148 [Verbose] > │         let v21 : float =  -v1                                               │

00:03:00 #19149 [Verbose] > │         let v22 : float = v21 * 9.80665                                      │

00:03:00 #19150 [Verbose] > │         let v23 : float = v22 * 0.0                                          │

00:03:00 #19151 [Verbose] > │         let v24 : float = v23 + v18                                          │

00:03:00 #19152 [Verbose] > │         let v25 : float = v23 + v19                                          │

00:03:00 #19153 [Verbose] > │         let v26 : float = v22 + v20                                          │

00:03:00 #19154 [Verbose] > │         let v27 : float = v24 / v1                                           │

00:03:00 #19155 [Verbose] > │         let v28 : float = v25 / v1                                           │

00:03:00 #19156 [Verbose] > │         let v29 : float = v26 / v1                                           │

00:03:00 #19157 [Verbose] > │         let v30 : float = 0.01 * v27                                         │

00:03:00 #19158 [Verbose] > │         let v31 : float = 0.01 * v28                                         │

00:03:00 #19159 [Verbose] > │         let v32 : float = 0.01 * v29                                         │

00:03:00 #19160 [Verbose] > │         let v33 : float = v6 + v30                                           │

00:03:00 #19161 [Verbose] > │         let v34 : float = v7 + v31                                           │

00:03:00 #19162 [Verbose] > │         let v35 : float = v8 + v32                                           │

00:03:00 #19163 [Verbose] > │         let v36 : float = v5 + 0.01                                          │

00:03:00 #19164 [Verbose] > │         let v37 : float = 0.01 * v33                                         │

00:03:00 #19165 [Verbose] > │         let v38 : float = 0.01 * v34                                         │

00:03:00 #19166 [Verbose] > │         let v39 : float = 0.01 * v35                                         │

00:03:00 #19167 [Verbose] > │         let v40 : float = v2 + v37                                           │

00:03:00 #19168 [Verbose] > │         let v41 : float = v3 + v38                                           │

00:03:00 #19169 [Verbose] > │         let v42 : float = v4 + v39                                           │

00:03:00 #19170 [Verbose] > │         let v43 : int32 = v9 - 1                                             │

00:03:00 #19171 [Verbose] > │         method4(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43)              │

00:03:00 #19172 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:03:00 #19173 [Verbose] > │     match v0 with                                                            │

00:03:00 #19174 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:00 #19175 [Verbose] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:03:00 #19176 [Verbose] > │         method5(v11, v12)                                                    │

00:03:00 #19177 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:00 #19178 [Verbose] > │         v1                                                                   │

00:03:00 #19179 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 =           │

00:03:00 #19180 [Verbose] > │     let v4 : float = 0.0                                                     │

00:03:00 #19181 [Verbose] > │     let v5 : float = 0.145                                                   │

00:03:00 #19182 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:00 #19183 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:00 #19184 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:00 #19185 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:00 #19186 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:00 #19187 [Verbose] > │     let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 :    │

00:03:00 #19188 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method4(v4, v5, │

00:03:00 #19189 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3)                                             │

00:03:00 #19190 [Verbose] > │     let v20 : bool = v15 >= 0.0                                              │

00:03:00 #19191 [Verbose] > │     if v20 then                                                              │

00:03:00 #19192 [Verbose] > │         let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19,   │

00:03:00 #19193 [Verbose] > │ v2)                                                                          │

00:03:00 #19194 [Verbose] > │         let v22 : int32 = v3 + 1                                             │

00:03:00 #19195 [Verbose] > │         method3(v0, v1, v21, v22)                                            │

00:03:00 #19196 [Verbose] > │     else                                                                     │

00:03:00 #19197 [Verbose] > │         let v24 : UH0 = UH0_1                                                │

00:03:00 #19198 [Verbose] > │         method5(v2, v24)                                                     │

00:03:00 #19199 [Verbose] > │ and method6 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:00 #19200 [Verbose] > │     match v0 with                                                            │

00:03:00 #19201 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:00 #19202 [Verbose] > │         let v12 : UH1 = method6(v11, v1)                                     │

00:03:00 #19203 [Verbose] > │         UH1_0(v5, v6, v12)                                                   │

00:03:00 #19204 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:00 #19205 [Verbose] > │         v1                                                                   │

00:03:00 #19206 [Verbose] > │ and method7 (v0 : UH1, v1 : float) : float =                                 │

00:03:00 #19207 [Verbose] > │     match v0 with                                                            │

00:03:00 #19208 [Verbose] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:03:00 #19209 [Verbose] > │         method7(v4, v2)                                                      │

00:03:00 #19210 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:00 #19211 [Verbose] > │         v1                                                                   │

00:03:00 #19212 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:03:00 #19213 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:00 #19214 [Verbose] > │     v0                                                                       │

00:03:00 #19215 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:03:00 #19216 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:03:00 #19217 [Verbose] > │     let v0 : (float []) = Array.zeroCreate<float> (71)                       │

00:03:00 #19218 [Verbose] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:03:00 #19219 [Verbose] > │     while method1(v1) do                                                     │

00:03:00 #19220 [Verbose] > │         let v3 : int32 = v1.l0                                               │

00:03:00 #19221 [Verbose] > │         let v4 : float = float v3                                            │

00:03:00 #19222 [Verbose] > │         let v5 : float = 10.0 + v4                                           │

00:03:00 #19223 [Verbose] > │         v0.[int v3] <- v5                                                    │

00:03:00 #19224 [Verbose] > │         let v6 : int32 = v3 + 1                                              │

00:03:00 #19225 [Verbose] > │         v1.l0 <- v6                                                          │

00:03:00 #19226 [Verbose] > │         ()                                                                   │

00:03:00 #19227 [Verbose] > │     let v7 : int32 = v0.Length                                               │

00:03:00 #19228 [Verbose] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:03:00 #19229 [Verbose] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:03:00 #19230 [Verbose] > │     while method2(v7, v9) do                                                 │

00:03:00 #19231 [Verbose] > │         let v11 : int32 = v9.l0                                              │

00:03:00 #19232 [Verbose] > │         let v12 : float = v0.[int v11]                                       │

00:03:00 #19233 [Verbose] > │         let v13 : float = v12 * 3.141592653589793                            │

00:03:00 #19234 [Verbose] > │         let v14 : float = v13 / 180.0                                        │

00:03:00 #19235 [Verbose] > │         let v15 : float = cos v14                                            │

00:03:00 #19236 [Verbose] > │         let v16 : float = 45.0 * v15                                         │

00:03:00 #19237 [Verbose] > │         let v17 : float = sin v14                                            │

00:03:00 #19238 [Verbose] > │         let v18 : float = 45.0 * v17                                         │

00:03:00 #19239 [Verbose] > │         let v19 : UH0 = UH0_1                                                │

00:03:00 #19240 [Verbose] > │         let v20 : int32 = 0                                                  │

00:03:00 #19241 [Verbose] > │         let v21 : UH0 = method3(v16, v18, v19, v20)                          │

00:03:00 #19242 [Verbose] > │         let v22 : UH1 = UH1_1                                                │

00:03:00 #19243 [Verbose] > │         let v23 : UH1 = method6(v21, v22)                                    │

00:03:00 #19244 [Verbose] > │         let v24 : float = 0.0                                                │

00:03:00 #19245 [Verbose] > │         let v25 : float = method7(v23, v24)                                  │

00:03:00 #19246 [Verbose] > │         v8.[int v11] <- v25                                                  │

00:03:00 #19247 [Verbose] > │         let v26 : int32 = v11 + 1                                            │

00:03:00 #19248 [Verbose] > │         v9.l0 <- v26                                                         │

00:03:00 #19249 [Verbose] > │         ()                                                                   │

00:03:00 #19250 [Verbose] > │     let v27 : string = "horizontal range (m)"                                │

00:03:00 #19251 [Verbose] > │     let v28 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:03:00 #19252 [Verbose] > │ (v27, v0, v8)|]                                                              │

00:03:00 #19253 [Verbose] > │     let v29 : (struct (string * (float []) * (float [])) []) = method8(v28)  │

00:03:00 #19254 [Verbose] > │     let v30 : string = "range for a baseball hit at 45 m/s"                  │

00:03:00 #19255 [Verbose] > │     let v31 : string = "angle above horizontal (degrees)"                    │

00:03:00 #19256 [Verbose] > │     let v32 : string = ""                                                    │

00:03:00 #19257 [Verbose] > │     struct (v30, v31, v32, v29)                                              │

00:03:00 #19258 [Verbose] > │ method0()                                                                    │

00:03:00 #19259 [Verbose] > │                                                                              │

00:03:00 #19260 [Verbose] > │                                                                              │

00:03:00 #19261 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:00 #19262 [Verbose] >

00:03:00 #19263 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:00 #19264 [Verbose] > // // test

00:03:00 #19265 [Verbose] >

00:03:00 #19266 [Verbose] > inl best_angle (min, max) =

00:03:00 #19267 [Verbose] >     let rec loop theta_deg (best_range, best_theta_deg) =

00:03:00 #19268 [Verbose] >         if theta_deg > max

00:03:00 #19269 [Verbose] >         then best_range, best_theta_deg

00:03:00 #19270 [Verbose] >         else

00:03:00 #19271 [Verbose] >             inl range = baseball_range 0.01 45 theta_deg

00:03:00 #19272 [Verbose] >             loop

00:03:00 #19273 [Verbose] >                 (theta_deg + 1)

00:03:00 #19274 [Verbose] >                 (if range > best_range

00:03:00 #19275 [Verbose] >                     then range, theta_deg

00:03:00 #19276 [Verbose] >                     else best_range, best_theta_deg)

00:03:00 #19277 [Verbose] >     loop min (0f64, min)

00:03:00 #19278 [Verbose] >

00:03:00 #19279 [Verbose] > best_angle (30f64, 60f64)

00:03:00 #19280 [Verbose] > |> _assert_eq (116.77499158246208, 41)

00:03:00 #19281 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5602-0283-08f715760134\main.spi

00:03:01 #19282 [Verbose] >

00:03:01 #19283 [Verbose] > ╭─[ 601.55ms - stdout ]────────────────────────────────────────────────────────╮

00:03:01 #19284 [Verbose] > │ type UH0 =                                                                   │

00:03:01 #19285 [Verbose] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:03:01 #19286 [Verbose] > │ * float * UH0                                                                │

00:03:01 #19287 [Verbose] > │     | UH0_1                                                                  │

00:03:01 #19288 [Verbose] > │ and UH1 =                                                                    │

00:03:01 #19289 [Verbose] > │     | UH1_0 of float * float * UH1                                           │

00:03:01 #19290 [Verbose] > │     | UH1_1                                                                  │

00:03:01 #19291 [Verbose] > │ let rec method3 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │

00:03:01 #19292 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float  │

00:03:01 #19293 [Verbose] > │ * float * float * float * float * float * float * float * float) =           │

00:03:01 #19294 [Verbose] > │     let v10 : bool = v9 <= 0                                                 │

00:03:01 #19295 [Verbose] > │     if v10 then                                                              │

00:03:01 #19296 [Verbose] > │         struct (v0, v1, v2, v3, v4, v5, v6, v7, v8)                          │

00:03:01 #19297 [Verbose] > │     else                                                                     │

00:03:01 #19298 [Verbose] > │         let v11 : float = v6 * v6                                            │

00:03:01 #19299 [Verbose] > │         let v12 : float = v7 * v7                                            │

00:03:01 #19300 [Verbose] > │         let v13 : float = v11 + v12                                          │

00:03:01 #19301 [Verbose] > │         let v14 : float = v8 * v8                                            │

00:03:01 #19302 [Verbose] > │         let v15 : float = v13 + v14                                          │

00:03:01 #19303 [Verbose] > │         let v16 : float = sqrt v15                                           │

00:03:01 #19304 [Verbose] > │         let v17 : float = -0.0007902794129829633 * v16                       │

00:03:01 #19305 [Verbose] > │         let v18 : float = v17 * v6                                           │

00:03:01 #19306 [Verbose] > │         let v19 : float = v17 * v7                                           │

00:03:01 #19307 [Verbose] > │         let v20 : float = v17 * v8                                           │

00:03:01 #19308 [Verbose] > │         let v21 : float =  -v1                                               │

00:03:01 #19309 [Verbose] > │         let v22 : float = v21 * 9.80665                                      │

00:03:01 #19310 [Verbose] > │         let v23 : float = v22 * 0.0                                          │

00:03:01 #19311 [Verbose] > │         let v24 : float = v23 + v18                                          │

00:03:01 #19312 [Verbose] > │         let v25 : float = v23 + v19                                          │

00:03:01 #19313 [Verbose] > │         let v26 : float = v22 + v20                                          │

00:03:01 #19314 [Verbose] > │         let v27 : float = v24 / v1                                           │

00:03:01 #19315 [Verbose] > │         let v28 : float = v25 / v1                                           │

00:03:01 #19316 [Verbose] > │         let v29 : float = v26 / v1                                           │

00:03:01 #19317 [Verbose] > │         let v30 : float = 0.01 * v27                                         │

00:03:01 #19318 [Verbose] > │         let v31 : float = 0.01 * v28                                         │

00:03:01 #19319 [Verbose] > │         let v32 : float = 0.01 * v29                                         │

00:03:01 #19320 [Verbose] > │         let v33 : float = v6 + v30                                           │

00:03:01 #19321 [Verbose] > │         let v34 : float = v7 + v31                                           │

00:03:01 #19322 [Verbose] > │         let v35 : float = v8 + v32                                           │

00:03:01 #19323 [Verbose] > │         let v36 : float = v5 + 0.01                                          │

00:03:01 #19324 [Verbose] > │         let v37 : float = 0.01 * v33                                         │

00:03:01 #19325 [Verbose] > │         let v38 : float = 0.01 * v34                                         │

00:03:01 #19326 [Verbose] > │         let v39 : float = 0.01 * v35                                         │

00:03:01 #19327 [Verbose] > │         let v40 : float = v2 + v37                                           │

00:03:01 #19328 [Verbose] > │         let v41 : float = v3 + v38                                           │

00:03:01 #19329 [Verbose] > │         let v42 : float = v4 + v39                                           │

00:03:01 #19330 [Verbose] > │         let v43 : int32 = v9 - 1                                             │

00:03:01 #19331 [Verbose] > │         method3(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43)              │

00:03:01 #19332 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:03:01 #19333 [Verbose] > │     match v0 with                                                            │

00:03:01 #19334 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:01 #19335 [Verbose] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:03:01 #19336 [Verbose] > │         method4(v11, v12)                                                    │

00:03:01 #19337 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:01 #19338 [Verbose] > │         v1                                                                   │

00:03:01 #19339 [Verbose] > │ and method2 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 =           │

00:03:01 #19340 [Verbose] > │     let v4 : float = 0.0                                                     │

00:03:01 #19341 [Verbose] > │     let v5 : float = 0.145                                                   │

00:03:01 #19342 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:01 #19343 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:01 #19344 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:01 #19345 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:01 #19346 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:01 #19347 [Verbose] > │     let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 :    │

00:03:01 #19348 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method3(v4, v5, │

00:03:01 #19349 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3)                                             │

00:03:01 #19350 [Verbose] > │     let v20 : bool = v15 >= 0.0                                              │

00:03:01 #19351 [Verbose] > │     if v20 then                                                              │

00:03:01 #19352 [Verbose] > │         let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19,   │

00:03:01 #19353 [Verbose] > │ v2)                                                                          │

00:03:01 #19354 [Verbose] > │         let v22 : int32 = v3 + 1                                             │

00:03:01 #19355 [Verbose] > │         method2(v0, v1, v21, v22)                                            │

00:03:01 #19356 [Verbose] > │     else                                                                     │

00:03:01 #19357 [Verbose] > │         let v24 : UH0 = UH0_1                                                │

00:03:01 #19358 [Verbose] > │         method4(v2, v24)                                                     │

00:03:01 #19359 [Verbose] > │ and method5 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:01 #19360 [Verbose] > │     match v0 with                                                            │

00:03:01 #19361 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:01 #19362 [Verbose] > │         let v12 : UH1 = method5(v11, v1)                                     │

00:03:01 #19363 [Verbose] > │         UH1_0(v5, v6, v12)                                                   │

00:03:01 #19364 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:01 #19365 [Verbose] > │         v1                                                                   │

00:03:01 #19366 [Verbose] > │ and method6 (v0 : UH1, v1 : float) : float =                                 │

00:03:01 #19367 [Verbose] > │     match v0 with                                                            │

00:03:01 #19368 [Verbose] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:03:01 #19369 [Verbose] > │         method6(v4, v2)                                                      │

00:03:01 #19370 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:01 #19371 [Verbose] > │         v1                                                                   │

00:03:01 #19372 [Verbose] > │ and method1 (v0 : float, v1 : float, v2 : float) : struct (float * float) =  │

00:03:01 #19373 [Verbose] > │     let v3 : bool = v0 > 60.0                                                │

00:03:01 #19374 [Verbose] > │     if v3 then                                                               │

00:03:01 #19375 [Verbose] > │         struct (v2, v1)                                                      │

00:03:01 #19376 [Verbose] > │     else                                                                     │

00:03:01 #19377 [Verbose] > │         let v4 : float = v0 * 3.141592653589793                              │

00:03:01 #19378 [Verbose] > │         let v5 : float = v4 / 180.0                                          │

00:03:01 #19379 [Verbose] > │         let v6 : float = cos v5                                              │

00:03:01 #19380 [Verbose] > │         let v7 : float = 45.0 * v6                                           │

00:03:01 #19381 [Verbose] > │         let v8 : float = sin v5                                              │

00:03:01 #19382 [Verbose] > │         let v9 : float = 45.0 * v8                                           │

00:03:01 #19383 [Verbose] > │         let v10 : UH0 = UH0_1                                                │

00:03:01 #19384 [Verbose] > │         let v11 : int32 = 0                                                  │

00:03:01 #19385 [Verbose] > │         let v12 : UH0 = method2(v7, v9, v10, v11)                            │

00:03:01 #19386 [Verbose] > │         let v13 : UH1 = UH1_1                                                │

00:03:01 #19387 [Verbose] > │         let v14 : UH1 = method5(v12, v13)                                    │

00:03:01 #19388 [Verbose] > │         let v15 : float = 0.0                                                │

00:03:01 #19389 [Verbose] > │         let v16 : float = method6(v14, v15)                                  │

00:03:01 #19390 [Verbose] > │         let v17 : float = v0 + 1.0                                           │

00:03:01 #19391 [Verbose] > │         let v18 : bool = v16 > v2                                            │

00:03:01 #19392 [Verbose] > │         let struct (v19 : float, v20 : float) =                              │

00:03:01 #19393 [Verbose] > │             if v18 then                                                      │

00:03:01 #19394 [Verbose] > │                 struct (v16, v0)                                             │

00:03:01 #19395 [Verbose] > │             else                                                             │

00:03:01 #19396 [Verbose] > │                 struct (v2, v1)                                              │

00:03:01 #19397 [Verbose] > │         method1(v17, v20, v19)                                               │

00:03:01 #19398 [Verbose] > │ and method7 (v0 : bool) : bool =                                             │

00:03:01 #19399 [Verbose] > │     v0                                                                       │

00:03:01 #19400 [Verbose] > │ and method0 () : unit =                                                      │

00:03:01 #19401 [Verbose] > │     let v0 : float = 30.0                                                    │

00:03:01 #19402 [Verbose] > │     let v1 : float = 0.0                                                     │

00:03:01 #19403 [Verbose] > │     let v2 : float = 30.0                                                    │

00:03:01 #19404 [Verbose] > │     let struct (v3 : float, v4 : float) = method1(v0, v2, v1)                │

00:03:01 #19405 [Verbose] > │     let v5 : string = $"%A{struct (v3, v4)}"                                 │

00:03:01 #19406 [Verbose] > │     System.Console.WriteLine v5                                              │

00:03:01 #19407 [Verbose] > │     let v6 : bool = v3 = 116.77499158246208                                  │

00:03:01 #19408 [Verbose] > │     let v8 : bool =                                                          │

00:03:01 #19409 [Verbose] > │         if v6 then                                                           │

00:03:01 #19410 [Verbose] > │             let v7 : bool = v4 = 41.0                                        │

00:03:01 #19411 [Verbose] > │             v7                                                               │

00:03:01 #19412 [Verbose] > │         else                                                                 │

00:03:01 #19413 [Verbose] > │             false                                                            │

00:03:01 #19414 [Verbose] > │     let v10 : bool =                                                         │

00:03:01 #19415 [Verbose] > │         if v8 then                                                           │

00:03:01 #19416 [Verbose] > │             true                                                             │

00:03:01 #19417 [Verbose] > │         else                                                                 │

00:03:01 #19418 [Verbose] > │             method7(v8)                                                      │

00:03:01 #19419 [Verbose] > │     let v11 : string = $"__expect / actual: %A{struct (v3, v4)} / expected:  │

00:03:01 #19420 [Verbose] > │ %A{struct (116.77499158246208, 41.0)}"                                       │

00:03:01 #19421 [Verbose] > │     let v12 : bool = v10 = false                                             │

00:03:01 #19422 [Verbose] > │     if v12 then                                                              │

00:03:01 #19423 [Verbose] > │         failwith<unit> v11                                                   │

00:03:01 #19424 [Verbose] > │ method0()                                                                    │

00:03:01 #19425 [Verbose] > │                                                                              │

00:03:01 #19426 [Verbose] > │ struct (116.7749916, 41.0)                                                   │

00:03:01 #19427 [Verbose] > │                                                                              │

00:03:01 #19428 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:01 #19429 [Verbose] >

00:03:01 #19430 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:03:01 #19431 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:03:01 #19432 [Verbose] > │ ## relativity_ps                                                             │

00:03:01 #19433 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:01 #19434 [Verbose] >

00:03:01 #19435 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:01 #19436 [Verbose] > inl relativity_ps fs (st : particle_state) =

00:03:01 #19437 [Verbose] >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec

00:03:01 #19438 [Verbose] >     inl c = 299792458

00:03:01 #19439 [Verbose] >     inl u = st.velocity ^/ c

00:03:01 #19440 [Verbose] >     inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass

00:03:01 #19441 [Verbose] >     d_particle_state {

00:03:01 #19442 [Verbose] >         dmdt = 0

00:03:01 #19443 [Verbose] >         dqdt = 0

00:03:01 #19444 [Verbose] >         dtdt = 1

00:03:01 #19445 [Verbose] >         drdt = st.velocity

00:03:01 #19446 [Verbose] >         dvdt = acc

00:03:01 #19447 [Verbose] >     }

00:03:01 #19448 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5667-6709-6ecd78c25968\main.spi

00:03:01 #19449 [Verbose] >

00:03:01 #19450 [Verbose] > ╭─[ 280.97ms - stdout ]────────────────────────────────────────────────────────╮

00:03:01 #19451 [Verbose] > │ ()                                                                           │

00:03:01 #19452 [Verbose] > │                                                                              │

00:03:01 #19453 [Verbose] > │                                                                              │

00:03:01 #19454 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:01 #19455 [Verbose] >

00:03:01 #19456 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:01 #19457 [Verbose] > // // test

00:03:01 #19458 [Verbose] >

00:03:01 #19459 [Verbose] > inl year = 365.25 * 24 * 60 * 60

00:03:01 #19460 [Verbose] > inl c = 299792458

00:03:01 #19461 [Verbose] > inl ~method = runge_kutta_4 100000

00:03:01 #19462 [Verbose] > inl forces = [[ fun _ => 10 *^ i_hat () ]]

00:03:01 #19463 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()

00:03:01 #19464 [Verbose] > inl initial_state =

00:03:01 #19465 [Verbose] >     particle_state { default_particle_state' with

00:03:01 #19466 [Verbose] >         mass = 1

00:03:01 #19467 [Verbose] >     }

00:03:01 #19468 [Verbose] >

00:03:01 #19469 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state

00:03:01 #19470 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state

00:03:01 #19471 [Verbose] >

00:03:01 #19472 [Verbose] > inl newton_x, newton_y =

00:03:01 #19473 [Verbose] >     newton_states

00:03:01 #19474 [Verbose] >     >> Some

00:03:01 #19475 [Verbose] >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)

00:03:01 #19476 [Verbose] >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)

00:03:01 #19477 [Verbose] >     |> listm'.unzip

00:03:01 #19478 [Verbose] >

00:03:01 #19479 [Verbose] > inl _, relativity_y =

00:03:01 #19480 [Verbose] >     relativity_states

00:03:01 #19481 [Verbose] >     >> Some

00:03:01 #19482 [Verbose] >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)

00:03:01 #19483 [Verbose] >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)

00:03:01 #19484 [Verbose] >     |> listm'.unzip

00:03:01 #19485 [Verbose] >

00:03:01 #19486 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray

00:03:01 #19487 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray

00:03:01 #19488 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray

00:03:01 #19489 [Verbose] >

00:03:01 #19490 [Verbose] > "response to a constant force",

00:03:01 #19491 [Verbose] > "time (years)",

00:03:01 #19492 [Verbose] > "velocity (multiples of c)",

00:03:01 #19493 [Verbose] > ;[[

00:03:01 #19494 [Verbose] >     "newtonian", newton_x, newton_y

00:03:01 #19495 [Verbose] >     "relativistic", newton_x, relativity_y

00:03:01 #19496 [Verbose] > ]]

00:03:01 #19497 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5695-9543-93507d00f766\main.spi

00:03:01 #19498 [Verbose] >

00:03:01 #19499 [Verbose] > ╭─[ 589.60ms - return value ]──────────────────────────────────────────────────╮

00:03:01 #19500 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:03:01 #19501 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:01 #19502 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:01 #19503 [Verbose] > │ stroke="none"/>                                                              │

00:03:01 #19504 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:01 #19505 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:01 #19506 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:01 #19507 [Verbose] > │ response to a constant force                                                 │

00:03:01 #19508 [Verbose] > │ </text>                                                                      │

00:03:01 #19509 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:03:01 #19510 [Verbose] > │ y2="75"/>                                                                    │

00:03:01 #19511 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:01 #19512 [Verbose] > │ y2="75"/>                                                                    │

00:03:01 #19513 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:03:01 #19514 [Verbose] > │ y2="75"/>                                                                    │

00:03:01 #19515 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:03:01 #19516 [Verbose] > │ y2="75"/>                                                                    │

00:03:01 #19517 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=...                   │

00:03:01 #19518 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:01 #19519 [Verbose] >

00:03:01 #19520 [Verbose] > ╭─[ 600.93ms - stdout ]────────────────────────────────────────────────────────╮

00:03:01 #19521 [Verbose] > │ type UH0 =                                                                   │

00:03:01 #19522 [Verbose] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:03:01 #19523 [Verbose] > │ * float * UH0                                                                │

00:03:01 #19524 [Verbose] > │     | UH0_1                                                                  │

00:03:01 #19525 [Verbose] > │ and UH1 =                                                                    │

00:03:01 #19526 [Verbose] > │     | UH1_0 of float * float * UH1                                           │

00:03:01 #19527 [Verbose] > │     | UH1_1                                                                  │

00:03:01 #19528 [Verbose] > │ and UH2 =                                                                    │

00:03:01 #19529 [Verbose] > │     | UH2_0 of float * UH2                                                   │

00:03:01 #19530 [Verbose] > │     | UH2_1                                                                  │

00:03:01 #19531 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float *      │

00:03:01 #19532 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:03:01 #19533 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3  │

00:03:01 #19534 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 :    │

00:03:01 #19535 [Verbose] > │ float) : struct (float * float * float * float * float * float * float *     │

00:03:01 #19536 [Verbose] > │ float * float) =                                                             │

00:03:01 #19537 [Verbose] > │     let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 :    │

00:03:01 #19538 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1,  │

00:03:01 #19539 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9)                                              │

00:03:01 #19540 [Verbose] > │     let v19 : float = v15 * 50000.0                                          │

00:03:01 #19541 [Verbose] > │     let v20 : float = v6 + v19                                               │

00:03:01 #19542 [Verbose] > │     let v21 : float = 50000.0 * v12                                          │

00:03:01 #19543 [Verbose] > │     let v22 : float = 50000.0 * v13                                          │

00:03:01 #19544 [Verbose] > │     let v23 : float = 50000.0 * v14                                          │

00:03:01 #19545 [Verbose] > │     let v24 : float = v3 + v21                                               │

00:03:01 #19546 [Verbose] > │     let v25 : float = v4 + v22                                               │

00:03:01 #19547 [Verbose] > │     let v26 : float = v5 + v23                                               │

00:03:01 #19548 [Verbose] > │     let v27 : float = 50000.0 * v16                                          │

00:03:01 #19549 [Verbose] > │     let v28 : float = 50000.0 * v17                                          │

00:03:01 #19550 [Verbose] > │     let v29 : float = 50000.0 * v18                                          │

00:03:01 #19551 [Verbose] > │     let v30 : float = v7 + v27                                               │

00:03:01 #19552 [Verbose] > │     let v31 : float = v8 + v28                                               │

00:03:01 #19553 [Verbose] > │     let v32 : float = v9 + v29                                               │

00:03:01 #19554 [Verbose] > │     let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 :    │

00:03:01 #19555 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1,  │

00:03:01 #19556 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32)                                       │

00:03:01 #19557 [Verbose] > │     let v42 : float = v38 * 50000.0                                          │

00:03:01 #19558 [Verbose] > │     let v43 : float = v6 + v42                                               │

00:03:01 #19559 [Verbose] > │     let v44 : float = 50000.0 * v35                                          │

00:03:01 #19560 [Verbose] > │     let v45 : float = 50000.0 * v36                                          │

00:03:01 #19561 [Verbose] > │     let v46 : float = 50000.0 * v37                                          │

00:03:01 #19562 [Verbose] > │     let v47 : float = v3 + v44                                               │

00:03:01 #19563 [Verbose] > │     let v48 : float = v4 + v45                                               │

00:03:01 #19564 [Verbose] > │     let v49 : float = v5 + v46                                               │

00:03:01 #19565 [Verbose] > │     let v50 : float = 50000.0 * v39                                          │

00:03:01 #19566 [Verbose] > │     let v51 : float = 50000.0 * v40                                          │

00:03:01 #19567 [Verbose] > │     let v52 : float = 50000.0 * v41                                          │

00:03:01 #19568 [Verbose] > │     let v53 : float = v7 + v50                                               │

00:03:01 #19569 [Verbose] > │     let v54 : float = v8 + v51                                               │

00:03:01 #19570 [Verbose] > │     let v55 : float = v9 + v52                                               │

00:03:01 #19571 [Verbose] > │     let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 :    │

00:03:01 #19572 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1,  │

00:03:02 #19573 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55)                                       │

00:03:02 #19574 [Verbose] > │     let v65 : float = v61 * 100000.0                                         │

00:03:02 #19575 [Verbose] > │     let v66 : float = v6 + v65                                               │

00:03:02 #19576 [Verbose] > │     let v67 : float = 100000.0 * v58                                         │

00:03:02 #19577 [Verbose] > │     let v68 : float = 100000.0 * v59                                         │

00:03:02 #19578 [Verbose] > │     let v69 : float = 100000.0 * v60                                         │

00:03:02 #19579 [Verbose] > │     let v70 : float = v3 + v67                                               │

00:03:02 #19580 [Verbose] > │     let v71 : float = v4 + v68                                               │

00:03:02 #19581 [Verbose] > │     let v72 : float = v5 + v69                                               │

00:03:02 #19582 [Verbose] > │     let v73 : float = 100000.0 * v62                                         │

00:03:02 #19583 [Verbose] > │     let v74 : float = 100000.0 * v63                                         │

00:03:02 #19584 [Verbose] > │     let v75 : float = 100000.0 * v64                                         │

00:03:02 #19585 [Verbose] > │     let v76 : float = v7 + v73                                               │

00:03:02 #19586 [Verbose] > │     let v77 : float = v8 + v74                                               │

00:03:02 #19587 [Verbose] > │     let v78 : float = v9 + v75                                               │

00:03:02 #19588 [Verbose] > │     let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 :    │

00:03:02 #19589 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1,  │

00:03:02 #19590 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78)                                       │

00:03:02 #19591 [Verbose] > │     let v88 : float = v10 + v33                                              │

00:03:02 #19592 [Verbose] > │     let v89 : float = v11 + v34                                              │

00:03:02 #19593 [Verbose] > │     let v90 : float = v15 + v38                                              │

00:03:02 #19594 [Verbose] > │     let v91 : float = v12 + v35                                              │

00:03:02 #19595 [Verbose] > │     let v92 : float = v13 + v36                                              │

00:03:02 #19596 [Verbose] > │     let v93 : float = v14 + v37                                              │

00:03:02 #19597 [Verbose] > │     let v94 : float = v16 + v39                                              │

00:03:02 #19598 [Verbose] > │     let v95 : float = v17 + v40                                              │

00:03:02 #19599 [Verbose] > │     let v96 : float = v18 + v41                                              │

00:03:02 #19600 [Verbose] > │     let v97 : float = v88 + v33                                              │

00:03:02 #19601 [Verbose] > │     let v98 : float = v89 + v34                                              │

00:03:02 #19602 [Verbose] > │     let v99 : float = v90 + v38                                              │

00:03:02 #19603 [Verbose] > │     let v100 : float = v91 + v35                                             │

00:03:02 #19604 [Verbose] > │     let v101 : float = v92 + v36                                             │

00:03:02 #19605 [Verbose] > │     let v102 : float = v93 + v37                                             │

00:03:02 #19606 [Verbose] > │     let v103 : float = v94 + v39                                             │

00:03:02 #19607 [Verbose] > │     let v104 : float = v95 + v40                                             │

00:03:02 #19608 [Verbose] > │     let v105 : float = v96 + v41                                             │

00:03:02 #19609 [Verbose] > │     let v106 : float = v97 + v56                                             │

00:03:02 #19610 [Verbose] > │     let v107 : float = v98 + v57                                             │

00:03:02 #19611 [Verbose] > │     let v108 : float = v99 + v61                                             │

00:03:02 #19612 [Verbose] > │     let v109 : float = v100 + v58                                            │

00:03:02 #19613 [Verbose] > │     let v110 : float = v101 + v59                                            │

00:03:02 #19614 [Verbose] > │     let v111 : float = v102 + v60                                            │

00:03:02 #19615 [Verbose] > │     let v112 : float = v103 + v62                                            │

00:03:02 #19616 [Verbose] > │     let v113 : float = v104 + v63                                            │

00:03:02 #19617 [Verbose] > │     let v114 : float = v105 + v64                                            │

00:03:02 #19618 [Verbose] > │     let v115 : float = v106 + v56                                            │

00:03:02 #19619 [Verbose] > │     let v116 : float = v107 + v57                                            │

00:03:02 #19620 [Verbose] > │     let v117 : float = v108 + v61                                            │

00:03:02 #19621 [Verbose] > │     let v118 : float = v109 + v58                                            │

00:03:02 #19622 [Verbose] > │     let v119 : float = v110 + v59                                            │

00:03:02 #19623 [Verbose] > │     let v120 : float = v111 + v60                                            │

00:03:02 #19624 [Verbose] > │     let v121 : float = v112 + v62                                            │

00:03:02 #19625 [Verbose] > │     let v122 : float = v113 + v63                                            │

00:03:02 #19626 [Verbose] > │     let v123 : float = v114 + v64                                            │

00:03:02 #19627 [Verbose] > │     let v124 : float = v115 + v79                                            │

00:03:02 #19628 [Verbose] > │     let v125 : float = v116 + v80                                            │

00:03:02 #19629 [Verbose] > │     let v126 : float = v117 + v84                                            │

00:03:02 #19630 [Verbose] > │     let v127 : float = v118 + v81                                            │

00:03:02 #19631 [Verbose] > │     let v128 : float = v119 + v82                                            │

00:03:02 #19632 [Verbose] > │     let v129 : float = v120 + v83                                            │

00:03:02 #19633 [Verbose] > │     let v130 : float = v121 + v85                                            │

00:03:02 #19634 [Verbose] > │     let v131 : float = v122 + v86                                            │

00:03:02 #19635 [Verbose] > │     let v132 : float = v123 + v87                                            │

00:03:02 #19636 [Verbose] > │     let v133 : float = v126 * 16666.666666666668                             │

00:03:02 #19637 [Verbose] > │     let v134 : float = v6 + v133                                             │

00:03:02 #19638 [Verbose] > │     let v135 : float = 16666.666666666668 * v127                             │

00:03:02 #19639 [Verbose] > │     let v136 : float = 16666.666666666668 * v128                             │

00:03:02 #19640 [Verbose] > │     let v137 : float = 16666.666666666668 * v129                             │

00:03:02 #19641 [Verbose] > │     let v138 : float = v3 + v135                                             │

00:03:02 #19642 [Verbose] > │     let v139 : float = v4 + v136                                             │

00:03:02 #19643 [Verbose] > │     let v140 : float = v5 + v137                                             │

00:03:02 #19644 [Verbose] > │     let v141 : float = 16666.666666666668 * v130                             │

00:03:02 #19645 [Verbose] > │     let v142 : float = 16666.666666666668 * v131                             │

00:03:02 #19646 [Verbose] > │     let v143 : float = 16666.666666666668 * v132                             │

00:03:02 #19647 [Verbose] > │     let v144 : float = v7 + v141                                             │

00:03:02 #19648 [Verbose] > │     let v145 : float = v8 + v142                                             │

00:03:02 #19649 [Verbose] > │     let v146 : float = v9 + v143                                             │

00:03:02 #19650 [Verbose] > │     struct (v1, v2, v138, v139, v140, v134, v144, v145, v146)                │

00:03:02 #19651 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │

00:03:02 #19652 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float *  │

00:03:02 #19653 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float *  │

00:03:02 #19654 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float *    │

00:03:02 #19655 [Verbose] > │ float * float * float * float * float * float)) =                            │

00:03:02 #19656 [Verbose] > │     closure1(v0)                                                             │

00:03:02 #19657 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:03:02 #19658 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:03:02 #19659 [Verbose] > │ float * float * float * float * float * float * float * float) =             │

00:03:02 #19660 [Verbose] > │     let v9 : float = 10.0 / v1                                               │

00:03:02 #19661 [Verbose] > │     let v10 : float = 0.0 / v1                                               │

00:03:02 #19662 [Verbose] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v9, v10, v10)                         │

00:03:02 #19663 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:03:02 #19664 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:03:02 #19665 [Verbose] > │ float * float * float * float * float * float * float * float) =             │

00:03:02 #19666 [Verbose] > │     let v9 : float = v6 / 299792458.0                                        │

00:03:02 #19667 [Verbose] > │     let v10 : float = v7 / 299792458.0                                       │

00:03:02 #19668 [Verbose] > │     let v11 : float = v8 / 299792458.0                                       │

00:03:02 #19669 [Verbose] > │     let v12 : float = v9 * v9                                                │

00:03:02 #19670 [Verbose] > │     let v13 : float = v10 * v10                                              │

00:03:02 #19671 [Verbose] > │     let v14 : float = v12 + v13                                              │

00:03:02 #19672 [Verbose] > │     let v15 : float = v11 * v11                                              │

00:03:02 #19673 [Verbose] > │     let v16 : float = v14 + v15                                              │

00:03:02 #19674 [Verbose] > │     let v17 : float = 1.0 - v16                                              │

00:03:02 #19675 [Verbose] > │     let v18 : float = sqrt v17                                               │

00:03:02 #19676 [Verbose] > │     let v19 : float = 10.0 * v9                                              │

00:03:02 #19677 [Verbose] > │     let v20 : float = 0.0 * v10                                              │

00:03:02 #19678 [Verbose] > │     let v21 : float = v19 + v20                                              │

00:03:02 #19679 [Verbose] > │     let v22 : float = 0.0 * v11                                              │

00:03:02 #19680 [Verbose] > │     let v23 : float = v21 + v22                                              │

00:03:02 #19681 [Verbose] > │     let v24 : float = v23 * v9                                               │

00:03:02 #19682 [Verbose] > │     let v25 : float = v23 * v10                                              │

00:03:02 #19683 [Verbose] > │     let v26 : float = v23 * v11                                              │

00:03:02 #19684 [Verbose] > │     let v27 : float = -1.0 * v24                                             │

00:03:02 #19685 [Verbose] > │     let v28 : float = -1.0 * v25                                             │

00:03:02 #19686 [Verbose] > │     let v29 : float = -1.0 * v26                                             │

00:03:02 #19687 [Verbose] > │     let v30 : float = 10.0 + v27                                             │

00:03:02 #19688 [Verbose] > │     let v31 : float = v18 * v30                                              │

00:03:02 #19689 [Verbose] > │     let v32 : float = v18 * v28                                              │

00:03:02 #19690 [Verbose] > │     let v33 : float = v18 * v29                                              │

00:03:02 #19691 [Verbose] > │     let v34 : float = v31 / v1                                               │

00:03:02 #19692 [Verbose] > │     let v35 : float = v32 / v1                                               │

00:03:02 #19693 [Verbose] > │     let v36 : float = v33 / v1                                               │

00:03:02 #19694 [Verbose] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v34, v35, v36)                        │

00:03:02 #19695 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float *   │

00:03:02 #19696 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:03:02 #19697 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 :    │

00:03:02 #19698 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 :     │

00:03:02 #19699 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float *     │

00:03:02 #19700 [Verbose] > │ float * float) =                                                             │

00:03:02 #19701 [Verbose] > │     let v11 : bool = v10 <= 0                                                │

00:03:02 #19702 [Verbose] > │     if v11 then                                                              │

00:03:02 #19703 [Verbose] > │         struct (v1, v2, v3, v4, v5, v6, v7, v8, v9)                          │

00:03:02 #19704 [Verbose] > │     else                                                                     │

00:03:02 #19705 [Verbose] > │         let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:03:02 #19706 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct     │

00:03:02 #19707 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9)                                         │

00:03:02 #19708 [Verbose] > │         let v21 : int32 = v10 - 1                                            │

00:03:02 #19709 [Verbose] > │         method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)        │

00:03:02 #19710 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:03:02 #19711 [Verbose] > │     match v0 with                                                            │

00:03:02 #19712 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:02 #19713 [Verbose] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:03:02 #19714 [Verbose] > │         method3(v11, v12)                                                    │

00:03:02 #19715 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:02 #19716 [Verbose] > │         v1                                                                   │

00:03:02 #19717 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float *   │

00:03:02 #19718 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:03:02 #19719 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:03:02 #19720 [Verbose] > │     let v3 : float = 0.0                                                     │

00:03:02 #19721 [Verbose] > │     let v4 : float = 1.0                                                     │

00:03:02 #19722 [Verbose] > │     let v5 : float = 0.0                                                     │

00:03:02 #19723 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:02 #19724 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:02 #19725 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:02 #19726 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:02 #19727 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:02 #19728 [Verbose] > │     let v11 : float = 0.0                                                    │

00:03:02 #19729 [Verbose] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:03:02 #19730 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:03:02 #19731 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:03:02 #19732 [Verbose] > │     let v21 : bool = v17 <= 31557600.0                                       │

00:03:02 #19733 [Verbose] > │     if v21 then                                                              │

00:03:02 #19734 [Verbose] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:03:02 #19735 [Verbose] > │ v1)                                                                          │

00:03:02 #19736 [Verbose] > │         let v23 : int32 = v2 + 1                                             │

00:03:02 #19737 [Verbose] > │         method1(v0, v22, v23)                                                │

00:03:02 #19738 [Verbose] > │     else                                                                     │

00:03:02 #19739 [Verbose] > │         let v25 : UH0 = UH0_1                                                │

00:03:02 #19740 [Verbose] > │         method3(v1, v25)                                                     │

00:03:02 #19741 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:02 #19742 [Verbose] > │     match v0 with                                                            │

00:03:02 #19743 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:02 #19744 [Verbose] > │         let v12 : UH1 = method4(v11, v1)                                     │

00:03:02 #19745 [Verbose] > │         let v13 : float = v7 / 31557600.0                                    │

00:03:02 #19746 [Verbose] > │         let v14 : float = v8 / 299792458.0                                   │

00:03:02 #19747 [Verbose] > │         UH1_0(v13, v14, v12)                                                 │

00:03:02 #19748 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:02 #19749 [Verbose] > │         v1                                                                   │

00:03:02 #19750 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) =            │

00:03:02 #19751 [Verbose] > │     match v0 with                                                            │

00:03:02 #19752 [Verbose] > │     | UH1_0(v3, v4, v5) -> (* Cons *)                                        │

00:03:02 #19753 [Verbose] > │         let v6 : UH2 = UH2_0(v3, v1)                                         │

00:03:02 #19754 [Verbose] > │         let v7 : UH2 = UH2_0(v4, v2)                                         │

00:03:02 #19755 [Verbose] > │         method5(v5, v6, v7)                                                  │

00:03:02 #19756 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:02 #19757 [Verbose] > │         struct (v1, v2)                                                      │

00:03:02 #19758 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 =                                     │

00:03:02 #19759 [Verbose] > │     match v0 with                                                            │

00:03:02 #19760 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:03:02 #19761 [Verbose] > │         let v4 : UH2 = UH2_0(v2, v1)                                         │

00:03:02 #19762 [Verbose] > │         method6(v3, v4)                                                      │

00:03:02 #19763 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:02 #19764 [Verbose] > │         v1                                                                   │

00:03:02 #19765 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float *   │

00:03:02 #19766 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:03:02 #19767 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:03:02 #19768 [Verbose] > │     let v3 : float = 0.0                                                     │

00:03:02 #19769 [Verbose] > │     let v4 : float = 1.0                                                     │

00:03:02 #19770 [Verbose] > │     let v5 : float = 0.0                                                     │

00:03:02 #19771 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:02 #19772 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:02 #19773 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:02 #19774 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:02 #19775 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:02 #19776 [Verbose] > │     let v11 : float = 0.0                                                    │

00:03:02 #19777 [Verbose] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:03:02 #19778 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:03:02 #19779 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:03:02 #19780 [Verbose] > │     let v21 : bool = v17 <= 31557600.0                                       │

00:03:02 #19781 [Verbose] > │     if v21 then                                                              │

00:03:02 #19782 [Verbose] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:03:02 #19783 [Verbose] > │ v1)                                                                          │

00:03:02 #19784 [Verbose] > │         let v23 : int32 = v2 + 1                                             │

00:03:02 #19785 [Verbose] > │         method7(v0, v22, v23)                                                │

00:03:02 #19786 [Verbose] > │     else                                                                     │

00:03:02 #19787 [Verbose] > │         let v25 : UH0 = UH0_1                                                │

00:03:02 #19788 [Verbose] > │         method3(v1, v25)                                                     │

00:03:02 #19789 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:02 #19790 [Verbose] > │     match v0 with                                                            │

00:03:02 #19791 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:02 #19792 [Verbose] > │         let v12 : UH1 = method8(v11, v1)                                     │

00:03:02 #19793 [Verbose] > │         let v13 : float = v7 / 31557600.0                                    │

00:03:02 #19794 [Verbose] > │         let v14 : float = v8 / 299792458.0                                   │

00:03:02 #19795 [Verbose] > │         UH1_0(v13, v14, v12)                                                 │

00:03:02 #19796 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:02 #19797 [Verbose] > │         v1                                                                   │

00:03:02 #19798 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 =                                │

00:03:02 #19799 [Verbose] > │     match v0 with                                                            │

00:03:02 #19800 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:03:02 #19801 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:03:02 #19802 [Verbose] > │         method10(v3, v4)                                                     │

00:03:02 #19803 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:02 #19804 [Verbose] > │         v1                                                                   │

00:03:02 #19805 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 =               │

00:03:02 #19806 [Verbose] > │     match v1 with                                                            │

00:03:02 #19807 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:03:02 #19808 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:03:02 #19809 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:03:02 #19810 [Verbose] > │         method11(v0, v4, v5)                                                 │

00:03:02 #19811 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:02 #19812 [Verbose] > │         v2                                                                   │

00:03:02 #19813 [Verbose] > │ and method9 (v0 : UH2) : (float []) =                                        │

00:03:02 #19814 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:02 #19815 [Verbose] > │     let v2 : int32 = method10(v0, v1)                                        │

00:03:02 #19816 [Verbose] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:03:02 #19817 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:02 #19818 [Verbose] > │     let v5 : int32 = method11(v3, v0, v4)                                    │

00:03:02 #19819 [Verbose] > │     v3                                                                       │

00:03:02 #19820 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │

00:03:02 #19821 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:02 #19822 [Verbose] > │     v0                                                                       │

00:03:02 #19823 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:03:02 #19824 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:03:02 #19825 [Verbose] > │     let v0 : ((struct (float * float * float * float * float * float * float │

00:03:02 #19826 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:02 #19827 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float *  │

00:03:02 #19828 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:03:02 #19829 [Verbose] > │ float * float * float * float * float))) = closure0()                        │

00:03:02 #19830 [Verbose] > │     let v1 : (struct (float * float * float * float * float * float * float  │

00:03:02 #19831 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:02 #19832 [Verbose] > │ float * float * float)) = closure2()                                         │

00:03:02 #19833 [Verbose] > │     let v2 : (struct (float * float * float * float * float * float * float  │

00:03:02 #19834 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:02 #19835 [Verbose] > │ float * float * float)) = v0 v1                                              │

00:03:02 #19836 [Verbose] > │     let v3 : (struct (float * float * float * float * float * float * float  │

00:03:02 #19837 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:02 #19838 [Verbose] > │ float * float * float)) = closure3()                                         │

00:03:02 #19839 [Verbose] > │     let v4 : (struct (float * float * float * float * float * float * float  │

00:03:02 #19840 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:02 #19841 [Verbose] > │ float * float * float)) = v0 v3                                              │

00:03:02 #19842 [Verbose] > │     let v5 : UH0 = UH0_1                                                     │

00:03:02 #19843 [Verbose] > │     let v6 : int32 = 0                                                       │

00:03:02 #19844 [Verbose] > │     let v7 : UH0 = method1(v2, v5, v6)                                       │

00:03:02 #19845 [Verbose] > │     let v8 : UH1 = UH1_1                                                     │

00:03:02 #19846 [Verbose] > │     let v9 : UH1 = method4(v7, v8)                                           │

00:03:02 #19847 [Verbose] > │     let v10 : UH2 = UH2_1                                                    │

00:03:02 #19848 [Verbose] > │     let v11 : UH2 = UH2_1                                                    │

00:03:02 #19849 [Verbose] > │     let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11)                │

00:03:02 #19850 [Verbose] > │     let v14 : UH2 = UH2_1                                                    │

00:03:02 #19851 [Verbose] > │     let v15 : UH2 = method6(v12, v14)                                        │

00:03:02 #19852 [Verbose] > │     let v16 : UH2 = UH2_1                                                    │

00:03:02 #19853 [Verbose] > │     let v17 : UH2 = method6(v13, v16)                                        │

00:03:02 #19854 [Verbose] > │     let v18 : UH0 = UH0_1                                                    │

00:03:02 #19855 [Verbose] > │     let v19 : int32 = 0                                                      │

00:03:02 #19856 [Verbose] > │     let v20 : UH0 = method7(v4, v18, v19)                                    │

00:03:02 #19857 [Verbose] > │     let v21 : UH1 = UH1_1                                                    │

00:03:02 #19858 [Verbose] > │     let v22 : UH1 = method8(v20, v21)                                        │

00:03:02 #19859 [Verbose] > │     let v23 : UH2 = UH2_1                                                    │

00:03:02 #19860 [Verbose] > │     let v24 : UH2 = UH2_1                                                    │

00:03:02 #19861 [Verbose] > │     let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24)               │

00:03:02 #19862 [Verbose] > │     let v27 : UH2 = UH2_1                                                    │

00:03:02 #19863 [Verbose] > │     let v28 : UH2 = method6(v25, v27)                                        │

00:03:02 #19864 [Verbose] > │     let v29 : UH2 = UH2_1                                                    │

00:03:02 #19865 [Verbose] > │     let v30 : UH2 = method6(v26, v29)                                        │

00:03:02 #19866 [Verbose] > │     let v31 : (float []) = method9(v15)                                      │

00:03:02 #19867 [Verbose] > │     let v32 : (float []) = method9(v17)                                      │

00:03:02 #19868 [Verbose] > │     let v33 : (float []) = method9(v30)                                      │

00:03:02 #19869 [Verbose] > │     let v34 : string = "newtonian"                                           │

00:03:02 #19870 [Verbose] > │     let v35 : string = "relativistic"                                        │

00:03:02 #19871 [Verbose] > │     let v36 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:03:02 #19872 [Verbose] > │ (v34, v31, v32); struct (v35, v31, v33)|]                                    │

00:03:02 #19873 [Verbose] > │     let v37 : (struct (string * (float []) * (float [])) []) = method12(v36) │

00:03:02 #19874 [Verbose] > │     let v38 : string = "response to a constant force"                        │

00:03:02 #19875 [Verbose] > │     let v39 : string = "time (years)"                                        │

00:03:02 #19876 [Verbose] > │     let v40 : string = "velocity (multiples of c)"                           │

00:03:02 #19877 [Verbose] > │     struct (v38, v39, v40, v37)                                              │

00:03:02 #19878 [Verbose] > │ method0()                                                                    │

00:03:02 #19879 [Verbose] > │                                                                              │

00:03:02 #19880 [Verbose] > │                                                                              │

00:03:02 #19881 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:02 #19882 [Verbose] >

00:03:02 #19883 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:02 #19884 [Verbose] > inl uniform_lorentz_force v_e v_b (st : particle_state) =

00:03:02 #19885 [Verbose] >     st.charge *^ (v_e ^+^ st.velocity >< v_b)

00:03:02 #19886 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5770-7027-7670be258b99\main.spi

00:03:02 #19887 [Verbose] >

00:03:02 #19888 [Verbose] > ╭─[ 360.50ms - stdout ]────────────────────────────────────────────────────────╮

00:03:02 #19889 [Verbose] > │ ()                                                                           │

00:03:02 #19890 [Verbose] > │                                                                              │

00:03:02 #19891 [Verbose] > │                                                                              │

00:03:02 #19892 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:02 #19893 [Verbose] >

00:03:02 #19894 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:02 #19895 [Verbose] > // // test

00:03:02 #19896 [Verbose] >

00:03:02 #19897 [Verbose] > inl c : f64 = 299792458

00:03:02 #19898 [Verbose] > inl ~method = runge_kutta_4 0.000000001

00:03:02 #19899 [Verbose] > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]

00:03:02 #19900 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()

00:03:02 #19901 [Verbose] > inl initial_state =

00:03:02 #19902 [Verbose] >     particle_state { default_particle_state' with

00:03:02 #19903 [Verbose] >         mass = 0.000000000000000000000000001672621898

00:03:02 #19904 [Verbose] >         charge = 0.0000000000000000001602176621

00:03:02 #19905 [Verbose] >         velocity = 0.8 *^ (c *^ j_hat ())

00:03:02 #19906 [Verbose] >     }

00:03:02 #19907 [Verbose] >

00:03:02 #19908 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state

00:03:02 #19909 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state

00:03:02 #19910 [Verbose] >

00:03:02 #19911 [Verbose] > inl newton_x, newton_y =

00:03:02 #19912 [Verbose] >     newton_states

00:03:02 #19913 [Verbose] >     >> Some

00:03:02 #19914 [Verbose] >     |> seq.take_while_ (fun (particle_state st) i => i < 100i32)

00:03:02 #19915 [Verbose] >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)

00:03:02 #19916 [Verbose] >     |> listm'.unzip

00:03:02 #19917 [Verbose] >

00:03:02 #19918 [Verbose] > inl relativity_x, relativity_y =

00:03:02 #19919 [Verbose] >     relativity_states

00:03:02 #19920 [Verbose] >     >> Some

00:03:02 #19921 [Verbose] >     |> seq.take_while_ (fun (particle_state st) i => i < 165i32)

00:03:02 #19922 [Verbose] >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)

00:03:02 #19923 [Verbose] >     |> listm'.unzip

00:03:02 #19924 [Verbose] >

00:03:02 #19925 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray

00:03:02 #19926 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray

00:03:02 #19927 [Verbose] >

00:03:02 #19928 [Verbose] > inl relativity_x : a i32 _ = relativity_x |> listm.toArray

00:03:02 #19929 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray

00:03:02 #19930 [Verbose] >

00:03:02 #19931 [Verbose] > "proton in a 1-t magnetic field",

00:03:02 #19932 [Verbose] > "x (m)",

00:03:02 #19933 [Verbose] > "y (m)",

00:03:02 #19934 [Verbose] > ;[[

00:03:02 #19935 [Verbose] >     "newtonian", newton_x, newton_y

00:03:02 #19936 [Verbose] >     "relativistic", relativity_x, relativity_y

00:03:02 #19937 [Verbose] > ]]

00:03:02 #19938 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5806-0647-0b2dd71ea999\main.spi

00:03:03 #19939 [Verbose] >

00:03:03 #19940 [Verbose] > ╭─[ 551.36ms - return value ]──────────────────────────────────────────────────╮

00:03:03 #19941 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:03:03 #19942 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:03 #19943 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:03 #19944 [Verbose] > │ stroke="none"/>                                                              │

00:03:03 #19945 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:03 #19946 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:03 #19947 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:03 #19948 [Verbose] > │ proton in a 1-t magnetic field                                               │

00:03:03 #19949 [Verbose] > │ </text>                                                                      │

00:03:03 #19950 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │

00:03:03 #19951 [Verbose] > │ y2="75"/>                                                                    │

00:03:03 #19952 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:03 #19953 [Verbose] > │ y2="75"/>                                                                    │

00:03:03 #19954 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │

00:03:03 #19955 [Verbose] > │ y2="75"/>                                                                    │

00:03:03 #19956 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │

00:03:03 #19957 [Verbose] > │ y2="75"/>                                                                    │

00:03:03 #19958 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x...                     │

00:03:03 #19959 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:03 #19960 [Verbose] >

00:03:03 #19961 [Verbose] > ╭─[ 564.47ms - stdout ]────────────────────────────────────────────────────────╮

00:03:03 #19962 [Verbose] > │ type UH0 =                                                                   │

00:03:03 #19963 [Verbose] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:03:03 #19964 [Verbose] > │ * float * UH0                                                                │

00:03:03 #19965 [Verbose] > │     | UH0_1                                                                  │

00:03:03 #19966 [Verbose] > │ and UH1 =                                                                    │

00:03:03 #19967 [Verbose] > │     | UH1_0 of float * float * UH1                                           │

00:03:03 #19968 [Verbose] > │     | UH1_1                                                                  │

00:03:03 #19969 [Verbose] > │ and UH2 =                                                                    │

00:03:03 #19970 [Verbose] > │     | UH2_0 of float * UH2                                                   │

00:03:03 #19971 [Verbose] > │     | UH2_1                                                                  │

00:03:03 #19972 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float *      │

00:03:03 #19973 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:03:03 #19974 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3  │

00:03:03 #19975 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 :    │

00:03:03 #19976 [Verbose] > │ float) : struct (float * float * float * float * float * float * float *     │

00:03:03 #19977 [Verbose] > │ float * float) =                                                             │

00:03:03 #19978 [Verbose] > │     let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 :    │

00:03:03 #19979 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1,  │

00:03:03 #19980 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9)                                              │

00:03:03 #19981 [Verbose] > │     let v19 : float = v15 * 5E-10                                            │

00:03:03 #19982 [Verbose] > │     let v20 : float = v6 + v19                                               │

00:03:03 #19983 [Verbose] > │     let v21 : float = 5E-10 * v12                                            │

00:03:03 #19984 [Verbose] > │     let v22 : float = 5E-10 * v13                                            │

00:03:03 #19985 [Verbose] > │     let v23 : float = 5E-10 * v14                                            │

00:03:03 #19986 [Verbose] > │     let v24 : float = v3 + v21                                               │

00:03:03 #19987 [Verbose] > │     let v25 : float = v4 + v22                                               │

00:03:03 #19988 [Verbose] > │     let v26 : float = v5 + v23                                               │

00:03:03 #19989 [Verbose] > │     let v27 : float = 5E-10 * v16                                            │

00:03:03 #19990 [Verbose] > │     let v28 : float = 5E-10 * v17                                            │

00:03:03 #19991 [Verbose] > │     let v29 : float = 5E-10 * v18                                            │

00:03:03 #19992 [Verbose] > │     let v30 : float = v7 + v27                                               │

00:03:03 #19993 [Verbose] > │     let v31 : float = v8 + v28                                               │

00:03:03 #19994 [Verbose] > │     let v32 : float = v9 + v29                                               │

00:03:03 #19995 [Verbose] > │     let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 :    │

00:03:03 #19996 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1,  │

00:03:03 #19997 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32)                                       │

00:03:03 #19998 [Verbose] > │     let v42 : float = v38 * 5E-10                                            │

00:03:03 #19999 [Verbose] > │     let v43 : float = v6 + v42                                               │

00:03:03 #20000 [Verbose] > │     let v44 : float = 5E-10 * v35                                            │

00:03:03 #20001 [Verbose] > │     let v45 : float = 5E-10 * v36                                            │

00:03:03 #20002 [Verbose] > │     let v46 : float = 5E-10 * v37                                            │

00:03:03 #20003 [Verbose] > │     let v47 : float = v3 + v44                                               │

00:03:03 #20004 [Verbose] > │     let v48 : float = v4 + v45                                               │

00:03:03 #20005 [Verbose] > │     let v49 : float = v5 + v46                                               │

00:03:03 #20006 [Verbose] > │     let v50 : float = 5E-10 * v39                                            │

00:03:03 #20007 [Verbose] > │     let v51 : float = 5E-10 * v40                                            │

00:03:03 #20008 [Verbose] > │     let v52 : float = 5E-10 * v41                                            │

00:03:03 #20009 [Verbose] > │     let v53 : float = v7 + v50                                               │

00:03:03 #20010 [Verbose] > │     let v54 : float = v8 + v51                                               │

00:03:03 #20011 [Verbose] > │     let v55 : float = v9 + v52                                               │

00:03:03 #20012 [Verbose] > │     let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 :    │

00:03:03 #20013 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1,  │

00:03:03 #20014 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55)                                       │

00:03:03 #20015 [Verbose] > │     let v65 : float = v61 * 1E-09                                            │

00:03:03 #20016 [Verbose] > │     let v66 : float = v6 + v65                                               │

00:03:03 #20017 [Verbose] > │     let v67 : float = 1E-09 * v58                                            │

00:03:03 #20018 [Verbose] > │     let v68 : float = 1E-09 * v59                                            │

00:03:03 #20019 [Verbose] > │     let v69 : float = 1E-09 * v60                                            │

00:03:03 #20020 [Verbose] > │     let v70 : float = v3 + v67                                               │

00:03:03 #20021 [Verbose] > │     let v71 : float = v4 + v68                                               │

00:03:03 #20022 [Verbose] > │     let v72 : float = v5 + v69                                               │

00:03:03 #20023 [Verbose] > │     let v73 : float = 1E-09 * v62                                            │

00:03:03 #20024 [Verbose] > │     let v74 : float = 1E-09 * v63                                            │

00:03:03 #20025 [Verbose] > │     let v75 : float = 1E-09 * v64                                            │

00:03:03 #20026 [Verbose] > │     let v76 : float = v7 + v73                                               │

00:03:03 #20027 [Verbose] > │     let v77 : float = v8 + v74                                               │

00:03:03 #20028 [Verbose] > │     let v78 : float = v9 + v75                                               │

00:03:03 #20029 [Verbose] > │     let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 :    │

00:03:03 #20030 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1,  │

00:03:03 #20031 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78)                                       │

00:03:03 #20032 [Verbose] > │     let v88 : float = v10 + v33                                              │

00:03:03 #20033 [Verbose] > │     let v89 : float = v11 + v34                                              │

00:03:03 #20034 [Verbose] > │     let v90 : float = v15 + v38                                              │

00:03:03 #20035 [Verbose] > │     let v91 : float = v12 + v35                                              │

00:03:03 #20036 [Verbose] > │     let v92 : float = v13 + v36                                              │

00:03:03 #20037 [Verbose] > │     let v93 : float = v14 + v37                                              │

00:03:03 #20038 [Verbose] > │     let v94 : float = v16 + v39                                              │

00:03:03 #20039 [Verbose] > │     let v95 : float = v17 + v40                                              │

00:03:03 #20040 [Verbose] > │     let v96 : float = v18 + v41                                              │

00:03:03 #20041 [Verbose] > │     let v97 : float = v88 + v33                                              │

00:03:03 #20042 [Verbose] > │     let v98 : float = v89 + v34                                              │

00:03:03 #20043 [Verbose] > │     let v99 : float = v90 + v38                                              │

00:03:03 #20044 [Verbose] > │     let v100 : float = v91 + v35                                             │

00:03:03 #20045 [Verbose] > │     let v101 : float = v92 + v36                                             │

00:03:03 #20046 [Verbose] > │     let v102 : float = v93 + v37                                             │

00:03:03 #20047 [Verbose] > │     let v103 : float = v94 + v39                                             │

00:03:03 #20048 [Verbose] > │     let v104 : float = v95 + v40                                             │

00:03:03 #20049 [Verbose] > │     let v105 : float = v96 + v41                                             │

00:03:03 #20050 [Verbose] > │     let v106 : float = v97 + v56                                             │

00:03:03 #20051 [Verbose] > │     let v107 : float = v98 + v57                                             │

00:03:03 #20052 [Verbose] > │     let v108 : float = v99 + v61                                             │

00:03:03 #20053 [Verbose] > │     let v109 : float = v100 + v58                                            │

00:03:03 #20054 [Verbose] > │     let v110 : float = v101 + v59                                            │

00:03:03 #20055 [Verbose] > │     let v111 : float = v102 + v60                                            │

00:03:03 #20056 [Verbose] > │     let v112 : float = v103 + v62                                            │

00:03:03 #20057 [Verbose] > │     let v113 : float = v104 + v63                                            │

00:03:03 #20058 [Verbose] > │     let v114 : float = v105 + v64                                            │

00:03:03 #20059 [Verbose] > │     let v115 : float = v106 + v56                                            │

00:03:03 #20060 [Verbose] > │     let v116 : float = v107 + v57                                            │

00:03:03 #20061 [Verbose] > │     let v117 : float = v108 + v61                                            │

00:03:03 #20062 [Verbose] > │     let v118 : float = v109 + v58                                            │

00:03:03 #20063 [Verbose] > │     let v119 : float = v110 + v59                                            │

00:03:03 #20064 [Verbose] > │     let v120 : float = v111 + v60                                            │

00:03:03 #20065 [Verbose] > │     let v121 : float = v112 + v62                                            │

00:03:03 #20066 [Verbose] > │     let v122 : float = v113 + v63                                            │

00:03:03 #20067 [Verbose] > │     let v123 : float = v114 + v64                                            │

00:03:03 #20068 [Verbose] > │     let v124 : float = v115 + v79                                            │

00:03:03 #20069 [Verbose] > │     let v125 : float = v116 + v80                                            │

00:03:03 #20070 [Verbose] > │     let v126 : float = v117 + v84                                            │

00:03:03 #20071 [Verbose] > │     let v127 : float = v118 + v81                                            │

00:03:03 #20072 [Verbose] > │     let v128 : float = v119 + v82                                            │

00:03:03 #20073 [Verbose] > │     let v129 : float = v120 + v83                                            │

00:03:03 #20074 [Verbose] > │     let v130 : float = v121 + v85                                            │

00:03:03 #20075 [Verbose] > │     let v131 : float = v122 + v86                                            │

00:03:03 #20076 [Verbose] > │     let v132 : float = v123 + v87                                            │

00:03:03 #20077 [Verbose] > │     let v133 : float = v126 * 1.6666666666666669E-10                         │

00:03:03 #20078 [Verbose] > │     let v134 : float = v6 + v133                                             │

00:03:03 #20079 [Verbose] > │     let v135 : float = 1.6666666666666669E-10 * v127                         │

00:03:03 #20080 [Verbose] > │     let v136 : float = 1.6666666666666669E-10 * v128                         │

00:03:03 #20081 [Verbose] > │     let v137 : float = 1.6666666666666669E-10 * v129                         │

00:03:03 #20082 [Verbose] > │     let v138 : float = v3 + v135                                             │

00:03:03 #20083 [Verbose] > │     let v139 : float = v4 + v136                                             │

00:03:03 #20084 [Verbose] > │     let v140 : float = v5 + v137                                             │

00:03:03 #20085 [Verbose] > │     let v141 : float = 1.6666666666666669E-10 * v130                         │

00:03:03 #20086 [Verbose] > │     let v142 : float = 1.6666666666666669E-10 * v131                         │

00:03:03 #20087 [Verbose] > │     let v143 : float = 1.6666666666666669E-10 * v132                         │

00:03:03 #20088 [Verbose] > │     let v144 : float = v7 + v141                                             │

00:03:03 #20089 [Verbose] > │     let v145 : float = v8 + v142                                             │

00:03:03 #20090 [Verbose] > │     let v146 : float = v9 + v143                                             │

00:03:03 #20091 [Verbose] > │     struct (v1, v2, v138, v139, v140, v134, v144, v145, v146)                │

00:03:03 #20092 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │

00:03:03 #20093 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float *  │

00:03:03 #20094 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float *  │

00:03:03 #20095 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float *    │

00:03:03 #20096 [Verbose] > │ float * float * float * float * float * float)) =                            │

00:03:03 #20097 [Verbose] > │     closure1(v0)                                                             │

00:03:03 #20098 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:03:03 #20099 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:03:03 #20100 [Verbose] > │ float * float * float * float * float * float * float * float) =             │

00:03:03 #20101 [Verbose] > │     let v9 : float = v8 * 0.0                                                │

00:03:03 #20102 [Verbose] > │     let v10 : float = v7 - v9                                                │

00:03:03 #20103 [Verbose] > │     let v11 : float = v9 - v6                                                │

00:03:03 #20104 [Verbose] > │     let v12 : float = v6 * 0.0                                               │

00:03:03 #20105 [Verbose] > │     let v13 : float = v7 * 0.0                                               │

00:03:03 #20106 [Verbose] > │     let v14 : float = v12 - v13                                              │

00:03:03 #20107 [Verbose] > │     let v15 : float = v0 * v10                                               │

00:03:03 #20108 [Verbose] > │     let v16 : float = v0 * v11                                               │

00:03:03 #20109 [Verbose] > │     let v17 : float = v0 * v14                                               │

00:03:03 #20110 [Verbose] > │     let v18 : float = v15 / v1                                               │

00:03:03 #20111 [Verbose] > │     let v19 : float = v16 / v1                                               │

00:03:03 #20112 [Verbose] > │     let v20 : float = v17 / v1                                               │

00:03:03 #20113 [Verbose] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v18, v19, v20)                        │

00:03:03 #20114 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:03:03 #20115 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:03:03 #20116 [Verbose] > │ float * float * float * float * float * float * float * float) =             │

00:03:03 #20117 [Verbose] > │     let v9 : float = v8 * 0.0                                                │

00:03:03 #20118 [Verbose] > │     let v10 : float = v7 - v9                                                │

00:03:03 #20119 [Verbose] > │     let v11 : float = v9 - v6                                                │

00:03:03 #20120 [Verbose] > │     let v12 : float = v6 * 0.0                                               │

00:03:03 #20121 [Verbose] > │     let v13 : float = v7 * 0.0                                               │

00:03:03 #20122 [Verbose] > │     let v14 : float = v12 - v13                                              │

00:03:03 #20123 [Verbose] > │     let v15 : float = v0 * v10                                               │

00:03:03 #20124 [Verbose] > │     let v16 : float = v0 * v11                                               │

00:03:03 #20125 [Verbose] > │     let v17 : float = v0 * v14                                               │

00:03:03 #20126 [Verbose] > │     let v18 : float = v6 / 299792458.0                                       │

00:03:03 #20127 [Verbose] > │     let v19 : float = v7 / 299792458.0                                       │

00:03:03 #20128 [Verbose] > │     let v20 : float = v8 / 299792458.0                                       │

00:03:03 #20129 [Verbose] > │     let v21 : float = v18 * v18                                              │

00:03:03 #20130 [Verbose] > │     let v22 : float = v19 * v19                                              │

00:03:03 #20131 [Verbose] > │     let v23 : float = v21 + v22                                              │

00:03:03 #20132 [Verbose] > │     let v24 : float = v20 * v20                                              │

00:03:03 #20133 [Verbose] > │     let v25 : float = v23 + v24                                              │

00:03:03 #20134 [Verbose] > │     let v26 : float = 1.0 - v25                                              │

00:03:03 #20135 [Verbose] > │     let v27 : float = sqrt v26                                               │

00:03:03 #20136 [Verbose] > │     let v28 : float = v15 * v18                                              │

00:03:03 #20137 [Verbose] > │     let v29 : float = v16 * v19                                              │

00:03:03 #20138 [Verbose] > │     let v30 : float = v28 + v29                                              │

00:03:03 #20139 [Verbose] > │     let v31 : float = v17 * v20                                              │

00:03:03 #20140 [Verbose] > │     let v32 : float = v30 + v31                                              │

00:03:03 #20141 [Verbose] > │     let v33 : float = v32 * v18                                              │

00:03:03 #20142 [Verbose] > │     let v34 : float = v32 * v19                                              │

00:03:03 #20143 [Verbose] > │     let v35 : float = v32 * v20                                              │

00:03:03 #20144 [Verbose] > │     let v36 : float = -1.0 * v33                                             │

00:03:03 #20145 [Verbose] > │     let v37 : float = -1.0 * v34                                             │

00:03:03 #20146 [Verbose] > │     let v38 : float = -1.0 * v35                                             │

00:03:03 #20147 [Verbose] > │     let v39 : float = v15 + v36                                              │

00:03:03 #20148 [Verbose] > │     let v40 : float = v16 + v37                                              │

00:03:03 #20149 [Verbose] > │     let v41 : float = v17 + v38                                              │

00:03:03 #20150 [Verbose] > │     let v42 : float = v27 * v39                                              │

00:03:03 #20151 [Verbose] > │     let v43 : float = v27 * v40                                              │

00:03:03 #20152 [Verbose] > │     let v44 : float = v27 * v41                                              │

00:03:03 #20153 [Verbose] > │     let v45 : float = v42 / v1                                               │

00:03:03 #20154 [Verbose] > │     let v46 : float = v43 / v1                                               │

00:03:03 #20155 [Verbose] > │     let v47 : float = v44 / v1                                               │

00:03:03 #20156 [Verbose] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v45, v46, v47)                        │

00:03:03 #20157 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float *   │

00:03:03 #20158 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:03:03 #20159 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 :    │

00:03:03 #20160 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 :     │

00:03:03 #20161 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float *     │

00:03:03 #20162 [Verbose] > │ float * float) =                                                             │

00:03:03 #20163 [Verbose] > │     let v11 : bool = v10 <= 0                                                │

00:03:03 #20164 [Verbose] > │     if v11 then                                                              │

00:03:03 #20165 [Verbose] > │         struct (v1, v2, v3, v4, v5, v6, v7, v8, v9)                          │

00:03:03 #20166 [Verbose] > │     else                                                                     │

00:03:03 #20167 [Verbose] > │         let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:03:03 #20168 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct     │

00:03:03 #20169 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9)                                         │

00:03:03 #20170 [Verbose] > │         let v21 : int32 = v10 - 1                                            │

00:03:03 #20171 [Verbose] > │         method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)        │

00:03:03 #20172 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:03:03 #20173 [Verbose] > │     match v0 with                                                            │

00:03:03 #20174 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:03 #20175 [Verbose] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:03:03 #20176 [Verbose] > │         method3(v11, v12)                                                    │

00:03:03 #20177 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:03 #20178 [Verbose] > │         v1                                                                   │

00:03:03 #20179 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float *   │

00:03:03 #20180 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:03:03 #20181 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:03:03 #20182 [Verbose] > │     let v3 : float = 1.602176621E-19                                         │

00:03:03 #20183 [Verbose] > │     let v4 : float = 1.672621898E-27                                         │

00:03:03 #20184 [Verbose] > │     let v5 : float = 0.0                                                     │

00:03:03 #20185 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:03 #20186 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:03 #20187 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:03 #20188 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:03 #20189 [Verbose] > │     let v10 : float = 239833966.4                                            │

00:03:03 #20190 [Verbose] > │     let v11 : float = 0.0                                                    │

00:03:03 #20191 [Verbose] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:03:03 #20192 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:03:03 #20193 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:03:03 #20194 [Verbose] > │     let v21 : bool = v2 < 100                                                │

00:03:03 #20195 [Verbose] > │     if v21 then                                                              │

00:03:03 #20196 [Verbose] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:03:03 #20197 [Verbose] > │ v1)                                                                          │

00:03:03 #20198 [Verbose] > │         let v23 : int32 = v2 + 1                                             │

00:03:03 #20199 [Verbose] > │         method1(v0, v22, v23)                                                │

00:03:03 #20200 [Verbose] > │     else                                                                     │

00:03:03 #20201 [Verbose] > │         let v25 : UH0 = UH0_1                                                │

00:03:03 #20202 [Verbose] > │         method3(v1, v25)                                                     │

00:03:03 #20203 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:03 #20204 [Verbose] > │     match v0 with                                                            │

00:03:03 #20205 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:03 #20206 [Verbose] > │         let v12 : UH1 = method4(v11, v1)                                     │

00:03:03 #20207 [Verbose] > │         UH1_0(v4, v5, v12)                                                   │

00:03:03 #20208 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:03 #20209 [Verbose] > │         v1                                                                   │

00:03:03 #20210 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) =            │

00:03:03 #20211 [Verbose] > │     match v0 with                                                            │

00:03:03 #20212 [Verbose] > │     | UH1_0(v3, v4, v5) -> (* Cons *)                                        │

00:03:03 #20213 [Verbose] > │         let v6 : UH2 = UH2_0(v3, v1)                                         │

00:03:03 #20214 [Verbose] > │         let v7 : UH2 = UH2_0(v4, v2)                                         │

00:03:03 #20215 [Verbose] > │         method5(v5, v6, v7)                                                  │

00:03:03 #20216 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:03 #20217 [Verbose] > │         struct (v1, v2)                                                      │

00:03:03 #20218 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 =                                     │

00:03:03 #20219 [Verbose] > │     match v0 with                                                            │

00:03:03 #20220 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:03:03 #20221 [Verbose] > │         let v4 : UH2 = UH2_0(v2, v1)                                         │

00:03:03 #20222 [Verbose] > │         method6(v3, v4)                                                      │

00:03:03 #20223 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:03 #20224 [Verbose] > │         v1                                                                   │

00:03:03 #20225 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float *   │

00:03:03 #20226 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:03:03 #20227 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:03:03 #20228 [Verbose] > │     let v3 : float = 1.602176621E-19                                         │

00:03:03 #20229 [Verbose] > │     let v4 : float = 1.672621898E-27                                         │

00:03:03 #20230 [Verbose] > │     let v5 : float = 0.0                                                     │

00:03:03 #20231 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:03 #20232 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:03 #20233 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:03 #20234 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:03 #20235 [Verbose] > │     let v10 : float = 239833966.4                                            │

00:03:03 #20236 [Verbose] > │     let v11 : float = 0.0                                                    │

00:03:03 #20237 [Verbose] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:03:03 #20238 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:03:03 #20239 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:03:03 #20240 [Verbose] > │     let v21 : bool = v2 < 165                                                │

00:03:03 #20241 [Verbose] > │     if v21 then                                                              │

00:03:03 #20242 [Verbose] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:03:03 #20243 [Verbose] > │ v1)                                                                          │

00:03:03 #20244 [Verbose] > │         let v23 : int32 = v2 + 1                                             │

00:03:03 #20245 [Verbose] > │         method7(v0, v22, v23)                                                │

00:03:03 #20246 [Verbose] > │     else                                                                     │

00:03:03 #20247 [Verbose] > │         let v25 : UH0 = UH0_1                                                │

00:03:03 #20248 [Verbose] > │         method3(v1, v25)                                                     │

00:03:03 #20249 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:03 #20250 [Verbose] > │     match v0 with                                                            │

00:03:03 #20251 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:03 #20252 [Verbose] > │         let v12 : UH1 = method8(v11, v1)                                     │

00:03:03 #20253 [Verbose] > │         UH1_0(v4, v5, v12)                                                   │

00:03:03 #20254 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:03 #20255 [Verbose] > │         v1                                                                   │

00:03:03 #20256 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 =                                │

00:03:03 #20257 [Verbose] > │     match v0 with                                                            │

00:03:03 #20258 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:03:03 #20259 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:03:03 #20260 [Verbose] > │         method10(v3, v4)                                                     │

00:03:03 #20261 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:03 #20262 [Verbose] > │         v1                                                                   │

00:03:03 #20263 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 =               │

00:03:03 #20264 [Verbose] > │     match v1 with                                                            │

00:03:03 #20265 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:03:03 #20266 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:03:03 #20267 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:03:03 #20268 [Verbose] > │         method11(v0, v4, v5)                                                 │

00:03:03 #20269 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:03 #20270 [Verbose] > │         v2                                                                   │

00:03:03 #20271 [Verbose] > │ and method9 (v0 : UH2) : (float []) =                                        │

00:03:03 #20272 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:03 #20273 [Verbose] > │     let v2 : int32 = method10(v0, v1)                                        │

00:03:03 #20274 [Verbose] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:03:03 #20275 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:03 #20276 [Verbose] > │     let v5 : int32 = method11(v3, v0, v4)                                    │

00:03:03 #20277 [Verbose] > │     v3                                                                       │

00:03:03 #20278 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │

00:03:03 #20279 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:03 #20280 [Verbose] > │     v0                                                                       │

00:03:03 #20281 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:03:03 #20282 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:03:03 #20283 [Verbose] > │     let v0 : ((struct (float * float * float * float * float * float * float │

00:03:03 #20284 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:03 #20285 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float *  │

00:03:03 #20286 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:03:03 #20287 [Verbose] > │ float * float * float * float * float))) = closure0()                        │

00:03:03 #20288 [Verbose] > │     let v1 : (struct (float * float * float * float * float * float * float  │

00:03:03 #20289 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:03 #20290 [Verbose] > │ float * float * float)) = closure2()                                         │

00:03:03 #20291 [Verbose] > │     let v2 : (struct (float * float * float * float * float * float * float  │

00:03:03 #20292 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:03 #20293 [Verbose] > │ float * float * float)) = v0 v1                                              │

00:03:03 #20294 [Verbose] > │     let v3 : (struct (float * float * float * float * float * float * float  │

00:03:03 #20295 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:03 #20296 [Verbose] > │ float * float * float)) = closure3()                                         │

00:03:03 #20297 [Verbose] > │     let v4 : (struct (float * float * float * float * float * float * float  │

00:03:03 #20298 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:03:03 #20299 [Verbose] > │ float * float * float)) = v0 v3                                              │

00:03:03 #20300 [Verbose] > │     let v5 : UH0 = UH0_1                                                     │

00:03:03 #20301 [Verbose] > │     let v6 : int32 = 0                                                       │

00:03:03 #20302 [Verbose] > │     let v7 : UH0 = method1(v2, v5, v6)                                       │

00:03:03 #20303 [Verbose] > │     let v8 : UH1 = UH1_1                                                     │

00:03:03 #20304 [Verbose] > │     let v9 : UH1 = method4(v7, v8)                                           │

00:03:03 #20305 [Verbose] > │     let v10 : UH2 = UH2_1                                                    │

00:03:03 #20306 [Verbose] > │     let v11 : UH2 = UH2_1                                                    │

00:03:03 #20307 [Verbose] > │     let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11)                │

00:03:03 #20308 [Verbose] > │     let v14 : UH2 = UH2_1                                                    │

00:03:03 #20309 [Verbose] > │     let v15 : UH2 = method6(v12, v14)                                        │

00:03:03 #20310 [Verbose] > │     let v16 : UH2 = UH2_1                                                    │

00:03:03 #20311 [Verbose] > │     let v17 : UH2 = method6(v13, v16)                                        │

00:03:03 #20312 [Verbose] > │     let v18 : UH0 = UH0_1                                                    │

00:03:03 #20313 [Verbose] > │     let v19 : int32 = 0                                                      │

00:03:03 #20314 [Verbose] > │     let v20 : UH0 = method7(v4, v18, v19)                                    │

00:03:03 #20315 [Verbose] > │     let v21 : UH1 = UH1_1                                                    │

00:03:03 #20316 [Verbose] > │     let v22 : UH1 = method8(v20, v21)                                        │

00:03:03 #20317 [Verbose] > │     let v23 : UH2 = UH2_1                                                    │

00:03:03 #20318 [Verbose] > │     let v24 : UH2 = UH2_1                                                    │

00:03:03 #20319 [Verbose] > │     let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24)               │

00:03:03 #20320 [Verbose] > │     let v27 : UH2 = UH2_1                                                    │

00:03:03 #20321 [Verbose] > │     let v28 : UH2 = method6(v25, v27)                                        │

00:03:03 #20322 [Verbose] > │     let v29 : UH2 = UH2_1                                                    │

00:03:03 #20323 [Verbose] > │     let v30 : UH2 = method6(v26, v29)                                        │

00:03:03 #20324 [Verbose] > │     let v31 : (float []) = method9(v15)                                      │

00:03:03 #20325 [Verbose] > │     let v32 : (float []) = method9(v17)                                      │

00:03:03 #20326 [Verbose] > │     let v33 : (float []) = method9(v28)                                      │

00:03:03 #20327 [Verbose] > │     let v34 : (float []) = method9(v30)                                      │

00:03:03 #20328 [Verbose] > │     let v35 : string = "newtonian"                                           │

00:03:03 #20329 [Verbose] > │     let v36 : string = "relativistic"                                        │

00:03:03 #20330 [Verbose] > │     let v37 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:03:03 #20331 [Verbose] > │ (v35, v31, v32); struct (v36, v33, v34)|]                                    │

00:03:03 #20332 [Verbose] > │     let v38 : (struct (string * (float []) * (float [])) []) = method12(v37) │

00:03:03 #20333 [Verbose] > │     let v39 : string = "proton in a 1-t magnetic field"                      │

00:03:03 #20334 [Verbose] > │     let v40 : string = "x (m)"                                               │

00:03:03 #20335 [Verbose] > │     let v41 : string = "y (m)"                                               │

00:03:03 #20336 [Verbose] > │     struct (v39, v40, v41, v38)                                              │

00:03:03 #20337 [Verbose] > │ method0()                                                                    │

00:03:03 #20338 [Verbose] > │                                                                              │

00:03:03 #20339 [Verbose] > │                                                                              │

00:03:03 #20340 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:03 #20341 [Verbose] >

00:03:03 #20342 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:03:03 #20343 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:03:03 #20344 [Verbose] > │ ### system kinetic energy versus time 1                                      │

00:03:03 #20345 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:03 #20346 [Verbose] >

00:03:03 #20347 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:03 #20348 [Verbose] > // // test

00:03:03 #20349 [Verbose] >

00:03:03 #20350 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =

00:03:03 #20351 [Verbose] >     inl r1 = st1.pos_vec

00:03:03 #20352 [Verbose] >     inl r2 = st2.pos_vec

00:03:03 #20353 [Verbose] >     inl r21 = r2 ^-^ r1

00:03:03 #20354 [Verbose] >     inl r21mag = magnitude r21

00:03:03 #20355 [Verbose] >     f r21mag *^ r21 ^/ r21mag

00:03:03 #20356 [Verbose] >

00:03:03 #20357 [Verbose] > inl billiard_force k re =

00:03:03 #20358 [Verbose] >     inl f r =

00:03:03 #20359 [Verbose] >         if r >= re

00:03:03 #20360 [Verbose] >         then 0

00:03:03 #20361 [Verbose] >         else -k * (r - re)

00:03:03 #20362 [Verbose] >     central_force f

00:03:03 #20363 [Verbose] >

00:03:03 #20364 [Verbose] > type force_vector = vec

00:03:03 #20365 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector

00:03:03 #20366 [Verbose] >

00:03:03 #20367 [Verbose] > union force =

00:03:03 #20368 [Verbose] >     | ExternalForce : i32 * one_body_force

00:03:03 #20369 [Verbose] >     | InternalForce : i32 * i32 * two_body_force

00:03:03 #20370 [Verbose] >

00:03:03 #20371 [Verbose] > nominal multi_particle_state = list particle_state

00:03:03 #20372 [Verbose] >

00:03:03 #20373 [Verbose] > nominal d_multi_particle_state = list d_particle_state

00:03:03 #20374 [Verbose] >

00:03:03 #20375 [Verbose] > inl force_on n sts force =

00:03:03 #20376 [Verbose] >     match force with

00:03:03 #20377 [Verbose] >     | ExternalForce (n0, f_one_body) =>

00:03:03 #20378 [Verbose] >         if n = n0

00:03:03 #20379 [Verbose] >         then f_one_body

00:03:03 #20380 [Verbose] >         else fun _ => zero_vec ()

00:03:03 #20381 [Verbose] >     | InternalForce (n0, n1, f_two_body) =>

00:03:03 #20382 [Verbose] >         if n = n0

00:03:03 #20383 [Verbose] >         then f_two_body (sts |> listm'.item n1)

00:03:03 #20384 [Verbose] >         elif n = n1

00:03:03 #20385 [Verbose] >         then f_two_body (sts |> listm'.item n0)

00:03:03 #20386 [Verbose] >         else fun _ => zero_vec ()

00:03:03 #20387 [Verbose] >

00:03:03 #20388 [Verbose] > inl forces_on n (multi_particle_state sts) fs =

00:03:03 #20389 [Verbose] >     fs |> listm.map (force_on n sts)

00:03:03 #20390 [Verbose] >

00:03:03 #20391 [Verbose] > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =

00:03:03 #20392 [Verbose] >     inl deriv (n, st) =

00:03:03 #20393 [Verbose] >         newton_second_ps (forces_on n (multi_particle_state sts) fs) st

00:03:03 #20394 [Verbose] >     sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state

00:03:03 #20395 [Verbose] >

00:03:03 #20396 [Verbose] > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)

00:03:03 #20397 [Verbose] > (d_multi_particle_state dsts2) =>

00:03:03 #20398 [Verbose] >     d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)

00:03:03 #20399 [Verbose] >

00:03:03 #20400 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>

00:03:03 #20401 [Verbose] >     d_multi_particle_state (dsts |> listm.map (scale w))

00:03:03 #20402 [Verbose] >

00:03:03 #20403 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>

00:03:03 #20404 [Verbose] >     inl (d_multi_particle_state dsts) =

00:03:03 #20405 [Verbose] >         real

00:03:03 #20406 [Verbose] >             match dsts with

00:03:03 #20407 [Verbose] >             | d_multi_particle_state _ => dsts

00:03:03 #20408 [Verbose] >     listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state

00:03:03 #20409 [Verbose] >

00:03:03 #20410 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state

00:03:03 #20411 [Verbose] > d_multi_particle_state =

00:03:03 #20412 [Verbose] >     fun deriv mpst0 =>

00:03:03 #20413 [Verbose] >         inl mpst1 = euler dt deriv mpst0

00:03:03 #20414 [Verbose] >         inl (multi_particle_state sts0) = mpst0

00:03:03 #20415 [Verbose] >         inl (multi_particle_state sts1) = mpst1

00:03:03 #20416 [Verbose] >         sts1

00:03:03 #20417 [Verbose] >         |> listm'.zip_ sts0

00:03:03 #20418 [Verbose] >         |> listm.map (fun ((particle_state st0), (particle_state st1)) =>

00:03:03 #20419 [Verbose] >             particle_state {

00:03:03 #20420 [Verbose] >                 st1 with

00:03:03 #20421 [Verbose] >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt

00:03:03 #20422 [Verbose] >             }

00:03:03 #20423 [Verbose] >         )

00:03:03 #20424 [Verbose] >         |> multi_particle_state

00:03:03 #20425 [Verbose] >

00:03:03 #20426 [Verbose] > inl update_mps (method : numerical_method multi_particle_state

00:03:03 #20427 [Verbose] > d_multi_particle_state) =

00:03:03 #20428 [Verbose] >     newton_second_mps >> method

00:03:03 #20429 [Verbose] >

00:03:03 #20430 [Verbose] > inl states_mps (method : numerical_method multi_particle_state

00:03:03 #20431 [Verbose] > d_multi_particle_state) =

00:03:03 #20432 [Verbose] >     newton_second_mps >> method >> seq.iterate_

00:03:03 #20433 [Verbose] >

00:03:03 #20434 [Verbose] >

00:03:03 #20435 [Verbose] > inl kinetic_energy (particle_state st) =

00:03:03 #20436 [Verbose] >     inl m = st.mass

00:03:03 #20437 [Verbose] >     inl v = magnitude st.velocity

00:03:03 #20438 [Verbose] >     0.5 * m * v ** 2

00:03:03 #20439 [Verbose] >

00:03:03 #20440 [Verbose] > inl system_ke (multi_particle_state sts) =

00:03:03 #20441 [Verbose] >     sts |> listm.map kinetic_energy |> listm'.sum

00:03:03 #20442 [Verbose] >

00:03:03 #20443 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =

00:03:03 #20444 [Verbose] >     inl r1 = st1.pos_vec

00:03:03 #20445 [Verbose] >     inl r2 = st2.pos_vec

00:03:03 #20446 [Verbose] >     inl r21 = r2 ^-^ r1

00:03:03 #20447 [Verbose] >     inl r21mag = magnitude r21

00:03:03 #20448 [Verbose] >     k * (r21mag - re) ** 2 / 2

00:03:03 #20449 [Verbose] >

00:03:03 #20450 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =

00:03:03 #20451 [Verbose] >     inl g = 9.80665

00:03:03 #20452 [Verbose] >     inl m = st.mass

00:03:03 #20453 [Verbose] >     inl z = st.pos_vec.z

00:03:03 #20454 [Verbose] >     m * g * z

00:03:03 #20455 [Verbose] >

00:03:03 #20456 [Verbose] > inl two_springs_pe (multi_particle_state sts) =

00:03:03 #20457 [Verbose] >     inl st0 = sts |> listm'.item 0i32

00:03:03 #20458 [Verbose] >     inl st1 = sts |> listm'.item 1i32

00:03:03 #20459 [Verbose] >     linear_spring_pe 100 0.5 (default_particle_state ()) st0

00:03:03 #20460 [Verbose] >     + linear_spring_pe 100 0.5 st0 st1

00:03:03 #20461 [Verbose] >     + earth_surface_gravity_pe st0

00:03:03 #20462 [Verbose] >     + earth_surface_gravity_pe st1

00:03:03 #20463 [Verbose] >

00:03:03 #20464 [Verbose] > inl two_springs_me mpst =

00:03:03 #20465 [Verbose] >     system_ke mpst + two_springs_pe mpst

00:03:03 #20466 [Verbose] >

00:03:03 #20467 [Verbose] > inl ball_radius () = 0.03

00:03:03 #20468 [Verbose] >

00:03:03 #20469 [Verbose] > inl billiard_forces k =

00:03:03 #20470 [Verbose] >     [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]

00:03:03 #20471 [Verbose] >

00:03:03 #20472 [Verbose] > inl billiard_update n_method k dt =

00:03:03 #20473 [Verbose] >     update_mps (n_method dt) (billiard_forces k)

00:03:03 #20474 [Verbose] >

00:03:03 #20475 [Verbose] > inl billiard_initial () =

00:03:03 #20476 [Verbose] >     inl ball_mass = 0.160

00:03:03 #20477 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:03 #20478 [Verbose] >     multi_particle_state [[

00:03:03 #20479 [Verbose] >         particle_state {

00:03:03 #20480 [Verbose] >             default_particle_state' with

00:03:03 #20481 [Verbose] >                 mass = ball_mass

00:03:03 #20482 [Verbose] >                 pos_vec = zero_vec ()

00:03:03 #20483 [Verbose] >                 velocity = 0.2 *^ i_hat ()

00:03:03 #20484 [Verbose] >         }

00:03:03 #20485 [Verbose] >         particle_state {

00:03:03 #20486 [Verbose] >             default_particle_state' with

00:03:03 #20487 [Verbose] >                 mass = ball_mass

00:03:03 #20488 [Verbose] >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()

00:03:03 #20489 [Verbose] >                 velocity = zero_vec ()

00:03:03 #20490 [Verbose] >         }

00:03:03 #20491 [Verbose] >     ]]

00:03:03 #20492 [Verbose] >

00:03:03 #20493 [Verbose] > inl billiard_states ~n_method k dt =

00:03:03 #20494 [Verbose] >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())

00:03:03 #20495 [Verbose] >

00:03:03 #20496 [Verbose] > inl billiard_states_finite n_method k dt =

00:03:03 #20497 [Verbose] >     billiard_states n_method k dt

00:03:03 #20498 [Verbose] >     >> Some

00:03:03 #20499 [Verbose] >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>

00:03:03 #20500 [Verbose] >         (mpst |> listm'.item 0i32).time <= 10

00:03:03 #20501 [Verbose] >     )

00:03:03 #20502 [Verbose] >

00:03:03 #20503 [Verbose] > inl momentum (particle_state st) =

00:03:03 #20504 [Verbose] >     inl m = st.mass

00:03:03 #20505 [Verbose] >     inl v = st.velocity

00:03:03 #20506 [Verbose] >     m *^ v

00:03:03 #20507 [Verbose] >

00:03:03 #20508 [Verbose] > inl system_p (multi_particle_state sts) =

00:03:03 #20509 [Verbose] >     sts |> listm.map momentum |> sum_vec

00:03:03 #20510 [Verbose] >

00:03:03 #20511 [Verbose] >

00:03:03 #20512 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =

00:03:03 #20513 [Verbose] >     billiard_states_finite euler_cromer_mps 30 0.03

00:03:03 #20514 [Verbose] >     |> listm.map (fun (multi_particle_state mpst) =>

00:03:03 #20515 [Verbose] >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)

00:03:03 #20516 [Verbose] >     )

00:03:03 #20517 [Verbose] >     |> listm'.unzip

00:03:03 #20518 [Verbose] >

00:03:03 #20519 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =

00:03:03 #20520 [Verbose] >     billiard_states_finite runge_kutta_4 30 0.03

00:03:03 #20521 [Verbose] >     |> listm.map (fun (multi_particle_state mpst) =>

00:03:03 #20522 [Verbose] >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)

00:03:03 #20523 [Verbose] >     )

00:03:03 #20524 [Verbose] >     |> listm'.unzip

00:03:03 #20525 [Verbose] >

00:03:03 #20526 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray

00:03:03 #20527 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray

00:03:03 #20528 [Verbose] >

00:03:03 #20529 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray

00:03:03 #20530 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray

00:03:03 #20531 [Verbose] >

00:03:03 #20532 [Verbose] > "system kinetic energy versus time",

00:03:03 #20533 [Verbose] > "time (s)",

00:03:03 #20534 [Verbose] > "system kinetic energy (j)",

00:03:03 #20535 [Verbose] > ;[[

00:03:03 #20536 [Verbose] >     "euler-cromer", time_ke_ec_x, time_ke_ec_y

00:03:03 #20537 [Verbose] >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y

00:03:03 #20538 [Verbose] > ]]

00:03:03 #20539 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0138-5895-9596-980766382b1d\main.spi

00:03:05 #20540 [Verbose] >

00:03:05 #20541 [Verbose] > ╭─[ 1.74s - return value ]─────────────────────────────────────────────────────╮

00:03:05 #20542 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:03:05 #20543 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:05 #20544 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:05 #20545 [Verbose] > │ stroke="none"/>                                                              │

00:03:05 #20546 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:05 #20547 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:05 #20548 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:05 #20549 [Verbose] > │ system kinetic energy versus time                                            │

00:03:05 #20550 [Verbose] > │ </text>                                                                      │

00:03:05 #20551 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:03:05 #20552 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #20553 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:05 #20554 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #20555 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:03:05 #20556 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #20557 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:03:05 #20558 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #20559 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1...                        │

00:03:05 #20560 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:05 #20561 [Verbose] >

00:03:05 #20562 [Verbose] > ╭─[ 1.76s - stdout ]───────────────────────────────────────────────────────────╮

00:03:05 #20563 [Verbose] > │ type UH0 =                                                                   │

00:03:05 #20564 [Verbose] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:03:05 #20565 [Verbose] > │ * float * UH0                                                                │

00:03:05 #20566 [Verbose] > │     | UH0_1                                                                  │

00:03:05 #20567 [Verbose] > │ and UH1 =                                                                    │

00:03:05 #20568 [Verbose] > │     | UH1_0 of float * float * float * float * float * float * float * float │

00:03:05 #20569 [Verbose] > │ * float * UH1                                                                │

00:03:05 #20570 [Verbose] > │     | UH1_1                                                                  │

00:03:05 #20571 [Verbose] > │ and UH2 =                                                                    │

00:03:05 #20572 [Verbose] > │     | UH2_0 of float * float * float * float * float * float * float * float │

00:03:05 #20573 [Verbose] > │ * float * float * float * float * float * float * float * float * float *    │

00:03:05 #20574 [Verbose] > │ float * UH2                                                                  │

00:03:05 #20575 [Verbose] > │     | UH2_1                                                                  │

00:03:05 #20576 [Verbose] > │ and UH3 =                                                                    │

00:03:05 #20577 [Verbose] > │     | UH3_0 of int32 * float * float * float * float * float * float * float │

00:03:05 #20578 [Verbose] > │ * float * float * UH3                                                        │

00:03:05 #20579 [Verbose] > │     | UH3_1                                                                  │

00:03:05 #20580 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:03:05 #20581 [Verbose] > │     | US0_0                                                                  │

00:03:05 #20582 [Verbose] > │     | US0_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float *   │

00:03:05 #20583 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float     │

00:03:05 #20584 [Verbose] > │ and UH4 =                                                                    │

00:03:05 #20585 [Verbose] > │     | UH4_0 of UH0 * UH4                                                     │

00:03:05 #20586 [Verbose] > │     | UH4_1                                                                  │

00:03:05 #20587 [Verbose] > │ and UH5 =                                                                    │

00:03:05 #20588 [Verbose] > │     | UH5_0 of float * float * UH5                                           │

00:03:05 #20589 [Verbose] > │     | UH5_1                                                                  │

00:03:05 #20590 [Verbose] > │ and UH6 =                                                                    │

00:03:05 #20591 [Verbose] > │     | UH6_0 of float * UH6                                                   │

00:03:05 #20592 [Verbose] > │     | UH6_1                                                                  │

00:03:05 #20593 [Verbose] > │ let rec method2 (v0 : UH0, v1 : UH0) : UH0 =                                 │

00:03:05 #20594 [Verbose] > │     match v0 with                                                            │

00:03:05 #20595 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:05 #20596 [Verbose] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:03:05 #20597 [Verbose] > │         method2(v11, v12)                                                    │

00:03:05 #20598 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:05 #20599 [Verbose] > │         v1                                                                   │

00:03:05 #20600 [Verbose] > │ and method1 (v0 : float, v1 : UH0, v2 : UH1, v3 : UH0) : UH0 =               │

00:03:05 #20601 [Verbose] > │     match v2 with                                                            │

00:03:05 #20602 [Verbose] > │     | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *)        │

00:03:05 #20603 [Verbose] > │         match v3 with                                                        │

00:03:05 #20604 [Verbose] > │         | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* Cons │

00:03:05 #20605 [Verbose] > │ *)                                                                           │

00:03:05 #20606 [Verbose] > │             let v24 : float = v9 * v0                                        │

00:03:05 #20607 [Verbose] > │             let v25 : float = v19 + v24                                      │

00:03:05 #20608 [Verbose] > │             let v26 : float = v0 * v6                                        │

00:03:05 #20609 [Verbose] > │             let v27 : float = v0 * v7                                        │

00:03:05 #20610 [Verbose] > │             let v28 : float = v0 * v8                                        │

00:03:05 #20611 [Verbose] > │             let v29 : float = v16 + v26                                      │

00:03:05 #20612 [Verbose] > │             let v30 : float = v17 + v27                                      │

00:03:05 #20613 [Verbose] > │             let v31 : float = v18 + v28                                      │

00:03:05 #20614 [Verbose] > │             let v32 : float = v0 * v10                                       │

00:03:05 #20615 [Verbose] > │             let v33 : float = v0 * v11                                       │

00:03:05 #20616 [Verbose] > │             let v34 : float = v0 * v12                                       │

00:03:05 #20617 [Verbose] > │             let v35 : float = v20 + v32                                      │

00:03:05 #20618 [Verbose] > │             let v36 : float = v21 + v33                                      │

00:03:05 #20619 [Verbose] > │             let v37 : float = v22 + v34                                      │

00:03:05 #20620 [Verbose] > │             let v38 : UH0 = UH0_0(v14, v15, v29, v30, v31, v25, v35, v36,    │

00:03:05 #20621 [Verbose] > │ v37, v1)                                                                     │

00:03:05 #20622 [Verbose] > │             method1(v0, v38, v13, v23)                                       │

00:03:05 #20623 [Verbose] > │         | _ ->                                                               │

00:03:05 #20624 [Verbose] > │             let v40 : UH0 = UH0_1                                            │

00:03:05 #20625 [Verbose] > │             method2(v1, v40)                                                 │

00:03:05 #20626 [Verbose] > │     | _ ->                                                                   │

00:03:05 #20627 [Verbose] > │         let v43 : UH0 = UH0_1                                                │

00:03:05 #20628 [Verbose] > │         method2(v1, v43)                                                     │

00:03:05 #20629 [Verbose] > │ and method4 (v0 : UH2, v1 : UH2) : UH2 =                                     │

00:03:05 #20630 [Verbose] > │     match v0 with                                                            │

00:03:05 #20631 [Verbose] > │     | UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15,    │

00:03:05 #20632 [Verbose] > │ v16, v17, v18, v19, v20) -> (* Cons *)                                       │

00:03:05 #20633 [Verbose] > │         let v21 : UH2 = UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, │

00:03:05 #20634 [Verbose] > │ v13, v14, v15, v16, v17, v18, v19, v1)                                       │

00:03:05 #20635 [Verbose] > │         method4(v20, v21)                                                    │

00:03:05 #20636 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:05 #20637 [Verbose] > │         v1                                                                   │

00:03:05 #20638 [Verbose] > │ and method3 (v0 : UH2, v1 : UH0, v2 : UH0) : UH2 =                           │

00:03:05 #20639 [Verbose] > │     match v1 with                                                            │

00:03:05 #20640 [Verbose] > │     | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)         │

00:03:05 #20641 [Verbose] > │         match v2 with                                                        │

00:03:05 #20642 [Verbose] > │         | UH0_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │

00:03:05 #20643 [Verbose] > │ *)                                                                           │

00:03:05 #20644 [Verbose] > │             let v23 : UH2 = UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v13, │

00:03:05 #20645 [Verbose] > │ v14, v15, v16, v17, v18, v19, v20, v21, v0)                                  │

00:03:05 #20646 [Verbose] > │             method3(v23, v12, v22)                                           │

00:03:05 #20647 [Verbose] > │         | _ ->                                                               │

00:03:05 #20648 [Verbose] > │             let v25 : UH2 = UH2_1                                            │

00:03:05 #20649 [Verbose] > │             method4(v0, v25)                                                 │

00:03:05 #20650 [Verbose] > │     | _ ->                                                                   │

00:03:05 #20651 [Verbose] > │         let v28 : UH2 = UH2_1                                                │

00:03:05 #20652 [Verbose] > │         method4(v0, v28)                                                     │

00:03:05 #20653 [Verbose] > │ and method5 (v0 : float, v1 : UH2, v2 : UH0) : UH0 =                         │

00:03:05 #20654 [Verbose] > │     match v1 with                                                            │

00:03:05 #20655 [Verbose] > │     | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16,   │

00:03:05 #20656 [Verbose] > │ v17, v18, v19, v20, v21) -> (* Cons *)                                       │

00:03:05 #20657 [Verbose] > │         let v22 : UH0 = method5(v0, v21, v2)                                 │

00:03:05 #20658 [Verbose] > │         let v23 : float = v0 * v18                                           │

00:03:05 #20659 [Verbose] > │         let v24 : float = v0 * v19                                           │

00:03:05 #20660 [Verbose] > │         let v25 : float = v0 * v20                                           │

00:03:05 #20661 [Verbose] > │         let v26 : float = v5 + v23                                           │

00:03:05 #20662 [Verbose] > │         let v27 : float = v6 + v24                                           │

00:03:05 #20663 [Verbose] > │         let v28 : float = v7 + v25                                           │

00:03:05 #20664 [Verbose] > │         UH0_0(v12, v13, v26, v27, v28, v17, v18, v19, v20, v22)              │

00:03:05 #20665 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:03:05 #20666 [Verbose] > │         v2                                                                   │

00:03:05 #20667 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =              │

00:03:05 #20668 [Verbose] > │     let v3 : UH1 = v1 v2                                                     │

00:03:05 #20669 [Verbose] > │     let v4 : UH0 = UH0_1                                                     │

00:03:05 #20670 [Verbose] > │     let v5 : UH0 = method1(v0, v4, v3, v2)                                   │

00:03:05 #20671 [Verbose] > │     let v6 : UH2 = UH2_1                                                     │

00:03:05 #20672 [Verbose] > │     let v7 : UH2 = method3(v6, v2, v5)                                       │

00:03:05 #20673 [Verbose] > │     let v8 : UH0 = UH0_1                                                     │

00:03:05 #20674 [Verbose] > │     let v9 : UH0 = method5(v0, v7, v8)                                       │

00:03:05 #20675 [Verbose] > │     v9                                                                       │

00:03:05 #20676 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =               │

00:03:05 #20677 [Verbose] > │     closure2(v0, v1)                                                         │

00:03:05 #20678 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =              │

00:03:05 #20679 [Verbose] > │     closure1(v0)                                                             │

00:03:05 #20680 [Verbose] > │ and method6 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) =        │

00:03:05 #20681 [Verbose] > │     match v0 with                                                            │

00:03:05 #20682 [Verbose] > │     | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)         │

00:03:05 #20683 [Verbose] > │         let v13 : int32 = v2 + 1                                             │

00:03:05 #20684 [Verbose] > │         let v14 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1)  │

00:03:05 #20685 [Verbose] > │         method6(v12, v14, v13)                                               │

00:03:05 #20686 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:05 #20687 [Verbose] > │         struct (v1, v2)                                                      │

00:03:05 #20688 [Verbose] > │ and method7 (v0 : UH3, v1 : UH3) : UH3 =                                     │

00:03:05 #20689 [Verbose] > │     match v0 with                                                            │

00:03:05 #20690 [Verbose] > │     | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)     │

00:03:05 #20691 [Verbose] > │         let v13 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1)  │

00:03:05 #20692 [Verbose] > │         method7(v12, v13)                                                    │

00:03:05 #20693 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:03:05 #20694 [Verbose] > │         v1                                                                   │

00:03:05 #20695 [Verbose] > │ and closure4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │

00:03:05 #20696 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 :       │

00:03:05 #20697 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:03:05 #20698 [Verbose] > │ : float, v17 : float) : struct (float * float * float) =                     │

00:03:05 #20699 [Verbose] > │     let v18 : float = -1.0 * v2                                              │

00:03:05 #20700 [Verbose] > │     let v19 : float = -1.0 * v3                                              │

00:03:05 #20701 [Verbose] > │     let v20 : float = -1.0 * v4                                              │

00:03:05 #20702 [Verbose] > │     let v21 : float = v11 + v18                                              │

00:03:05 #20703 [Verbose] > │     let v22 : float = v12 + v19                                              │

00:03:05 #20704 [Verbose] > │     let v23 : float = v13 + v20                                              │

00:03:05 #20705 [Verbose] > │     let v24 : float = v21 * v21                                              │

00:03:05 #20706 [Verbose] > │     let v25 : float = v22 * v22                                              │

00:03:05 #20707 [Verbose] > │     let v26 : float = v24 + v25                                              │

00:03:05 #20708 [Verbose] > │     let v27 : float = v23 * v23                                              │

00:03:05 #20709 [Verbose] > │     let v28 : float = v26 + v27                                              │

00:03:05 #20710 [Verbose] > │     let v29 : float = sqrt v28                                               │

00:03:05 #20711 [Verbose] > │     let v30 : bool = v29 >= 0.06                                             │

00:03:05 #20712 [Verbose] > │     let v33 : float =                                                        │

00:03:05 #20713 [Verbose] > │         if v30 then                                                          │

00:03:05 #20714 [Verbose] > │             0.0                                                              │

00:03:05 #20715 [Verbose] > │         else                                                                 │

00:03:05 #20716 [Verbose] > │             let v31 : float = v29 - 0.06                                     │

00:03:05 #20717 [Verbose] > │             let v32 : float = -30.0 * v31                                    │

00:03:05 #20718 [Verbose] > │             v32                                                              │

00:03:05 #20719 [Verbose] > │     let v34 : float = v33 * v21                                              │

00:03:05 #20720 [Verbose] > │     let v35 : float = v33 * v22                                              │

00:03:05 #20721 [Verbose] > │     let v36 : float = v33 * v23                                              │

00:03:05 #20722 [Verbose] > │     let v37 : float = v34 / v29                                              │

00:03:05 #20723 [Verbose] > │     let v38 : float = v35 / v29                                              │

00:03:05 #20724 [Verbose] > │     let v39 : float = v36 / v29                                              │

00:03:05 #20725 [Verbose] > │     struct (v37, v38, v39)                                                   │

00:03:05 #20726 [Verbose] > │ and closure5 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:03:05 #20727 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:03:05 #20728 [Verbose] > │ float * float) =                                                             │

00:03:05 #20729 [Verbose] > │     struct (0.0, 0.0, 0.0)                                                   │

00:03:05 #20730 [Verbose] > │ and method8 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 =                           │

00:03:05 #20731 [Verbose] > │     match v1 with                                                            │

00:03:05 #20732 [Verbose] > │     | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *)    │

00:03:05 #20733 [Verbose] > │         let v14 : UH1 = method8(v0, v13, v2)                                 │

00:03:05 #20734 [Verbose] > │         let v15 : bool = v3 = 0                                              │

00:03:05 #20735 [Verbose] > │         let v134 : (struct (float * float * float * float * float * float *  │

00:03:05 #20736 [Verbose] > │ float * float * float) -> struct (float * float * float)) =                  │

00:03:05 #20737 [Verbose] > │             if v15 then                                                      │

00:03:05 #20738 [Verbose] > │                 let v42 : US0 =                                              │

00:03:05 #20739 [Verbose] > │                     match v0 with                                            │

00:03:05 #20740 [Verbose] > │                     | UH0_0(v16, v17, v18, v19, v20, v21, v22, v23, v24,     │

00:03:05 #20741 [Verbose] > │ v25) -> (* Cons *)                                                           │

00:03:05 #20742 [Verbose] > │                         match v25 with                                       │

00:03:05 #20743 [Verbose] > │                         | UH0_0(v26, v27, v28, v29, v30, v31, v32, v33, v34, │

00:03:05 #20744 [Verbose] > │ v35) -> (* Cons *)                                                           │

00:03:05 #20745 [Verbose] > │                             US0_1(v26, v27, v28, v29, v30, v31, v32, v33,    │

00:03:05 #20746 [Verbose] > │ v34)                                                                         │

00:03:05 #20747 [Verbose] > │                         | UH0_1 -> (* Nil *)                                 │

00:03:05 #20748 [Verbose] > │                             US0_0                                            │

00:03:05 #20749 [Verbose] > │                     | UH0_1 -> (* Nil *)                                     │

00:03:05 #20750 [Verbose] > │                         US0_0                                                │

00:03:05 #20751 [Verbose] > │                 let struct (v70 : float, v71 : float, v72 : float, v73 :     │

00:03:05 #20752 [Verbose] > │ float, v74 : float, v75 : float, v76 : float, v77 : float, v78 : float) =    │

00:03:05 #20753 [Verbose] > │                     match v42 with                                           │

00:03:05 #20754 [Verbose] > │                     | US0_0 -> (* None *)                                    │

00:03:05 #20755 [Verbose] > │                         failwith<struct (float * float * float * float *     │

00:03:05 #20756 [Verbose] > │ float * float * float * float * float)> "Option does not have a value."      │

00:03:05 #20757 [Verbose] > │                     | US0_1(v43, v44, v45, v46, v47, v48, v49, v50, v51) ->  │

00:03:05 #20758 [Verbose] > │ (* Some *)                                                                   │

00:03:05 #20759 [Verbose] > │                         struct (v43, v44, v45, v46, v47, v48, v49, v50, v51) │

00:03:05 #20760 [Verbose] > │                 closure4(v70, v71, v72, v73, v74, v75, v76, v77, v78)        │

00:03:05 #20761 [Verbose] > │             else                                                             │

00:03:05 #20762 [Verbose] > │                 let v80 : bool = v3 = 1                                      │

00:03:05 #20763 [Verbose] > │                 if v80 then                                                  │

00:03:05 #20764 [Verbose] > │                     let v94 : US0 =                                          │

00:03:05 #20765 [Verbose] > │                         match v0 with                                        │

00:03:05 #20766 [Verbose] > │                         | UH0_0(v81, v82, v83, v84, v85, v86, v87, v88, v89, │

00:03:05 #20767 [Verbose] > │ v90) -> (* Cons *)                                                           │

00:03:05 #20768 [Verbose] > │                             US0_1(v81, v82, v83, v84, v85, v86, v87, v88,    │

00:03:05 #20769 [Verbose] > │ v89)                                                                         │

00:03:05 #20770 [Verbose] > │                         | UH0_1 -> (* Nil *)                                 │

00:03:05 #20771 [Verbose] > │                             US0_0                                            │

00:03:05 #20772 [Verbose] > │                     let struct (v122 : float, v123 : float, v124 : float,    │

00:03:05 #20773 [Verbose] > │ v125 : float, v126 : float, v127 : float, v128 : float, v129 : float, v130 : │

00:03:05 #20774 [Verbose] > │ float) =                                                                     │

00:03:05 #20775 [Verbose] > │                         match v94 with                                       │

00:03:05 #20776 [Verbose] > │                         | US0_0 -> (* None *)                                │

00:03:05 #20777 [Verbose] > │                             failwith<struct (float * float * float * float * │

00:03:05 #20778 [Verbose] > │ float * float * float * float * float)> "Option does not have a value."      │

00:03:05 #20779 [Verbose] > │                         | US0_1(v95, v96, v97, v98, v99, v100, v101, v102,   │

00:03:05 #20780 [Verbose] > │ v103) -> (* Some *)                                                          │

00:03:05 #20781 [Verbose] > │                             struct (v95, v96, v97, v98, v99, v100, v101,     │

00:03:05 #20782 [Verbose] > │ v102, v103)                                                                  │

00:03:05 #20783 [Verbose] > │                     closure4(v122, v123, v124, v125, v126, v127, v128, v129, │

00:03:05 #20784 [Verbose] > │ v130)                                                                        │

00:03:05 #20785 [Verbose] > │                 else                                                         │

00:03:05 #20786 [Verbose] > │                     closure5()                                               │

00:03:05 #20787 [Verbose] > │         let struct (v135 : float, v136 : float, v137 : float) = v134 struct  │

00:03:05 #20788 [Verbose] > │ (v4, v5, v6, v7, v8, v9, v10, v11, v12)                                      │

00:03:05 #20789 [Verbose] > │         let v138 : float = v135 / v5                                         │

00:03:05 #20790 [Verbose] > │         let v139 : float = v136 / v5                                         │

00:03:05 #20791 [Verbose] > │         let v140 : float = v137 / v5                                         │

00:03:05 #20792 [Verbose] > │         UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v138, v139, v140, v14)           │

00:03:05 #20793 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:03:05 #20794 [Verbose] > │         v2                                                                   │

00:03:05 #20795 [Verbose] > │ and closure3 () (v0 : UH0) : UH1 =                                           │

00:03:05 #20796 [Verbose] > │     let v1 : UH3 = UH3_1                                                     │

00:03:05 #20797 [Verbose] > │     let v2 : int32 = 0                                                       │

00:03:05 #20798 [Verbose] > │     let struct (v3 : UH3, v4 : int32) = method6(v0, v1, v2)                  │

00:03:05 #20799 [Verbose] > │     let v5 : UH3 = UH3_1                                                     │

00:03:05 #20800 [Verbose] > │     let v6 : UH3 = method7(v3, v5)                                           │

00:03:05 #20801 [Verbose] > │     let v7 : UH1 = UH1_1                                                     │

00:03:05 #20802 [Verbose] > │     let v8 : UH1 = method8(v0, v6, v7)                                       │

00:03:05 #20803 [Verbose] > │     v8                                                                       │

00:03:05 #20804 [Verbose] > │ and method10 (v0 : (UH0 -> UH0), v1 : UH0, v2 : int32) : UH0 =               │

00:03:05 #20805 [Verbose] > │     let v3 : bool = v2 <= 0                                                  │

00:03:05 #20806 [Verbose] > │     if v3 then                                                               │

00:03:05 #20807 [Verbose] > │         v1                                                                   │

00:03:05 #20808 [Verbose] > │     else                                                                     │

00:03:05 #20809 [Verbose] > │         let v4 : UH0 = v0 v1                                                 │

00:03:05 #20810 [Verbose] > │         let v5 : int32 = v2 - 1                                              │

00:03:05 #20811 [Verbose] > │         method10(v0, v4, v5)                                                 │

00:03:05 #20812 [Verbose] > │ and method11 (v0 : UH4, v1 : UH4) : UH4 =                                    │

00:03:05 #20813 [Verbose] > │     match v0 with                                                            │

00:03:05 #20814 [Verbose] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #20815 [Verbose] > │         let v4 : UH4 = UH4_0(v2, v1)                                         │

00:03:05 #20816 [Verbose] > │         method11(v3, v4)                                                     │

00:03:05 #20817 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:05 #20818 [Verbose] > │         v1                                                                   │

00:03:05 #20819 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 =                │

00:03:05 #20820 [Verbose] > │     let v3 : float = 0.0                                                     │

00:03:05 #20821 [Verbose] > │     let v4 : float = 0.16                                                    │

00:03:05 #20822 [Verbose] > │     let v5 : float = 0.0                                                     │

00:03:05 #20823 [Verbose] > │     let v6 : float = 0.0                                                     │

00:03:05 #20824 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:05 #20825 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:05 #20826 [Verbose] > │     let v9 : float = 0.2                                                     │

00:03:05 #20827 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:05 #20828 [Verbose] > │     let v11 : float = 0.0                                                    │

00:03:05 #20829 [Verbose] > │     let v12 : float = 1.0                                                    │

00:03:05 #20830 [Verbose] > │     let v13 : float = 0.02                                                   │

00:03:05 #20831 [Verbose] > │     let v14 : float = 0.0                                                    │

00:03:05 #20832 [Verbose] > │     let v15 : float = 0.0                                                    │

00:03:05 #20833 [Verbose] > │     let v16 : float = 0.0                                                    │

00:03:05 #20834 [Verbose] > │     let v17 : float = 0.0                                                    │

00:03:05 #20835 [Verbose] > │     let v18 : UH0 = UH0_1                                                    │

00:03:05 #20836 [Verbose] > │     let v19 : UH0 = UH0_0(v3, v4, v12, v13, v14, v8, v15, v16, v17, v18)     │

00:03:05 #20837 [Verbose] > │     let v20 : UH0 = UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v19)         │

00:03:05 #20838 [Verbose] > │     let v21 : UH0 = method10(v0, v20, v2)                                    │

00:03:05 #20839 [Verbose] > │     let v35 : US0 =                                                          │

00:03:05 #20840 [Verbose] > │         match v21 with                                                       │

00:03:05 #20841 [Verbose] > │         | UH0_0(v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) -> (* Cons │

00:03:05 #20842 [Verbose] > │ *)                                                                           │

00:03:05 #20843 [Verbose] > │             US0_1(v22, v23, v24, v25, v26, v27, v28, v29, v30)               │

00:03:05 #20844 [Verbose] > │         | UH0_1 -> (* Nil *)                                                 │

00:03:05 #20845 [Verbose] > │             US0_0                                                            │

00:03:05 #20846 [Verbose] > │     let struct (v63 : float, v64 : float, v65 : float, v66 : float, v67 :    │

00:03:05 #20847 [Verbose] > │ float, v68 : float, v69 : float, v70 : float, v71 : float) =                 │

00:03:05 #20848 [Verbose] > │         match v35 with                                                       │

00:03:05 #20849 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:03:05 #20850 [Verbose] > │             failwith<struct (float * float * float * float * float * float * │

00:03:05 #20851 [Verbose] > │ float * float * float)> "Option does not have a value."                      │

00:03:05 #20852 [Verbose] > │         | US0_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> (* Some *)   │

00:03:05 #20853 [Verbose] > │             struct (v36, v37, v38, v39, v40, v41, v42, v43, v44)             │

00:03:05 #20854 [Verbose] > │     let v72 : bool = v68 <= 10.0                                             │

00:03:05 #20855 [Verbose] > │     if v72 then                                                              │

00:03:05 #20856 [Verbose] > │         let v73 : UH4 = UH4_0(v21, v1)                                       │

00:03:05 #20857 [Verbose] > │         let v74 : int32 = v2 + 1                                             │

00:03:05 #20858 [Verbose] > │         method9(v0, v73, v74)                                                │

00:03:05 #20859 [Verbose] > │     else                                                                     │

00:03:05 #20860 [Verbose] > │         let v76 : UH4 = UH4_1                                                │

00:03:05 #20861 [Verbose] > │         method11(v1, v76)                                                    │

00:03:05 #20862 [Verbose] > │ and method13 (v0 : UH0, v1 : UH6) : UH6 =                                    │

00:03:05 #20863 [Verbose] > │     match v0 with                                                            │

00:03:05 #20864 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:05 #20865 [Verbose] > │         let v12 : UH6 = method13(v11, v1)                                    │

00:03:05 #20866 [Verbose] > │         let v13 : float = v8 * v8                                            │

00:03:05 #20867 [Verbose] > │         let v14 : float = v9 * v9                                            │

00:03:05 #20868 [Verbose] > │         let v15 : float = v13 + v14                                          │

00:03:05 #20869 [Verbose] > │         let v16 : float = v10 * v10                                          │

00:03:05 #20870 [Verbose] > │         let v17 : float = v15 + v16                                          │

00:03:05 #20871 [Verbose] > │         let v18 : float = sqrt v17                                           │

00:03:05 #20872 [Verbose] > │         let v19 : float = 0.5 * v3                                           │

00:03:05 #20873 [Verbose] > │         let v20 : float = v18 ** 2.0                                         │

00:03:05 #20874 [Verbose] > │         let v21 : float = v19 * v20                                          │

00:03:05 #20875 [Verbose] > │         UH6_0(v21, v12)                                                      │

00:03:05 #20876 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:05 #20877 [Verbose] > │         v1                                                                   │

00:03:05 #20878 [Verbose] > │ and method14 (v0 : UH6, v1 : float) : float =                                │

00:03:05 #20879 [Verbose] > │     match v0 with                                                            │

00:03:05 #20880 [Verbose] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #20881 [Verbose] > │         let v4 : float = v1 + v2                                             │

00:03:05 #20882 [Verbose] > │         method14(v3, v4)                                                     │

00:03:05 #20883 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:03:05 #20884 [Verbose] > │         v1                                                                   │

00:03:05 #20885 [Verbose] > │ and method12 (v0 : UH4, v1 : UH5) : UH5 =                                    │

00:03:05 #20886 [Verbose] > │     match v0 with                                                            │

00:03:05 #20887 [Verbose] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #20888 [Verbose] > │         let v4 : UH5 = method12(v3, v1)                                      │

00:03:05 #20889 [Verbose] > │         let v18 : US0 =                                                      │

00:03:05 #20890 [Verbose] > │             match v2 with                                                    │

00:03:05 #20891 [Verbose] > │             | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons  │

00:03:05 #20892 [Verbose] > │ *)                                                                           │

00:03:05 #20893 [Verbose] > │                 US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13)                │

00:03:05 #20894 [Verbose] > │             | UH0_1 -> (* Nil *)                                             │

00:03:05 #20895 [Verbose] > │                 US0_0                                                        │

00:03:05 #20896 [Verbose] > │         let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50  │

00:03:05 #20897 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) =               │

00:03:05 #20898 [Verbose] > │             match v18 with                                                   │

00:03:05 #20899 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:03:05 #20900 [Verbose] > │                 failwith<struct (float * float * float * float * float *     │

00:03:05 #20901 [Verbose] > │ float * float * float * float)> "Option does not have a value."              │

00:03:05 #20902 [Verbose] > │             | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some  │

00:03:05 #20903 [Verbose] > │ *)                                                                           │

00:03:05 #20904 [Verbose] > │                 struct (v19, v20, v21, v22, v23, v24, v25, v26, v27)         │

00:03:05 #20905 [Verbose] > │         let v55 : UH6 = UH6_1                                                │

00:03:05 #20906 [Verbose] > │         let v56 : UH6 = method13(v2, v55)                                    │

00:03:05 #20907 [Verbose] > │         let v57 : float = 0.0                                                │

00:03:05 #20908 [Verbose] > │         let v58 : float = method14(v56, v57)                                 │

00:03:05 #20909 [Verbose] > │         UH5_0(v51, v58, v4)                                                  │

00:03:05 #20910 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:05 #20911 [Verbose] > │         v1                                                                   │

00:03:05 #20912 [Verbose] > │ and method15 (v0 : UH5, v1 : UH6, v2 : UH6) : struct (UH6 * UH6) =           │

00:03:05 #20913 [Verbose] > │     match v0 with                                                            │

00:03:05 #20914 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:03:05 #20915 [Verbose] > │         let v6 : UH6 = UH6_0(v3, v1)                                         │

00:03:05 #20916 [Verbose] > │         let v7 : UH6 = UH6_0(v4, v2)                                         │

00:03:05 #20917 [Verbose] > │         method15(v5, v6, v7)                                                 │

00:03:05 #20918 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:03:05 #20919 [Verbose] > │         struct (v1, v2)                                                      │

00:03:05 #20920 [Verbose] > │ and method16 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:03:05 #20921 [Verbose] > │     match v0 with                                                            │

00:03:05 #20922 [Verbose] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #20923 [Verbose] > │         let v4 : UH6 = UH6_0(v2, v1)                                         │

00:03:05 #20924 [Verbose] > │         method16(v3, v4)                                                     │

00:03:05 #20925 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:03:05 #20926 [Verbose] > │         v1                                                                   │

00:03:05 #20927 [Verbose] > │ and method18 (v0 : UH1, v1 : UH1) : UH1 =                                    │

00:03:05 #20928 [Verbose] > │     match v0 with                                                            │

00:03:05 #20929 [Verbose] > │     | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:03:05 #20930 [Verbose] > │         let v12 : UH1 = UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:03:05 #20931 [Verbose] > │         method18(v11, v12)                                                   │

00:03:05 #20932 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:05 #20933 [Verbose] > │         v1                                                                   │

00:03:05 #20934 [Verbose] > │ and method17 (v0 : UH1, v1 : UH1, v2 : UH1) : UH1 =                          │

00:03:05 #20935 [Verbose] > │     match v1 with                                                            │

00:03:05 #20936 [Verbose] > │     | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)         │

00:03:05 #20937 [Verbose] > │         match v2 with                                                        │

00:03:05 #20938 [Verbose] > │         | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │

00:03:05 #20939 [Verbose] > │ *)                                                                           │

00:03:05 #20940 [Verbose] > │             let v23 : float = v3 + v13                                       │

00:03:05 #20941 [Verbose] > │             let v24 : float = v4 + v14                                       │

00:03:05 #20942 [Verbose] > │             let v25 : float = v8 + v18                                       │

00:03:05 #20943 [Verbose] > │             let v26 : float = v5 + v15                                       │

00:03:05 #20944 [Verbose] > │             let v27 : float = v6 + v16                                       │

00:03:05 #20945 [Verbose] > │             let v28 : float = v7 + v17                                       │

00:03:05 #20946 [Verbose] > │             let v29 : float = v9 + v19                                       │

00:03:05 #20947 [Verbose] > │             let v30 : float = v10 + v20                                      │

00:03:05 #20948 [Verbose] > │             let v31 : float = v11 + v21                                      │

00:03:05 #20949 [Verbose] > │             let v32 : UH1 = UH1_0(v23, v24, v26, v27, v28, v25, v29, v30,    │

00:03:05 #20950 [Verbose] > │ v31, v0)                                                                     │

00:03:05 #20951 [Verbose] > │             method17(v32, v12, v22)                                          │

00:03:05 #20952 [Verbose] > │         | _ ->                                                               │

00:03:05 #20953 [Verbose] > │             let v34 : UH1 = UH1_1                                            │

00:03:05 #20954 [Verbose] > │             method18(v0, v34)                                                │

00:03:05 #20955 [Verbose] > │     | _ ->                                                                   │

00:03:05 #20956 [Verbose] > │         let v37 : UH1 = UH1_1                                                │

00:03:05 #20957 [Verbose] > │         method18(v0, v37)                                                    │

00:03:05 #20958 [Verbose] > │ and closure8 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =              │

00:03:05 #20959 [Verbose] > │     let v3 : UH1 = v1 v2                                                     │

00:03:05 #20960 [Verbose] > │     let v4 : float = v0 / 2.0                                                │

00:03:05 #20961 [Verbose] > │     let v5 : UH0 = UH0_1                                                     │

00:03:05 #20962 [Verbose] > │     let v6 : UH0 = method1(v4, v5, v3, v2)                                   │

00:03:05 #20963 [Verbose] > │     let v7 : UH1 = v1 v6                                                     │

00:03:05 #20964 [Verbose] > │     let v8 : UH0 = UH0_1                                                     │

00:03:05 #20965 [Verbose] > │     let v9 : UH0 = method1(v4, v8, v7, v2)                                   │

00:03:05 #20966 [Verbose] > │     let v10 : UH1 = v1 v9                                                    │

00:03:05 #20967 [Verbose] > │     let v11 : UH0 = UH0_1                                                    │

00:03:05 #20968 [Verbose] > │     let v12 : UH0 = method1(v0, v11, v10, v2)                                │

00:03:05 #20969 [Verbose] > │     let v13 : UH1 = v1 v12                                                   │

00:03:05 #20970 [Verbose] > │     let v14 : float = v0 / 6.0                                               │

00:03:05 #20971 [Verbose] > │     let v15 : UH1 = UH1_1                                                    │

00:03:05 #20972 [Verbose] > │     let v16 : UH1 = method17(v15, v3, v7)                                    │

00:03:05 #20973 [Verbose] > │     let v17 : UH1 = UH1_1                                                    │

00:03:05 #20974 [Verbose] > │     let v18 : UH1 = method17(v17, v16, v7)                                   │

00:03:05 #20975 [Verbose] > │     let v19 : UH1 = UH1_1                                                    │

00:03:05 #20976 [Verbose] > │     let v20 : UH1 = method17(v19, v18, v10)                                  │

00:03:05 #20977 [Verbose] > │     let v21 : UH1 = UH1_1                                                    │

00:03:05 #20978 [Verbose] > │     let v22 : UH1 = method17(v21, v20, v10)                                  │

00:03:05 #20979 [Verbose] > │     let v23 : UH1 = UH1_1                                                    │

00:03:05 #20980 [Verbose] > │     let v24 : UH1 = method17(v23, v22, v13)                                  │

00:03:05 #20981 [Verbose] > │     let v25 : UH0 = UH0_1                                                    │

00:03:05 #20982 [Verbose] > │     let v26 : UH0 = method1(v14, v25, v24, v2)                               │

00:03:05 #20983 [Verbose] > │     v26                                                                      │

00:03:05 #20984 [Verbose] > │ and closure7 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =               │

00:03:05 #20985 [Verbose] > │     closure8(v0, v1)                                                         │

00:03:05 #20986 [Verbose] > │ and closure6 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =              │

00:03:05 #20987 [Verbose] > │     closure7(v0)                                                             │

00:03:05 #20988 [Verbose] > │ and method19 (v0 : UH4, v1 : UH5) : UH5 =                                    │

00:03:05 #20989 [Verbose] > │     match v0 with                                                            │

00:03:05 #20990 [Verbose] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #20991 [Verbose] > │         let v4 : UH5 = method19(v3, v1)                                      │

00:03:05 #20992 [Verbose] > │         let v18 : US0 =                                                      │

00:03:05 #20993 [Verbose] > │             match v2 with                                                    │

00:03:05 #20994 [Verbose] > │             | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons  │

00:03:05 #20995 [Verbose] > │ *)                                                                           │

00:03:05 #20996 [Verbose] > │                 US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13)                │

00:03:05 #20997 [Verbose] > │             | UH0_1 -> (* Nil *)                                             │

00:03:05 #20998 [Verbose] > │                 US0_0                                                        │

00:03:05 #20999 [Verbose] > │         let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50  │

00:03:05 #21000 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) =               │

00:03:05 #21001 [Verbose] > │             match v18 with                                                   │

00:03:05 #21002 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:03:05 #21003 [Verbose] > │                 failwith<struct (float * float * float * float * float *     │

00:03:05 #21004 [Verbose] > │ float * float * float * float)> "Option does not have a value."              │

00:03:05 #21005 [Verbose] > │             | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some  │

00:03:05 #21006 [Verbose] > │ *)                                                                           │

00:03:05 #21007 [Verbose] > │                 struct (v19, v20, v21, v22, v23, v24, v25, v26, v27)         │

00:03:05 #21008 [Verbose] > │         let v55 : UH6 = UH6_1                                                │

00:03:05 #21009 [Verbose] > │         let v56 : UH6 = method13(v2, v55)                                    │

00:03:05 #21010 [Verbose] > │         let v57 : float = 0.0                                                │

00:03:05 #21011 [Verbose] > │         let v58 : float = method14(v56, v57)                                 │

00:03:05 #21012 [Verbose] > │         UH5_0(v51, v58, v4)                                                  │

00:03:05 #21013 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:05 #21014 [Verbose] > │         v1                                                                   │

00:03:05 #21015 [Verbose] > │ and method21 (v0 : UH6, v1 : int32) : int32 =                                │

00:03:05 #21016 [Verbose] > │     match v0 with                                                            │

00:03:05 #21017 [Verbose] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #21018 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:03:05 #21019 [Verbose] > │         method21(v3, v4)                                                     │

00:03:05 #21020 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:03:05 #21021 [Verbose] > │         v1                                                                   │

00:03:05 #21022 [Verbose] > │ and method22 (v0 : (float []), v1 : UH6, v2 : int32) : int32 =               │

00:03:05 #21023 [Verbose] > │     match v1 with                                                            │

00:03:05 #21024 [Verbose] > │     | UH6_0(v3, v4) -> (* Cons *)                                            │

00:03:05 #21025 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:03:05 #21026 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:03:05 #21027 [Verbose] > │         method22(v0, v4, v5)                                                 │

00:03:05 #21028 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:03:05 #21029 [Verbose] > │         v2                                                                   │

00:03:05 #21030 [Verbose] > │ and method20 (v0 : UH6) : (float []) =                                       │

00:03:05 #21031 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:05 #21032 [Verbose] > │     let v2 : int32 = method21(v0, v1)                                        │

00:03:05 #21033 [Verbose] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:03:05 #21034 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:05 #21035 [Verbose] > │     let v5 : int32 = method22(v3, v0, v4)                                    │

00:03:05 #21036 [Verbose] > │     v3                                                                       │

00:03:05 #21037 [Verbose] > │ and method23 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │

00:03:05 #21038 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:05 #21039 [Verbose] > │     v0                                                                       │

00:03:05 #21040 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:03:05 #21041 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:03:05 #21042 [Verbose] > │     let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0()          │

00:03:05 #21043 [Verbose] > │     let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03                        │

00:03:05 #21044 [Verbose] > │     let v2 : (UH0 -> UH1) = closure3()                                       │

00:03:05 #21045 [Verbose] > │     let v3 : (UH0 -> UH0) = v1 v2                                            │

00:03:05 #21046 [Verbose] > │     let v4 : UH4 = UH4_1                                                     │

00:03:05 #21047 [Verbose] > │     let v5 : int32 = 0                                                       │

00:03:05 #21048 [Verbose] > │     let v6 : UH4 = method9(v3, v4, v5)                                       │

00:03:05 #21049 [Verbose] > │     let v7 : UH5 = UH5_1                                                     │

00:03:05 #21050 [Verbose] > │     let v8 : UH5 = method12(v6, v7)                                          │

00:03:05 #21051 [Verbose] > │     let v9 : UH6 = UH6_1                                                     │

00:03:05 #21052 [Verbose] > │     let v10 : UH6 = UH6_1                                                    │

00:03:05 #21053 [Verbose] > │     let struct (v11 : UH6, v12 : UH6) = method15(v8, v9, v10)                │

00:03:05 #21054 [Verbose] > │     let v13 : UH6 = UH6_1                                                    │

00:03:05 #21055 [Verbose] > │     let v14 : UH6 = method16(v11, v13)                                       │

00:03:05 #21056 [Verbose] > │     let v15 : UH6 = UH6_1                                                    │

00:03:05 #21057 [Verbose] > │     let v16 : UH6 = method16(v12, v15)                                       │

00:03:05 #21058 [Verbose] > │     let v17 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure6()         │

00:03:05 #21059 [Verbose] > │     let v18 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v17 0.03                      │

00:03:05 #21060 [Verbose] > │     let v19 : (UH0 -> UH0) = v18 v2                                          │

00:03:05 #21061 [Verbose] > │     let v20 : UH4 = UH4_1                                                    │

00:03:05 #21062 [Verbose] > │     let v21 : int32 = 0                                                      │

00:03:05 #21063 [Verbose] > │     let v22 : UH4 = method9(v19, v20, v21)                                   │

00:03:05 #21064 [Verbose] > │     let v23 : UH5 = UH5_1                                                    │

00:03:05 #21065 [Verbose] > │     let v24 : UH5 = method19(v22, v23)                                       │

00:03:05 #21066 [Verbose] > │     let v25 : UH6 = UH6_1                                                    │

00:03:05 #21067 [Verbose] > │     let v26 : UH6 = UH6_1                                                    │

00:03:05 #21068 [Verbose] > │     let struct (v27 : UH6, v28 : UH6) = method15(v24, v25, v26)              │

00:03:05 #21069 [Verbose] > │     let v29 : UH6 = UH6_1                                                    │

00:03:05 #21070 [Verbose] > │     let v30 : UH6 = method16(v27, v29)                                       │

00:03:05 #21071 [Verbose] > │     let v31 : UH6 = UH6_1                                                    │

00:03:05 #21072 [Verbose] > │     let v32 : UH6 = method16(v28, v31)                                       │

00:03:05 #21073 [Verbose] > │     let v33 : (float []) = method20(v14)                                     │

00:03:05 #21074 [Verbose] > │     let v34 : (float []) = method20(v16)                                     │

00:03:05 #21075 [Verbose] > │     let v35 : (float []) = method20(v30)                                     │

00:03:05 #21076 [Verbose] > │     let v36 : (float []) = method20(v32)                                     │

00:03:05 #21077 [Verbose] > │     let v37 : string = "euler-cromer"                                        │

00:03:05 #21078 [Verbose] > │     let v38 : string = "runge-kutta 4"                                       │

00:03:05 #21079 [Verbose] > │     let v39 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:03:05 #21080 [Verbose] > │ (v37, v33, v34); struct (v38, v35, v36)|]                                    │

00:03:05 #21081 [Verbose] > │     let v40 : (struct (string * (float []) * (float [])) []) = method23(v39) │

00:03:05 #21082 [Verbose] > │     let v41 : string = "system kinetic energy versus time"                   │

00:03:05 #21083 [Verbose] > │     let v42 : string = "time (s)"                                            │

00:03:05 #21084 [Verbose] > │     let v43 : string = "system kinetic energy (j)"                           │

00:03:05 #21085 [Verbose] > │     struct (v41, v42, v43, v40)                                              │

00:03:05 #21086 [Verbose] > │ method0()                                                                    │

00:03:05 #21087 [Verbose] > │                                                                              │

00:03:05 #21088 [Verbose] > │                                                                              │

00:03:05 #21089 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:05 #21090 [Verbose] >

00:03:05 #21091 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:03:05 #21092 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:03:05 #21093 [Verbose] > │ ### wave 1                                                                   │

00:03:05 #21094 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:05 #21095 [Verbose] >

00:03:05 #21096 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:05 #21097 [Verbose] > // // test

00:03:05 #21098 [Verbose] >

00:03:05 #21099 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =

00:03:05 #21100 [Verbose] >     inl r1 = st1.pos_vec

00:03:05 #21101 [Verbose] >     inl r2 = st2.pos_vec

00:03:05 #21102 [Verbose] >     inl r21 = r2 ^-^ r1

00:03:05 #21103 [Verbose] >     inl r21mag = magnitude r21

00:03:05 #21104 [Verbose] >     -k * (r21mag - re) *^ r21 ^/ r21mag

00:03:05 #21105 [Verbose] >

00:03:05 #21106 [Verbose] > inl fixed_linear_spring k re r1 =

00:03:05 #21107 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:05 #21108 [Verbose] >     linear_spring k re (particle_state { default_particle_state' with pos_vec =

00:03:05 #21109 [Verbose] > r1 })

00:03:05 #21110 [Verbose] >

00:03:05 #21111 [Verbose] > inl forces_string () =

00:03:05 #21112 [Verbose] >     [[

00:03:05 #21113 [Verbose] >         ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))

00:03:05 #21114 [Verbose] >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))

00:03:05 #21115 [Verbose] >     ]] /@ (

00:03:05 #21116 [Verbose] >         listm'.init_series 0 59 1

00:03:05 #21117 [Verbose] >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))

00:03:05 #21118 [Verbose] >     )

00:03:05 #21119 [Verbose] >

00:03:05 #21120 [Verbose] > inl string_update dt =

00:03:05 #21121 [Verbose] >     update_mps (runge_kutta_4 dt) (forces_string ())

00:03:05 #21122 [Verbose] >

00:03:05 #21123 [Verbose] > inl string_initial_overtone n =

00:03:05 #21124 [Verbose] >     inl ball_mass = 0.0008293 * 0.65 / 64

00:03:05 #21125 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:05 #21126 [Verbose] >     listm'.init_series 0.01 0.64 0.01

00:03:05 #21127 [Verbose] >     |> listm.map (fun x =>

00:03:05 #21128 [Verbose] >         inl y = 0.005 * sin (conv n * pi * x / 0.65)

00:03:05 #21129 [Verbose] >         particle_state {

00:03:05 #21130 [Verbose] >             default_particle_state' with

00:03:05 #21131 [Verbose] >                 mass = ball_mass

00:03:05 #21132 [Verbose] >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()

00:03:05 #21133 [Verbose] >                 velocity = zero_vec ()

00:03:05 #21134 [Verbose] >         }

00:03:05 #21135 [Verbose] >     )

00:03:05 #21136 [Verbose] >     |> multi_particle_state

00:03:05 #21137 [Verbose] >

00:03:05 #21138 [Verbose] > inl string_initial_pluck () =

00:03:05 #21139 [Verbose] >     inl ball_mass = 0.0008293 * 0.65 / 64

00:03:05 #21140 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:05 #21141 [Verbose] >     listm'.init_series 0.01 0.64 0.01

00:03:05 #21142 [Verbose] >     |> listm.map (fun x =>

00:03:05 #21143 [Verbose] >         inl y =

00:03:05 #21144 [Verbose] >             inl n = if x <= 0.51 then 0 else 0.65

00:03:05 #21145 [Verbose] >             0.005 / (0.51 - n) * (x - n)

00:03:05 #21146 [Verbose] >         particle_state {

00:03:05 #21147 [Verbose] >             default_particle_state' with

00:03:05 #21148 [Verbose] >                 mass = ball_mass

00:03:05 #21149 [Verbose] >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()

00:03:05 #21150 [Verbose] >                 velocity = zero_vec ()

00:03:05 #21151 [Verbose] >         }

00:03:05 #21152 [Verbose] >     )

00:03:05 #21153 [Verbose] >     |> multi_particle_state

00:03:05 #21154 [Verbose] >

00:03:05 #21155 [Verbose] > let main () =

00:03:05 #21156 [Verbose] >     inl ~frames = listm'.init_series 0 9 1f64

00:03:05 #21157 [Verbose] >     inl initial_state = string_initial_overtone 3i32

00:03:05 #21158 [Verbose] >     inl frames =

00:03:05 #21159 [Verbose] >         frames

00:03:05 #21160 [Verbose] >         |> listm.map (fun n =>

00:03:05 #21161 [Verbose] >             inl (multi_particle_state sts) =

00:03:05 #21162 [Verbose] >                 seq.iterate' (string_update 0.000025) initial_state |> fun f =>

00:03:05 #21163 [Verbose] > f 0f64

00:03:05 #21164 [Verbose] >             inl rs =

00:03:05 #21165 [Verbose] >                 [[ zero_vec () ]]

00:03:05 #21166 [Verbose] >                 /@ (sts |> listm.map (fun (particle_state st) => st.pos_vec))

00:03:05 #21167 [Verbose] >                 /@ [[ 0.65 *^ i_hat () ]]

00:03:05 #21168 [Verbose] >             inl x, y =

00:03:05 #21169 [Verbose] >                 rs

00:03:05 #21170 [Verbose] >                 |> listm.map (fun r => r.x, r.y)

00:03:05 #21171 [Verbose] >                 |> listm'.unzip

00:03:05 #21172 [Verbose] >             inl x : a i32 _ = x |> listm.toArray

00:03:05 #21173 [Verbose] >             inl y : a i32 _ = y |> listm.toArray

00:03:05 #21174 [Verbose] >             x, y

00:03:05 #21175 [Verbose] >         )

00:03:05 #21176 [Verbose] >         |> listm.toArray : a i32 _

00:03:05 #21177 [Verbose] >

00:03:05 #21178 [Verbose] >     inl n = 0i32

00:03:05 #21179 [Verbose] >

00:03:05 #21180 [Verbose] >     inl x, y = index frames n

00:03:05 #21181 [Verbose] >

00:03:05 #21182 [Verbose] >     "wave",

00:03:05 #21183 [Verbose] >     "position (m)",

00:03:05 #21184 [Verbose] >     "displacement (m)",

00:03:05 #21185 [Verbose] >     ;[[

00:03:05 #21186 [Verbose] >         ($"$\"{!n}\"" : string), x, y

00:03:05 #21187 [Verbose] >     ]]

00:03:05 #21188 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-0107-0785-084fc3fa4aed\main.spi

00:03:05 #21189 [Verbose] >

00:03:05 #21190 [Verbose] > ╭─[ 448.92ms - return value ]──────────────────────────────────────────────────╮

00:03:05 #21191 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:03:05 #21192 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:05 #21193 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:05 #21194 [Verbose] > │ stroke="none"/>                                                              │

00:03:05 #21195 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:05 #21196 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:05 #21197 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:05 #21198 [Verbose] > │ wave                                                                         │

00:03:05 #21199 [Verbose] > │ </text>                                                                      │

00:03:05 #21200 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │

00:03:05 #21201 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #21202 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:05 #21203 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #21204 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │

00:03:05 #21205 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #21206 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │

00:03:05 #21207 [Verbose] > │ y2="75"/>                                                                    │

00:03:05 #21208 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │

00:03:05 #21209 [Verbose] > │ y2...                                                                        │

00:03:05 #21210 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:05 #21211 [Verbose] >

00:03:05 #21212 [Verbose] > ╭─[ 463.02ms - stdout ]────────────────────────────────────────────────────────╮

00:03:05 #21213 [Verbose] > │ type UH0 =                                                                   │

00:03:05 #21214 [Verbose] > │     | UH0_0 of float * UH0                                                   │

00:03:05 #21215 [Verbose] > │     | UH0_1                                                                  │

00:03:05 #21216 [Verbose] > │ and UH1 =                                                                    │

00:03:05 #21217 [Verbose] > │     | UH1_0 of (float []) * (float []) * UH1                                 │

00:03:05 #21218 [Verbose] > │     | UH1_1                                                                  │

00:03:05 #21219 [Verbose] > │ let rec method3 (v0 : UH0, v1 : int32) : int32 =                             │

00:03:05 #21220 [Verbose] > │     match v0 with                                                            │

00:03:05 #21221 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #21222 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:03:05 #21223 [Verbose] > │         method3(v3, v4)                                                      │

00:03:05 #21224 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:05 #21225 [Verbose] > │         v1                                                                   │

00:03:05 #21226 [Verbose] > │ and method4 (v0 : (float []), v1 : UH0, v2 : int32) : int32 =                │

00:03:05 #21227 [Verbose] > │     match v1 with                                                            │

00:03:05 #21228 [Verbose] > │     | UH0_0(v3, v4) -> (* Cons *)                                            │

00:03:05 #21229 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:03:05 #21230 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:03:05 #21231 [Verbose] > │         method4(v0, v4, v5)                                                  │

00:03:05 #21232 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:05 #21233 [Verbose] > │         v2                                                                   │

00:03:05 #21234 [Verbose] > │ and method2 (v0 : UH0) : (float []) =                                        │

00:03:05 #21235 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:05 #21236 [Verbose] > │     let v2 : int32 = method3(v0, v1)                                         │

00:03:05 #21237 [Verbose] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:03:05 #21238 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:05 #21239 [Verbose] > │     let v5 : int32 = method4(v3, v0, v4)                                     │

00:03:05 #21240 [Verbose] > │     v3                                                                       │

00:03:05 #21241 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:03:05 #21242 [Verbose] > │     match v0 with                                                            │

00:03:05 #21243 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:03:05 #21244 [Verbose] > │         let v4 : UH1 = method1(v3, v1)                                       │

00:03:05 #21245 [Verbose] > │         let v5 : float = 0.0                                                 │

00:03:05 #21246 [Verbose] > │         let v6 : float = 0.01                                                │

00:03:05 #21247 [Verbose] > │         let v7 : float = 0.02                                                │

00:03:05 #21248 [Verbose] > │         let v8 : float = 0.03                                                │

00:03:05 #21249 [Verbose] > │         let v9 : float = 0.04                                                │

00:03:05 #21250 [Verbose] > │         let v10 : float = 0.05                                               │

00:03:05 #21251 [Verbose] > │         let v11 : float = 0.060000000000000005                               │

00:03:05 #21252 [Verbose] > │         let v12 : float = 0.06999999999999999                                │

00:03:05 #21253 [Verbose] > │         let v13 : float = 0.08                                               │

00:03:05 #21254 [Verbose] > │         let v14 : float = 0.09                                               │

00:03:05 #21255 [Verbose] > │         let v15 : float = 0.09999999999999999                                │

00:03:05 #21256 [Verbose] > │         let v16 : float = 0.11                                               │

00:03:05 #21257 [Verbose] > │         let v17 : float = 0.12                                               │

00:03:05 #21258 [Verbose] > │         let v18 : float = 0.13                                               │

00:03:05 #21259 [Verbose] > │         let v19 : float = 0.14                                               │

00:03:05 #21260 [Verbose] > │         let v20 : float = 0.15000000000000002                                │

00:03:05 #21261 [Verbose] > │         let v21 : float = 0.16                                               │

00:03:05 #21262 [Verbose] > │         let v22 : float = 0.17                                               │

00:03:05 #21263 [Verbose] > │         let v23 : float = 0.18000000000000002                                │

00:03:05 #21264 [Verbose] > │         let v24 : float = 0.19                                               │

00:03:05 #21265 [Verbose] > │         let v25 : float = 0.2                                                │

00:03:05 #21266 [Verbose] > │         let v26 : float = 0.21000000000000002                                │

00:03:05 #21267 [Verbose] > │         let v27 : float = 0.22                                               │

00:03:05 #21268 [Verbose] > │         let v28 : float = 0.23                                               │

00:03:05 #21269 [Verbose] > │         let v29 : float = 0.24000000000000002                                │

00:03:05 #21270 [Verbose] > │         let v30 : float = 0.25                                               │

00:03:05 #21271 [Verbose] > │         let v31 : float = 0.26                                               │

00:03:05 #21272 [Verbose] > │         let v32 : float = 0.27                                               │

00:03:05 #21273 [Verbose] > │         let v33 : float = 0.28                                               │

00:03:05 #21274 [Verbose] > │         let v34 : float = 0.29000000000000004                                │

00:03:05 #21275 [Verbose] > │         let v35 : float = 0.3                                                │

00:03:05 #21276 [Verbose] > │         let v36 : float = 0.31                                               │

00:03:05 #21277 [Verbose] > │         let v37 : float = 0.32                                               │

00:03:05 #21278 [Verbose] > │         let v38 : float = 0.33                                               │

00:03:05 #21279 [Verbose] > │         let v39 : float = 0.34                                               │

00:03:05 #21280 [Verbose] > │         let v40 : float = 0.35000000000000003                                │

00:03:05 #21281 [Verbose] > │         let v41 : float = 0.36000000000000004                                │

00:03:05 #21282 [Verbose] > │         let v42 : float = 0.37                                               │

00:03:05 #21283 [Verbose] > │         let v43 : float = 0.38                                               │

00:03:05 #21284 [Verbose] > │         let v44 : float = 0.39                                               │

00:03:05 #21285 [Verbose] > │         let v45 : float = 0.4                                                │

00:03:05 #21286 [Verbose] > │         let v46 : float = 0.41000000000000003                                │

00:03:05 #21287 [Verbose] > │         let v47 : float = 0.42000000000000004                                │

00:03:05 #21288 [Verbose] > │         let v48 : float = 0.43                                               │

00:03:05 #21289 [Verbose] > │         let v49 : float = 0.44                                               │

00:03:05 #21290 [Verbose] > │         let v50 : float = 0.45                                               │

00:03:05 #21291 [Verbose] > │         let v51 : float = 0.46                                               │

00:03:05 #21292 [Verbose] > │         let v52 : float = 0.47000000000000003                                │

00:03:05 #21293 [Verbose] > │         let v53 : float = 0.48000000000000004                                │

00:03:05 #21294 [Verbose] > │         let v54 : float = 0.49                                               │

00:03:05 #21295 [Verbose] > │         let v55 : float = 0.5                                                │

00:03:05 #21296 [Verbose] > │         let v56 : float = 0.51                                               │

00:03:05 #21297 [Verbose] > │         let v57 : float = 0.52                                               │

00:03:05 #21298 [Verbose] > │         let v58 : float = 0.53                                               │

00:03:05 #21299 [Verbose] > │         let v59 : float = 0.54                                               │

00:03:05 #21300 [Verbose] > │         let v60 : float = 0.55                                               │

00:03:05 #21301 [Verbose] > │         let v61 : float = 0.56                                               │

00:03:05 #21302 [Verbose] > │         let v62 : float = 0.5700000000000001                                 │

00:03:05 #21303 [Verbose] > │         let v63 : float = 0.5800000000000001                                 │

00:03:05 #21304 [Verbose] > │         let v64 : float = 0.59                                               │

00:03:05 #21305 [Verbose] > │         let v65 : float = 0.6                                                │

00:03:05 #21306 [Verbose] > │         let v66 : float = 0.61                                               │

00:03:05 #21307 [Verbose] > │         let v67 : float = 0.62                                               │

00:03:05 #21308 [Verbose] > │         let v68 : float = 0.63                                               │

00:03:05 #21309 [Verbose] > │         let v69 : float = 0.64                                               │

00:03:05 #21310 [Verbose] > │         let v70 : float = 0.65                                               │

00:03:05 #21311 [Verbose] > │         let v71 : UH0 = UH0_1                                                │

00:03:05 #21312 [Verbose] > │         let v72 : UH0 = UH0_0(v70, v71)                                      │

00:03:05 #21313 [Verbose] > │         let v73 : UH0 = UH0_0(v69, v72)                                      │

00:03:05 #21314 [Verbose] > │         let v74 : UH0 = UH0_0(v68, v73)                                      │

00:03:05 #21315 [Verbose] > │         let v75 : UH0 = UH0_0(v67, v74)                                      │

00:03:05 #21316 [Verbose] > │         let v76 : UH0 = UH0_0(v66, v75)                                      │

00:03:05 #21317 [Verbose] > │         let v77 : UH0 = UH0_0(v65, v76)                                      │

00:03:05 #21318 [Verbose] > │         let v78 : UH0 = UH0_0(v64, v77)                                      │

00:03:05 #21319 [Verbose] > │         let v79 : UH0 = UH0_0(v63, v78)                                      │

00:03:05 #21320 [Verbose] > │         let v80 : UH0 = UH0_0(v62, v79)                                      │

00:03:05 #21321 [Verbose] > │         let v81 : UH0 = UH0_0(v61, v80)                                      │

00:03:05 #21322 [Verbose] > │         let v82 : UH0 = UH0_0(v60, v81)                                      │

00:03:05 #21323 [Verbose] > │         let v83 : UH0 = UH0_0(v59, v82)                                      │

00:03:05 #21324 [Verbose] > │         let v84 : UH0 = UH0_0(v58, v83)                                      │

00:03:05 #21325 [Verbose] > │         let v85 : UH0 = UH0_0(v57, v84)                                      │

00:03:05 #21326 [Verbose] > │         let v86 : UH0 = UH0_0(v56, v85)                                      │

00:03:05 #21327 [Verbose] > │         let v87 : UH0 = UH0_0(v55, v86)                                      │

00:03:05 #21328 [Verbose] > │         let v88 : UH0 = UH0_0(v54, v87)                                      │

00:03:05 #21329 [Verbose] > │         let v89 : UH0 = UH0_0(v53, v88)                                      │

00:03:05 #21330 [Verbose] > │         let v90 : UH0 = UH0_0(v52, v89)                                      │

00:03:05 #21331 [Verbose] > │         let v91 : UH0 = UH0_0(v51, v90)                                      │

00:03:05 #21332 [Verbose] > │         let v92 : UH0 = UH0_0(v50, v91)                                      │

00:03:05 #21333 [Verbose] > │         let v93 : UH0 = UH0_0(v49, v92)                                      │

00:03:05 #21334 [Verbose] > │         let v94 : UH0 = UH0_0(v48, v93)                                      │

00:03:05 #21335 [Verbose] > │         let v95 : UH0 = UH0_0(v47, v94)                                      │

00:03:05 #21336 [Verbose] > │         let v96 : UH0 = UH0_0(v46, v95)                                      │

00:03:05 #21337 [Verbose] > │         let v97 : UH0 = UH0_0(v45, v96)                                      │

00:03:05 #21338 [Verbose] > │         let v98 : UH0 = UH0_0(v44, v97)                                      │

00:03:05 #21339 [Verbose] > │         let v99 : UH0 = UH0_0(v43, v98)                                      │

00:03:05 #21340 [Verbose] > │         let v100 : UH0 = UH0_0(v42, v99)                                     │

00:03:05 #21341 [Verbose] > │         let v101 : UH0 = UH0_0(v41, v100)                                    │

00:03:05 #21342 [Verbose] > │         let v102 : UH0 = UH0_0(v40, v101)                                    │

00:03:05 #21343 [Verbose] > │         let v103 : UH0 = UH0_0(v39, v102)                                    │

00:03:05 #21344 [Verbose] > │         let v104 : UH0 = UH0_0(v38, v103)                                    │

00:03:06 #21345 [Verbose] > │         let v105 : UH0 = UH0_0(v37, v104)                                    │

00:03:06 #21346 [Verbose] > │         let v106 : UH0 = UH0_0(v36, v105)                                    │

00:03:06 #21347 [Verbose] > │         let v107 : UH0 = UH0_0(v35, v106)                                    │

00:03:06 #21348 [Verbose] > │         let v108 : UH0 = UH0_0(v34, v107)                                    │

00:03:06 #21349 [Verbose] > │         let v109 : UH0 = UH0_0(v33, v108)                                    │

00:03:06 #21350 [Verbose] > │         let v110 : UH0 = UH0_0(v32, v109)                                    │

00:03:06 #21351 [Verbose] > │         let v111 : UH0 = UH0_0(v31, v110)                                    │

00:03:06 #21352 [Verbose] > │         let v112 : UH0 = UH0_0(v30, v111)                                    │

00:03:06 #21353 [Verbose] > │         let v113 : UH0 = UH0_0(v29, v112)                                    │

00:03:06 #21354 [Verbose] > │         let v114 : UH0 = UH0_0(v28, v113)                                    │

00:03:06 #21355 [Verbose] > │         let v115 : UH0 = UH0_0(v27, v114)                                    │

00:03:06 #21356 [Verbose] > │         let v116 : UH0 = UH0_0(v26, v115)                                    │

00:03:06 #21357 [Verbose] > │         let v117 : UH0 = UH0_0(v25, v116)                                    │

00:03:06 #21358 [Verbose] > │         let v118 : UH0 = UH0_0(v24, v117)                                    │

00:03:06 #21359 [Verbose] > │         let v119 : UH0 = UH0_0(v23, v118)                                    │

00:03:06 #21360 [Verbose] > │         let v120 : UH0 = UH0_0(v22, v119)                                    │

00:03:06 #21361 [Verbose] > │         let v121 : UH0 = UH0_0(v21, v120)                                    │

00:03:06 #21362 [Verbose] > │         let v122 : UH0 = UH0_0(v20, v121)                                    │

00:03:06 #21363 [Verbose] > │         let v123 : UH0 = UH0_0(v19, v122)                                    │

00:03:06 #21364 [Verbose] > │         let v124 : UH0 = UH0_0(v18, v123)                                    │

00:03:06 #21365 [Verbose] > │         let v125 : UH0 = UH0_0(v17, v124)                                    │

00:03:06 #21366 [Verbose] > │         let v126 : UH0 = UH0_0(v16, v125)                                    │

00:03:06 #21367 [Verbose] > │         let v127 : UH0 = UH0_0(v15, v126)                                    │

00:03:06 #21368 [Verbose] > │         let v128 : UH0 = UH0_0(v14, v127)                                    │

00:03:06 #21369 [Verbose] > │         let v129 : UH0 = UH0_0(v13, v128)                                    │

00:03:06 #21370 [Verbose] > │         let v130 : UH0 = UH0_0(v12, v129)                                    │

00:03:06 #21371 [Verbose] > │         let v131 : UH0 = UH0_0(v11, v130)                                    │

00:03:06 #21372 [Verbose] > │         let v132 : UH0 = UH0_0(v10, v131)                                    │

00:03:06 #21373 [Verbose] > │         let v133 : UH0 = UH0_0(v9, v132)                                     │

00:03:06 #21374 [Verbose] > │         let v134 : UH0 = UH0_0(v8, v133)                                     │

00:03:06 #21375 [Verbose] > │         let v135 : UH0 = UH0_0(v7, v134)                                     │

00:03:06 #21376 [Verbose] > │         let v136 : UH0 = UH0_0(v6, v135)                                     │

00:03:06 #21377 [Verbose] > │         let v137 : UH0 = UH0_0(v5, v136)                                     │

00:03:06 #21378 [Verbose] > │         let v138 : (float []) = method2(v137)                                │

00:03:06 #21379 [Verbose] > │         let v139 : float = 0.0                                               │

00:03:06 #21380 [Verbose] > │         let v140 : float = 0.0007224452478461068                             │

00:03:06 #21381 [Verbose] > │         let v141 : float = 0.0014297283919934465                             │

00:03:06 #21382 [Verbose] > │         let v142 : float = 0.0021070055388626454                             │

00:03:06 #21383 [Verbose] > │         let v143 : float = 0.00274006253677335                               │

00:03:06 #21384 [Verbose] > │         let v144 : float = 0.0033156132912039757                             │

00:03:06 #21385 [Verbose] > │         let v145 : float = 0.0038215786027292415                             │

00:03:06 #21386 [Verbose] > │         let v146 : float = 0.004247339675607605                              │

00:03:06 #21387 [Verbose] > │         let v147 : float = 0.004583960976582912                              │

00:03:06 #21388 [Verbose] > │         let v148 : float = 0.004824377766717757                              │

00:03:06 #21389 [Verbose] > │         let v149 : float = 0.00496354437049027                               │

00:03:06 #21390 [Verbose] > │         let v150 : float = 0.004998540070400965                              │

00:03:06 #21391 [Verbose] > │         let v151 : float = 0.004928630404658255                              │

00:03:06 #21392 [Verbose] > │         let v152 : float = 0.004755282581475768                              │

00:03:06 #21393 [Verbose] > │         let v153 : float = 0.004482134686478519                              │

00:03:06 #21394 [Verbose] > │         let v154 : float = 0.0041149193294682815                             │

00:03:06 #21395 [Verbose] > │         let v155 : float = 0.0036613433329888666                             │

00:03:06 #21396 [Verbose] > │         let v156 : float = 0.0031309259876915697                             │

00:03:06 #21397 [Verbose] > │         let v157 : float = 0.002534799269067951                              │

00:03:06 #21398 [Verbose] > │         let v158 : float = 0.0018854742084416015                             │

00:03:06 #21399 [Verbose] > │         let v159 : float = 0.0011965783214377905                             │

00:03:06 #21400 [Verbose] > │         let v160 : float = 0.00048256960457257535                            │

00:03:06 #21401 [Verbose] > │         let v161 : float = -0.00024156689762753317                           │

00:03:06 #21402 [Verbose] > │         let v162 : float = -0.0009606335867685418                            │

00:03:06 #21403 [Verbose] > │         let v163 : float = -0.001659539265642642                             │

00:03:06 #21404 [Verbose] > │         let v164 : float = -0.002323615860218842                             │

00:03:06 #21405 [Verbose] > │         let v165 : float = -0.0029389262614623636                            │

00:03:06 #21406 [Verbose] > │         let v166 : float = -0.003492556826244686                             │

00:03:06 #21407 [Verbose] > │         let v167 : float = -0.003972888398568771                             │

00:03:06 #21408 [Verbose] > │         let v168 : float = -0.00436984016313259                              │

00:03:06 #21409 [Verbose] > │         let v169 : float = -0.004675081213427074                             │

00:03:06 #21410 [Verbose] > │         let v170 : float = -0.004882205394146359                             │

00:03:06 #21411 [Verbose] > │         let v171 : float = -0.004986865748457456                             │

00:03:06 #21412 [Verbose] > │         let v172 : float = -0.004986865748457456                             │

00:03:06 #21413 [Verbose] > │         let v173 : float = -0.004882205394146361                             │

00:03:06 #21414 [Verbose] > │         let v174 : float = -0.004675081213427074                             │

00:03:06 #21415 [Verbose] > │         let v175 : float = -0.004369840163132589                             │

00:03:06 #21416 [Verbose] > │         let v176 : float = -0.003972888398568774                             │

00:03:06 #21417 [Verbose] > │         let v177 : float = -0.0034925568262446837                            │

00:03:06 #21418 [Verbose] > │         let v178 : float = -0.002938926261462367                             │

00:03:06 #21419 [Verbose] > │         let v179 : float = -0.002323615860218846                             │

00:03:06 #21420 [Verbose] > │         let v180 : float = -0.0016595392656426435                            │

00:03:06 #21421 [Verbose] > │         let v181 : float = -0.0009606335867685414                            │

00:03:06 #21422 [Verbose] > │         let v182 : float = -0.00024156689762753724                           │

00:03:06 #21423 [Verbose] > │         let v183 : float = 0.0004825696045725713                             │

00:03:06 #21424 [Verbose] > │         let v184 : float = 0.0011965783214377866                             │

00:03:06 #21425 [Verbose] > │         let v185 : float = 0.0018854742084416021                             │

00:03:06 #21426 [Verbose] > │         let v186 : float = 0.002534799269067953                              │

00:03:06 #21427 [Verbose] > │         let v187 : float = 0.003130925987691568                              │

00:03:06 #21428 [Verbose] > │         let v188 : float = 0.0036613433329888622                             │

00:03:06 #21429 [Verbose] > │         let v189 : float = 0.0041149193294682815                             │

00:03:06 #21430 [Verbose] > │         let v190 : float = 0.0044821346864785195                             │

00:03:06 #21431 [Verbose] > │         let v191 : float = 0.004755282581475766                              │

00:03:06 #21432 [Verbose] > │         let v192 : float = 0.004928630404658255                              │

00:03:06 #21433 [Verbose] > │         let v193 : float = 0.004998540070400965                              │

00:03:06 #21434 [Verbose] > │         let v194 : float = 0.004963544370490271                              │

00:03:06 #21435 [Verbose] > │         let v195 : float = 0.004824377766717758                              │

00:03:06 #21436 [Verbose] > │         let v196 : float = 0.004583960976582912                              │

00:03:06 #21437 [Verbose] > │         let v197 : float = 0.004247339675607605                              │

00:03:06 #21438 [Verbose] > │         let v198 : float = 0.003821578602729245                              │

00:03:06 #21439 [Verbose] > │         let v199 : float = 0.0033156132912039783                             │

00:03:06 #21440 [Verbose] > │         let v200 : float = 0.0027400625367733585                             │

00:03:06 #21441 [Verbose] > │         let v201 : float = 0.0021070055388626528                             │

00:03:06 #21442 [Verbose] > │         let v202 : float = 0.001429728391993452                              │

00:03:06 #21443 [Verbose] > │         let v203 : float = 0.0007224452478461016                             │

00:03:06 #21444 [Verbose] > │         let v204 : float = 0.0                                               │

00:03:06 #21445 [Verbose] > │         let v205 : UH0 = UH0_1                                               │

00:03:06 #21446 [Verbose] > │         let v206 : UH0 = UH0_0(v204, v205)                                   │

00:03:06 #21447 [Verbose] > │         let v207 : UH0 = UH0_0(v203, v206)                                   │

00:03:06 #21448 [Verbose] > │         let v208 : UH0 = UH0_0(v202, v207)                                   │

00:03:06 #21449 [Verbose] > │         let v209 : UH0 = UH0_0(v201, v208)                                   │

00:03:06 #21450 [Verbose] > │         let v210 : UH0 = UH0_0(v200, v209)                                   │

00:03:06 #21451 [Verbose] > │         let v211 : UH0 = UH0_0(v199, v210)                                   │

00:03:06 #21452 [Verbose] > │         let v212 : UH0 = UH0_0(v198, v211)                                   │

00:03:06 #21453 [Verbose] > │         let v213 : UH0 = UH0_0(v197, v212)                                   │

00:03:06 #21454 [Verbose] > │         let v214 : UH0 = UH0_0(v196, v213)                                   │

00:03:06 #21455 [Verbose] > │         let v215 : UH0 = UH0_0(v195, v214)                                   │

00:03:06 #21456 [Verbose] > │         let v216 : UH0 = UH0_0(v194, v215)                                   │

00:03:06 #21457 [Verbose] > │         let v217 : UH0 = UH0_0(v193, v216)                                   │

00:03:06 #21458 [Verbose] > │         let v218 : UH0 = UH0_0(v192, v217)                                   │

00:03:06 #21459 [Verbose] > │         let v219 : UH0 = UH0_0(v191, v218)                                   │

00:03:06 #21460 [Verbose] > │         let v220 : UH0 = UH0_0(v190, v219)                                   │

00:03:06 #21461 [Verbose] > │         let v221 : UH0 = UH0_0(v189, v220)                                   │

00:03:06 #21462 [Verbose] > │         let v222 : UH0 = UH0_0(v188, v221)                                   │

00:03:06 #21463 [Verbose] > │         let v223 : UH0 = UH0_0(v187, v222)                                   │

00:03:06 #21464 [Verbose] > │         let v224 : UH0 = UH0_0(v186, v223)                                   │

00:03:06 #21465 [Verbose] > │         let v225 : UH0 = UH0_0(v185, v224)                                   │

00:03:06 #21466 [Verbose] > │         let v226 : UH0 = UH0_0(v184, v225)                                   │

00:03:06 #21467 [Verbose] > │         let v227 : UH0 = UH0_0(v183, v226)                                   │

00:03:06 #21468 [Verbose] > │         let v228 : UH0 = UH0_0(v182, v227)                                   │

00:03:06 #21469 [Verbose] > │         let v229 : UH0 = UH0_0(v181, v228)                                   │

00:03:06 #21470 [Verbose] > │         let v230 : UH0 = UH0_0(v180, v229)                                   │

00:03:06 #21471 [Verbose] > │         let v231 : UH0 = UH0_0(v179, v230)                                   │

00:03:06 #21472 [Verbose] > │         let v232 : UH0 = UH0_0(v178, v231)                                   │

00:03:06 #21473 [Verbose] > │         let v233 : UH0 = UH0_0(v177, v232)                                   │

00:03:06 #21474 [Verbose] > │         let v234 : UH0 = UH0_0(v176, v233)                                   │

00:03:06 #21475 [Verbose] > │         let v235 : UH0 = UH0_0(v175, v234)                                   │

00:03:06 #21476 [Verbose] > │         let v236 : UH0 = UH0_0(v174, v235)                                   │

00:03:06 #21477 [Verbose] > │         let v237 : UH0 = UH0_0(v173, v236)                                   │

00:03:06 #21478 [Verbose] > │         let v238 : UH0 = UH0_0(v172, v237)                                   │

00:03:06 #21479 [Verbose] > │         let v239 : UH0 = UH0_0(v171, v238)                                   │

00:03:06 #21480 [Verbose] > │         let v240 : UH0 = UH0_0(v170, v239)                                   │

00:03:06 #21481 [Verbose] > │         let v241 : UH0 = UH0_0(v169, v240)                                   │

00:03:06 #21482 [Verbose] > │         let v242 : UH0 = UH0_0(v168, v241)                                   │

00:03:06 #21483 [Verbose] > │         let v243 : UH0 = UH0_0(v167, v242)                                   │

00:03:06 #21484 [Verbose] > │         let v244 : UH0 = UH0_0(v166, v243)                                   │

00:03:06 #21485 [Verbose] > │         let v245 : UH0 = UH0_0(v165, v244)                                   │

00:03:06 #21486 [Verbose] > │         let v246 : UH0 = UH0_0(v164, v245)                                   │

00:03:06 #21487 [Verbose] > │         let v247 : UH0 = UH0_0(v163, v246)                                   │

00:03:06 #21488 [Verbose] > │         let v248 : UH0 = UH0_0(v162, v247)                                   │

00:03:06 #21489 [Verbose] > │         let v249 : UH0 = UH0_0(v161, v248)                                   │

00:03:06 #21490 [Verbose] > │         let v250 : UH0 = UH0_0(v160, v249)                                   │

00:03:06 #21491 [Verbose] > │         let v251 : UH0 = UH0_0(v159, v250)                                   │

00:03:06 #21492 [Verbose] > │         let v252 : UH0 = UH0_0(v158, v251)                                   │

00:03:06 #21493 [Verbose] > │         let v253 : UH0 = UH0_0(v157, v252)                                   │

00:03:06 #21494 [Verbose] > │         let v254 : UH0 = UH0_0(v156, v253)                                   │

00:03:06 #21495 [Verbose] > │         let v255 : UH0 = UH0_0(v155, v254)                                   │

00:03:06 #21496 [Verbose] > │         let v256 : UH0 = UH0_0(v154, v255)                                   │

00:03:06 #21497 [Verbose] > │         let v257 : UH0 = UH0_0(v153, v256)                                   │

00:03:06 #21498 [Verbose] > │         let v258 : UH0 = UH0_0(v152, v257)                                   │

00:03:06 #21499 [Verbose] > │         let v259 : UH0 = UH0_0(v151, v258)                                   │

00:03:06 #21500 [Verbose] > │         let v260 : UH0 = UH0_0(v150, v259)                                   │

00:03:06 #21501 [Verbose] > │         let v261 : UH0 = UH0_0(v149, v260)                                   │

00:03:06 #21502 [Verbose] > │         let v262 : UH0 = UH0_0(v148, v261)                                   │

00:03:06 #21503 [Verbose] > │         let v263 : UH0 = UH0_0(v147, v262)                                   │

00:03:06 #21504 [Verbose] > │         let v264 : UH0 = UH0_0(v146, v263)                                   │

00:03:06 #21505 [Verbose] > │         let v265 : UH0 = UH0_0(v145, v264)                                   │

00:03:06 #21506 [Verbose] > │         let v266 : UH0 = UH0_0(v144, v265)                                   │

00:03:06 #21507 [Verbose] > │         let v267 : UH0 = UH0_0(v143, v266)                                   │

00:03:06 #21508 [Verbose] > │         let v268 : UH0 = UH0_0(v142, v267)                                   │

00:03:06 #21509 [Verbose] > │         let v269 : UH0 = UH0_0(v141, v268)                                   │

00:03:06 #21510 [Verbose] > │         let v270 : UH0 = UH0_0(v140, v269)                                   │

00:03:06 #21511 [Verbose] > │         let v271 : UH0 = UH0_0(v139, v270)                                   │

00:03:06 #21512 [Verbose] > │         let v272 : (float []) = method2(v271)                                │

00:03:06 #21513 [Verbose] > │         UH1_0(v138, v272, v4)                                                │

00:03:06 #21514 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:03:06 #21515 [Verbose] > │         v1                                                                   │

00:03:06 #21516 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 =                                 │

00:03:06 #21517 [Verbose] > │     match v0 with                                                            │

00:03:06 #21518 [Verbose] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:03:06 #21519 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:03:06 #21520 [Verbose] > │         method6(v4, v5)                                                      │

00:03:06 #21521 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:06 #21522 [Verbose] > │         v1                                                                   │

00:03:06 #21523 [Verbose] > │ and method7 (v0 : (struct ((float []) * (float [])) []), v1 : UH1, v2 :      │

00:03:06 #21524 [Verbose] > │ int32) : int32 =                                                             │

00:03:06 #21525 [Verbose] > │     match v1 with                                                            │

00:03:06 #21526 [Verbose] > │     | UH1_0(v3, v4, v5) -> (* Cons *)                                        │

00:03:06 #21527 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:03:06 #21528 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:03:06 #21529 [Verbose] > │         method7(v0, v5, v6)                                                  │

00:03:06 #21530 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:03:06 #21531 [Verbose] > │         v2                                                                   │

00:03:06 #21532 [Verbose] > │ and method5 (v0 : UH1) : (struct ((float []) * (float [])) []) =             │

00:03:06 #21533 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:06 #21534 [Verbose] > │     let v2 : int32 = method6(v0, v1)                                         │

00:03:06 #21535 [Verbose] > │     let v3 : (struct ((float []) * (float [])) []) = Array.zeroCreate<struct │

00:03:06 #21536 [Verbose] > │ ((float []) * (float []))> (v2)                                              │

00:03:06 #21537 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:06 #21538 [Verbose] > │     let v5 : int32 = method7(v3, v0, v4)                                     │

00:03:06 #21539 [Verbose] > │     v3                                                                       │

00:03:06 #21540 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct  │

00:03:06 #21541 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:06 #21542 [Verbose] > │     v0                                                                       │

00:03:06 #21543 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:03:06 #21544 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:03:06 #21545 [Verbose] > │     let v0 : float = 0.0                                                     │

00:03:06 #21546 [Verbose] > │     let v1 : float = 1.0                                                     │

00:03:06 #21547 [Verbose] > │     let v2 : float = 2.0                                                     │

00:03:06 #21548 [Verbose] > │     let v3 : float = 3.0                                                     │

00:03:06 #21549 [Verbose] > │     let v4 : float = 4.0                                                     │

00:03:06 #21550 [Verbose] > │     let v5 : float = 5.0                                                     │

00:03:06 #21551 [Verbose] > │     let v6 : float = 6.0                                                     │

00:03:06 #21552 [Verbose] > │     let v7 : float = 7.0                                                     │

00:03:06 #21553 [Verbose] > │     let v8 : float = 8.0                                                     │

00:03:06 #21554 [Verbose] > │     let v9 : float = 9.0                                                     │

00:03:06 #21555 [Verbose] > │     let v10 : UH0 = UH0_1                                                    │

00:03:06 #21556 [Verbose] > │     let v11 : UH0 = UH0_0(v9, v10)                                           │

00:03:06 #21557 [Verbose] > │     let v12 : UH0 = UH0_0(v8, v11)                                           │

00:03:06 #21558 [Verbose] > │     let v13 : UH0 = UH0_0(v7, v12)                                           │

00:03:06 #21559 [Verbose] > │     let v14 : UH0 = UH0_0(v6, v13)                                           │

00:03:06 #21560 [Verbose] > │     let v15 : UH0 = UH0_0(v5, v14)                                           │

00:03:06 #21561 [Verbose] > │     let v16 : UH0 = UH0_0(v4, v15)                                           │

00:03:06 #21562 [Verbose] > │     let v17 : UH0 = UH0_0(v3, v16)                                           │

00:03:06 #21563 [Verbose] > │     let v18 : UH0 = UH0_0(v2, v17)                                           │

00:03:06 #21564 [Verbose] > │     let v19 : UH0 = UH0_0(v1, v18)                                           │

00:03:06 #21565 [Verbose] > │     let v20 : UH0 = UH0_0(v0, v19)                                           │

00:03:06 #21566 [Verbose] > │     let v21 : UH1 = UH1_1                                                    │

00:03:06 #21567 [Verbose] > │     let v22 : UH1 = method1(v20, v21)                                        │

00:03:06 #21568 [Verbose] > │     let v23 : (struct ((float []) * (float [])) []) = method5(v22)           │

00:03:06 #21569 [Verbose] > │     let struct (v24 : (float []), v25 : (float [])) = v23.[int 0]            │

00:03:06 #21570 [Verbose] > │     let v26 : string = $"{0}"                                                │

00:03:06 #21571 [Verbose] > │     let v27 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:03:06 #21572 [Verbose] > │ (v26, v24, v25)|]                                                            │

00:03:06 #21573 [Verbose] > │     let v28 : (struct (string * (float []) * (float [])) []) = method8(v27)  │

00:03:06 #21574 [Verbose] > │     let v29 : string = "wave"                                                │

00:03:06 #21575 [Verbose] > │     let v30 : string = "position (m)"                                        │

00:03:06 #21576 [Verbose] > │     let v31 : string = "displacement (m)"                                    │

00:03:06 #21577 [Verbose] > │     struct (v29, v30, v31, v28)                                              │

00:03:06 #21578 [Verbose] > │ method0()                                                                    │

00:03:06 #21579 [Verbose] > │                                                                              │

00:03:06 #21580 [Verbose] > │                                                                              │

00:03:06 #21581 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:06 #21582 [Verbose] >

00:03:06 #21583 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:03:06 #21584 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:03:06 #21585 [Verbose] > │ ### system kinetic energy versus time 2                                      │

00:03:06 #21586 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:06 #21587 [Verbose] >

00:03:06 #21588 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:06 #21589 [Verbose] > // // test

00:03:06 #21590 [Verbose] >

00:03:06 #21591 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =

00:03:06 #21592 [Verbose] >     inl r1 = st1.pos_vec

00:03:06 #21593 [Verbose] >     inl r2 = st2.pos_vec

00:03:06 #21594 [Verbose] >     inl r21 = r2 ^-^ r1

00:03:06 #21595 [Verbose] >     inl r21mag = magnitude r21

00:03:06 #21596 [Verbose] >     f r21mag *^ r21 ^/ r21mag

00:03:06 #21597 [Verbose] >

00:03:06 #21598 [Verbose] > inl billiard_force k re =

00:03:06 #21599 [Verbose] >     inl f r =

00:03:06 #21600 [Verbose] >         if r >= re

00:03:06 #21601 [Verbose] >         then 0

00:03:06 #21602 [Verbose] >         else -k * (r - re)

00:03:06 #21603 [Verbose] >     central_force f

00:03:06 #21604 [Verbose] >

00:03:06 #21605 [Verbose] > type force_vector = vec

00:03:06 #21606 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector

00:03:06 #21607 [Verbose] >

00:03:06 #21608 [Verbose] > union force t =

00:03:06 #21609 [Verbose] >     | ExternalForce : t * one_body_force

00:03:06 #21610 [Verbose] >     | InternalForce : t * t * two_body_force

00:03:06 #21611 [Verbose] >

00:03:06 #21612 [Verbose] > nominal multi_particle_state = stream.stream particle_state

00:03:06 #21613 [Verbose] >

00:03:06 #21614 [Verbose] > nominal d_multi_particle_state = stream.stream d_particle_state

00:03:06 #21615 [Verbose] >

00:03:06 #21616 [Verbose] > inl force_on n s force =

00:03:06 #21617 [Verbose] >     match force with

00:03:06 #21618 [Verbose] >     | ExternalForce (n0, f_one_body) =>

00:03:06 #21619 [Verbose] >         if n = n0

00:03:06 #21620 [Verbose] >         then f_one_body

00:03:06 #21621 [Verbose] >         else fun _ => zero_vec ()

00:03:06 #21622 [Verbose] >     | InternalForce (n0, n1, f_two_body) =>

00:03:06 #21623 [Verbose] >         if n = n0

00:03:06 #21624 [Verbose] >         then s |> stream.try_item n1 |> optionm.map f_two_body

00:03:06 #21625 [Verbose] >         elif n = n1

00:03:06 #21626 [Verbose] >         then s |> stream.try_item n0 |> optionm.map f_two_body

00:03:06 #21627 [Verbose] >         else None

00:03:06 #21628 [Verbose] >         |> optionm'.default_value (fun _ => zero_vec ())

00:03:06 #21629 [Verbose] >

00:03:06 #21630 [Verbose] > inl forces_on n (multi_particle_state sts) fs =

00:03:06 #21631 [Verbose] >     fs

00:03:06 #21632 [Verbose] >     |> listm.map (force_on n sts)

00:03:06 #21633 [Verbose] >

00:03:06 #21634 [Verbose] > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =

00:03:06 #21635 [Verbose] >     inl deriv (n, st) =

00:03:06 #21636 [Verbose] >         newton_second_ps (forces_on n mpst fs) st

00:03:06 #21637 [Verbose] >     sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state

00:03:06 #21638 [Verbose] >

00:03:06 #21639 [Verbose] > instance (+++) d_multi_particle_state =

00:03:06 #21640 [Verbose] >     fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>

00:03:06 #21641 [Verbose] >         (dsts1, dsts2)

00:03:06 #21642 [Verbose] >         ||> stream.zip_with (+++)

00:03:06 #21643 [Verbose] >         |> d_multi_particle_state

00:03:06 #21644 [Verbose] >

00:03:06 #21645 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>

00:03:06 #21646 [Verbose] >     dsts

00:03:06 #21647 [Verbose] >     |> stream.map (scale w)

00:03:06 #21648 [Verbose] >     |> d_multi_particle_state

00:03:06 #21649 [Verbose] >

00:03:06 #21650 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>

00:03:06 #21651 [Verbose] >     inl (d_multi_particle_state dsts) =

00:03:06 #21652 [Verbose] >         real

00:03:06 #21653 [Verbose] >             match dsts with

00:03:06 #21654 [Verbose] >             | d_multi_particle_state _ => dsts

00:03:06 #21655 [Verbose] >     (dsts, sts)

00:03:06 #21656 [Verbose] >     ||> stream.zip_with (shift dt)

00:03:06 #21657 [Verbose] >     |> stream.memoize

00:03:06 #21658 [Verbose] >     |> fun x => x ()

00:03:06 #21659 [Verbose] >     |> multi_particle_state

00:03:06 #21660 [Verbose] >

00:03:06 #21661 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state

00:03:06 #21662 [Verbose] > d_multi_particle_state =

00:03:06 #21663 [Verbose] >     fun deriv ((multi_particle_state sts0) as mpst0) =>

00:03:06 #21664 [Verbose] >         inl (multi_particle_state sts1) = euler dt deriv mpst0

00:03:06 #21665 [Verbose] >         (sts0, sts1)

00:03:06 #21666 [Verbose] >         ||> stream.zip

00:03:06 #21667 [Verbose] >         |> stream.map (fun ((particle_state st0), (particle_state st1)) =>

00:03:06 #21668 [Verbose] >             particle_state {

00:03:06 #21669 [Verbose] >                 st1 with

00:03:06 #21670 [Verbose] >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt

00:03:06 #21671 [Verbose] >             }

00:03:06 #21672 [Verbose] >         )

00:03:06 #21673 [Verbose] >         |> multi_particle_state

00:03:06 #21674 [Verbose] >

00:03:06 #21675 [Verbose] > inl update_mps (method : numerical_method multi_particle_state

00:03:06 #21676 [Verbose] > d_multi_particle_state) =

00:03:06 #21677 [Verbose] >     newton_second_mps >> method

00:03:06 #21678 [Verbose] >

00:03:06 #21679 [Verbose] > inl states_mps (method : numerical_method multi_particle_state

00:03:06 #21680 [Verbose] > d_multi_particle_state) =

00:03:06 #21681 [Verbose] >     newton_second_mps

00:03:06 #21682 [Verbose] >     >> method

00:03:06 #21683 [Verbose] >     >> (fun x (multi_particle_state y) =>

00:03:06 #21684 [Verbose] >         y

00:03:06 #21685 [Verbose] >         |> stream.memoize

00:03:06 #21686 [Verbose] >         |> (fun x => x ())

00:03:06 #21687 [Verbose] >         |> multi_particle_state |> x

00:03:06 #21688 [Verbose] >     )

00:03:06 #21689 [Verbose] >     // >> stream.iterate

00:03:06 #21690 [Verbose] >     >> seq.iterate'

00:03:06 #21691 [Verbose] >

00:03:06 #21692 [Verbose] > inl kinetic_energy (particle_state st) =

00:03:06 #21693 [Verbose] >     inl m = st.mass

00:03:06 #21694 [Verbose] >     inl v = magnitude st.velocity

00:03:06 #21695 [Verbose] >     0.5 * m * v ** 2

00:03:06 #21696 [Verbose] >

00:03:06 #21697 [Verbose] > inl system_ke (multi_particle_state sts) =

00:03:06 #21698 [Verbose] >     sts

00:03:06 #21699 [Verbose] >     |> stream.map kinetic_energy

00:03:06 #21700 [Verbose] >     |> stream.sum

00:03:06 #21701 [Verbose] >

00:03:06 #21702 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =

00:03:06 #21703 [Verbose] >     inl r1 = st1.pos_vec

00:03:06 #21704 [Verbose] >     inl r2 = st2.pos_vec

00:03:06 #21705 [Verbose] >     inl r21 = r2 ^-^ r1

00:03:06 #21706 [Verbose] >     inl r21mag = magnitude r21

00:03:06 #21707 [Verbose] >     k * (r21mag - re) ** 2 / 2

00:03:06 #21708 [Verbose] >

00:03:06 #21709 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =

00:03:06 #21710 [Verbose] >     inl g = 9.80665

00:03:06 #21711 [Verbose] >     inl m = st.mass

00:03:06 #21712 [Verbose] >     inl z = st.pos_vec.z

00:03:06 #21713 [Verbose] >     m * g * z

00:03:06 #21714 [Verbose] >

00:03:06 #21715 [Verbose] > inl ball_radius () = 0.03

00:03:06 #21716 [Verbose] >

00:03:06 #21717 [Verbose] > inl billiard_forces k =

00:03:06 #21718 [Verbose] >     [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]

00:03:06 #21719 [Verbose] >

00:03:06 #21720 [Verbose] > inl billiard_initial () =

00:03:06 #21721 [Verbose] >     inl ball_mass = 0.160

00:03:06 #21722 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:06 #21723 [Verbose] >     [[

00:03:06 #21724 [Verbose] >         particle_state {

00:03:06 #21725 [Verbose] >             default_particle_state' with

00:03:06 #21726 [Verbose] >                 mass = ball_mass

00:03:06 #21727 [Verbose] >                 pos_vec = zero_vec ()

00:03:06 #21728 [Verbose] >                 velocity = 0.2 *^ i_hat ()

00:03:06 #21729 [Verbose] >         }

00:03:06 #21730 [Verbose] >         particle_state {

00:03:06 #21731 [Verbose] >             default_particle_state' with

00:03:06 #21732 [Verbose] >                 mass = ball_mass

00:03:06 #21733 [Verbose] >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()

00:03:06 #21734 [Verbose] >                 velocity = zero_vec ()

00:03:06 #21735 [Verbose] >         }

00:03:06 #21736 [Verbose] >     ]]

00:03:06 #21737 [Verbose] >     |> stream.from_list

00:03:06 #21738 [Verbose] >     |> multi_particle_state

00:03:06 #21739 [Verbose] >

00:03:06 #21740 [Verbose] > inl billiard_states ~n_method k dt =

00:03:06 #21741 [Verbose] >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())

00:03:06 #21742 [Verbose] >

00:03:06 #21743 [Verbose] > inl billiard_states_finite n_method k dt =

00:03:06 #21744 [Verbose] >     billiard_states n_method k dt

00:03:06 #21745 [Verbose] >     >> Some

00:03:06 #21746 [Verbose] >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>

00:03:06 #21747 [Verbose] >         match mpst |> stream.try_item 0i32 with

00:03:06 #21748 [Verbose] >         | Some st =>

00:03:06 #21749 [Verbose] >             st.time <= 10

00:03:06 #21750 [Verbose] >         | None => false

00:03:06 #21751 [Verbose] >     )

00:03:06 #21752 [Verbose] >

00:03:06 #21753 [Verbose] > inl momentum (particle_state st) =

00:03:06 #21754 [Verbose] >     inl m = st.mass

00:03:06 #21755 [Verbose] >     inl v = st.velocity

00:03:06 #21756 [Verbose] >     m *^ v

00:03:06 #21757 [Verbose] >

00:03:06 #21758 [Verbose] > inl system_p (multi_particle_state sts) =

00:03:06 #21759 [Verbose] >     sts

00:03:06 #21760 [Verbose] >     |> stream.map momentum

00:03:06 #21761 [Verbose] >     |> stream.fold (^+^) (zero_vec ())

00:03:06 #21762 [Verbose] >

00:03:06 #21763 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =

00:03:06 #21764 [Verbose] >     billiard_states_finite euler_cromer_mps 30 0.03

00:03:06 #21765 [Verbose] >     |> listm.map (fun (multi_particle_state mpst) =>

00:03:06 #21766 [Verbose] >         mpst |> stream.try_item 0i32

00:03:06 #21767 [Verbose] >         |> optionm.map (fun st =>

00:03:06 #21768 [Verbose] >             st.time, system_ke (multi_particle_state mpst)

00:03:06 #21769 [Verbose] >         )

00:03:06 #21770 [Verbose] >     )

00:03:06 #21771 [Verbose] >     // |> stream.to_list

00:03:06 #21772 [Verbose] >     |> listm'.choose id

00:03:06 #21773 [Verbose] >     |> listm'.unzip

00:03:06 #21774 [Verbose] >

00:03:06 #21775 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =

00:03:06 #21776 [Verbose] >     billiard_states_finite runge_kutta_4 30 0.03

00:03:06 #21777 [Verbose] >     |> listm.map (fun (multi_particle_state mpst) =>

00:03:06 #21778 [Verbose] >         mpst |> stream.try_item 0i32

00:03:06 #21779 [Verbose] >         |> optionm.map (fun st =>

00:03:06 #21780 [Verbose] >             st.time, system_ke (multi_particle_state mpst)

00:03:06 #21781 [Verbose] >         )

00:03:06 #21782 [Verbose] >     )

00:03:06 #21783 [Verbose] >     // |> stream.to_list

00:03:06 #21784 [Verbose] >     |> listm'.choose id

00:03:06 #21785 [Verbose] >     |> listm'.unzip

00:03:06 #21786 [Verbose] >

00:03:06 #21787 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray

00:03:06 #21788 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray

00:03:06 #21789 [Verbose] >

00:03:06 #21790 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray

00:03:06 #21791 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray

00:03:06 #21792 [Verbose] >

00:03:06 #21793 [Verbose] > "system kinetic energy versus time",

00:03:06 #21794 [Verbose] > "time (s)",

00:03:06 #21795 [Verbose] > "system kinetic energy (j)",

00:03:06 #21796 [Verbose] > ;[[

00:03:06 #21797 [Verbose] >     "euler-cromer", time_ke_ec_x, time_ke_ec_y

00:03:06 #21798 [Verbose] >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y

00:03:06 #21799 [Verbose] > ]]

00:03:06 #21800 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-0168-6814-6f936e706a81\main.spi

00:03:08 #21801 [Verbose] >

00:03:08 #21802 [Verbose] > ╭─[ 2.68s - return value ]─────────────────────────────────────────────────────╮

00:03:08 #21803 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:03:08 #21804 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:08 #21805 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:08 #21806 [Verbose] > │ stroke="none"/>                                                              │

00:03:08 #21807 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:08 #21808 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:08 #21809 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:08 #21810 [Verbose] > │ system kinetic energy versus time                                            │

00:03:08 #21811 [Verbose] > │ </text>                                                                      │

00:03:08 #21812 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:03:08 #21813 [Verbose] > │ y2="75"/>                                                                    │

00:03:08 #21814 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:08 #21815 [Verbose] > │ y2="75"/>                                                                    │

00:03:08 #21816 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:03:08 #21817 [Verbose] > │ y2="75"/>                                                                    │

00:03:08 #21818 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:03:08 #21819 [Verbose] > │ y2="75"/>                                                                    │

00:03:08 #21820 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1...                        │

00:03:08 #21821 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:08 #21822 [Verbose] >

00:03:08 #21823 [Verbose] > ╭─[ 2.70s - stdout ]───────────────────────────────────────────────────────────╮

00:03:08 #21824 [Verbose] > │ type UH0 =                                                                   │

00:03:08 #21825 [Verbose] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:03:08 #21826 [Verbose] > │ * float * (unit -> UH0)                                                      │

00:03:08 #21827 [Verbose] > │     | UH0_1                                                                  │

00:03:08 #21828 [Verbose] > │ and UH1 =                                                                    │

00:03:08 #21829 [Verbose] > │     | UH1_0 of float * float * float * float * float * float * float * float │

00:03:08 #21830 [Verbose] > │ * float * (unit -> UH1)                                                      │

00:03:08 #21831 [Verbose] > │     | UH1_1                                                                  │

00:03:08 #21832 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:03:08 #21833 [Verbose] > │     | US0_0 of f0_0 : UH0                                                    │

00:03:08 #21834 [Verbose] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:03:08 #21835 [Verbose] > │ and Mut0 = {mutable l0 : US0}                                                │

00:03:08 #21836 [Verbose] > │ and UH2 =                                                                    │

00:03:08 #21837 [Verbose] > │     | UH2_0 of float * float * float * float * float * float * float * float │

00:03:08 #21838 [Verbose] > │ * float * float * float * float * float * float * float * float * float *    │

00:03:08 #21839 [Verbose] > │ float * (unit -> UH2)                                                        │

00:03:08 #21840 [Verbose] > │     | UH2_1                                                                  │

00:03:08 #21841 [Verbose] > │ and UH3 =                                                                    │

00:03:08 #21842 [Verbose] > │     | UH3_0 of int32 * float * float * float * float * float * float * float │

00:03:08 #21843 [Verbose] > │ * float * float * (unit -> UH3)                                              │

00:03:08 #21844 [Verbose] > │     | UH3_1                                                                  │

00:03:08 #21845 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:03:08 #21846 [Verbose] > │     | US1_0                                                                  │

00:03:08 #21847 [Verbose] > │     | US1_1 of f1_0 : (struct (float * float * float * float * float * float │

00:03:08 #21848 [Verbose] > │ * float * float * float) -> struct (float * float * float))                  │

00:03:08 #21849 [Verbose] > │ and [<Struct>] US2 =                                                         │

00:03:08 #21850 [Verbose] > │     | US2_0                                                                  │

00:03:08 #21851 [Verbose] > │     | US2_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float *   │

00:03:08 #21852 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float     │

00:03:08 #21853 [Verbose] > │ and UH4 =                                                                    │

00:03:08 #21854 [Verbose] > │     | UH4_0 of UH0 * UH4                                                     │

00:03:08 #21855 [Verbose] > │     | UH4_1                                                                  │

00:03:08 #21856 [Verbose] > │ and UH5 =                                                                    │

00:03:08 #21857 [Verbose] > │     | UH5_0 of int32 * UH5                                                   │

00:03:08 #21858 [Verbose] > │     | UH5_1                                                                  │

00:03:08 #21859 [Verbose] > │ and [<Struct>] US3 =                                                         │

00:03:08 #21860 [Verbose] > │     | US3_0                                                                  │

00:03:08 #21861 [Verbose] > │     | US3_1 of f1_0 : float * f1_1 : float                                   │

00:03:08 #21862 [Verbose] > │ and UH6 =                                                                    │

00:03:08 #21863 [Verbose] > │     | UH6_0 of US3 * UH6                                                     │

00:03:08 #21864 [Verbose] > │     | UH6_1                                                                  │

00:03:08 #21865 [Verbose] > │ and UH7 =                                                                    │

00:03:08 #21866 [Verbose] > │     | UH7_0 of float * (unit -> UH7)                                         │

00:03:08 #21867 [Verbose] > │     | UH7_1                                                                  │

00:03:08 #21868 [Verbose] > │ and UH8 =                                                                    │

00:03:08 #21869 [Verbose] > │     | UH8_0 of float * float * UH8                                           │

00:03:08 #21870 [Verbose] > │     | UH8_1                                                                  │

00:03:08 #21871 [Verbose] > │ and UH9 =                                                                    │

00:03:08 #21872 [Verbose] > │     | UH9_0 of float * UH9                                                   │

00:03:08 #21873 [Verbose] > │     | UH9_1                                                                  │

00:03:08 #21874 [Verbose] > │ let rec closure3 (v0 : float, v1 : (unit -> UH0), v2 : (unit -> UH1)) () :   │

00:03:08 #21875 [Verbose] > │ UH0 =                                                                        │

00:03:08 #21876 [Verbose] > │     let v3 : UH1 = v2 ()                                                     │

00:03:08 #21877 [Verbose] > │     let v4 : UH0 = v1 ()                                                     │

00:03:08 #21878 [Verbose] > │     match v3 with                                                            │

00:03:08 #21879 [Verbose] > │     | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* StreamCons *) │

00:03:08 #21880 [Verbose] > │         match v4 with                                                        │

00:03:08 #21881 [Verbose] > │         | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (*      │

00:03:08 #21882 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #21883 [Verbose] > │             let v25 : float = v10 * v0                                       │

00:03:08 #21884 [Verbose] > │             let v26 : float = v20 + v25                                      │

00:03:08 #21885 [Verbose] > │             let v27 : float = v0 * v7                                        │

00:03:08 #21886 [Verbose] > │             let v28 : float = v0 * v8                                        │

00:03:08 #21887 [Verbose] > │             let v29 : float = v0 * v9                                        │

00:03:08 #21888 [Verbose] > │             let v30 : float = v17 + v27                                      │

00:03:08 #21889 [Verbose] > │             let v31 : float = v18 + v28                                      │

00:03:08 #21890 [Verbose] > │             let v32 : float = v19 + v29                                      │

00:03:08 #21891 [Verbose] > │             let v33 : float = v0 * v11                                       │

00:03:08 #21892 [Verbose] > │             let v34 : float = v0 * v12                                       │

00:03:08 #21893 [Verbose] > │             let v35 : float = v0 * v13                                       │

00:03:08 #21894 [Verbose] > │             let v36 : float = v21 + v33                                      │

00:03:08 #21895 [Verbose] > │             let v37 : float = v22 + v34                                      │

00:03:08 #21896 [Verbose] > │             let v38 : float = v23 + v35                                      │

00:03:08 #21897 [Verbose] > │             let v39 : (unit -> UH0) = closure3(v0, v24, v14)                 │

00:03:08 #21898 [Verbose] > │             UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39)          │

00:03:08 #21899 [Verbose] > │         | UH0_1 -> (* StreamNil *)                                           │

00:03:08 #21900 [Verbose] > │             UH0_1                                                            │

00:03:08 #21901 [Verbose] > │     | UH1_1 -> (* StreamNil *)                                               │

00:03:08 #21902 [Verbose] > │         UH0_1                                                                │

00:03:08 #21903 [Verbose] > │ and closure4 (v0 : UH0) () : UH0 =                                           │

00:03:08 #21904 [Verbose] > │     v0                                                                       │

00:03:08 #21905 [Verbose] > │ and closure5 (v0 : UH0, v1 : Mut0) () : UH0 =                                │

00:03:08 #21906 [Verbose] > │     let v2 : US0 = v1.l0                                                     │

00:03:08 #21907 [Verbose] > │     match v2 with                                                            │

00:03:08 #21908 [Verbose] > │     | US0_0(v3) -> (* Computed *)                                            │

00:03:08 #21909 [Verbose] > │         v3                                                                   │

00:03:08 #21910 [Verbose] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:03:08 #21911 [Verbose] > │         let v5 : UH0 = v4 ()                                                 │

00:03:08 #21912 [Verbose] > │         let v20 : UH0 =                                                      │

00:03:08 #21913 [Verbose] > │             match v5 with                                                    │

00:03:08 #21914 [Verbose] > │             | UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (*     │

00:03:08 #21915 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #21916 [Verbose] > │                 let v17 : (unit -> UH0) = method1(v0, v16)                   │

00:03:08 #21917 [Verbose] > │                 UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17)         │

00:03:08 #21918 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:08 #21919 [Verbose] > │                 UH0_1                                                        │

00:03:08 #21920 [Verbose] > │         let v21 : US0 = US0_0(v20)                                           │

00:03:08 #21921 [Verbose] > │         v1.l0 <- v21                                                         │

00:03:08 #21922 [Verbose] > │         v20                                                                  │

00:03:08 #21923 [Verbose] > │ and method1 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) =                 │

00:03:08 #21924 [Verbose] > │     let v2 : US0 = US0_1(v1)                                                 │

00:03:08 #21925 [Verbose] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:03:08 #21926 [Verbose] > │     closure5(v0, v3)                                                         │

00:03:08 #21927 [Verbose] > │ and closure6 (v0 : (unit -> UH0), v1 : (unit -> UH0)) () : UH2 =             │

00:03:08 #21928 [Verbose] > │     let v2 : UH0 = v1 ()                                                     │

00:03:08 #21929 [Verbose] > │     let v3 : UH0 = v0 ()                                                     │

00:03:08 #21930 [Verbose] > │     match v2 with                                                            │

00:03:08 #21931 [Verbose] > │     | UH0_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:03:08 #21932 [Verbose] > │         match v3 with                                                        │

00:03:08 #21933 [Verbose] > │         | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:03:08 #21934 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #21935 [Verbose] > │             let v24 : (unit -> UH2) = closure6(v23, v13)                     │

00:03:08 #21936 [Verbose] > │             UH2_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v14, v15, v16, v17, │

00:03:08 #21937 [Verbose] > │ v18, v19, v20, v21, v22, v24)                                                │

00:03:08 #21938 [Verbose] > │         | UH0_1 -> (* StreamNil *)                                           │

00:03:08 #21939 [Verbose] > │             UH2_1                                                            │

00:03:08 #21940 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:03:08 #21941 [Verbose] > │         UH2_1                                                                │

00:03:08 #21942 [Verbose] > │ and closure7 (v0 : UH0) () : UH0 =                                           │

00:03:08 #21943 [Verbose] > │     v0                                                                       │

00:03:08 #21944 [Verbose] > │ and method2 (v0 : float, v1 : UH2, v2 : UH0) : UH0 =                         │

00:03:08 #21945 [Verbose] > │     match v1 with                                                            │

00:03:08 #21946 [Verbose] > │     | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16,   │

00:03:08 #21947 [Verbose] > │ v17, v18, v19, v20, v21) -> (* StreamCons *)                                 │

00:03:08 #21948 [Verbose] > │         let v22 : UH2 = v21 ()                                               │

00:03:08 #21949 [Verbose] > │         let v23 : UH0 = method2(v0, v22, v2)                                 │

00:03:08 #21950 [Verbose] > │         let v24 : float = v0 * v18                                           │

00:03:08 #21951 [Verbose] > │         let v25 : float = v0 * v19                                           │

00:03:08 #21952 [Verbose] > │         let v26 : float = v0 * v20                                           │

00:03:08 #21953 [Verbose] > │         let v27 : float = v5 + v24                                           │

00:03:08 #21954 [Verbose] > │         let v28 : float = v6 + v25                                           │

00:03:08 #21955 [Verbose] > │         let v29 : float = v7 + v26                                           │

00:03:08 #21956 [Verbose] > │         let v30 : (unit -> UH0) = closure7(v23)                              │

00:03:08 #21957 [Verbose] > │         UH0_0(v12, v13, v27, v28, v29, v17, v18, v19, v20, v30)              │

00:03:08 #21958 [Verbose] > │     | UH2_1 -> (* StreamNil *)                                               │

00:03:08 #21959 [Verbose] > │         v2                                                                   │

00:03:08 #21960 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =              │

00:03:08 #21961 [Verbose] > │     let v3 : UH1 = v1 v2                                                     │

00:03:08 #21962 [Verbose] > │     let v45 : UH0 =                                                          │

00:03:08 #21963 [Verbose] > │         match v3 with                                                        │

00:03:08 #21964 [Verbose] > │         | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │

00:03:08 #21965 [Verbose] > │ *)                                                                           │

00:03:08 #21966 [Verbose] > │             match v2 with                                                    │

00:03:08 #21967 [Verbose] > │             | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*  │

00:03:08 #21968 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #21969 [Verbose] > │                 let v24 : float = v9 * v0                                    │

00:03:08 #21970 [Verbose] > │                 let v25 : float = v19 + v24                                  │

00:03:08 #21971 [Verbose] > │                 let v26 : float = v0 * v6                                    │

00:03:08 #21972 [Verbose] > │                 let v27 : float = v0 * v7                                    │

00:03:08 #21973 [Verbose] > │                 let v28 : float = v0 * v8                                    │

00:03:08 #21974 [Verbose] > │                 let v29 : float = v16 + v26                                  │

00:03:08 #21975 [Verbose] > │                 let v30 : float = v17 + v27                                  │

00:03:08 #21976 [Verbose] > │                 let v31 : float = v18 + v28                                  │

00:03:08 #21977 [Verbose] > │                 let v32 : float = v0 * v10                                   │

00:03:08 #21978 [Verbose] > │                 let v33 : float = v0 * v11                                   │

00:03:08 #21979 [Verbose] > │                 let v34 : float = v0 * v12                                   │

00:03:08 #21980 [Verbose] > │                 let v35 : float = v20 + v32                                  │

00:03:08 #21981 [Verbose] > │                 let v36 : float = v21 + v33                                  │

00:03:08 #21982 [Verbose] > │                 let v37 : float = v22 + v34                                  │

00:03:08 #21983 [Verbose] > │                 let v38 : (unit -> UH0) = closure3(v0, v23, v13)             │

00:03:08 #21984 [Verbose] > │                 UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)      │

00:03:08 #21985 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:08 #21986 [Verbose] > │                 UH0_1                                                        │

00:03:08 #21987 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:08 #21988 [Verbose] > │             UH0_1                                                            │

00:03:08 #21989 [Verbose] > │     let v46 : (unit -> UH0) = closure4(v45)                                  │

00:03:08 #21990 [Verbose] > │     let v47 : (unit -> UH0) = method1(v45, v46)                              │

00:03:08 #21991 [Verbose] > │     let v48 : UH0 = v47 ()                                                   │

00:03:08 #21992 [Verbose] > │     let v76 : UH2 =                                                          │

00:03:08 #21993 [Verbose] > │         match v2 with                                                        │

00:03:08 #21994 [Verbose] > │         | UH0_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (*      │

00:03:08 #21995 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #21996 [Verbose] > │             match v48 with                                                   │

00:03:08 #21997 [Verbose] > │             | UH0_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (*  │

00:03:08 #21998 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #21999 [Verbose] > │                 let v69 : (unit -> UH2) = closure6(v68, v58)                 │

00:03:08 #22000 [Verbose] > │                 UH2_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v59, v60, │

00:03:08 #22001 [Verbose] > │ v61, v62, v63, v64, v65, v66, v67, v69)                                      │

00:03:08 #22002 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:08 #22003 [Verbose] > │                 UH2_1                                                        │

00:03:08 #22004 [Verbose] > │         | UH0_1 -> (* StreamNil *)                                           │

00:03:08 #22005 [Verbose] > │             UH2_1                                                            │

00:03:08 #22006 [Verbose] > │     let v77 : UH0 = UH0_1                                                    │

00:03:08 #22007 [Verbose] > │     let v78 : UH0 = method2(v0, v76, v77)                                    │

00:03:08 #22008 [Verbose] > │     v78                                                                      │

00:03:08 #22009 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =               │

00:03:08 #22010 [Verbose] > │     closure2(v0, v1)                                                         │

00:03:08 #22011 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =              │

00:03:08 #22012 [Verbose] > │     closure1(v0)                                                             │

00:03:08 #22013 [Verbose] > │ and closure9 (v0 : UH3) () : UH3 =                                           │

00:03:08 #22014 [Verbose] > │     v0                                                                       │

00:03:08 #22015 [Verbose] > │ and method3 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) =        │

00:03:08 #22016 [Verbose] > │     match v0 with                                                            │

00:03:08 #22017 [Verbose] > │     | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *)   │

00:03:08 #22018 [Verbose] > │         let v13 : int32 = v2 + 1                                             │

00:03:08 #22019 [Verbose] > │         let v14 : UH0 = v12 ()                                               │

00:03:08 #22020 [Verbose] > │         let v15 : (unit -> UH3) = closure9(v1)                               │

00:03:08 #22021 [Verbose] > │         let v16 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │

00:03:08 #22022 [Verbose] > │         method3(v14, v16, v13)                                               │

00:03:08 #22023 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:03:08 #22024 [Verbose] > │         struct (v1, v2)                                                      │

00:03:08 #22025 [Verbose] > │ and closure10 (v0 : UH3) () : UH3 =                                          │

00:03:08 #22026 [Verbose] > │     v0                                                                       │

00:03:08 #22027 [Verbose] > │ and method4 (v0 : UH3, v1 : UH3) : UH3 =                                     │

00:03:08 #22028 [Verbose] > │     match v0 with                                                            │

00:03:08 #22029 [Verbose] > │     | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons  │

00:03:08 #22030 [Verbose] > │ *)                                                                           │

00:03:08 #22031 [Verbose] > │         let v13 : UH3 = v12 ()                                               │

00:03:08 #22032 [Verbose] > │         let v14 : (unit -> UH3) = closure10(v1)                              │

00:03:08 #22033 [Verbose] > │         let v15 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │

00:03:08 #22034 [Verbose] > │         method4(v13, v15)                                                    │

00:03:08 #22035 [Verbose] > │     | UH3_1 -> (* StreamNil *)                                               │

00:03:08 #22036 [Verbose] > │         v1                                                                   │

00:03:08 #22037 [Verbose] > │ and method6 (v0 : int32, v1 : UH0) : US2 =                                   │

00:03:08 #22038 [Verbose] > │     match v1 with                                                            │

00:03:08 #22039 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:03:08 #22040 [Verbose] > │         let v12 : bool = v0 <= 0                                             │

00:03:08 #22041 [Verbose] > │         if v12 then                                                          │

00:03:08 #22042 [Verbose] > │             US2_1(v2, v3, v4, v5, v6, v7, v8, v9, v10)                       │

00:03:08 #22043 [Verbose] > │         else                                                                 │

00:03:08 #22044 [Verbose] > │             let v14 : int32 = v0 - 1                                         │

00:03:08 #22045 [Verbose] > │             let v15 : UH0 = v11 ()                                           │

00:03:08 #22046 [Verbose] > │             method6(v14, v15)                                                │

00:03:08 #22047 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:03:08 #22048 [Verbose] > │         US2_0                                                                │

00:03:08 #22049 [Verbose] > │ and closure11 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float,   │

00:03:08 #22050 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 :    │

00:03:08 #22051 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:03:08 #22052 [Verbose] > │ : float, v17 : float) : struct (float * float * float) =                     │

00:03:08 #22053 [Verbose] > │     let v18 : float = -1.0 * v2                                              │

00:03:08 #22054 [Verbose] > │     let v19 : float = -1.0 * v3                                              │

00:03:08 #22055 [Verbose] > │     let v20 : float = -1.0 * v4                                              │

00:03:08 #22056 [Verbose] > │     let v21 : float = v11 + v18                                              │

00:03:08 #22057 [Verbose] > │     let v22 : float = v12 + v19                                              │

00:03:08 #22058 [Verbose] > │     let v23 : float = v13 + v20                                              │

00:03:08 #22059 [Verbose] > │     let v24 : float = v21 * v21                                              │

00:03:08 #22060 [Verbose] > │     let v25 : float = v22 * v22                                              │

00:03:08 #22061 [Verbose] > │     let v26 : float = v24 + v25                                              │

00:03:08 #22062 [Verbose] > │     let v27 : float = v23 * v23                                              │

00:03:08 #22063 [Verbose] > │     let v28 : float = v26 + v27                                              │

00:03:08 #22064 [Verbose] > │     let v29 : float = sqrt v28                                               │

00:03:08 #22065 [Verbose] > │     let v30 : bool = v29 >= 0.06                                             │

00:03:08 #22066 [Verbose] > │     let v33 : float =                                                        │

00:03:08 #22067 [Verbose] > │         if v30 then                                                          │

00:03:08 #22068 [Verbose] > │             0.0                                                              │

00:03:08 #22069 [Verbose] > │         else                                                                 │

00:03:08 #22070 [Verbose] > │             let v31 : float = v29 - 0.06                                     │

00:03:08 #22071 [Verbose] > │             let v32 : float = -30.0 * v31                                    │

00:03:08 #22072 [Verbose] > │             v32                                                              │

00:03:08 #22073 [Verbose] > │     let v34 : float = v33 * v21                                              │

00:03:08 #22074 [Verbose] > │     let v35 : float = v33 * v22                                              │

00:03:08 #22075 [Verbose] > │     let v36 : float = v33 * v23                                              │

00:03:08 #22076 [Verbose] > │     let v37 : float = v34 / v29                                              │

00:03:08 #22077 [Verbose] > │     let v38 : float = v35 / v29                                              │

00:03:08 #22078 [Verbose] > │     let v39 : float = v36 / v29                                              │

00:03:08 #22079 [Verbose] > │     struct (v37, v38, v39)                                                   │

00:03:08 #22080 [Verbose] > │ and closure12 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4  │

00:03:08 #22081 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:03:08 #22082 [Verbose] > │ float * float) =                                                             │

00:03:08 #22083 [Verbose] > │     struct (0.0, 0.0, 0.0)                                                   │

00:03:08 #22084 [Verbose] > │ and closure13 (v0 : UH1) () : UH1 =                                          │

00:03:08 #22085 [Verbose] > │     v0                                                                       │

00:03:08 #22086 [Verbose] > │ and method5 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 =                           │

00:03:08 #22087 [Verbose] > │     match v1 with                                                            │

00:03:08 #22088 [Verbose] > │     | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │

00:03:08 #22089 [Verbose] > │ *)                                                                           │

00:03:08 #22090 [Verbose] > │         let v14 : UH3 = v13 ()                                               │

00:03:08 #22091 [Verbose] > │         let v15 : UH1 = method5(v0, v14, v2)                                 │

00:03:08 #22092 [Verbose] > │         let v16 : bool = v3 = 0                                              │

00:03:08 #22093 [Verbose] > │         let v52 : US1 =                                                      │

00:03:08 #22094 [Verbose] > │             if v16 then                                                      │

00:03:08 #22095 [Verbose] > │                 let v17 : int32 = 1                                          │

00:03:08 #22096 [Verbose] > │                 let v18 : US2 = method6(v17, v0)                             │

00:03:08 #22097 [Verbose] > │                 match v18 with                                               │

00:03:08 #22098 [Verbose] > │                 | US2_0 -> (* None *)                                        │

00:03:08 #22099 [Verbose] > │                     US1_0                                                    │

00:03:08 #22100 [Verbose] > │                 | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (*   │

00:03:08 #22101 [Verbose] > │ Some *)                                                                      │

00:03:08 #22102 [Verbose] > │                     let v28 : (struct (float * float * float * float * float │

00:03:08 #22103 [Verbose] > │ * float * float * float * float) -> struct (float * float * float)) =        │

00:03:08 #22104 [Verbose] > │ closure11(v19, v20, v21, v22, v23, v24, v25, v26, v27)                       │

00:03:08 #22105 [Verbose] > │                     US1_1(v28)                                               │

00:03:08 #22106 [Verbose] > │             else                                                             │

00:03:08 #22107 [Verbose] > │                 let v33 : bool = v3 = 1                                      │

00:03:08 #22108 [Verbose] > │                 if v33 then                                                  │

00:03:08 #22109 [Verbose] > │                     let v34 : int32 = 0                                      │

00:03:08 #22110 [Verbose] > │                     let v35 : US2 = method6(v34, v0)                         │

00:03:08 #22111 [Verbose] > │                     match v35 with                                           │

00:03:08 #22112 [Verbose] > │                     | US2_0 -> (* None *)                                    │

00:03:08 #22113 [Verbose] > │                         US1_0                                                │

00:03:08 #22114 [Verbose] > │                     | US2_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) ->  │

00:03:08 #22115 [Verbose] > │ (* Some *)                                                                   │

00:03:08 #22116 [Verbose] > │                         let v45 : (struct (float * float * float * float *   │

00:03:08 #22117 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float)) =  │

00:03:08 #22118 [Verbose] > │ closure11(v36, v37, v38, v39, v40, v41, v42, v43, v44)                       │

00:03:08 #22119 [Verbose] > │                         US1_1(v45)                                           │

00:03:08 #22120 [Verbose] > │                 else                                                         │

00:03:08 #22121 [Verbose] > │                     US1_0                                                    │

00:03:08 #22122 [Verbose] > │         let v56 : (struct (float * float * float * float * float * float *   │

00:03:08 #22123 [Verbose] > │ float * float * float) -> struct (float * float * float)) =                  │

00:03:08 #22124 [Verbose] > │             match v52 with                                                   │

00:03:08 #22125 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:03:08 #22126 [Verbose] > │                 closure12()                                                  │

00:03:08 #22127 [Verbose] > │             | US1_1(v53) -> (* Some *)                                       │

00:03:08 #22128 [Verbose] > │                 v53                                                          │

00:03:08 #22129 [Verbose] > │         let struct (v57 : float, v58 : float, v59 : float) = v56 struct (v4, │

00:03:08 #22130 [Verbose] > │ v5, v6, v7, v8, v9, v10, v11, v12)                                           │

00:03:08 #22131 [Verbose] > │         let v60 : float = v57 / v5                                           │

00:03:08 #22132 [Verbose] > │         let v61 : float = v58 / v5                                           │

00:03:08 #22133 [Verbose] > │         let v62 : float = v59 / v5                                           │

00:03:08 #22134 [Verbose] > │         let v63 : (unit -> UH1) = closure13(v15)                             │

00:03:08 #22135 [Verbose] > │         UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v60, v61, v62, v63)              │

00:03:08 #22136 [Verbose] > │     | UH3_1 -> (* StreamNil *)                                               │

00:03:08 #22137 [Verbose] > │         v2                                                                   │

00:03:08 #22138 [Verbose] > │ and closure8 () (v0 : UH0) : UH1 =                                           │

00:03:08 #22139 [Verbose] > │     let v1 : UH3 = UH3_1                                                     │

00:03:08 #22140 [Verbose] > │     let v2 : int32 = 0                                                       │

00:03:08 #22141 [Verbose] > │     let struct (v3 : UH3, v4 : int32) = method3(v0, v1, v2)                  │

00:03:08 #22142 [Verbose] > │     let v5 : UH3 = UH3_1                                                     │

00:03:08 #22143 [Verbose] > │     let v6 : UH3 = method4(v3, v5)                                           │

00:03:08 #22144 [Verbose] > │     let v7 : UH1 = UH1_1                                                     │

00:03:08 #22145 [Verbose] > │     let v8 : UH1 = method5(v0, v6, v7)                                       │

00:03:08 #22146 [Verbose] > │     v8                                                                       │

00:03:08 #22147 [Verbose] > │ and method8 (v0 : int32, v1 : int32) : UH5 =                                 │

00:03:08 #22148 [Verbose] > │     let v2 : bool = v1 < v0                                                  │

00:03:08 #22149 [Verbose] > │     if v2 then                                                               │

00:03:08 #22150 [Verbose] > │         let v3 : int32 = v1 + 1                                              │

00:03:08 #22151 [Verbose] > │         let v4 : UH5 = method8(v0, v3)                                       │

00:03:08 #22152 [Verbose] > │         UH5_0(v1, v4)                                                        │

00:03:08 #22153 [Verbose] > │     else                                                                     │

00:03:08 #22154 [Verbose] > │         UH5_1                                                                │

00:03:08 #22155 [Verbose] > │ and closure15 () () : UH0 =                                                  │

00:03:08 #22156 [Verbose] > │     UH0_1                                                                    │

00:03:08 #22157 [Verbose] > │ and closure14 () () : UH0 =                                                  │

00:03:08 #22158 [Verbose] > │     let v0 : (unit -> UH0) = closure15()                                     │

00:03:08 #22159 [Verbose] > │     UH0_0(0.0, 0.16, 1.0, 0.02, 0.0, 0.0, 0.0, 0.0, 0.0, v0)                 │

00:03:08 #22160 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH5, v2 : UH0) : UH0 =                  │

00:03:08 #22161 [Verbose] > │     match v1 with                                                            │

00:03:08 #22162 [Verbose] > │     | UH5_0(v3, v4) -> (* Cons *)                                            │

00:03:08 #22163 [Verbose] > │         let v5 : (unit -> UH0) = closure4(v2)                                │

00:03:08 #22164 [Verbose] > │         let v6 : (unit -> UH0) = method1(v2, v5)                             │

00:03:08 #22165 [Verbose] > │         let v7 : UH0 = v6 ()                                                 │

00:03:08 #22166 [Verbose] > │         let v8 : UH0 = v0 v7                                                 │

00:03:08 #22167 [Verbose] > │         method9(v0, v4, v8)                                                  │

00:03:08 #22168 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:03:08 #22169 [Verbose] > │         v2                                                                   │

00:03:08 #22170 [Verbose] > │ and method10 (v0 : UH4, v1 : UH4) : UH4 =                                    │

00:03:08 #22171 [Verbose] > │     match v0 with                                                            │

00:03:08 #22172 [Verbose] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:03:08 #22173 [Verbose] > │         let v4 : UH4 = UH4_0(v2, v1)                                         │

00:03:08 #22174 [Verbose] > │         method10(v3, v4)                                                     │

00:03:08 #22175 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:08 #22176 [Verbose] > │         v1                                                                   │

00:03:08 #22177 [Verbose] > │ and method7 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 =                │

00:03:08 #22178 [Verbose] > │     let v3 : int32 = 0                                                       │

00:03:08 #22179 [Verbose] > │     let v4 : UH5 = method8(v2, v3)                                           │

00:03:08 #22180 [Verbose] > │     let v5 : float = 0.0                                                     │

00:03:08 #22181 [Verbose] > │     let v6 : float = 0.16                                                    │

00:03:08 #22182 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:08 #22183 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:08 #22184 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:08 #22185 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:08 #22186 [Verbose] > │     let v11 : float = 0.2                                                    │

00:03:08 #22187 [Verbose] > │     let v12 : float = 0.0                                                    │

00:03:08 #22188 [Verbose] > │     let v13 : float = 0.0                                                    │

00:03:08 #22189 [Verbose] > │     let v14 : (unit -> UH0) = closure14()                                    │

00:03:08 #22190 [Verbose] > │     let v15 : UH0 = UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14)       │

00:03:08 #22191 [Verbose] > │     let v16 : UH0 = method9(v0, v4, v15)                                     │

00:03:08 #22192 [Verbose] > │     let v17 : int32 = 0                                                      │

00:03:08 #22193 [Verbose] > │     let v18 : US2 = method6(v17, v16)                                        │

00:03:08 #22194 [Verbose] > │     let v30 : bool =                                                         │

00:03:08 #22195 [Verbose] > │         match v18 with                                                       │

00:03:08 #22196 [Verbose] > │         | US2_0 -> (* None *)                                                │

00:03:08 #22197 [Verbose] > │             false                                                            │

00:03:08 #22198 [Verbose] > │         | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some *)   │

00:03:08 #22199 [Verbose] > │             let v28 : bool = v24 <= 10.0                                     │

00:03:08 #22200 [Verbose] > │             v28                                                              │

00:03:08 #22201 [Verbose] > │     if v30 then                                                              │

00:03:08 #22202 [Verbose] > │         let v31 : UH4 = UH4_0(v16, v1)                                       │

00:03:08 #22203 [Verbose] > │         let v32 : int32 = v2 + 1                                             │

00:03:08 #22204 [Verbose] > │         method7(v0, v31, v32)                                                │

00:03:08 #22205 [Verbose] > │     else                                                                     │

00:03:08 #22206 [Verbose] > │         let v34 : UH4 = UH4_1                                                │

00:03:08 #22207 [Verbose] > │         method10(v1, v34)                                                    │

00:03:08 #22208 [Verbose] > │ and closure16 (v0 : UH7) () : UH7 =                                          │

00:03:08 #22209 [Verbose] > │     v0                                                                       │

00:03:08 #22210 [Verbose] > │ and method12 (v0 : UH0, v1 : UH7) : UH7 =                                    │

00:03:08 #22211 [Verbose] > │     match v0 with                                                            │

00:03:08 #22212 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:03:08 #22213 [Verbose] > │         let v12 : UH0 = v11 ()                                               │

00:03:08 #22214 [Verbose] > │         let v13 : UH7 = method12(v12, v1)                                    │

00:03:08 #22215 [Verbose] > │         let v14 : float = v8 * v8                                            │

00:03:08 #22216 [Verbose] > │         let v15 : float = v9 * v9                                            │

00:03:08 #22217 [Verbose] > │         let v16 : float = v14 + v15                                          │

00:03:08 #22218 [Verbose] > │         let v17 : float = v10 * v10                                          │

00:03:08 #22219 [Verbose] > │         let v18 : float = v16 + v17                                          │

00:03:08 #22220 [Verbose] > │         let v19 : float = sqrt v18                                           │

00:03:08 #22221 [Verbose] > │         let v20 : float = 0.5 * v3                                           │

00:03:08 #22222 [Verbose] > │         let v21 : float = v19 ** 2.0                                         │

00:03:08 #22223 [Verbose] > │         let v22 : float = v20 * v21                                          │

00:03:08 #22224 [Verbose] > │         let v23 : (unit -> UH7) = closure16(v13)                             │

00:03:08 #22225 [Verbose] > │         UH7_0(v22, v23)                                                      │

00:03:08 #22226 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:03:08 #22227 [Verbose] > │         v1                                                                   │

00:03:08 #22228 [Verbose] > │ and method13 (v0 : UH7, v1 : float) : float =                                │

00:03:08 #22229 [Verbose] > │     match v0 with                                                            │

00:03:08 #22230 [Verbose] > │     | UH7_0(v2, v3) -> (* StreamCons *)                                      │

00:03:08 #22231 [Verbose] > │         let v4 : float = v1 + v2                                             │

00:03:08 #22232 [Verbose] > │         let v5 : UH7 = v3 ()                                                 │

00:03:08 #22233 [Verbose] > │         method13(v5, v4)                                                     │

00:03:08 #22234 [Verbose] > │     | UH7_1 -> (* StreamNil *)                                               │

00:03:08 #22235 [Verbose] > │         v1                                                                   │

00:03:08 #22236 [Verbose] > │ and method11 (v0 : UH4, v1 : UH6) : UH6 =                                    │

00:03:08 #22237 [Verbose] > │     match v0 with                                                            │

00:03:08 #22238 [Verbose] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:03:08 #22239 [Verbose] > │         let v4 : UH6 = method11(v3, v1)                                      │

00:03:08 #22240 [Verbose] > │         let v5 : int32 = 0                                                   │

00:03:08 #22241 [Verbose] > │         let v6 : US2 = method6(v5, v2)                                       │

00:03:08 #22242 [Verbose] > │         let v23 : US3 =                                                      │

00:03:08 #22243 [Verbose] > │             match v6 with                                                    │

00:03:08 #22244 [Verbose] > │             | US2_0 -> (* None *)                                            │

00:03:08 #22245 [Verbose] > │                 US3_0                                                        │

00:03:08 #22246 [Verbose] > │             | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *)  │

00:03:08 #22247 [Verbose] > │                 let v16 : UH7 = UH7_1                                        │

00:03:08 #22248 [Verbose] > │                 let v17 : UH7 = method12(v2, v16)                            │

00:03:08 #22249 [Verbose] > │                 let v18 : float = 0.0                                        │

00:03:08 #22250 [Verbose] > │                 let v19 : float = method13(v17, v18)                         │

00:03:08 #22251 [Verbose] > │                 US3_1(v12, v19)                                              │

00:03:08 #22252 [Verbose] > │         UH6_0(v23, v4)                                                       │

00:03:08 #22253 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:08 #22254 [Verbose] > │         v1                                                                   │

00:03:08 #22255 [Verbose] > │ and method14 (v0 : UH6, v1 : UH8) : UH8 =                                    │

00:03:08 #22256 [Verbose] > │     match v0 with                                                            │

00:03:08 #22257 [Verbose] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:03:08 #22258 [Verbose] > │         let v4 : UH8 = method14(v3, v1)                                      │

00:03:08 #22259 [Verbose] > │         match v2 with                                                        │

00:03:08 #22260 [Verbose] > │         | US3_0 -> (* None *)                                                │

00:03:08 #22261 [Verbose] > │             v4                                                               │

00:03:08 #22262 [Verbose] > │         | US3_1(v5, v6) -> (* Some *)                                        │

00:03:08 #22263 [Verbose] > │             UH8_0(v5, v6, v4)                                                │

00:03:08 #22264 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:03:08 #22265 [Verbose] > │         v1                                                                   │

00:03:08 #22266 [Verbose] > │ and method15 (v0 : UH8, v1 : UH9, v2 : UH9) : struct (UH9 * UH9) =           │

00:03:08 #22267 [Verbose] > │     match v0 with                                                            │

00:03:08 #22268 [Verbose] > │     | UH8_0(v3, v4, v5) -> (* Cons *)                                        │

00:03:08 #22269 [Verbose] > │         let v6 : UH9 = UH9_0(v3, v1)                                         │

00:03:08 #22270 [Verbose] > │         let v7 : UH9 = UH9_0(v4, v2)                                         │

00:03:08 #22271 [Verbose] > │         method15(v5, v6, v7)                                                 │

00:03:08 #22272 [Verbose] > │     | UH8_1 -> (* Nil *)                                                     │

00:03:08 #22273 [Verbose] > │         struct (v1, v2)                                                      │

00:03:08 #22274 [Verbose] > │ and method16 (v0 : UH9, v1 : UH9) : UH9 =                                    │

00:03:08 #22275 [Verbose] > │     match v0 with                                                            │

00:03:08 #22276 [Verbose] > │     | UH9_0(v2, v3) -> (* Cons *)                                            │

00:03:08 #22277 [Verbose] > │         let v4 : UH9 = UH9_0(v2, v1)                                         │

00:03:08 #22278 [Verbose] > │         method16(v3, v4)                                                     │

00:03:08 #22279 [Verbose] > │     | UH9_1 -> (* Nil *)                                                     │

00:03:08 #22280 [Verbose] > │         v1                                                                   │

00:03:08 #22281 [Verbose] > │ and closure20 (v0 : (unit -> UH1), v1 : (unit -> UH1)) () : UH1 =            │

00:03:08 #22282 [Verbose] > │     let v2 : UH1 = v1 ()                                                     │

00:03:08 #22283 [Verbose] > │     let v3 : UH1 = v0 ()                                                     │

00:03:08 #22284 [Verbose] > │     match v2 with                                                            │

00:03:08 #22285 [Verbose] > │     | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:03:08 #22286 [Verbose] > │         match v3 with                                                        │

00:03:08 #22287 [Verbose] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:03:08 #22288 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #22289 [Verbose] > │             let v24 : float = v4 + v14                                       │

00:03:08 #22290 [Verbose] > │             let v25 : float = v5 + v15                                       │

00:03:08 #22291 [Verbose] > │             let v26 : float = v9 + v19                                       │

00:03:08 #22292 [Verbose] > │             let v27 : float = v6 + v16                                       │

00:03:08 #22293 [Verbose] > │             let v28 : float = v7 + v17                                       │

00:03:08 #22294 [Verbose] > │             let v29 : float = v8 + v18                                       │

00:03:08 #22295 [Verbose] > │             let v30 : float = v10 + v20                                      │

00:03:08 #22296 [Verbose] > │             let v31 : float = v11 + v21                                      │

00:03:08 #22297 [Verbose] > │             let v32 : float = v12 + v22                                      │

00:03:08 #22298 [Verbose] > │             let v33 : (unit -> UH1) = closure20(v23, v13)                    │

00:03:08 #22299 [Verbose] > │             UH1_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33)          │

00:03:08 #22300 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:08 #22301 [Verbose] > │             UH1_1                                                            │

00:03:08 #22302 [Verbose] > │     | UH1_1 -> (* StreamNil *)                                               │

00:03:08 #22303 [Verbose] > │         UH1_1                                                                │

00:03:08 #22304 [Verbose] > │ and closure19 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =             │

00:03:08 #22305 [Verbose] > │     let v3 : UH1 = v1 v2                                                     │

00:03:08 #22306 [Verbose] > │     let v4 : float = v0 / 2.0                                                │

00:03:08 #22307 [Verbose] > │     let v46 : UH0 =                                                          │

00:03:08 #22308 [Verbose] > │         match v3 with                                                        │

00:03:08 #22309 [Verbose] > │         | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (*           │

00:03:08 #22310 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #22311 [Verbose] > │             match v2 with                                                    │

00:03:08 #22312 [Verbose] > │             | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (*  │

00:03:08 #22313 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #22314 [Verbose] > │                 let v25 : float = v10 * v4                                   │

00:03:08 #22315 [Verbose] > │                 let v26 : float = v20 + v25                                  │

00:03:08 #22316 [Verbose] > │                 let v27 : float = v4 * v7                                    │

00:03:08 #22317 [Verbose] > │                 let v28 : float = v4 * v8                                    │

00:03:08 #22318 [Verbose] > │                 let v29 : float = v4 * v9                                    │

00:03:08 #22319 [Verbose] > │                 let v30 : float = v17 + v27                                  │

00:03:08 #22320 [Verbose] > │                 let v31 : float = v18 + v28                                  │

00:03:08 #22321 [Verbose] > │                 let v32 : float = v19 + v29                                  │

00:03:08 #22322 [Verbose] > │                 let v33 : float = v4 * v11                                   │

00:03:08 #22323 [Verbose] > │                 let v34 : float = v4 * v12                                   │

00:03:08 #22324 [Verbose] > │                 let v35 : float = v4 * v13                                   │

00:03:08 #22325 [Verbose] > │                 let v36 : float = v21 + v33                                  │

00:03:08 #22326 [Verbose] > │                 let v37 : float = v22 + v34                                  │

00:03:08 #22327 [Verbose] > │                 let v38 : float = v23 + v35                                  │

00:03:08 #22328 [Verbose] > │                 let v39 : (unit -> UH0) = closure3(v4, v24, v14)             │

00:03:08 #22329 [Verbose] > │                 UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39)      │

00:03:08 #22330 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:08 #22331 [Verbose] > │                 UH0_1                                                        │

00:03:08 #22332 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:08 #22333 [Verbose] > │             UH0_1                                                            │

00:03:08 #22334 [Verbose] > │     let v47 : (unit -> UH0) = closure4(v46)                                  │

00:03:08 #22335 [Verbose] > │     let v48 : (unit -> UH0) = method1(v46, v47)                              │

00:03:08 #22336 [Verbose] > │     let v49 : UH0 = v48 ()                                                   │

00:03:08 #22337 [Verbose] > │     let v50 : UH1 = v1 v49                                                   │

00:03:08 #22338 [Verbose] > │     let v92 : UH0 =                                                          │

00:03:08 #22339 [Verbose] > │         match v50 with                                                       │

00:03:08 #22340 [Verbose] > │         | UH1_0(v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) -> (*      │

00:03:08 #22341 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #22342 [Verbose] > │             match v2 with                                                    │

00:03:08 #22343 [Verbose] > │             | UH0_0(v61, v62, v63, v64, v65, v66, v67, v68, v69, v70) -> (*  │

00:03:08 #22344 [Verbose] > │ StreamCons *)                                                                │

00:03:08 #22345 [Verbose] > │                 let v71 : float = v56 * v4                                   │

00:03:08 #22346 [Verbose] > │                 let v72 : float = v66 + v71                                  │

00:03:08 #22347 [Verbose] > │                 let v73 : float = v4 * v53                                   │

00:03:08 #22348 [Verbose] > │                 let v74 : float = v4 * v54                                   │

00:03:08 #22349 [Verbose] > │                 let v75 : float = v4 * v55                                   │

00:03:08 #22350 [Verbose] > │                 let v76 : float = v63 + v73                                  │

00:03:08 #22351 [Verbose] > │                 let v77 : float = v64 + v74                                  │

00:03:08 #22352 [Verbose] > │                 let v78 : float = v65 + v75                                  │

00:03:08 #22353 [Verbose] > │                 let v79 : float = v4 * v57                                   │

00:03:08 #22354 [Verbose] > │                 let v80 : float = v4 * v58                                   │

00:03:08 #22355 [Verbose] > │                 let v81 : float = v4 * v59                                   │

00:03:08 #22356 [Verbose] > │                 let v82 : float = v67 + v79                                  │

00:03:08 #22357 [Verbose] > │                 let v83 : float = v68 + v80                                  │

00:03:08 #22358 [Verbose] > │                 let v84 : float = v69 + v81                                  │

00:03:08 #22359 [Verbose] > │                 let v85 : (unit -> UH0) = closure3(v4, v70, v60)             │

00:03:08 #22360 [Verbose] > │                 UH0_0(v61, v62, v76, v77, v78, v72, v82, v83, v84, v85)      │

00:03:08 #22361 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:08 #22362 [Verbose] > │                 UH0_1                                                        │

00:03:08 #22363 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:08 #22364 [Verbose] > │             UH0_1                                                            │

00:03:08 #22365 [Verbose] > │     let v93 : (unit -> UH0) = closure4(v92)                                  │

00:03:08 #22366 [Verbose] > │     let v94 : (unit -> UH0) = method1(v92, v93)                              │

00:03:08 #22367 [Verbose] > │     let v95 : UH0 = v94 ()                                                   │

00:03:08 #22368 [Verbose] > │     let v96 : UH1 = v1 v95                                                   │

00:03:08 #22369 [Verbose] > │     let v138 : UH0 =                                                         │

00:03:08 #22370 [Verbose] > │         match v96 with                                                       │

00:03:08 #22371 [Verbose] > │         | UH1_0(v97, v98, v99, v100, v101, v102, v103, v104, v105, v106) ->  │

00:03:08 #22372 [Verbose] > │ (* StreamCons *)                                                             │

00:03:08 #22373 [Verbose] > │             match v2 with                                                    │

00:03:08 #22374 [Verbose] > │             | UH0_0(v107, v108, v109, v110, v111, v112, v113, v114, v115,    │

00:03:08 #22375 [Verbose] > │ v116) -> (* StreamCons *)                                                    │

00:03:08 #22376 [Verbose] > │                 let v117 : float = v102 * v0                                 │

00:03:08 #22377 [Verbose] > │                 let v118 : float = v112 + v117                               │

00:03:08 #22378 [Verbose] > │                 let v119 : float = v0 * v99                                  │

00:03:08 #22379 [Verbose] > │                 let v120 : float = v0 * v100                                 │

00:03:08 #22380 [Verbose] > │                 let v121 : float = v0 * v101                                 │

00:03:08 #22381 [Verbose] > │                 let v122 : float = v109 + v119                               │

00:03:08 #22382 [Verbose] > │                 let v123 : float = v110 + v120                               │

00:03:09 #22383 [Verbose] > │                 let v124 : float = v111 + v121                               │

00:03:09 #22384 [Verbose] > │                 let v125 : float = v0 * v103                                 │

00:03:09 #22385 [Verbose] > │                 let v126 : float = v0 * v104                                 │

00:03:09 #22386 [Verbose] > │                 let v127 : float = v0 * v105                                 │

00:03:09 #22387 [Verbose] > │                 let v128 : float = v113 + v125                               │

00:03:09 #22388 [Verbose] > │                 let v129 : float = v114 + v126                               │

00:03:09 #22389 [Verbose] > │                 let v130 : float = v115 + v127                               │

00:03:09 #22390 [Verbose] > │                 let v131 : (unit -> UH0) = closure3(v0, v116, v106)          │

00:03:09 #22391 [Verbose] > │                 UH0_0(v107, v108, v122, v123, v124, v118, v128, v129, v130,  │

00:03:09 #22392 [Verbose] > │ v131)                                                                        │

00:03:09 #22393 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:09 #22394 [Verbose] > │                 UH0_1                                                        │

00:03:09 #22395 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22396 [Verbose] > │             UH0_1                                                            │

00:03:09 #22397 [Verbose] > │     let v139 : (unit -> UH0) = closure4(v138)                                │

00:03:09 #22398 [Verbose] > │     let v140 : (unit -> UH0) = method1(v138, v139)                           │

00:03:09 #22399 [Verbose] > │     let v141 : UH0 = v140 ()                                                 │

00:03:09 #22400 [Verbose] > │     let v142 : UH1 = v1 v141                                                 │

00:03:09 #22401 [Verbose] > │     let v143 : float = v0 / 6.0                                              │

00:03:09 #22402 [Verbose] > │     let v180 : UH1 =                                                         │

00:03:09 #22403 [Verbose] > │         match v3 with                                                        │

00:03:09 #22404 [Verbose] > │         | UH1_0(v144, v145, v146, v147, v148, v149, v150, v151, v152, v153)  │

00:03:09 #22405 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:09 #22406 [Verbose] > │             match v50 with                                                   │

00:03:09 #22407 [Verbose] > │             | UH1_0(v154, v155, v156, v157, v158, v159, v160, v161, v162,    │

00:03:09 #22408 [Verbose] > │ v163) -> (* StreamCons *)                                                    │

00:03:09 #22409 [Verbose] > │                 let v164 : float = v144 + v154                               │

00:03:09 #22410 [Verbose] > │                 let v165 : float = v145 + v155                               │

00:03:09 #22411 [Verbose] > │                 let v166 : float = v149 + v159                               │

00:03:09 #22412 [Verbose] > │                 let v167 : float = v146 + v156                               │

00:03:09 #22413 [Verbose] > │                 let v168 : float = v147 + v157                               │

00:03:09 #22414 [Verbose] > │                 let v169 : float = v148 + v158                               │

00:03:09 #22415 [Verbose] > │                 let v170 : float = v150 + v160                               │

00:03:09 #22416 [Verbose] > │                 let v171 : float = v151 + v161                               │

00:03:09 #22417 [Verbose] > │                 let v172 : float = v152 + v162                               │

00:03:09 #22418 [Verbose] > │                 let v173 : (unit -> UH1) = closure20(v163, v153)             │

00:03:09 #22419 [Verbose] > │                 UH1_0(v164, v165, v167, v168, v169, v166, v170, v171, v172,  │

00:03:09 #22420 [Verbose] > │ v173)                                                                        │

00:03:09 #22421 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:09 #22422 [Verbose] > │                 UH1_1                                                        │

00:03:09 #22423 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22424 [Verbose] > │             UH1_1                                                            │

00:03:09 #22425 [Verbose] > │     let v217 : UH1 =                                                         │

00:03:09 #22426 [Verbose] > │         match v180 with                                                      │

00:03:09 #22427 [Verbose] > │         | UH1_0(v181, v182, v183, v184, v185, v186, v187, v188, v189, v190)  │

00:03:09 #22428 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:09 #22429 [Verbose] > │             match v50 with                                                   │

00:03:09 #22430 [Verbose] > │             | UH1_0(v191, v192, v193, v194, v195, v196, v197, v198, v199,    │

00:03:09 #22431 [Verbose] > │ v200) -> (* StreamCons *)                                                    │

00:03:09 #22432 [Verbose] > │                 let v201 : float = v181 + v191                               │

00:03:09 #22433 [Verbose] > │                 let v202 : float = v182 + v192                               │

00:03:09 #22434 [Verbose] > │                 let v203 : float = v186 + v196                               │

00:03:09 #22435 [Verbose] > │                 let v204 : float = v183 + v193                               │

00:03:09 #22436 [Verbose] > │                 let v205 : float = v184 + v194                               │

00:03:09 #22437 [Verbose] > │                 let v206 : float = v185 + v195                               │

00:03:09 #22438 [Verbose] > │                 let v207 : float = v187 + v197                               │

00:03:09 #22439 [Verbose] > │                 let v208 : float = v188 + v198                               │

00:03:09 #22440 [Verbose] > │                 let v209 : float = v189 + v199                               │

00:03:09 #22441 [Verbose] > │                 let v210 : (unit -> UH1) = closure20(v200, v190)             │

00:03:09 #22442 [Verbose] > │                 UH1_0(v201, v202, v204, v205, v206, v203, v207, v208, v209,  │

00:03:09 #22443 [Verbose] > │ v210)                                                                        │

00:03:09 #22444 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:09 #22445 [Verbose] > │                 UH1_1                                                        │

00:03:09 #22446 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22447 [Verbose] > │             UH1_1                                                            │

00:03:09 #22448 [Verbose] > │     let v254 : UH1 =                                                         │

00:03:09 #22449 [Verbose] > │         match v217 with                                                      │

00:03:09 #22450 [Verbose] > │         | UH1_0(v218, v219, v220, v221, v222, v223, v224, v225, v226, v227)  │

00:03:09 #22451 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:09 #22452 [Verbose] > │             match v96 with                                                   │

00:03:09 #22453 [Verbose] > │             | UH1_0(v228, v229, v230, v231, v232, v233, v234, v235, v236,    │

00:03:09 #22454 [Verbose] > │ v237) -> (* StreamCons *)                                                    │

00:03:09 #22455 [Verbose] > │                 let v238 : float = v218 + v228                               │

00:03:09 #22456 [Verbose] > │                 let v239 : float = v219 + v229                               │

00:03:09 #22457 [Verbose] > │                 let v240 : float = v223 + v233                               │

00:03:09 #22458 [Verbose] > │                 let v241 : float = v220 + v230                               │

00:03:09 #22459 [Verbose] > │                 let v242 : float = v221 + v231                               │

00:03:09 #22460 [Verbose] > │                 let v243 : float = v222 + v232                               │

00:03:09 #22461 [Verbose] > │                 let v244 : float = v224 + v234                               │

00:03:09 #22462 [Verbose] > │                 let v245 : float = v225 + v235                               │

00:03:09 #22463 [Verbose] > │                 let v246 : float = v226 + v236                               │

00:03:09 #22464 [Verbose] > │                 let v247 : (unit -> UH1) = closure20(v237, v227)             │

00:03:09 #22465 [Verbose] > │                 UH1_0(v238, v239, v241, v242, v243, v240, v244, v245, v246,  │

00:03:09 #22466 [Verbose] > │ v247)                                                                        │

00:03:09 #22467 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:09 #22468 [Verbose] > │                 UH1_1                                                        │

00:03:09 #22469 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22470 [Verbose] > │             UH1_1                                                            │

00:03:09 #22471 [Verbose] > │     let v291 : UH1 =                                                         │

00:03:09 #22472 [Verbose] > │         match v254 with                                                      │

00:03:09 #22473 [Verbose] > │         | UH1_0(v255, v256, v257, v258, v259, v260, v261, v262, v263, v264)  │

00:03:09 #22474 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:09 #22475 [Verbose] > │             match v96 with                                                   │

00:03:09 #22476 [Verbose] > │             | UH1_0(v265, v266, v267, v268, v269, v270, v271, v272, v273,    │

00:03:09 #22477 [Verbose] > │ v274) -> (* StreamCons *)                                                    │

00:03:09 #22478 [Verbose] > │                 let v275 : float = v255 + v265                               │

00:03:09 #22479 [Verbose] > │                 let v276 : float = v256 + v266                               │

00:03:09 #22480 [Verbose] > │                 let v277 : float = v260 + v270                               │

00:03:09 #22481 [Verbose] > │                 let v278 : float = v257 + v267                               │

00:03:09 #22482 [Verbose] > │                 let v279 : float = v258 + v268                               │

00:03:09 #22483 [Verbose] > │                 let v280 : float = v259 + v269                               │

00:03:09 #22484 [Verbose] > │                 let v281 : float = v261 + v271                               │

00:03:09 #22485 [Verbose] > │                 let v282 : float = v262 + v272                               │

00:03:09 #22486 [Verbose] > │                 let v283 : float = v263 + v273                               │

00:03:09 #22487 [Verbose] > │                 let v284 : (unit -> UH1) = closure20(v274, v264)             │

00:03:09 #22488 [Verbose] > │                 UH1_0(v275, v276, v278, v279, v280, v277, v281, v282, v283,  │

00:03:09 #22489 [Verbose] > │ v284)                                                                        │

00:03:09 #22490 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:09 #22491 [Verbose] > │                 UH1_1                                                        │

00:03:09 #22492 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22493 [Verbose] > │             UH1_1                                                            │

00:03:09 #22494 [Verbose] > │     let v328 : UH1 =                                                         │

00:03:09 #22495 [Verbose] > │         match v291 with                                                      │

00:03:09 #22496 [Verbose] > │         | UH1_0(v292, v293, v294, v295, v296, v297, v298, v299, v300, v301)  │

00:03:09 #22497 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:09 #22498 [Verbose] > │             match v142 with                                                  │

00:03:09 #22499 [Verbose] > │             | UH1_0(v302, v303, v304, v305, v306, v307, v308, v309, v310,    │

00:03:09 #22500 [Verbose] > │ v311) -> (* StreamCons *)                                                    │

00:03:09 #22501 [Verbose] > │                 let v312 : float = v292 + v302                               │

00:03:09 #22502 [Verbose] > │                 let v313 : float = v293 + v303                               │

00:03:09 #22503 [Verbose] > │                 let v314 : float = v297 + v307                               │

00:03:09 #22504 [Verbose] > │                 let v315 : float = v294 + v304                               │

00:03:09 #22505 [Verbose] > │                 let v316 : float = v295 + v305                               │

00:03:09 #22506 [Verbose] > │                 let v317 : float = v296 + v306                               │

00:03:09 #22507 [Verbose] > │                 let v318 : float = v298 + v308                               │

00:03:09 #22508 [Verbose] > │                 let v319 : float = v299 + v309                               │

00:03:09 #22509 [Verbose] > │                 let v320 : float = v300 + v310                               │

00:03:09 #22510 [Verbose] > │                 let v321 : (unit -> UH1) = closure20(v311, v301)             │

00:03:09 #22511 [Verbose] > │                 UH1_0(v312, v313, v315, v316, v317, v314, v318, v319, v320,  │

00:03:09 #22512 [Verbose] > │ v321)                                                                        │

00:03:09 #22513 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:09 #22514 [Verbose] > │                 UH1_1                                                        │

00:03:09 #22515 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22516 [Verbose] > │             UH1_1                                                            │

00:03:09 #22517 [Verbose] > │     let v370 : UH0 =                                                         │

00:03:09 #22518 [Verbose] > │         match v328 with                                                      │

00:03:09 #22519 [Verbose] > │         | UH1_0(v329, v330, v331, v332, v333, v334, v335, v336, v337, v338)  │

00:03:09 #22520 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:09 #22521 [Verbose] > │             match v2 with                                                    │

00:03:09 #22522 [Verbose] > │             | UH0_0(v339, v340, v341, v342, v343, v344, v345, v346, v347,    │

00:03:09 #22523 [Verbose] > │ v348) -> (* StreamCons *)                                                    │

00:03:09 #22524 [Verbose] > │                 let v349 : float = v334 * v143                               │

00:03:09 #22525 [Verbose] > │                 let v350 : float = v344 + v349                               │

00:03:09 #22526 [Verbose] > │                 let v351 : float = v143 * v331                               │

00:03:09 #22527 [Verbose] > │                 let v352 : float = v143 * v332                               │

00:03:09 #22528 [Verbose] > │                 let v353 : float = v143 * v333                               │

00:03:09 #22529 [Verbose] > │                 let v354 : float = v341 + v351                               │

00:03:09 #22530 [Verbose] > │                 let v355 : float = v342 + v352                               │

00:03:09 #22531 [Verbose] > │                 let v356 : float = v343 + v353                               │

00:03:09 #22532 [Verbose] > │                 let v357 : float = v143 * v335                               │

00:03:09 #22533 [Verbose] > │                 let v358 : float = v143 * v336                               │

00:03:09 #22534 [Verbose] > │                 let v359 : float = v143 * v337                               │

00:03:09 #22535 [Verbose] > │                 let v360 : float = v345 + v357                               │

00:03:09 #22536 [Verbose] > │                 let v361 : float = v346 + v358                               │

00:03:09 #22537 [Verbose] > │                 let v362 : float = v347 + v359                               │

00:03:09 #22538 [Verbose] > │                 let v363 : (unit -> UH0) = closure3(v143, v348, v338)        │

00:03:09 #22539 [Verbose] > │                 UH0_0(v339, v340, v354, v355, v356, v350, v360, v361, v362,  │

00:03:09 #22540 [Verbose] > │ v363)                                                                        │

00:03:09 #22541 [Verbose] > │             | UH0_1 -> (* StreamNil *)                                       │

00:03:09 #22542 [Verbose] > │                 UH0_1                                                        │

00:03:09 #22543 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:09 #22544 [Verbose] > │             UH0_1                                                            │

00:03:09 #22545 [Verbose] > │     let v371 : (unit -> UH0) = closure4(v370)                                │

00:03:09 #22546 [Verbose] > │     let v372 : (unit -> UH0) = method1(v370, v371)                           │

00:03:09 #22547 [Verbose] > │     let v373 : UH0 = v372 ()                                                 │

00:03:09 #22548 [Verbose] > │     v373                                                                     │

00:03:09 #22549 [Verbose] > │ and closure18 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =              │

00:03:09 #22550 [Verbose] > │     closure19(v0, v1)                                                        │

00:03:09 #22551 [Verbose] > │ and closure17 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =             │

00:03:09 #22552 [Verbose] > │     closure18(v0)                                                            │

00:03:09 #22553 [Verbose] > │ and method17 (v0 : UH4, v1 : UH6) : UH6 =                                    │

00:03:09 #22554 [Verbose] > │     match v0 with                                                            │

00:03:09 #22555 [Verbose] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:03:09 #22556 [Verbose] > │         let v4 : UH6 = method17(v3, v1)                                      │

00:03:09 #22557 [Verbose] > │         let v5 : int32 = 0                                                   │

00:03:09 #22558 [Verbose] > │         let v6 : US2 = method6(v5, v2)                                       │

00:03:09 #22559 [Verbose] > │         let v23 : US3 =                                                      │

00:03:09 #22560 [Verbose] > │             match v6 with                                                    │

00:03:09 #22561 [Verbose] > │             | US2_0 -> (* None *)                                            │

00:03:09 #22562 [Verbose] > │                 US3_0                                                        │

00:03:09 #22563 [Verbose] > │             | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *)  │

00:03:09 #22564 [Verbose] > │                 let v16 : UH7 = UH7_1                                        │

00:03:09 #22565 [Verbose] > │                 let v17 : UH7 = method12(v2, v16)                            │

00:03:09 #22566 [Verbose] > │                 let v18 : float = 0.0                                        │

00:03:09 #22567 [Verbose] > │                 let v19 : float = method13(v17, v18)                         │

00:03:09 #22568 [Verbose] > │                 US3_1(v12, v19)                                              │

00:03:09 #22569 [Verbose] > │         UH6_0(v23, v4)                                                       │

00:03:09 #22570 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:09 #22571 [Verbose] > │         v1                                                                   │

00:03:09 #22572 [Verbose] > │ and method19 (v0 : UH9, v1 : int32) : int32 =                                │

00:03:09 #22573 [Verbose] > │     match v0 with                                                            │

00:03:09 #22574 [Verbose] > │     | UH9_0(v2, v3) -> (* Cons *)                                            │

00:03:09 #22575 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:03:09 #22576 [Verbose] > │         method19(v3, v4)                                                     │

00:03:09 #22577 [Verbose] > │     | UH9_1 -> (* Nil *)                                                     │

00:03:09 #22578 [Verbose] > │         v1                                                                   │

00:03:09 #22579 [Verbose] > │ and method20 (v0 : (float []), v1 : UH9, v2 : int32) : int32 =               │

00:03:09 #22580 [Verbose] > │     match v1 with                                                            │

00:03:09 #22581 [Verbose] > │     | UH9_0(v3, v4) -> (* Cons *)                                            │

00:03:09 #22582 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:03:09 #22583 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:03:09 #22584 [Verbose] > │         method20(v0, v4, v5)                                                 │

00:03:09 #22585 [Verbose] > │     | UH9_1 -> (* Nil *)                                                     │

00:03:09 #22586 [Verbose] > │         v2                                                                   │

00:03:09 #22587 [Verbose] > │ and method18 (v0 : UH9) : (float []) =                                       │

00:03:09 #22588 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:09 #22589 [Verbose] > │     let v2 : int32 = method19(v0, v1)                                        │

00:03:09 #22590 [Verbose] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:03:09 #22591 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:09 #22592 [Verbose] > │     let v5 : int32 = method20(v3, v0, v4)                                    │

00:03:09 #22593 [Verbose] > │     v3                                                                       │

00:03:09 #22594 [Verbose] > │ and method21 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │

00:03:09 #22595 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:09 #22596 [Verbose] > │     v0                                                                       │

00:03:09 #22597 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:03:09 #22598 [Verbose] > │ []) * (float [])) [])) =                                                     │

00:03:09 #22599 [Verbose] > │     let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0()          │

00:03:09 #22600 [Verbose] > │     let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03                        │

00:03:09 #22601 [Verbose] > │     let v2 : (UH0 -> UH1) = closure8()                                       │

00:03:09 #22602 [Verbose] > │     let v3 : (UH0 -> UH0) = v1 v2                                            │

00:03:09 #22603 [Verbose] > │     let v4 : UH4 = UH4_1                                                     │

00:03:09 #22604 [Verbose] > │     let v5 : int32 = 0                                                       │

00:03:09 #22605 [Verbose] > │     let v6 : UH4 = method7(v3, v4, v5)                                       │

00:03:09 #22606 [Verbose] > │     let v7 : UH6 = UH6_1                                                     │

00:03:09 #22607 [Verbose] > │     let v8 : UH6 = method11(v6, v7)                                          │

00:03:09 #22608 [Verbose] > │     let v9 : UH8 = UH8_1                                                     │

00:03:09 #22609 [Verbose] > │     let v10 : UH8 = method14(v8, v9)                                         │

00:03:09 #22610 [Verbose] > │     let v11 : UH9 = UH9_1                                                    │

00:03:09 #22611 [Verbose] > │     let v12 : UH9 = UH9_1                                                    │

00:03:09 #22612 [Verbose] > │     let struct (v13 : UH9, v14 : UH9) = method15(v10, v11, v12)              │

00:03:09 #22613 [Verbose] > │     let v15 : UH9 = UH9_1                                                    │

00:03:09 #22614 [Verbose] > │     let v16 : UH9 = method16(v13, v15)                                       │

00:03:09 #22615 [Verbose] > │     let v17 : UH9 = UH9_1                                                    │

00:03:09 #22616 [Verbose] > │     let v18 : UH9 = method16(v14, v17)                                       │

00:03:09 #22617 [Verbose] > │     let v19 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure17()        │

00:03:09 #22618 [Verbose] > │     let v20 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v19 0.03                      │

00:03:09 #22619 [Verbose] > │     let v21 : (UH0 -> UH0) = v20 v2                                          │

00:03:09 #22620 [Verbose] > │     let v22 : UH4 = UH4_1                                                    │

00:03:09 #22621 [Verbose] > │     let v23 : int32 = 0                                                      │

00:03:09 #22622 [Verbose] > │     let v24 : UH4 = method7(v21, v22, v23)                                   │

00:03:09 #22623 [Verbose] > │     let v25 : UH6 = UH6_1                                                    │

00:03:09 #22624 [Verbose] > │     let v26 : UH6 = method17(v24, v25)                                       │

00:03:09 #22625 [Verbose] > │     let v27 : UH8 = UH8_1                                                    │

00:03:09 #22626 [Verbose] > │     let v28 : UH8 = method14(v26, v27)                                       │

00:03:09 #22627 [Verbose] > │     let v29 : UH9 = UH9_1                                                    │

00:03:09 #22628 [Verbose] > │     let v30 : UH9 = UH9_1                                                    │

00:03:09 #22629 [Verbose] > │     let struct (v31 : UH9, v32 : UH9) = method15(v28, v29, v30)              │

00:03:09 #22630 [Verbose] > │     let v33 : UH9 = UH9_1                                                    │

00:03:09 #22631 [Verbose] > │     let v34 : UH9 = method16(v31, v33)                                       │

00:03:09 #22632 [Verbose] > │     let v35 : UH9 = UH9_1                                                    │

00:03:09 #22633 [Verbose] > │     let v36 : UH9 = method16(v32, v35)                                       │

00:03:09 #22634 [Verbose] > │     let v37 : (float []) = method18(v16)                                     │

00:03:09 #22635 [Verbose] > │     let v38 : (float []) = method18(v18)                                     │

00:03:09 #22636 [Verbose] > │     let v39 : (float []) = method18(v34)                                     │

00:03:09 #22637 [Verbose] > │     let v40 : (float []) = method18(v36)                                     │

00:03:09 #22638 [Verbose] > │     let v41 : string = "euler-cromer"                                        │

00:03:09 #22639 [Verbose] > │     let v42 : string = "runge-kutta 4"                                       │

00:03:09 #22640 [Verbose] > │     let v43 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:03:09 #22641 [Verbose] > │ (v41, v37, v38); struct (v42, v39, v40)|]                                    │

00:03:09 #22642 [Verbose] > │     let v44 : (struct (string * (float []) * (float [])) []) = method21(v43) │

00:03:09 #22643 [Verbose] > │     let v45 : string = "system kinetic energy versus time"                   │

00:03:09 #22644 [Verbose] > │     let v46 : string = "time (s)"                                            │

00:03:09 #22645 [Verbose] > │     let v47 : string = "system kinetic energy (j)"                           │

00:03:09 #22646 [Verbose] > │     struct (v45, v46, v47, v44)                                              │

00:03:09 #22647 [Verbose] > │ method0()                                                                    │

00:03:09 #22648 [Verbose] > │                                                                              │

00:03:09 #22649 [Verbose] > │                                                                              │

00:03:09 #22650 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:09 #22651 [Verbose] >

00:03:09 #22652 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:03:09 #22653 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:03:09 #22654 [Verbose] > │ ### wave 2                                                                   │

00:03:09 #22655 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:09 #22656 [Verbose] >

00:03:09 #22657 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:03:09 #22658 [Verbose] > // // test

00:03:09 #22659 [Verbose] >

00:03:09 #22660 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =

00:03:09 #22661 [Verbose] >     inl r1 = st1.pos_vec

00:03:09 #22662 [Verbose] >     inl r2 = st2.pos_vec

00:03:09 #22663 [Verbose] >     inl r21 = r2 ^-^ r1

00:03:09 #22664 [Verbose] >     inl r21mag = magnitude r21

00:03:09 #22665 [Verbose] >     -k * (r21mag - re) *^ r21 ^/ r21mag

00:03:09 #22666 [Verbose] >

00:03:09 #22667 [Verbose] > inl fixed_linear_spring k re r1 =

00:03:09 #22668 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:09 #22669 [Verbose] >     linear_spring k re (particle_state { default_particle_state' with pos_vec =

00:03:09 #22670 [Verbose] > r1 })

00:03:09 #22671 [Verbose] >

00:03:09 #22672 [Verbose] > inl forces_string () =

00:03:09 #22673 [Verbose] >     [[

00:03:09 #22674 [Verbose] >         ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))

00:03:09 #22675 [Verbose] >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))

00:03:09 #22676 [Verbose] >     ]] /@ (

00:03:09 #22677 [Verbose] >         listm'.init_series 0 59 1

00:03:09 #22678 [Verbose] >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))

00:03:09 #22679 [Verbose] >     )

00:03:09 #22680 [Verbose] >

00:03:09 #22681 [Verbose] > inl string_update dt =

00:03:09 #22682 [Verbose] >     update_mps (join runge_kutta_4 dt) (join forces_string ())

00:03:09 #22683 [Verbose] >

00:03:09 #22684 [Verbose] > inl string_initial_overtone n =

00:03:09 #22685 [Verbose] >     inl ball_mass = 0.0008293 * 0.65 / 64

00:03:09 #22686 [Verbose] >     inl (particle_state default_particle_state') = default_particle_state ()

00:03:09 #22687 [Verbose] >     listm'.init_series 0.01 0.64 0.01

00:03:09 #22688 [Verbose] >     |> listm.map (fun x =>

00:03:09 #22689 [Verbose] >         inl y = 0.005 * sin (conv n * pi * x / 0.65)

00:03:09 #22690 [Verbose] >         particle_state {

00:03:09 #22691 [Verbose] >             default_particle_state' with

00:03:09 #22692 [Verbose] >                 mass = ball_mass

00:03:09 #22693 [Verbose] >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()

00:03:09 #22694 [Verbose] >                 velocity = zero_vec ()

00:03:09 #22695 [Verbose] >         }

00:03:09 #22696 [Verbose] >     )

00:03:09 #22697 [Verbose] >     |> stream.from_list

00:03:09 #22698 [Verbose] >     |> multi_particle_state

00:03:09 #22699 [Verbose] >

00:03:09 #22700 [Verbose] > let main () =

00:03:09 #22701 [Verbose] >     inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list

00:03:09 #22702 [Verbose] >     inl ~initial_state = string_initial_overtone 3i32

00:03:09 #22703 [Verbose] >     inl frames =

00:03:09 #22704 [Verbose] >         frames

00:03:09 #22705 [Verbose] >         |> stream.map (fun n =>

00:03:09 #22706 [Verbose] >             inl (multi_particle_state sts) =

00:03:09 #22707 [Verbose] >                 stream.iterate (string_update 0.000025) initial_state |>

00:03:09 #22708 [Verbose] > stream.item n

00:03:09 #22709 [Verbose] >             inl x, y =

00:03:09 #22710 [Verbose] >                 [[ zero_vec () ]]

00:03:09 #22711 [Verbose] >                 /@ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>

00:03:09 #22712 [Verbose] > stream.to_list)

00:03:09 #22713 [Verbose] >                 /@ [[ 0.65 *^ i_hat () ]]

00:03:09 #22714 [Verbose] >                 |> listm.map (fun r => r.x, r.y)

00:03:09 #22715 [Verbose] >                 |> stream.from_list

00:03:09 #22716 [Verbose] >                 |> stream.unzip

00:03:09 #22717 [Verbose] >             inl x : a i32 _ = x |> stream.to_list |> listm.toArray

00:03:09 #22718 [Verbose] >             inl y : a i32 _ = y |> stream.to_list |> listm.toArray

00:03:09 #22719 [Verbose] >             x, y

00:03:09 #22720 [Verbose] >         )

00:03:09 #22721 [Verbose] >

00:03:09 #22722 [Verbose] >     inl plots =

00:03:09 #22723 [Verbose] >         frames

00:03:09 #22724 [Verbose] >         |> stream.indexed

00:03:09 #22725 [Verbose] >         |> stream.map (fun ((n : i32), (x, y)) =>

00:03:09 #22726 [Verbose] >             "wave",

00:03:09 #22727 [Verbose] >             "position (m)",

00:03:09 #22728 [Verbose] >             "displacement (m)",

00:03:09 #22729 [Verbose] >             ;[[

00:03:09 #22730 [Verbose] >                 ($"$\"{!n}\"" : string), x, y

00:03:09 #22731 [Verbose] >             ]]

00:03:09 #22732 [Verbose] >         )

00:03:09 #22733 [Verbose] >

00:03:09 #22734 [Verbose] >     plots |> stream.to_list |> listm.toArray : a i32 _

00:03:09 #22735 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-0471-7103-7c97ff8273f7\main.spi

00:03:15 #22736 [Verbose] >

00:03:15 #22737 [Verbose] > ╭─[ 5.95s - return value ]─────────────────────────────────────────────────────╮

00:03:15 #22738 [Verbose] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │

00:03:15 #22739 [Verbose] > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480"           │

00:03:15 #22740 [Verbose] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:03:15 #22741 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:03:15 #22742 [Verbose] > │ stroke="none"/>                                                              │

00:03:15 #22743 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:03:15 #22744 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:03:15 #22745 [Verbose] > │ fill="#FFFFFF">                                                              │

00:03:15 #22746 [Verbose] > │ wave                                                                         │

00:03:15 #22747 [Verbose] > │ </text>                                                                      │

00:03:15 #22748 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │

00:03:15 #22749 [Verbose] > │ y2="75"/>                                                                    │

00:03:15 #22750 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:03:15 #22751 [Verbose] > │ y2="75"/>                                                                    │

00:03:15 #22752 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │

00:03:15 #22753 [Verbose] > │ y2="75"/>                                                                    │

00:03:15 #22754 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424"         │

00:03:15 #22755 [Verbose] > │ x2="85...                                                                    │

00:03:15 #22756 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:15 #22757 [Verbose] >

00:03:15 #22758 [Verbose] > ╭─[ 5.99s - stdout ]───────────────────────────────────────────────────────────╮

00:03:15 #22759 [Verbose] > │ type UH0 =                                                                   │

00:03:15 #22760 [Verbose] > │     | UH0_0 of float * (unit -> UH0)                                         │

00:03:15 #22761 [Verbose] > │     | UH0_1                                                                  │

00:03:15 #22762 [Verbose] > │ and UH1 =                                                                    │

00:03:15 #22763 [Verbose] > │     | UH1_0 of float * float * float * float * float * float * float * float │

00:03:15 #22764 [Verbose] > │ * float * (unit -> UH1)                                                      │

00:03:15 #22765 [Verbose] > │     | UH1_1                                                                  │

00:03:15 #22766 [Verbose] > │ and UH2 =                                                                    │

00:03:15 #22767 [Verbose] > │     | UH2_0 of (float []) * (float []) * (unit -> UH2)                       │

00:03:15 #22768 [Verbose] > │     | UH2_1                                                                  │

00:03:15 #22769 [Verbose] > │ and UH3 =                                                                    │

00:03:15 #22770 [Verbose] > │     | UH3_0 of float * float * float * float * float * float * float * float │

00:03:15 #22771 [Verbose] > │ * float * (unit -> UH3)                                                      │

00:03:15 #22772 [Verbose] > │     | UH3_1                                                                  │

00:03:15 #22773 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:03:15 #22774 [Verbose] > │     | US0_0 of f0_0 : UH1                                                    │

00:03:15 #22775 [Verbose] > │     | US0_1 of f1_0 : (unit -> UH1)                                          │

00:03:15 #22776 [Verbose] > │ and Mut0 = {mutable l0 : US0}                                                │

00:03:15 #22777 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:03:15 #22778 [Verbose] > │     | US1_0 of f0_0 : int32 * f0_1 : (struct (float * float * float * float  │

00:03:15 #22779 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float))  │

00:03:15 #22780 [Verbose] > │     | US1_1 of f1_0 : int32 * f1_1 : int32 * f1_2 : (struct (float * float * │

00:03:15 #22781 [Verbose] > │ float * float * float * float * float * float * float) -> (struct (float *   │

00:03:15 #22782 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct     │

00:03:15 #22783 [Verbose] > │ (float * float * float)))                                                    │

00:03:15 #22784 [Verbose] > │ and UH4 =                                                                    │

00:03:15 #22785 [Verbose] > │     | UH4_0 of US1 * UH4                                                     │

00:03:15 #22786 [Verbose] > │     | UH4_1                                                                  │

00:03:15 #22787 [Verbose] > │ and UH5 =                                                                    │

00:03:15 #22788 [Verbose] > │     | UH5_0 of int32 * float * float * float * float * float * float * float │

00:03:15 #22789 [Verbose] > │ * float * float * (unit -> UH5)                                              │

00:03:15 #22790 [Verbose] > │     | UH5_1                                                                  │

00:03:15 #22791 [Verbose] > │ and UH6 =                                                                    │

00:03:15 #22792 [Verbose] > │     | UH6_0 of (struct (float * float * float * float * float * float *      │

00:03:15 #22793 [Verbose] > │ float * float * float) -> struct (float * float * float)) * UH6              │

00:03:15 #22794 [Verbose] > │     | UH6_1                                                                  │

00:03:15 #22795 [Verbose] > │ and [<Struct>] US2 =                                                         │

00:03:15 #22796 [Verbose] > │     | US2_0                                                                  │

00:03:15 #22797 [Verbose] > │     | US2_1 of f1_0 : (struct (float * float * float * float * float * float │

00:03:15 #22798 [Verbose] > │ * float * float * float) -> struct (float * float * float))                  │

00:03:15 #22799 [Verbose] > │ and [<Struct>] US3 =                                                         │

00:03:15 #22800 [Verbose] > │     | US3_0                                                                  │

00:03:15 #22801 [Verbose] > │     | US3_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float *   │

00:03:15 #22802 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float     │

00:03:15 #22803 [Verbose] > │ and UH7 =                                                                    │

00:03:15 #22804 [Verbose] > │     | UH7_0 of float * float * float * UH7                                   │

00:03:15 #22805 [Verbose] > │     | UH7_1                                                                  │

00:03:15 #22806 [Verbose] > │ and UH8 =                                                                    │

00:03:15 #22807 [Verbose] > │     | UH8_0 of UH1 * (unit -> UH8)                                           │

00:03:15 #22808 [Verbose] > │     | UH8_1                                                                  │

00:03:15 #22809 [Verbose] > │ and [<Struct>] US4 =                                                         │

00:03:15 #22810 [Verbose] > │     | US4_0                                                                  │

00:03:15 #22811 [Verbose] > │     | US4_1 of f1_0 : UH1                                                    │

00:03:15 #22812 [Verbose] > │ and UH9 =                                                                    │

00:03:15 #22813 [Verbose] > │     | UH9_0 of float * float * float * (unit -> UH9)                         │

00:03:15 #22814 [Verbose] > │     | UH9_1                                                                  │

00:03:15 #22815 [Verbose] > │ and UH10 =                                                                   │

00:03:15 #22816 [Verbose] > │     | UH10_0 of float * float * UH10                                         │

00:03:15 #22817 [Verbose] > │     | UH10_1                                                                 │

00:03:15 #22818 [Verbose] > │ and UH11 =                                                                   │

00:03:15 #22819 [Verbose] > │     | UH11_0 of float * float * (unit -> UH11)                               │

00:03:15 #22820 [Verbose] > │     | UH11_1                                                                 │

00:03:15 #22821 [Verbose] > │ and UH12 =                                                                   │

00:03:15 #22822 [Verbose] > │     | UH12_0 of float * UH12                                                 │

00:03:15 #22823 [Verbose] > │     | UH12_1                                                                 │

00:03:15 #22824 [Verbose] > │ and UH13 =                                                                   │

00:03:15 #22825 [Verbose] > │     | UH13_0 of int32 * (float []) * (float []) * (unit -> UH13)             │

00:03:15 #22826 [Verbose] > │     | UH13_1                                                                 │

00:03:15 #22827 [Verbose] > │ and UH14 =                                                                   │

00:03:15 #22828 [Verbose] > │     | UH14_0 of string * string * string * (struct (string * (float []) *    │

00:03:15 #22829 [Verbose] > │ (float [])) []) * (unit -> UH14)                                             │

00:03:15 #22830 [Verbose] > │     | UH14_1                                                                 │

00:03:15 #22831 [Verbose] > │ and UH15 =                                                                   │

00:03:15 #22832 [Verbose] > │     | UH15_0 of string * string * string * (struct (string * (float []) *    │

00:03:15 #22833 [Verbose] > │ (float [])) []) * UH15                                                       │

00:03:15 #22834 [Verbose] > │     | UH15_1                                                                 │

00:03:15 #22835 [Verbose] > │ let rec closure65 () () : UH0 =                                              │

00:03:15 #22836 [Verbose] > │     UH0_1                                                                    │

00:03:15 #22837 [Verbose] > │ and closure64 () () : UH0 =                                                  │

00:03:15 #22838 [Verbose] > │     let v0 : (unit -> UH0) = closure65()                                     │

00:03:15 #22839 [Verbose] > │     UH0_0(65.0, v0)                                                          │

00:03:15 #22840 [Verbose] > │ and closure63 () () : UH0 =                                                  │

00:03:15 #22841 [Verbose] > │     let v0 : (unit -> UH0) = closure64()                                     │

00:03:15 #22842 [Verbose] > │     UH0_0(64.0, v0)                                                          │

00:03:15 #22843 [Verbose] > │ and closure62 () () : UH0 =                                                  │

00:03:15 #22844 [Verbose] > │     let v0 : (unit -> UH0) = closure63()                                     │

00:03:15 #22845 [Verbose] > │     UH0_0(63.0, v0)                                                          │

00:03:15 #22846 [Verbose] > │ and closure61 () () : UH0 =                                                  │

00:03:15 #22847 [Verbose] > │     let v0 : (unit -> UH0) = closure62()                                     │

00:03:15 #22848 [Verbose] > │     UH0_0(62.0, v0)                                                          │

00:03:15 #22849 [Verbose] > │ and closure60 () () : UH0 =                                                  │

00:03:15 #22850 [Verbose] > │     let v0 : (unit -> UH0) = closure61()                                     │

00:03:15 #22851 [Verbose] > │     UH0_0(61.0, v0)                                                          │

00:03:15 #22852 [Verbose] > │ and closure59 () () : UH0 =                                                  │

00:03:15 #22853 [Verbose] > │     let v0 : (unit -> UH0) = closure60()                                     │

00:03:15 #22854 [Verbose] > │     UH0_0(60.0, v0)                                                          │

00:03:15 #22855 [Verbose] > │ and closure58 () () : UH0 =                                                  │

00:03:15 #22856 [Verbose] > │     let v0 : (unit -> UH0) = closure59()                                     │

00:03:15 #22857 [Verbose] > │     UH0_0(59.0, v0)                                                          │

00:03:15 #22858 [Verbose] > │ and closure57 () () : UH0 =                                                  │

00:03:15 #22859 [Verbose] > │     let v0 : (unit -> UH0) = closure58()                                     │

00:03:15 #22860 [Verbose] > │     UH0_0(58.0, v0)                                                          │

00:03:15 #22861 [Verbose] > │ and closure56 () () : UH0 =                                                  │

00:03:15 #22862 [Verbose] > │     let v0 : (unit -> UH0) = closure57()                                     │

00:03:15 #22863 [Verbose] > │     UH0_0(57.0, v0)                                                          │

00:03:15 #22864 [Verbose] > │ and closure55 () () : UH0 =                                                  │

00:03:15 #22865 [Verbose] > │     let v0 : (unit -> UH0) = closure56()                                     │

00:03:15 #22866 [Verbose] > │     UH0_0(56.0, v0)                                                          │

00:03:15 #22867 [Verbose] > │ and closure54 () () : UH0 =                                                  │

00:03:15 #22868 [Verbose] > │     let v0 : (unit -> UH0) = closure55()                                     │

00:03:15 #22869 [Verbose] > │     UH0_0(55.0, v0)                                                          │

00:03:15 #22870 [Verbose] > │ and closure53 () () : UH0 =                                                  │

00:03:15 #22871 [Verbose] > │     let v0 : (unit -> UH0) = closure54()                                     │

00:03:15 #22872 [Verbose] > │     UH0_0(54.0, v0)                                                          │

00:03:15 #22873 [Verbose] > │ and closure52 () () : UH0 =                                                  │

00:03:15 #22874 [Verbose] > │     let v0 : (unit -> UH0) = closure53()                                     │

00:03:15 #22875 [Verbose] > │     UH0_0(53.0, v0)                                                          │

00:03:15 #22876 [Verbose] > │ and closure51 () () : UH0 =                                                  │

00:03:15 #22877 [Verbose] > │     let v0 : (unit -> UH0) = closure52()                                     │

00:03:15 #22878 [Verbose] > │     UH0_0(52.0, v0)                                                          │

00:03:15 #22879 [Verbose] > │ and closure50 () () : UH0 =                                                  │

00:03:15 #22880 [Verbose] > │     let v0 : (unit -> UH0) = closure51()                                     │

00:03:15 #22881 [Verbose] > │     UH0_0(51.0, v0)                                                          │

00:03:15 #22882 [Verbose] > │ and closure49 () () : UH0 =                                                  │

00:03:15 #22883 [Verbose] > │     let v0 : (unit -> UH0) = closure50()                                     │

00:03:15 #22884 [Verbose] > │     UH0_0(50.0, v0)                                                          │

00:03:15 #22885 [Verbose] > │ and closure48 () () : UH0 =                                                  │

00:03:15 #22886 [Verbose] > │     let v0 : (unit -> UH0) = closure49()                                     │

00:03:15 #22887 [Verbose] > │     UH0_0(49.0, v0)                                                          │

00:03:15 #22888 [Verbose] > │ and closure47 () () : UH0 =                                                  │

00:03:15 #22889 [Verbose] > │     let v0 : (unit -> UH0) = closure48()                                     │

00:03:15 #22890 [Verbose] > │     UH0_0(48.0, v0)                                                          │

00:03:15 #22891 [Verbose] > │ and closure46 () () : UH0 =                                                  │

00:03:15 #22892 [Verbose] > │     let v0 : (unit -> UH0) = closure47()                                     │

00:03:15 #22893 [Verbose] > │     UH0_0(47.0, v0)                                                          │

00:03:15 #22894 [Verbose] > │ and closure45 () () : UH0 =                                                  │

00:03:15 #22895 [Verbose] > │     let v0 : (unit -> UH0) = closure46()                                     │

00:03:15 #22896 [Verbose] > │     UH0_0(46.0, v0)                                                          │

00:03:15 #22897 [Verbose] > │ and closure44 () () : UH0 =                                                  │

00:03:15 #22898 [Verbose] > │     let v0 : (unit -> UH0) = closure45()                                     │

00:03:15 #22899 [Verbose] > │     UH0_0(45.0, v0)                                                          │

00:03:15 #22900 [Verbose] > │ and closure43 () () : UH0 =                                                  │

00:03:15 #22901 [Verbose] > │     let v0 : (unit -> UH0) = closure44()                                     │

00:03:15 #22902 [Verbose] > │     UH0_0(44.0, v0)                                                          │

00:03:15 #22903 [Verbose] > │ and closure42 () () : UH0 =                                                  │

00:03:15 #22904 [Verbose] > │     let v0 : (unit -> UH0) = closure43()                                     │

00:03:15 #22905 [Verbose] > │     UH0_0(43.0, v0)                                                          │

00:03:15 #22906 [Verbose] > │ and closure41 () () : UH0 =                                                  │

00:03:15 #22907 [Verbose] > │     let v0 : (unit -> UH0) = closure42()                                     │

00:03:15 #22908 [Verbose] > │     UH0_0(42.0, v0)                                                          │

00:03:15 #22909 [Verbose] > │ and closure40 () () : UH0 =                                                  │

00:03:15 #22910 [Verbose] > │     let v0 : (unit -> UH0) = closure41()                                     │

00:03:15 #22911 [Verbose] > │     UH0_0(41.0, v0)                                                          │

00:03:15 #22912 [Verbose] > │ and closure39 () () : UH0 =                                                  │

00:03:15 #22913 [Verbose] > │     let v0 : (unit -> UH0) = closure40()                                     │

00:03:15 #22914 [Verbose] > │     UH0_0(40.0, v0)                                                          │

00:03:15 #22915 [Verbose] > │ and closure38 () () : UH0 =                                                  │

00:03:15 #22916 [Verbose] > │     let v0 : (unit -> UH0) = closure39()                                     │

00:03:15 #22917 [Verbose] > │     UH0_0(39.0, v0)                                                          │

00:03:15 #22918 [Verbose] > │ and closure37 () () : UH0 =                                                  │

00:03:15 #22919 [Verbose] > │     let v0 : (unit -> UH0) = closure38()                                     │

00:03:15 #22920 [Verbose] > │     UH0_0(38.0, v0)                                                          │

00:03:15 #22921 [Verbose] > │ and closure36 () () : UH0 =                                                  │

00:03:15 #22922 [Verbose] > │     let v0 : (unit -> UH0) = closure37()                                     │

00:03:15 #22923 [Verbose] > │     UH0_0(37.0, v0)                                                          │

00:03:15 #22924 [Verbose] > │ and closure35 () () : UH0 =                                                  │

00:03:15 #22925 [Verbose] > │     let v0 : (unit -> UH0) = closure36()                                     │

00:03:15 #22926 [Verbose] > │     UH0_0(36.0, v0)                                                          │

00:03:15 #22927 [Verbose] > │ and closure34 () () : UH0 =                                                  │

00:03:15 #22928 [Verbose] > │     let v0 : (unit -> UH0) = closure35()                                     │

00:03:15 #22929 [Verbose] > │     UH0_0(35.0, v0)                                                          │

00:03:15 #22930 [Verbose] > │ and closure33 () () : UH0 =                                                  │

00:03:15 #22931 [Verbose] > │     let v0 : (unit -> UH0) = closure34()                                     │

00:03:15 #22932 [Verbose] > │     UH0_0(34.0, v0)                                                          │

00:03:15 #22933 [Verbose] > │ and closure32 () () : UH0 =                                                  │

00:03:15 #22934 [Verbose] > │     let v0 : (unit -> UH0) = closure33()                                     │

00:03:15 #22935 [Verbose] > │     UH0_0(33.0, v0)                                                          │

00:03:15 #22936 [Verbose] > │ and closure31 () () : UH0 =                                                  │

00:03:15 #22937 [Verbose] > │     let v0 : (unit -> UH0) = closure32()                                     │

00:03:15 #22938 [Verbose] > │     UH0_0(32.0, v0)                                                          │

00:03:15 #22939 [Verbose] > │ and closure30 () () : UH0 =                                                  │

00:03:15 #22940 [Verbose] > │     let v0 : (unit -> UH0) = closure31()                                     │

00:03:15 #22941 [Verbose] > │     UH0_0(31.0, v0)                                                          │

00:03:15 #22942 [Verbose] > │ and closure29 () () : UH0 =                                                  │

00:03:15 #22943 [Verbose] > │     let v0 : (unit -> UH0) = closure30()                                     │

00:03:15 #22944 [Verbose] > │     UH0_0(30.0, v0)                                                          │

00:03:15 #22945 [Verbose] > │ and closure28 () () : UH0 =                                                  │

00:03:15 #22946 [Verbose] > │     let v0 : (unit -> UH0) = closure29()                                     │

00:03:15 #22947 [Verbose] > │     UH0_0(29.0, v0)                                                          │

00:03:15 #22948 [Verbose] > │ and closure27 () () : UH0 =                                                  │

00:03:15 #22949 [Verbose] > │     let v0 : (unit -> UH0) = closure28()                                     │

00:03:15 #22950 [Verbose] > │     UH0_0(28.0, v0)                                                          │

00:03:15 #22951 [Verbose] > │ and closure26 () () : UH0 =                                                  │

00:03:15 #22952 [Verbose] > │     let v0 : (unit -> UH0) = closure27()                                     │

00:03:15 #22953 [Verbose] > │     UH0_0(27.0, v0)                                                          │

00:03:15 #22954 [Verbose] > │ and closure25 () () : UH0 =                                                  │

00:03:15 #22955 [Verbose] > │     let v0 : (unit -> UH0) = closure26()                                     │

00:03:15 #22956 [Verbose] > │     UH0_0(26.0, v0)                                                          │

00:03:15 #22957 [Verbose] > │ and closure24 () () : UH0 =                                                  │

00:03:15 #22958 [Verbose] > │     let v0 : (unit -> UH0) = closure25()                                     │

00:03:15 #22959 [Verbose] > │     UH0_0(25.0, v0)                                                          │

00:03:15 #22960 [Verbose] > │ and closure23 () () : UH0 =                                                  │

00:03:15 #22961 [Verbose] > │     let v0 : (unit -> UH0) = closure24()                                     │

00:03:15 #22962 [Verbose] > │     UH0_0(24.0, v0)                                                          │

00:03:15 #22963 [Verbose] > │ and closure22 () () : UH0 =                                                  │

00:03:15 #22964 [Verbose] > │     let v0 : (unit -> UH0) = closure23()                                     │

00:03:15 #22965 [Verbose] > │     UH0_0(23.0, v0)                                                          │

00:03:15 #22966 [Verbose] > │ and closure21 () () : UH0 =                                                  │

00:03:15 #22967 [Verbose] > │     let v0 : (unit -> UH0) = closure22()                                     │

00:03:15 #22968 [Verbose] > │     UH0_0(22.0, v0)                                                          │

00:03:15 #22969 [Verbose] > │ and closure20 () () : UH0 =                                                  │

00:03:15 #22970 [Verbose] > │     let v0 : (unit -> UH0) = closure21()                                     │

00:03:15 #22971 [Verbose] > │     UH0_0(21.0, v0)                                                          │

00:03:15 #22972 [Verbose] > │ and closure19 () () : UH0 =                                                  │

00:03:15 #22973 [Verbose] > │     let v0 : (unit -> UH0) = closure20()                                     │

00:03:15 #22974 [Verbose] > │     UH0_0(20.0, v0)                                                          │

00:03:15 #22975 [Verbose] > │ and closure18 () () : UH0 =                                                  │

00:03:15 #22976 [Verbose] > │     let v0 : (unit -> UH0) = closure19()                                     │

00:03:15 #22977 [Verbose] > │     UH0_0(19.0, v0)                                                          │

00:03:15 #22978 [Verbose] > │ and closure17 () () : UH0 =                                                  │

00:03:15 #22979 [Verbose] > │     let v0 : (unit -> UH0) = closure18()                                     │

00:03:15 #22980 [Verbose] > │     UH0_0(18.0, v0)                                                          │

00:03:15 #22981 [Verbose] > │ and closure16 () () : UH0 =                                                  │

00:03:15 #22982 [Verbose] > │     let v0 : (unit -> UH0) = closure17()                                     │

00:03:15 #22983 [Verbose] > │     UH0_0(17.0, v0)                                                          │

00:03:15 #22984 [Verbose] > │ and closure15 () () : UH0 =                                                  │

00:03:15 #22985 [Verbose] > │     let v0 : (unit -> UH0) = closure16()                                     │

00:03:15 #22986 [Verbose] > │     UH0_0(16.0, v0)                                                          │

00:03:15 #22987 [Verbose] > │ and closure14 () () : UH0 =                                                  │

00:03:15 #22988 [Verbose] > │     let v0 : (unit -> UH0) = closure15()                                     │

00:03:15 #22989 [Verbose] > │     UH0_0(15.0, v0)                                                          │

00:03:15 #22990 [Verbose] > │ and closure13 () () : UH0 =                                                  │

00:03:15 #22991 [Verbose] > │     let v0 : (unit -> UH0) = closure14()                                     │

00:03:15 #22992 [Verbose] > │     UH0_0(14.0, v0)                                                          │

00:03:15 #22993 [Verbose] > │ and closure12 () () : UH0 =                                                  │

00:03:15 #22994 [Verbose] > │     let v0 : (unit -> UH0) = closure13()                                     │

00:03:15 #22995 [Verbose] > │     UH0_0(13.0, v0)                                                          │

00:03:15 #22996 [Verbose] > │ and closure11 () () : UH0 =                                                  │

00:03:15 #22997 [Verbose] > │     let v0 : (unit -> UH0) = closure12()                                     │

00:03:15 #22998 [Verbose] > │     UH0_0(12.0, v0)                                                          │

00:03:15 #22999 [Verbose] > │ and closure10 () () : UH0 =                                                  │

00:03:15 #23000 [Verbose] > │     let v0 : (unit -> UH0) = closure11()                                     │

00:03:15 #23001 [Verbose] > │     UH0_0(11.0, v0)                                                          │

00:03:15 #23002 [Verbose] > │ and closure9 () () : UH0 =                                                   │

00:03:15 #23003 [Verbose] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:03:15 #23004 [Verbose] > │     UH0_0(10.0, v0)                                                          │

00:03:15 #23005 [Verbose] > │ and closure8 () () : UH0 =                                                   │

00:03:15 #23006 [Verbose] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:03:15 #23007 [Verbose] > │     UH0_0(9.0, v0)                                                           │

00:03:15 #23008 [Verbose] > │ and closure7 () () : UH0 =                                                   │

00:03:15 #23009 [Verbose] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:03:15 #23010 [Verbose] > │     UH0_0(8.0, v0)                                                           │

00:03:15 #23011 [Verbose] > │ and closure6 () () : UH0 =                                                   │

00:03:15 #23012 [Verbose] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:03:15 #23013 [Verbose] > │     UH0_0(7.0, v0)                                                           │

00:03:15 #23014 [Verbose] > │ and closure5 () () : UH0 =                                                   │

00:03:15 #23015 [Verbose] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:03:15 #23016 [Verbose] > │     UH0_0(6.0, v0)                                                           │

00:03:15 #23017 [Verbose] > │ and closure4 () () : UH0 =                                                   │

00:03:15 #23018 [Verbose] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:03:15 #23019 [Verbose] > │     UH0_0(5.0, v0)                                                           │

00:03:15 #23020 [Verbose] > │ and closure3 () () : UH0 =                                                   │

00:03:15 #23021 [Verbose] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:03:15 #23022 [Verbose] > │     UH0_0(4.0, v0)                                                           │

00:03:15 #23023 [Verbose] > │ and closure2 () () : UH0 =                                                   │

00:03:15 #23024 [Verbose] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:03:15 #23025 [Verbose] > │     UH0_0(3.0, v0)                                                           │

00:03:15 #23026 [Verbose] > │ and closure1 () () : UH0 =                                                   │

00:03:15 #23027 [Verbose] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:03:15 #23028 [Verbose] > │     UH0_0(2.0, v0)                                                           │

00:03:15 #23029 [Verbose] > │ and closure0 () () : UH0 =                                                   │

00:03:15 #23030 [Verbose] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:03:15 #23031 [Verbose] > │     UH0_0(1.0, v0)                                                           │

00:03:15 #23032 [Verbose] > │ and closure129 () () : UH1 =                                                 │

00:03:15 #23033 [Verbose] > │     UH1_1                                                                    │

00:03:15 #23034 [Verbose] > │ and closure128 () () : UH1 =                                                 │

00:03:15 #23035 [Verbose] > │     let v0 : (unit -> UH1) = closure129()                                    │

00:03:15 #23036 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.64, 0.0007224452478461016, 0.0, 0.0, 0.0,  │

00:03:15 #23037 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23038 [Verbose] > │ and closure127 () () : UH1 =                                                 │

00:03:15 #23039 [Verbose] > │     let v0 : (unit -> UH1) = closure128()                                    │

00:03:15 #23040 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.63, 0.001429728391993452, 0.0, 0.0, 0.0,   │

00:03:15 #23041 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23042 [Verbose] > │ and closure126 () () : UH1 =                                                 │

00:03:15 #23043 [Verbose] > │     let v0 : (unit -> UH1) = closure127()                                    │

00:03:15 #23044 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.62, 0.0021070055388626528, 0.0, 0.0, 0.0,  │

00:03:15 #23045 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23046 [Verbose] > │ and closure125 () () : UH1 =                                                 │

00:03:15 #23047 [Verbose] > │     let v0 : (unit -> UH1) = closure126()                                    │

00:03:15 #23048 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.61, 0.0027400625367733585, 0.0, 0.0, 0.0,  │

00:03:15 #23049 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23050 [Verbose] > │ and closure124 () () : UH1 =                                                 │

00:03:15 #23051 [Verbose] > │     let v0 : (unit -> UH1) = closure125()                                    │

00:03:15 #23052 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.6, 0.0033156132912039783, 0.0, 0.0, 0.0,   │

00:03:15 #23053 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23054 [Verbose] > │ and closure123 () () : UH1 =                                                 │

00:03:15 #23055 [Verbose] > │     let v0 : (unit -> UH1) = closure124()                                    │

00:03:15 #23056 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.59, 0.003821578602729245, 0.0, 0.0, 0.0,   │

00:03:15 #23057 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23058 [Verbose] > │ and closure122 () () : UH1 =                                                 │

00:03:15 #23059 [Verbose] > │     let v0 : (unit -> UH1) = closure123()                                    │

00:03:15 #23060 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.5800000000000001, 0.004247339675607605,    │

00:03:15 #23061 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23062 [Verbose] > │ and closure121 () () : UH1 =                                                 │

00:03:15 #23063 [Verbose] > │     let v0 : (unit -> UH1) = closure122()                                    │

00:03:15 #23064 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.5700000000000001, 0.004583960976582912,    │

00:03:15 #23065 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23066 [Verbose] > │ and closure120 () () : UH1 =                                                 │

00:03:15 #23067 [Verbose] > │     let v0 : (unit -> UH1) = closure121()                                    │

00:03:15 #23068 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.56, 0.004824377766717758, 0.0, 0.0, 0.0,   │

00:03:15 #23069 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23070 [Verbose] > │ and closure119 () () : UH1 =                                                 │

00:03:15 #23071 [Verbose] > │     let v0 : (unit -> UH1) = closure120()                                    │

00:03:15 #23072 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.55, 0.004963544370490271, 0.0, 0.0, 0.0,   │

00:03:15 #23073 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23074 [Verbose] > │ and closure118 () () : UH1 =                                                 │

00:03:15 #23075 [Verbose] > │     let v0 : (unit -> UH1) = closure119()                                    │

00:03:15 #23076 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.54, 0.004998540070400965, 0.0, 0.0, 0.0,   │

00:03:15 #23077 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23078 [Verbose] > │ and closure117 () () : UH1 =                                                 │

00:03:15 #23079 [Verbose] > │     let v0 : (unit -> UH1) = closure118()                                    │

00:03:15 #23080 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.53, 0.004928630404658255, 0.0, 0.0, 0.0,   │

00:03:15 #23081 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23082 [Verbose] > │ and closure116 () () : UH1 =                                                 │

00:03:15 #23083 [Verbose] > │     let v0 : (unit -> UH1) = closure117()                                    │

00:03:15 #23084 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.52, 0.004755282581475766, 0.0, 0.0, 0.0,   │

00:03:15 #23085 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23086 [Verbose] > │ and closure115 () () : UH1 =                                                 │

00:03:15 #23087 [Verbose] > │     let v0 : (unit -> UH1) = closure116()                                    │

00:03:15 #23088 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.51, 0.0044821346864785195, 0.0, 0.0, 0.0,  │

00:03:15 #23089 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23090 [Verbose] > │ and closure114 () () : UH1 =                                                 │

00:03:15 #23091 [Verbose] > │     let v0 : (unit -> UH1) = closure115()                                    │

00:03:15 #23092 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.5, 0.0041149193294682815, 0.0, 0.0, 0.0,   │

00:03:15 #23093 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23094 [Verbose] > │ and closure113 () () : UH1 =                                                 │

00:03:15 #23095 [Verbose] > │     let v0 : (unit -> UH1) = closure114()                                    │

00:03:15 #23096 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.49, 0.0036613433329888622, 0.0, 0.0, 0.0,  │

00:03:15 #23097 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23098 [Verbose] > │ and closure112 () () : UH1 =                                                 │

00:03:15 #23099 [Verbose] > │     let v0 : (unit -> UH1) = closure113()                                    │

00:03:15 #23100 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.48000000000000004, 0.003130925987691568,   │

00:03:15 #23101 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23102 [Verbose] > │ and closure111 () () : UH1 =                                                 │

00:03:15 #23103 [Verbose] > │     let v0 : (unit -> UH1) = closure112()                                    │

00:03:15 #23104 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.47000000000000003, 0.002534799269067953,   │

00:03:15 #23105 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23106 [Verbose] > │ and closure110 () () : UH1 =                                                 │

00:03:15 #23107 [Verbose] > │     let v0 : (unit -> UH1) = closure111()                                    │

00:03:15 #23108 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.46, 0.0018854742084416021, 0.0, 0.0, 0.0,  │

00:03:15 #23109 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23110 [Verbose] > │ and closure109 () () : UH1 =                                                 │

00:03:15 #23111 [Verbose] > │     let v0 : (unit -> UH1) = closure110()                                    │

00:03:15 #23112 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.45, 0.0011965783214377866, 0.0, 0.0, 0.0,  │

00:03:15 #23113 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23114 [Verbose] > │ and closure108 () () : UH1 =                                                 │

00:03:15 #23115 [Verbose] > │     let v0 : (unit -> UH1) = closure109()                                    │

00:03:15 #23116 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.44, 0.0004825696045725713, 0.0, 0.0, 0.0,  │

00:03:15 #23117 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23118 [Verbose] > │ and closure107 () () : UH1 =                                                 │

00:03:15 #23119 [Verbose] > │     let v0 : (unit -> UH1) = closure108()                                    │

00:03:15 #23120 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.43, -0.00024156689762753724, 0.0, 0.0,     │

00:03:15 #23121 [Verbose] > │ 0.0, 0.0, 0.0, v0)                                                           │

00:03:15 #23122 [Verbose] > │ and closure106 () () : UH1 =                                                 │

00:03:15 #23123 [Verbose] > │     let v0 : (unit -> UH1) = closure107()                                    │

00:03:15 #23124 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.42000000000000004, -0.0009606335867685414, │

00:03:15 #23125 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23126 [Verbose] > │ and closure105 () () : UH1 =                                                 │

00:03:15 #23127 [Verbose] > │     let v0 : (unit -> UH1) = closure106()                                    │

00:03:15 #23128 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.41000000000000003, -0.0016595392656426435, │

00:03:15 #23129 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23130 [Verbose] > │ and closure104 () () : UH1 =                                                 │

00:03:15 #23131 [Verbose] > │     let v0 : (unit -> UH1) = closure105()                                    │

00:03:15 #23132 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.4, -0.002323615860218846, 0.0, 0.0, 0.0,   │

00:03:15 #23133 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23134 [Verbose] > │ and closure103 () () : UH1 =                                                 │

00:03:15 #23135 [Verbose] > │     let v0 : (unit -> UH1) = closure104()                                    │

00:03:15 #23136 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.39, -0.002938926261462367, 0.0, 0.0, 0.0,  │

00:03:15 #23137 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23138 [Verbose] > │ and closure102 () () : UH1 =                                                 │

00:03:15 #23139 [Verbose] > │     let v0 : (unit -> UH1) = closure103()                                    │

00:03:15 #23140 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.38, -0.0034925568262446837, 0.0, 0.0, 0.0, │

00:03:15 #23141 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23142 [Verbose] > │ and closure101 () () : UH1 =                                                 │

00:03:15 #23143 [Verbose] > │     let v0 : (unit -> UH1) = closure102()                                    │

00:03:15 #23144 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.37, -0.003972888398568774, 0.0, 0.0, 0.0,  │

00:03:15 #23145 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23146 [Verbose] > │ and closure100 () () : UH1 =                                                 │

00:03:15 #23147 [Verbose] > │     let v0 : (unit -> UH1) = closure101()                                    │

00:03:15 #23148 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.36000000000000004, -0.004369840163132589,  │

00:03:15 #23149 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23150 [Verbose] > │ and closure99 () () : UH1 =                                                  │

00:03:15 #23151 [Verbose] > │     let v0 : (unit -> UH1) = closure100()                                    │

00:03:15 #23152 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.35000000000000003, -0.004675081213427074,  │

00:03:15 #23153 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23154 [Verbose] > │ and closure98 () () : UH1 =                                                  │

00:03:15 #23155 [Verbose] > │     let v0 : (unit -> UH1) = closure99()                                     │

00:03:15 #23156 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.34, -0.004882205394146361, 0.0, 0.0, 0.0,  │

00:03:15 #23157 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23158 [Verbose] > │ and closure97 () () : UH1 =                                                  │

00:03:15 #23159 [Verbose] > │     let v0 : (unit -> UH1) = closure98()                                     │

00:03:15 #23160 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.33, -0.004986865748457456, 0.0, 0.0, 0.0,  │

00:03:15 #23161 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23162 [Verbose] > │ and closure96 () () : UH1 =                                                  │

00:03:15 #23163 [Verbose] > │     let v0 : (unit -> UH1) = closure97()                                     │

00:03:15 #23164 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.32, -0.004986865748457456, 0.0, 0.0, 0.0,  │

00:03:15 #23165 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23166 [Verbose] > │ and closure95 () () : UH1 =                                                  │

00:03:15 #23167 [Verbose] > │     let v0 : (unit -> UH1) = closure96()                                     │

00:03:15 #23168 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.31, -0.004882205394146359, 0.0, 0.0, 0.0,  │

00:03:15 #23169 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23170 [Verbose] > │ and closure94 () () : UH1 =                                                  │

00:03:15 #23171 [Verbose] > │     let v0 : (unit -> UH1) = closure95()                                     │

00:03:15 #23172 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.3, -0.004675081213427074, 0.0, 0.0, 0.0,   │

00:03:15 #23173 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23174 [Verbose] > │ and closure93 () () : UH1 =                                                  │

00:03:15 #23175 [Verbose] > │     let v0 : (unit -> UH1) = closure94()                                     │

00:03:15 #23176 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.29000000000000004, -0.00436984016313259,   │

00:03:15 #23177 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23178 [Verbose] > │ and closure92 () () : UH1 =                                                  │

00:03:15 #23179 [Verbose] > │     let v0 : (unit -> UH1) = closure93()                                     │

00:03:15 #23180 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.28, -0.003972888398568771, 0.0, 0.0, 0.0,  │

00:03:15 #23181 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23182 [Verbose] > │ and closure91 () () : UH1 =                                                  │

00:03:15 #23183 [Verbose] > │     let v0 : (unit -> UH1) = closure92()                                     │

00:03:15 #23184 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.27, -0.003492556826244686, 0.0, 0.0, 0.0,  │

00:03:15 #23185 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23186 [Verbose] > │ and closure90 () () : UH1 =                                                  │

00:03:15 #23187 [Verbose] > │     let v0 : (unit -> UH1) = closure91()                                     │

00:03:15 #23188 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.26, -0.0029389262614623636, 0.0, 0.0, 0.0, │

00:03:15 #23189 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23190 [Verbose] > │ and closure89 () () : UH1 =                                                  │

00:03:15 #23191 [Verbose] > │     let v0 : (unit -> UH1) = closure90()                                     │

00:03:15 #23192 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.25, -0.002323615860218842, 0.0, 0.0, 0.0,  │

00:03:15 #23193 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23194 [Verbose] > │ and closure88 () () : UH1 =                                                  │

00:03:15 #23195 [Verbose] > │     let v0 : (unit -> UH1) = closure89()                                     │

00:03:15 #23196 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.24000000000000002, -0.001659539265642642,  │

00:03:15 #23197 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23198 [Verbose] > │ and closure87 () () : UH1 =                                                  │

00:03:15 #23199 [Verbose] > │     let v0 : (unit -> UH1) = closure88()                                     │

00:03:15 #23200 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.23, -0.0009606335867685418, 0.0, 0.0, 0.0, │

00:03:15 #23201 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23202 [Verbose] > │ and closure86 () () : UH1 =                                                  │

00:03:15 #23203 [Verbose] > │     let v0 : (unit -> UH1) = closure87()                                     │

00:03:15 #23204 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.22, -0.00024156689762753317, 0.0, 0.0,     │

00:03:15 #23205 [Verbose] > │ 0.0, 0.0, 0.0, v0)                                                           │

00:03:15 #23206 [Verbose] > │ and closure85 () () : UH1 =                                                  │

00:03:15 #23207 [Verbose] > │     let v0 : (unit -> UH1) = closure86()                                     │

00:03:15 #23208 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.21000000000000002, 0.00048256960457257535, │

00:03:15 #23209 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23210 [Verbose] > │ and closure84 () () : UH1 =                                                  │

00:03:15 #23211 [Verbose] > │     let v0 : (unit -> UH1) = closure85()                                     │

00:03:15 #23212 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.2, 0.0011965783214377905, 0.0, 0.0, 0.0,   │

00:03:15 #23213 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23214 [Verbose] > │ and closure83 () () : UH1 =                                                  │

00:03:15 #23215 [Verbose] > │     let v0 : (unit -> UH1) = closure84()                                     │

00:03:15 #23216 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.19, 0.0018854742084416015, 0.0, 0.0, 0.0,  │

00:03:15 #23217 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23218 [Verbose] > │ and closure82 () () : UH1 =                                                  │

00:03:15 #23219 [Verbose] > │     let v0 : (unit -> UH1) = closure83()                                     │

00:03:15 #23220 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.18000000000000002, 0.002534799269067951,   │

00:03:15 #23221 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23222 [Verbose] > │ and closure81 () () : UH1 =                                                  │

00:03:15 #23223 [Verbose] > │     let v0 : (unit -> UH1) = closure82()                                     │

00:03:15 #23224 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.17, 0.0031309259876915697, 0.0, 0.0, 0.0,  │

00:03:15 #23225 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23226 [Verbose] > │ and closure80 () () : UH1 =                                                  │

00:03:15 #23227 [Verbose] > │     let v0 : (unit -> UH1) = closure81()                                     │

00:03:15 #23228 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.16, 0.0036613433329888666, 0.0, 0.0, 0.0,  │

00:03:15 #23229 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23230 [Verbose] > │ and closure79 () () : UH1 =                                                  │

00:03:15 #23231 [Verbose] > │     let v0 : (unit -> UH1) = closure80()                                     │

00:03:15 #23232 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.15000000000000002, 0.0041149193294682815,  │

00:03:15 #23233 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23234 [Verbose] > │ and closure78 () () : UH1 =                                                  │

00:03:15 #23235 [Verbose] > │     let v0 : (unit -> UH1) = closure79()                                     │

00:03:15 #23236 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.14, 0.004482134686478519, 0.0, 0.0, 0.0,   │

00:03:15 #23237 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23238 [Verbose] > │ and closure77 () () : UH1 =                                                  │

00:03:15 #23239 [Verbose] > │     let v0 : (unit -> UH1) = closure78()                                     │

00:03:15 #23240 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.13, 0.004755282581475768, 0.0, 0.0, 0.0,   │

00:03:15 #23241 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23242 [Verbose] > │ and closure76 () () : UH1 =                                                  │

00:03:15 #23243 [Verbose] > │     let v0 : (unit -> UH1) = closure77()                                     │

00:03:15 #23244 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.12, 0.004928630404658255, 0.0, 0.0, 0.0,   │

00:03:15 #23245 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23246 [Verbose] > │ and closure75 () () : UH1 =                                                  │

00:03:15 #23247 [Verbose] > │     let v0 : (unit -> UH1) = closure76()                                     │

00:03:15 #23248 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.11, 0.004998540070400965, 0.0, 0.0, 0.0,   │

00:03:15 #23249 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23250 [Verbose] > │ and closure74 () () : UH1 =                                                  │

00:03:15 #23251 [Verbose] > │     let v0 : (unit -> UH1) = closure75()                                     │

00:03:15 #23252 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.09999999999999999, 0.00496354437049027,    │

00:03:15 #23253 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23254 [Verbose] > │ and closure73 () () : UH1 =                                                  │

00:03:15 #23255 [Verbose] > │     let v0 : (unit -> UH1) = closure74()                                     │

00:03:15 #23256 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.09, 0.004824377766717757, 0.0, 0.0, 0.0,   │

00:03:15 #23257 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23258 [Verbose] > │ and closure72 () () : UH1 =                                                  │

00:03:15 #23259 [Verbose] > │     let v0 : (unit -> UH1) = closure73()                                     │

00:03:15 #23260 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.08, 0.004583960976582912, 0.0, 0.0, 0.0,   │

00:03:15 #23261 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23262 [Verbose] > │ and closure71 () () : UH1 =                                                  │

00:03:15 #23263 [Verbose] > │     let v0 : (unit -> UH1) = closure72()                                     │

00:03:15 #23264 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.06999999999999999, 0.004247339675607605,   │

00:03:15 #23265 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23266 [Verbose] > │ and closure70 () () : UH1 =                                                  │

00:03:15 #23267 [Verbose] > │     let v0 : (unit -> UH1) = closure71()                                     │

00:03:15 #23268 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.060000000000000005, 0.0038215786027292415, │

00:03:15 #23269 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:03:15 #23270 [Verbose] > │ and closure69 () () : UH1 =                                                  │

00:03:15 #23271 [Verbose] > │     let v0 : (unit -> UH1) = closure70()                                     │

00:03:15 #23272 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.05, 0.0033156132912039757, 0.0, 0.0, 0.0,  │

00:03:15 #23273 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23274 [Verbose] > │ and closure68 () () : UH1 =                                                  │

00:03:15 #23275 [Verbose] > │     let v0 : (unit -> UH1) = closure69()                                     │

00:03:15 #23276 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.04, 0.00274006253677335, 0.0, 0.0, 0.0,    │

00:03:15 #23277 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23278 [Verbose] > │ and closure67 () () : UH1 =                                                  │

00:03:15 #23279 [Verbose] > │     let v0 : (unit -> UH1) = closure68()                                     │

00:03:15 #23280 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.03, 0.0021070055388626454, 0.0, 0.0, 0.0,  │

00:03:15 #23281 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23282 [Verbose] > │ and closure66 () () : UH1 =                                                  │

00:03:15 #23283 [Verbose] > │     let v0 : (unit -> UH1) = closure67()                                     │

00:03:15 #23284 [Verbose] > │     UH1_0(0.0, 8.422578125E-06, 0.02, 0.0014297283919934465, 0.0, 0.0, 0.0,  │

00:03:15 #23285 [Verbose] > │ 0.0, 0.0, v0)                                                                │

00:03:15 #23286 [Verbose] > │ and closure132 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 =           │

00:03:15 #23287 [Verbose] > │     let v2 : UH3 = v1 ()                                                     │

00:03:15 #23288 [Verbose] > │     let v3 : UH1 = v0 ()                                                     │

00:03:15 #23289 [Verbose] > │     match v2 with                                                            │

00:03:15 #23290 [Verbose] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:03:15 #23291 [Verbose] > │         match v3 with                                                        │

00:03:15 #23292 [Verbose] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:03:15 #23293 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23294 [Verbose] > │             let v24 : float = v9 * 1.25E-05                                  │

00:03:15 #23295 [Verbose] > │             let v25 : float = v19 + v24                                      │

00:03:15 #23296 [Verbose] > │             let v26 : float = 1.25E-05 * v6                                  │

00:03:15 #23297 [Verbose] > │             let v27 : float = 1.25E-05 * v7                                  │

00:03:15 #23298 [Verbose] > │             let v28 : float = 1.25E-05 * v8                                  │

00:03:15 #23299 [Verbose] > │             let v29 : float = v16 + v26                                      │

00:03:15 #23300 [Verbose] > │             let v30 : float = v17 + v27                                      │

00:03:15 #23301 [Verbose] > │             let v31 : float = v18 + v28                                      │

00:03:15 #23302 [Verbose] > │             let v32 : float = 1.25E-05 * v10                                 │

00:03:15 #23303 [Verbose] > │             let v33 : float = 1.25E-05 * v11                                 │

00:03:15 #23304 [Verbose] > │             let v34 : float = 1.25E-05 * v12                                 │

00:03:15 #23305 [Verbose] > │             let v35 : float = v20 + v32                                      │

00:03:15 #23306 [Verbose] > │             let v36 : float = v21 + v33                                      │

00:03:15 #23307 [Verbose] > │             let v37 : float = v22 + v34                                      │

00:03:15 #23308 [Verbose] > │             let v38 : (unit -> UH1) = closure132(v23, v13)                   │

00:03:15 #23309 [Verbose] > │             UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)          │

00:03:15 #23310 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:15 #23311 [Verbose] > │             UH1_1                                                            │

00:03:15 #23312 [Verbose] > │     | UH3_1 -> (* StreamNil *)                                               │

00:03:15 #23313 [Verbose] > │         UH1_1                                                                │

00:03:15 #23314 [Verbose] > │ and closure133 (v0 : UH1) () : UH1 =                                         │

00:03:15 #23315 [Verbose] > │     v0                                                                       │

00:03:15 #23316 [Verbose] > │ and closure134 (v0 : UH1, v1 : Mut0) () : UH1 =                              │

00:03:15 #23317 [Verbose] > │     let v2 : US0 = v1.l0                                                     │

00:03:15 #23318 [Verbose] > │     match v2 with                                                            │

00:03:15 #23319 [Verbose] > │     | US0_0(v3) -> (* Computed *)                                            │

00:03:15 #23320 [Verbose] > │         v3                                                                   │

00:03:15 #23321 [Verbose] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:03:15 #23322 [Verbose] > │         let v5 : UH1 = v4 ()                                                 │

00:03:15 #23323 [Verbose] > │         let v20 : UH1 =                                                      │

00:03:15 #23324 [Verbose] > │             match v5 with                                                    │

00:03:15 #23325 [Verbose] > │             | UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (*     │

00:03:15 #23326 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23327 [Verbose] > │                 let v17 : (unit -> UH1) = method3(v0, v16)                   │

00:03:15 #23328 [Verbose] > │                 UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17)         │

00:03:15 #23329 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:15 #23330 [Verbose] > │                 UH1_1                                                        │

00:03:15 #23331 [Verbose] > │         let v21 : US0 = US0_0(v20)                                           │

00:03:15 #23332 [Verbose] > │         v1.l0 <- v21                                                         │

00:03:15 #23333 [Verbose] > │         v20                                                                  │

00:03:15 #23334 [Verbose] > │ and method3 (v0 : UH1, v1 : (unit -> UH1)) : (unit -> UH1) =                 │

00:03:15 #23335 [Verbose] > │     let v2 : US0 = US0_1(v1)                                                 │

00:03:15 #23336 [Verbose] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:03:15 #23337 [Verbose] > │     closure134(v0, v3)                                                       │

00:03:15 #23338 [Verbose] > │ and closure135 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 =           │

00:03:15 #23339 [Verbose] > │     let v2 : UH3 = v1 ()                                                     │

00:03:15 #23340 [Verbose] > │     let v3 : UH1 = v0 ()                                                     │

00:03:15 #23341 [Verbose] > │     match v2 with                                                            │

00:03:15 #23342 [Verbose] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:03:15 #23343 [Verbose] > │         match v3 with                                                        │

00:03:15 #23344 [Verbose] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:03:15 #23345 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23346 [Verbose] > │             let v24 : float = v9 * 2.5E-05                                   │

00:03:15 #23347 [Verbose] > │             let v25 : float = v19 + v24                                      │

00:03:15 #23348 [Verbose] > │             let v26 : float = 2.5E-05 * v6                                   │

00:03:15 #23349 [Verbose] > │             let v27 : float = 2.5E-05 * v7                                   │

00:03:15 #23350 [Verbose] > │             let v28 : float = 2.5E-05 * v8                                   │

00:03:15 #23351 [Verbose] > │             let v29 : float = v16 + v26                                      │

00:03:15 #23352 [Verbose] > │             let v30 : float = v17 + v27                                      │

00:03:15 #23353 [Verbose] > │             let v31 : float = v18 + v28                                      │

00:03:15 #23354 [Verbose] > │             let v32 : float = 2.5E-05 * v10                                  │

00:03:15 #23355 [Verbose] > │             let v33 : float = 2.5E-05 * v11                                  │

00:03:15 #23356 [Verbose] > │             let v34 : float = 2.5E-05 * v12                                  │

00:03:15 #23357 [Verbose] > │             let v35 : float = v20 + v32                                      │

00:03:15 #23358 [Verbose] > │             let v36 : float = v21 + v33                                      │

00:03:15 #23359 [Verbose] > │             let v37 : float = v22 + v34                                      │

00:03:15 #23360 [Verbose] > │             let v38 : (unit -> UH1) = closure135(v23, v13)                   │

00:03:15 #23361 [Verbose] > │             UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)          │

00:03:15 #23362 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:15 #23363 [Verbose] > │             UH1_1                                                            │

00:03:15 #23364 [Verbose] > │     | UH3_1 -> (* StreamNil *)                                               │

00:03:15 #23365 [Verbose] > │         UH1_1                                                                │

00:03:15 #23366 [Verbose] > │ and closure136 (v0 : (unit -> UH3), v1 : (unit -> UH3)) () : UH3 =           │

00:03:15 #23367 [Verbose] > │     let v2 : UH3 = v1 ()                                                     │

00:03:15 #23368 [Verbose] > │     let v3 : UH3 = v0 ()                                                     │

00:03:15 #23369 [Verbose] > │     match v2 with                                                            │

00:03:15 #23370 [Verbose] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:03:15 #23371 [Verbose] > │         match v3 with                                                        │

00:03:15 #23372 [Verbose] > │         | UH3_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:03:15 #23373 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23374 [Verbose] > │             let v24 : float = v4 + v14                                       │

00:03:15 #23375 [Verbose] > │             let v25 : float = v5 + v15                                       │

00:03:15 #23376 [Verbose] > │             let v26 : float = v9 + v19                                       │

00:03:15 #23377 [Verbose] > │             let v27 : float = v6 + v16                                       │

00:03:15 #23378 [Verbose] > │             let v28 : float = v7 + v17                                       │

00:03:15 #23379 [Verbose] > │             let v29 : float = v8 + v18                                       │

00:03:15 #23380 [Verbose] > │             let v30 : float = v10 + v20                                      │

00:03:15 #23381 [Verbose] > │             let v31 : float = v11 + v21                                      │

00:03:15 #23382 [Verbose] > │             let v32 : float = v12 + v22                                      │

00:03:15 #23383 [Verbose] > │             let v33 : (unit -> UH3) = closure136(v23, v13)                   │

00:03:15 #23384 [Verbose] > │             UH3_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33)          │

00:03:15 #23385 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23386 [Verbose] > │             UH3_1                                                            │

00:03:15 #23387 [Verbose] > │     | UH3_1 -> (* StreamNil *)                                               │

00:03:15 #23388 [Verbose] > │         UH3_1                                                                │

00:03:15 #23389 [Verbose] > │ and closure137 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 =           │

00:03:15 #23390 [Verbose] > │     let v2 : UH3 = v1 ()                                                     │

00:03:15 #23391 [Verbose] > │     let v3 : UH1 = v0 ()                                                     │

00:03:15 #23392 [Verbose] > │     match v2 with                                                            │

00:03:15 #23393 [Verbose] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:03:15 #23394 [Verbose] > │         match v3 with                                                        │

00:03:15 #23395 [Verbose] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:03:15 #23396 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23397 [Verbose] > │             let v24 : float = v9 * 4.166666666666667E-06                     │

00:03:15 #23398 [Verbose] > │             let v25 : float = v19 + v24                                      │

00:03:15 #23399 [Verbose] > │             let v26 : float = 4.166666666666667E-06 * v6                     │

00:03:15 #23400 [Verbose] > │             let v27 : float = 4.166666666666667E-06 * v7                     │

00:03:15 #23401 [Verbose] > │             let v28 : float = 4.166666666666667E-06 * v8                     │

00:03:15 #23402 [Verbose] > │             let v29 : float = v16 + v26                                      │

00:03:15 #23403 [Verbose] > │             let v30 : float = v17 + v27                                      │

00:03:15 #23404 [Verbose] > │             let v31 : float = v18 + v28                                      │

00:03:15 #23405 [Verbose] > │             let v32 : float = 4.166666666666667E-06 * v10                    │

00:03:15 #23406 [Verbose] > │             let v33 : float = 4.166666666666667E-06 * v11                    │

00:03:15 #23407 [Verbose] > │             let v34 : float = 4.166666666666667E-06 * v12                    │

00:03:15 #23408 [Verbose] > │             let v35 : float = v20 + v32                                      │

00:03:15 #23409 [Verbose] > │             let v36 : float = v21 + v33                                      │

00:03:15 #23410 [Verbose] > │             let v37 : float = v22 + v34                                      │

00:03:15 #23411 [Verbose] > │             let v38 : (unit -> UH1) = closure137(v23, v13)                   │

00:03:15 #23412 [Verbose] > │             UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)          │

00:03:15 #23413 [Verbose] > │         | UH1_1 -> (* StreamNil *)                                           │

00:03:15 #23414 [Verbose] > │             UH1_1                                                            │

00:03:15 #23415 [Verbose] > │     | UH3_1 -> (* StreamNil *)                                               │

00:03:15 #23416 [Verbose] > │         UH1_1                                                                │

00:03:15 #23417 [Verbose] > │ and closure131 (v0 : (UH1 -> UH3)) (v1 : UH1) : UH1 =                        │

00:03:15 #23418 [Verbose] > │     let v2 : UH3 = v0 v1                                                     │

00:03:15 #23419 [Verbose] > │     let v44 : UH1 =                                                          │

00:03:15 #23420 [Verbose] > │         match v2 with                                                        │

00:03:15 #23421 [Verbose] > │         | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons  │

00:03:15 #23422 [Verbose] > │ *)                                                                           │

00:03:15 #23423 [Verbose] > │             match v1 with                                                    │

00:03:15 #23424 [Verbose] > │             | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (*  │

00:03:15 #23425 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23426 [Verbose] > │                 let v23 : float = v8 * 1.25E-05                              │

00:03:15 #23427 [Verbose] > │                 let v24 : float = v18 + v23                                  │

00:03:15 #23428 [Verbose] > │                 let v25 : float = 1.25E-05 * v5                              │

00:03:15 #23429 [Verbose] > │                 let v26 : float = 1.25E-05 * v6                              │

00:03:15 #23430 [Verbose] > │                 let v27 : float = 1.25E-05 * v7                              │

00:03:15 #23431 [Verbose] > │                 let v28 : float = v15 + v25                                  │

00:03:15 #23432 [Verbose] > │                 let v29 : float = v16 + v26                                  │

00:03:15 #23433 [Verbose] > │                 let v30 : float = v17 + v27                                  │

00:03:15 #23434 [Verbose] > │                 let v31 : float = 1.25E-05 * v9                              │

00:03:15 #23435 [Verbose] > │                 let v32 : float = 1.25E-05 * v10                             │

00:03:15 #23436 [Verbose] > │                 let v33 : float = 1.25E-05 * v11                             │

00:03:15 #23437 [Verbose] > │                 let v34 : float = v19 + v31                                  │

00:03:15 #23438 [Verbose] > │                 let v35 : float = v20 + v32                                  │

00:03:15 #23439 [Verbose] > │                 let v36 : float = v21 + v33                                  │

00:03:15 #23440 [Verbose] > │                 let v37 : (unit -> UH1) = closure132(v22, v12)               │

00:03:15 #23441 [Verbose] > │                 UH1_0(v13, v14, v28, v29, v30, v24, v34, v35, v36, v37)      │

00:03:15 #23442 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:15 #23443 [Verbose] > │                 UH1_1                                                        │

00:03:15 #23444 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23445 [Verbose] > │             UH1_1                                                            │

00:03:15 #23446 [Verbose] > │     let v45 : (unit -> UH1) = closure133(v44)                                │

00:03:15 #23447 [Verbose] > │     let v46 : (unit -> UH1) = method3(v44, v45)                              │

00:03:15 #23448 [Verbose] > │     let v47 : UH1 = v46 ()                                                   │

00:03:15 #23449 [Verbose] > │     let v48 : UH3 = v0 v47                                                   │

00:03:15 #23450 [Verbose] > │     let v90 : UH1 =                                                          │

00:03:15 #23451 [Verbose] > │         match v48 with                                                       │

00:03:15 #23452 [Verbose] > │         | UH3_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (*      │

00:03:15 #23453 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23454 [Verbose] > │             match v1 with                                                    │

00:03:15 #23455 [Verbose] > │             | UH1_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (*  │

00:03:15 #23456 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23457 [Verbose] > │                 let v69 : float = v54 * 1.25E-05                             │

00:03:15 #23458 [Verbose] > │                 let v70 : float = v64 + v69                                  │

00:03:15 #23459 [Verbose] > │                 let v71 : float = 1.25E-05 * v51                             │

00:03:15 #23460 [Verbose] > │                 let v72 : float = 1.25E-05 * v52                             │

00:03:15 #23461 [Verbose] > │                 let v73 : float = 1.25E-05 * v53                             │

00:03:15 #23462 [Verbose] > │                 let v74 : float = v61 + v71                                  │

00:03:15 #23463 [Verbose] > │                 let v75 : float = v62 + v72                                  │

00:03:15 #23464 [Verbose] > │                 let v76 : float = v63 + v73                                  │

00:03:15 #23465 [Verbose] > │                 let v77 : float = 1.25E-05 * v55                             │

00:03:15 #23466 [Verbose] > │                 let v78 : float = 1.25E-05 * v56                             │

00:03:15 #23467 [Verbose] > │                 let v79 : float = 1.25E-05 * v57                             │

00:03:15 #23468 [Verbose] > │                 let v80 : float = v65 + v77                                  │

00:03:15 #23469 [Verbose] > │                 let v81 : float = v66 + v78                                  │

00:03:15 #23470 [Verbose] > │                 let v82 : float = v67 + v79                                  │

00:03:15 #23471 [Verbose] > │                 let v83 : (unit -> UH1) = closure132(v68, v58)               │

00:03:15 #23472 [Verbose] > │                 UH1_0(v59, v60, v74, v75, v76, v70, v80, v81, v82, v83)      │

00:03:15 #23473 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:15 #23474 [Verbose] > │                 UH1_1                                                        │

00:03:15 #23475 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23476 [Verbose] > │             UH1_1                                                            │

00:03:15 #23477 [Verbose] > │     let v91 : (unit -> UH1) = closure133(v90)                                │

00:03:15 #23478 [Verbose] > │     let v92 : (unit -> UH1) = method3(v90, v91)                              │

00:03:15 #23479 [Verbose] > │     let v93 : UH1 = v92 ()                                                   │

00:03:15 #23480 [Verbose] > │     let v94 : UH3 = v0 v93                                                   │

00:03:15 #23481 [Verbose] > │     let v136 : UH1 =                                                         │

00:03:15 #23482 [Verbose] > │         match v94 with                                                       │

00:03:15 #23483 [Verbose] > │         | UH3_0(v95, v96, v97, v98, v99, v100, v101, v102, v103, v104) -> (* │

00:03:15 #23484 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23485 [Verbose] > │             match v1 with                                                    │

00:03:15 #23486 [Verbose] > │             | UH1_0(v105, v106, v107, v108, v109, v110, v111, v112, v113,    │

00:03:15 #23487 [Verbose] > │ v114) -> (* StreamCons *)                                                    │

00:03:15 #23488 [Verbose] > │                 let v115 : float = v100 * 2.5E-05                            │

00:03:15 #23489 [Verbose] > │                 let v116 : float = v110 + v115                               │

00:03:15 #23490 [Verbose] > │                 let v117 : float = 2.5E-05 * v97                             │

00:03:15 #23491 [Verbose] > │                 let v118 : float = 2.5E-05 * v98                             │

00:03:15 #23492 [Verbose] > │                 let v119 : float = 2.5E-05 * v99                             │

00:03:15 #23493 [Verbose] > │                 let v120 : float = v107 + v117                               │

00:03:15 #23494 [Verbose] > │                 let v121 : float = v108 + v118                               │

00:03:15 #23495 [Verbose] > │                 let v122 : float = v109 + v119                               │

00:03:15 #23496 [Verbose] > │                 let v123 : float = 2.5E-05 * v101                            │

00:03:15 #23497 [Verbose] > │                 let v124 : float = 2.5E-05 * v102                            │

00:03:15 #23498 [Verbose] > │                 let v125 : float = 2.5E-05 * v103                            │

00:03:15 #23499 [Verbose] > │                 let v126 : float = v111 + v123                               │

00:03:15 #23500 [Verbose] > │                 let v127 : float = v112 + v124                               │

00:03:15 #23501 [Verbose] > │                 let v128 : float = v113 + v125                               │

00:03:15 #23502 [Verbose] > │                 let v129 : (unit -> UH1) = closure135(v114, v104)            │

00:03:15 #23503 [Verbose] > │                 UH1_0(v105, v106, v120, v121, v122, v116, v126, v127, v128,  │

00:03:15 #23504 [Verbose] > │ v129)                                                                        │

00:03:15 #23505 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:15 #23506 [Verbose] > │                 UH1_1                                                        │

00:03:15 #23507 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23508 [Verbose] > │             UH1_1                                                            │

00:03:15 #23509 [Verbose] > │     let v137 : (unit -> UH1) = closure133(v136)                              │

00:03:15 #23510 [Verbose] > │     let v138 : (unit -> UH1) = method3(v136, v137)                           │

00:03:15 #23511 [Verbose] > │     let v139 : UH1 = v138 ()                                                 │

00:03:15 #23512 [Verbose] > │     let v140 : UH3 = v0 v139                                                 │

00:03:15 #23513 [Verbose] > │     let v177 : UH3 =                                                         │

00:03:15 #23514 [Verbose] > │         match v2 with                                                        │

00:03:15 #23515 [Verbose] > │         | UH3_0(v141, v142, v143, v144, v145, v146, v147, v148, v149, v150)  │

00:03:15 #23516 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:15 #23517 [Verbose] > │             match v48 with                                                   │

00:03:15 #23518 [Verbose] > │             | UH3_0(v151, v152, v153, v154, v155, v156, v157, v158, v159,    │

00:03:15 #23519 [Verbose] > │ v160) -> (* StreamCons *)                                                    │

00:03:15 #23520 [Verbose] > │                 let v161 : float = v141 + v151                               │

00:03:15 #23521 [Verbose] > │                 let v162 : float = v142 + v152                               │

00:03:15 #23522 [Verbose] > │                 let v163 : float = v146 + v156                               │

00:03:15 #23523 [Verbose] > │                 let v164 : float = v143 + v153                               │

00:03:15 #23524 [Verbose] > │                 let v165 : float = v144 + v154                               │

00:03:15 #23525 [Verbose] > │                 let v166 : float = v145 + v155                               │

00:03:15 #23526 [Verbose] > │                 let v167 : float = v147 + v157                               │

00:03:15 #23527 [Verbose] > │                 let v168 : float = v148 + v158                               │

00:03:15 #23528 [Verbose] > │                 let v169 : float = v149 + v159                               │

00:03:15 #23529 [Verbose] > │                 let v170 : (unit -> UH3) = closure136(v160, v150)            │

00:03:15 #23530 [Verbose] > │                 UH3_0(v161, v162, v164, v165, v166, v163, v167, v168, v169,  │

00:03:15 #23531 [Verbose] > │ v170)                                                                        │

00:03:15 #23532 [Verbose] > │             | UH3_1 -> (* StreamNil *)                                       │

00:03:15 #23533 [Verbose] > │                 UH3_1                                                        │

00:03:15 #23534 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23535 [Verbose] > │             UH3_1                                                            │

00:03:15 #23536 [Verbose] > │     let v214 : UH3 =                                                         │

00:03:15 #23537 [Verbose] > │         match v177 with                                                      │

00:03:15 #23538 [Verbose] > │         | UH3_0(v178, v179, v180, v181, v182, v183, v184, v185, v186, v187)  │

00:03:15 #23539 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:15 #23540 [Verbose] > │             match v48 with                                                   │

00:03:15 #23541 [Verbose] > │             | UH3_0(v188, v189, v190, v191, v192, v193, v194, v195, v196,    │

00:03:15 #23542 [Verbose] > │ v197) -> (* StreamCons *)                                                    │

00:03:15 #23543 [Verbose] > │                 let v198 : float = v178 + v188                               │

00:03:15 #23544 [Verbose] > │                 let v199 : float = v179 + v189                               │

00:03:15 #23545 [Verbose] > │                 let v200 : float = v183 + v193                               │

00:03:15 #23546 [Verbose] > │                 let v201 : float = v180 + v190                               │

00:03:15 #23547 [Verbose] > │                 let v202 : float = v181 + v191                               │

00:03:15 #23548 [Verbose] > │                 let v203 : float = v182 + v192                               │

00:03:15 #23549 [Verbose] > │                 let v204 : float = v184 + v194                               │

00:03:15 #23550 [Verbose] > │                 let v205 : float = v185 + v195                               │

00:03:15 #23551 [Verbose] > │                 let v206 : float = v186 + v196                               │

00:03:15 #23552 [Verbose] > │                 let v207 : (unit -> UH3) = closure136(v197, v187)            │

00:03:15 #23553 [Verbose] > │                 UH3_0(v198, v199, v201, v202, v203, v200, v204, v205, v206,  │

00:03:15 #23554 [Verbose] > │ v207)                                                                        │

00:03:15 #23555 [Verbose] > │             | UH3_1 -> (* StreamNil *)                                       │

00:03:15 #23556 [Verbose] > │                 UH3_1                                                        │

00:03:15 #23557 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23558 [Verbose] > │             UH3_1                                                            │

00:03:15 #23559 [Verbose] > │     let v251 : UH3 =                                                         │

00:03:15 #23560 [Verbose] > │         match v214 with                                                      │

00:03:15 #23561 [Verbose] > │         | UH3_0(v215, v216, v217, v218, v219, v220, v221, v222, v223, v224)  │

00:03:15 #23562 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:15 #23563 [Verbose] > │             match v94 with                                                   │

00:03:15 #23564 [Verbose] > │             | UH3_0(v225, v226, v227, v228, v229, v230, v231, v232, v233,    │

00:03:15 #23565 [Verbose] > │ v234) -> (* StreamCons *)                                                    │

00:03:15 #23566 [Verbose] > │                 let v235 : float = v215 + v225                               │

00:03:15 #23567 [Verbose] > │                 let v236 : float = v216 + v226                               │

00:03:15 #23568 [Verbose] > │                 let v237 : float = v220 + v230                               │

00:03:15 #23569 [Verbose] > │                 let v238 : float = v217 + v227                               │

00:03:15 #23570 [Verbose] > │                 let v239 : float = v218 + v228                               │

00:03:15 #23571 [Verbose] > │                 let v240 : float = v219 + v229                               │

00:03:15 #23572 [Verbose] > │                 let v241 : float = v221 + v231                               │

00:03:15 #23573 [Verbose] > │                 let v242 : float = v222 + v232                               │

00:03:15 #23574 [Verbose] > │                 let v243 : float = v223 + v233                               │

00:03:15 #23575 [Verbose] > │                 let v244 : (unit -> UH3) = closure136(v234, v224)            │

00:03:15 #23576 [Verbose] > │                 UH3_0(v235, v236, v238, v239, v240, v237, v241, v242, v243,  │

00:03:15 #23577 [Verbose] > │ v244)                                                                        │

00:03:15 #23578 [Verbose] > │             | UH3_1 -> (* StreamNil *)                                       │

00:03:15 #23579 [Verbose] > │                 UH3_1                                                        │

00:03:15 #23580 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23581 [Verbose] > │             UH3_1                                                            │

00:03:15 #23582 [Verbose] > │     let v288 : UH3 =                                                         │

00:03:15 #23583 [Verbose] > │         match v251 with                                                      │

00:03:15 #23584 [Verbose] > │         | UH3_0(v252, v253, v254, v255, v256, v257, v258, v259, v260, v261)  │

00:03:15 #23585 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:15 #23586 [Verbose] > │             match v94 with                                                   │

00:03:15 #23587 [Verbose] > │             | UH3_0(v262, v263, v264, v265, v266, v267, v268, v269, v270,    │

00:03:15 #23588 [Verbose] > │ v271) -> (* StreamCons *)                                                    │

00:03:15 #23589 [Verbose] > │                 let v272 : float = v252 + v262                               │

00:03:15 #23590 [Verbose] > │                 let v273 : float = v253 + v263                               │

00:03:15 #23591 [Verbose] > │                 let v274 : float = v257 + v267                               │

00:03:15 #23592 [Verbose] > │                 let v275 : float = v254 + v264                               │

00:03:15 #23593 [Verbose] > │                 let v276 : float = v255 + v265                               │

00:03:15 #23594 [Verbose] > │                 let v277 : float = v256 + v266                               │

00:03:15 #23595 [Verbose] > │                 let v278 : float = v258 + v268                               │

00:03:15 #23596 [Verbose] > │                 let v279 : float = v259 + v269                               │

00:03:15 #23597 [Verbose] > │                 let v280 : float = v260 + v270                               │

00:03:15 #23598 [Verbose] > │                 let v281 : (unit -> UH3) = closure136(v271, v261)            │

00:03:15 #23599 [Verbose] > │                 UH3_0(v272, v273, v275, v276, v277, v274, v278, v279, v280,  │

00:03:15 #23600 [Verbose] > │ v281)                                                                        │

00:03:15 #23601 [Verbose] > │             | UH3_1 -> (* StreamNil *)                                       │

00:03:15 #23602 [Verbose] > │                 UH3_1                                                        │

00:03:15 #23603 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23604 [Verbose] > │             UH3_1                                                            │

00:03:15 #23605 [Verbose] > │     let v325 : UH3 =                                                         │

00:03:15 #23606 [Verbose] > │         match v288 with                                                      │

00:03:15 #23607 [Verbose] > │         | UH3_0(v289, v290, v291, v292, v293, v294, v295, v296, v297, v298)  │

00:03:15 #23608 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:15 #23609 [Verbose] > │             match v140 with                                                  │

00:03:15 #23610 [Verbose] > │             | UH3_0(v299, v300, v301, v302, v303, v304, v305, v306, v307,    │

00:03:15 #23611 [Verbose] > │ v308) -> (* StreamCons *)                                                    │

00:03:15 #23612 [Verbose] > │                 let v309 : float = v289 + v299                               │

00:03:15 #23613 [Verbose] > │                 let v310 : float = v290 + v300                               │

00:03:15 #23614 [Verbose] > │                 let v311 : float = v294 + v304                               │

00:03:15 #23615 [Verbose] > │                 let v312 : float = v291 + v301                               │

00:03:15 #23616 [Verbose] > │                 let v313 : float = v292 + v302                               │

00:03:15 #23617 [Verbose] > │                 let v314 : float = v293 + v303                               │

00:03:15 #23618 [Verbose] > │                 let v315 : float = v295 + v305                               │

00:03:15 #23619 [Verbose] > │                 let v316 : float = v296 + v306                               │

00:03:15 #23620 [Verbose] > │                 let v317 : float = v297 + v307                               │

00:03:15 #23621 [Verbose] > │                 let v318 : (unit -> UH3) = closure136(v308, v298)            │

00:03:15 #23622 [Verbose] > │                 UH3_0(v309, v310, v312, v313, v314, v311, v315, v316, v317,  │

00:03:15 #23623 [Verbose] > │ v318)                                                                        │

00:03:15 #23624 [Verbose] > │             | UH3_1 -> (* StreamNil *)                                       │

00:03:15 #23625 [Verbose] > │                 UH3_1                                                        │

00:03:15 #23626 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23627 [Verbose] > │             UH3_1                                                            │

00:03:15 #23628 [Verbose] > │     let v367 : UH1 =                                                         │

00:03:15 #23629 [Verbose] > │         match v325 with                                                      │

00:03:15 #23630 [Verbose] > │         | UH3_0(v326, v327, v328, v329, v330, v331, v332, v333, v334, v335)  │

00:03:15 #23631 [Verbose] > │ -> (* StreamCons *)                                                          │

00:03:15 #23632 [Verbose] > │             match v1 with                                                    │

00:03:15 #23633 [Verbose] > │             | UH1_0(v336, v337, v338, v339, v340, v341, v342, v343, v344,    │

00:03:15 #23634 [Verbose] > │ v345) -> (* StreamCons *)                                                    │

00:03:15 #23635 [Verbose] > │                 let v346 : float = v331 * 4.166666666666667E-06              │

00:03:15 #23636 [Verbose] > │                 let v347 : float = v341 + v346                               │

00:03:15 #23637 [Verbose] > │                 let v348 : float = 4.166666666666667E-06 * v328              │

00:03:15 #23638 [Verbose] > │                 let v349 : float = 4.166666666666667E-06 * v329              │

00:03:15 #23639 [Verbose] > │                 let v350 : float = 4.166666666666667E-06 * v330              │

00:03:15 #23640 [Verbose] > │                 let v351 : float = v338 + v348                               │

00:03:15 #23641 [Verbose] > │                 let v352 : float = v339 + v349                               │

00:03:15 #23642 [Verbose] > │                 let v353 : float = v340 + v350                               │

00:03:15 #23643 [Verbose] > │                 let v354 : float = 4.166666666666667E-06 * v332              │

00:03:15 #23644 [Verbose] > │                 let v355 : float = 4.166666666666667E-06 * v333              │

00:03:15 #23645 [Verbose] > │                 let v356 : float = 4.166666666666667E-06 * v334              │

00:03:15 #23646 [Verbose] > │                 let v357 : float = v342 + v354                               │

00:03:15 #23647 [Verbose] > │                 let v358 : float = v343 + v355                               │

00:03:15 #23648 [Verbose] > │                 let v359 : float = v344 + v356                               │

00:03:15 #23649 [Verbose] > │                 let v360 : (unit -> UH1) = closure137(v345, v335)            │

00:03:15 #23650 [Verbose] > │                 UH1_0(v336, v337, v351, v352, v353, v347, v357, v358, v359,  │

00:03:15 #23651 [Verbose] > │ v360)                                                                        │

00:03:15 #23652 [Verbose] > │             | UH1_1 -> (* StreamNil *)                                       │

00:03:15 #23653 [Verbose] > │                 UH1_1                                                        │

00:03:15 #23654 [Verbose] > │         | UH3_1 -> (* StreamNil *)                                           │

00:03:15 #23655 [Verbose] > │             UH1_1                                                            │

00:03:15 #23656 [Verbose] > │     let v368 : (unit -> UH1) = closure133(v367)                              │

00:03:15 #23657 [Verbose] > │     let v369 : (unit -> UH1) = method3(v367, v368)                           │

00:03:15 #23658 [Verbose] > │     let v370 : UH1 = v369 ()                                                 │

00:03:15 #23659 [Verbose] > │     v370                                                                     │

00:03:15 #23660 [Verbose] > │ and closure130 () (v0 : (UH1 -> UH3)) : (UH1 -> UH1) =                       │

00:03:15 #23661 [Verbose] > │     closure131(v0)                                                           │

00:03:15 #23662 [Verbose] > │ and method2 () : ((UH1 -> UH3) -> (UH1 -> UH1)) =                            │

00:03:15 #23663 [Verbose] > │     closure130()                                                             │

00:03:15 #23664 [Verbose] > │ and closure138 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:03:15 #23665 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:03:15 #23666 [Verbose] > │ float * float) =                                                             │

00:03:15 #23667 [Verbose] > │     let v9 : float = v2 * v2                                                 │

00:03:15 #23668 [Verbose] > │     let v10 : float = v3 * v3                                                │

00:03:15 #23669 [Verbose] > │     let v11 : float = v9 + v10                                               │

00:03:15 #23670 [Verbose] > │     let v12 : float = v4 * v4                                                │

00:03:15 #23671 [Verbose] > │     let v13 : float = v11 + v12                                              │

00:03:15 #23672 [Verbose] > │     let v14 : float = sqrt v13                                               │

00:03:15 #23673 [Verbose] > │     let v15 : float = -5384.0 * v14                                          │

00:03:15 #23674 [Verbose] > │     let v16 : float = v15 * v2                                               │

00:03:15 #23675 [Verbose] > │     let v17 : float = v15 * v3                                               │

00:03:15 #23676 [Verbose] > │     let v18 : float = v15 * v4                                               │

00:03:15 #23677 [Verbose] > │     let v19 : float = v16 / v14                                              │

00:03:15 #23678 [Verbose] > │     let v20 : float = v17 / v14                                              │

00:03:15 #23679 [Verbose] > │     let v21 : float = v18 / v14                                              │

00:03:15 #23680 [Verbose] > │     struct (v19, v20, v21)                                                   │

00:03:15 #23681 [Verbose] > │ and closure139 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:03:15 #23682 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:03:15 #23683 [Verbose] > │ float * float) =                                                             │

00:03:15 #23684 [Verbose] > │     let v9 : float = v2 + -0.65                                              │

00:03:15 #23685 [Verbose] > │     let v10 : float = v9 * v9                                                │

00:03:15 #23686 [Verbose] > │     let v11 : float = v3 * v3                                                │

00:03:15 #23687 [Verbose] > │     let v12 : float = v10 + v11                                              │

00:03:15 #23688 [Verbose] > │     let v13 : float = v4 * v4                                                │

00:03:15 #23689 [Verbose] > │     let v14 : float = v12 + v13                                              │

00:03:15 #23690 [Verbose] > │     let v15 : float = sqrt v14                                               │

00:03:15 #23691 [Verbose] > │     let v16 : float = -5384.0 * v15                                          │

00:03:15 #23692 [Verbose] > │     let v17 : float = v16 * v9                                               │

00:03:15 #23693 [Verbose] > │     let v18 : float = v16 * v3                                               │

00:03:15 #23694 [Verbose] > │     let v19 : float = v16 * v4                                               │

00:03:15 #23695 [Verbose] > │     let v20 : float = v17 / v15                                              │

00:03:15 #23696 [Verbose] > │     let v21 : float = v18 / v15                                              │

00:03:15 #23697 [Verbose] > │     let v22 : float = v19 / v15                                              │

00:03:15 #23698 [Verbose] > │     struct (v20, v21, v22)                                                   │

00:03:15 #23699 [Verbose] > │ and closure141 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float,  │

00:03:15 #23700 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 :    │

00:03:15 #23701 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:03:15 #23702 [Verbose] > │ : float, v17 : float) : struct (float * float * float) =                     │

00:03:15 #23703 [Verbose] > │     let v18 : float = -1.0 * v2                                              │

00:03:15 #23704 [Verbose] > │     let v19 : float = -1.0 * v3                                              │

00:03:15 #23705 [Verbose] > │     let v20 : float = -1.0 * v4                                              │

00:03:15 #23706 [Verbose] > │     let v21 : float = v11 + v18                                              │

00:03:15 #23707 [Verbose] > │     let v22 : float = v12 + v19                                              │

00:03:15 #23708 [Verbose] > │     let v23 : float = v13 + v20                                              │

00:03:15 #23709 [Verbose] > │     let v24 : float = v21 * v21                                              │

00:03:15 #23710 [Verbose] > │     let v25 : float = v22 * v22                                              │

00:03:15 #23711 [Verbose] > │     let v26 : float = v24 + v25                                              │

00:03:15 #23712 [Verbose] > │     let v27 : float = v23 * v23                                              │

00:03:15 #23713 [Verbose] > │     let v28 : float = v26 + v27                                              │

00:03:15 #23714 [Verbose] > │     let v29 : float = sqrt v28                                               │

00:03:15 #23715 [Verbose] > │     let v30 : float = -5384.0 * v29                                          │

00:03:15 #23716 [Verbose] > │     let v31 : float = v30 * v21                                              │

00:03:15 #23717 [Verbose] > │     let v32 : float = v30 * v22                                              │

00:03:15 #23718 [Verbose] > │     let v33 : float = v30 * v23                                              │

00:03:15 #23719 [Verbose] > │     let v34 : float = v31 / v29                                              │

00:03:15 #23720 [Verbose] > │     let v35 : float = v32 / v29                                              │

00:03:15 #23721 [Verbose] > │     let v36 : float = v33 / v29                                              │

00:03:15 #23722 [Verbose] > │     struct (v34, v35, v36)                                                   │

00:03:15 #23723 [Verbose] > │ and closure140 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:03:15 #23724 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : (struct (float *  │

00:03:15 #23725 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct     │

00:03:15 #23726 [Verbose] > │ (float * float * float)) =                                                   │

00:03:15 #23727 [Verbose] > │     closure141(v0, v1, v2, v3, v4, v5, v6, v7, v8)                           │

00:03:15 #23728 [Verbose] > │ and method4 () : UH4 =                                                       │

00:03:15 #23729 [Verbose] > │     let v0 : (struct (float * float * float * float * float * float * float  │

00:03:15 #23730 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure138()           │

00:03:15 #23731 [Verbose] > │     let v1 : US1 = US1_0(0, v0)                                              │

00:03:15 #23732 [Verbose] > │     let v2 : (struct (float * float * float * float * float * float * float  │

00:03:15 #23733 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure139()           │

00:03:15 #23734 [Verbose] > │     let v3 : US1 = US1_0(63, v2)                                             │

00:03:15 #23735 [Verbose] > │     let v4 : (struct (float * float * float * float * float * float * float  │

00:03:15 #23736 [Verbose] > │ * float * float) -> (struct (float * float * float * float * float * float * │

00:03:15 #23737 [Verbose] > │ float * float * float) -> struct (float * float * float))) = closure140()    │

00:03:15 #23738 [Verbose] > │     let v5 : US1 = US1_1(0, 1, v4)                                           │

00:03:15 #23739 [Verbose] > │     let v6 : US1 = US1_1(1, 2, v4)                                           │

00:03:15 #23740 [Verbose] > │     let v7 : US1 = US1_1(2, 3, v4)                                           │

00:03:15 #23741 [Verbose] > │     let v8 : US1 = US1_1(3, 4, v4)                                           │

00:03:15 #23742 [Verbose] > │     let v9 : US1 = US1_1(4, 5, v4)                                           │

00:03:15 #23743 [Verbose] > │     let v10 : US1 = US1_1(5, 6, v4)                                          │

00:03:15 #23744 [Verbose] > │     let v11 : US1 = US1_1(6, 7, v4)                                          │

00:03:15 #23745 [Verbose] > │     let v12 : US1 = US1_1(7, 8, v4)                                          │

00:03:15 #23746 [Verbose] > │     let v13 : US1 = US1_1(8, 9, v4)                                          │

00:03:15 #23747 [Verbose] > │     let v14 : US1 = US1_1(9, 10, v4)                                         │

00:03:15 #23748 [Verbose] > │     let v15 : US1 = US1_1(10, 11, v4)                                        │

00:03:15 #23749 [Verbose] > │     let v16 : US1 = US1_1(11, 12, v4)                                        │

00:03:15 #23750 [Verbose] > │     let v17 : US1 = US1_1(12, 13, v4)                                        │

00:03:15 #23751 [Verbose] > │     let v18 : US1 = US1_1(13, 14, v4)                                        │

00:03:15 #23752 [Verbose] > │     let v19 : US1 = US1_1(14, 15, v4)                                        │

00:03:15 #23753 [Verbose] > │     let v20 : US1 = US1_1(15, 16, v4)                                        │

00:03:15 #23754 [Verbose] > │     let v21 : US1 = US1_1(16, 17, v4)                                        │

00:03:15 #23755 [Verbose] > │     let v22 : US1 = US1_1(17, 18, v4)                                        │

00:03:15 #23756 [Verbose] > │     let v23 : US1 = US1_1(18, 19, v4)                                        │

00:03:15 #23757 [Verbose] > │     let v24 : US1 = US1_1(19, 20, v4)                                        │

00:03:15 #23758 [Verbose] > │     let v25 : US1 = US1_1(20, 21, v4)                                        │

00:03:15 #23759 [Verbose] > │     let v26 : US1 = US1_1(21, 22, v4)                                        │

00:03:15 #23760 [Verbose] > │     let v27 : US1 = US1_1(22, 23, v4)                                        │

00:03:15 #23761 [Verbose] > │     let v28 : US1 = US1_1(23, 24, v4)                                        │

00:03:15 #23762 [Verbose] > │     let v29 : US1 = US1_1(24, 25, v4)                                        │

00:03:15 #23763 [Verbose] > │     let v30 : US1 = US1_1(25, 26, v4)                                        │

00:03:15 #23764 [Verbose] > │     let v31 : US1 = US1_1(26, 27, v4)                                        │

00:03:15 #23765 [Verbose] > │     let v32 : US1 = US1_1(27, 28, v4)                                        │

00:03:15 #23766 [Verbose] > │     let v33 : US1 = US1_1(28, 29, v4)                                        │

00:03:15 #23767 [Verbose] > │     let v34 : US1 = US1_1(29, 30, v4)                                        │

00:03:15 #23768 [Verbose] > │     let v35 : US1 = US1_1(30, 31, v4)                                        │

00:03:15 #23769 [Verbose] > │     let v36 : US1 = US1_1(31, 32, v4)                                        │

00:03:15 #23770 [Verbose] > │     let v37 : US1 = US1_1(32, 33, v4)                                        │

00:03:15 #23771 [Verbose] > │     let v38 : US1 = US1_1(33, 34, v4)                                        │

00:03:15 #23772 [Verbose] > │     let v39 : US1 = US1_1(34, 35, v4)                                        │

00:03:15 #23773 [Verbose] > │     let v40 : US1 = US1_1(35, 36, v4)                                        │

00:03:15 #23774 [Verbose] > │     let v41 : US1 = US1_1(36, 37, v4)                                        │

00:03:15 #23775 [Verbose] > │     let v42 : US1 = US1_1(37, 38, v4)                                        │

00:03:15 #23776 [Verbose] > │     let v43 : US1 = US1_1(38, 39, v4)                                        │

00:03:15 #23777 [Verbose] > │     let v44 : US1 = US1_1(39, 40, v4)                                        │

00:03:15 #23778 [Verbose] > │     let v45 : US1 = US1_1(40, 41, v4)                                        │

00:03:15 #23779 [Verbose] > │     let v46 : US1 = US1_1(41, 42, v4)                                        │

00:03:15 #23780 [Verbose] > │     let v47 : US1 = US1_1(42, 43, v4)                                        │

00:03:15 #23781 [Verbose] > │     let v48 : US1 = US1_1(43, 44, v4)                                        │

00:03:15 #23782 [Verbose] > │     let v49 : US1 = US1_1(44, 45, v4)                                        │

00:03:15 #23783 [Verbose] > │     let v50 : US1 = US1_1(45, 46, v4)                                        │

00:03:15 #23784 [Verbose] > │     let v51 : US1 = US1_1(46, 47, v4)                                        │

00:03:15 #23785 [Verbose] > │     let v52 : US1 = US1_1(47, 48, v4)                                        │

00:03:15 #23786 [Verbose] > │     let v53 : US1 = US1_1(48, 49, v4)                                        │

00:03:15 #23787 [Verbose] > │     let v54 : US1 = US1_1(49, 50, v4)                                        │

00:03:15 #23788 [Verbose] > │     let v55 : US1 = US1_1(50, 51, v4)                                        │

00:03:15 #23789 [Verbose] > │     let v56 : US1 = US1_1(51, 52, v4)                                        │

00:03:15 #23790 [Verbose] > │     let v57 : US1 = US1_1(52, 53, v4)                                        │

00:03:15 #23791 [Verbose] > │     let v58 : US1 = US1_1(53, 54, v4)                                        │

00:03:15 #23792 [Verbose] > │     let v59 : US1 = US1_1(54, 55, v4)                                        │

00:03:15 #23793 [Verbose] > │     let v60 : US1 = US1_1(55, 56, v4)                                        │

00:03:15 #23794 [Verbose] > │     let v61 : US1 = US1_1(56, 57, v4)                                        │

00:03:15 #23795 [Verbose] > │     let v62 : US1 = US1_1(57, 58, v4)                                        │

00:03:15 #23796 [Verbose] > │     let v63 : US1 = US1_1(58, 59, v4)                                        │

00:03:15 #23797 [Verbose] > │     let v64 : US1 = US1_1(59, 60, v4)                                        │

00:03:15 #23798 [Verbose] > │     let v65 : UH4 = UH4_1                                                    │

00:03:15 #23799 [Verbose] > │     let v66 : UH4 = UH4_0(v64, v65)                                          │

00:03:15 #23800 [Verbose] > │     let v67 : UH4 = UH4_0(v63, v66)                                          │

00:03:15 #23801 [Verbose] > │     let v68 : UH4 = UH4_0(v62, v67)                                          │

00:03:15 #23802 [Verbose] > │     let v69 : UH4 = UH4_0(v61, v68)                                          │

00:03:15 #23803 [Verbose] > │     let v70 : UH4 = UH4_0(v60, v69)                                          │

00:03:15 #23804 [Verbose] > │     let v71 : UH4 = UH4_0(v59, v70)                                          │

00:03:15 #23805 [Verbose] > │     let v72 : UH4 = UH4_0(v58, v71)                                          │

00:03:15 #23806 [Verbose] > │     let v73 : UH4 = UH4_0(v57, v72)                                          │

00:03:15 #23807 [Verbose] > │     let v74 : UH4 = UH4_0(v56, v73)                                          │

00:03:15 #23808 [Verbose] > │     let v75 : UH4 = UH4_0(v55, v74)                                          │

00:03:15 #23809 [Verbose] > │     let v76 : UH4 = UH4_0(v54, v75)                                          │

00:03:15 #23810 [Verbose] > │     let v77 : UH4 = UH4_0(v53, v76)                                          │

00:03:15 #23811 [Verbose] > │     let v78 : UH4 = UH4_0(v52, v77)                                          │

00:03:15 #23812 [Verbose] > │     let v79 : UH4 = UH4_0(v51, v78)                                          │

00:03:15 #23813 [Verbose] > │     let v80 : UH4 = UH4_0(v50, v79)                                          │

00:03:15 #23814 [Verbose] > │     let v81 : UH4 = UH4_0(v49, v80)                                          │

00:03:15 #23815 [Verbose] > │     let v82 : UH4 = UH4_0(v48, v81)                                          │

00:03:15 #23816 [Verbose] > │     let v83 : UH4 = UH4_0(v47, v82)                                          │

00:03:15 #23817 [Verbose] > │     let v84 : UH4 = UH4_0(v46, v83)                                          │

00:03:15 #23818 [Verbose] > │     let v85 : UH4 = UH4_0(v45, v84)                                          │

00:03:15 #23819 [Verbose] > │     let v86 : UH4 = UH4_0(v44, v85)                                          │

00:03:15 #23820 [Verbose] > │     let v87 : UH4 = UH4_0(v43, v86)                                          │

00:03:15 #23821 [Verbose] > │     let v88 : UH4 = UH4_0(v42, v87)                                          │

00:03:15 #23822 [Verbose] > │     let v89 : UH4 = UH4_0(v41, v88)                                          │

00:03:15 #23823 [Verbose] > │     let v90 : UH4 = UH4_0(v40, v89)                                          │

00:03:15 #23824 [Verbose] > │     let v91 : UH4 = UH4_0(v39, v90)                                          │

00:03:15 #23825 [Verbose] > │     let v92 : UH4 = UH4_0(v38, v91)                                          │

00:03:15 #23826 [Verbose] > │     let v93 : UH4 = UH4_0(v37, v92)                                          │

00:03:15 #23827 [Verbose] > │     let v94 : UH4 = UH4_0(v36, v93)                                          │

00:03:15 #23828 [Verbose] > │     let v95 : UH4 = UH4_0(v35, v94)                                          │

00:03:15 #23829 [Verbose] > │     let v96 : UH4 = UH4_0(v34, v95)                                          │

00:03:15 #23830 [Verbose] > │     let v97 : UH4 = UH4_0(v33, v96)                                          │

00:03:15 #23831 [Verbose] > │     let v98 : UH4 = UH4_0(v32, v97)                                          │

00:03:15 #23832 [Verbose] > │     let v99 : UH4 = UH4_0(v31, v98)                                          │

00:03:15 #23833 [Verbose] > │     let v100 : UH4 = UH4_0(v30, v99)                                         │

00:03:15 #23834 [Verbose] > │     let v101 : UH4 = UH4_0(v29, v100)                                        │

00:03:15 #23835 [Verbose] > │     let v102 : UH4 = UH4_0(v28, v101)                                        │

00:03:15 #23836 [Verbose] > │     let v103 : UH4 = UH4_0(v27, v102)                                        │

00:03:15 #23837 [Verbose] > │     let v104 : UH4 = UH4_0(v26, v103)                                        │

00:03:15 #23838 [Verbose] > │     let v105 : UH4 = UH4_0(v25, v104)                                        │

00:03:15 #23839 [Verbose] > │     let v106 : UH4 = UH4_0(v24, v105)                                        │

00:03:15 #23840 [Verbose] > │     let v107 : UH4 = UH4_0(v23, v106)                                        │

00:03:15 #23841 [Verbose] > │     let v108 : UH4 = UH4_0(v22, v107)                                        │

00:03:15 #23842 [Verbose] > │     let v109 : UH4 = UH4_0(v21, v108)                                        │

00:03:15 #23843 [Verbose] > │     let v110 : UH4 = UH4_0(v20, v109)                                        │

00:03:15 #23844 [Verbose] > │     let v111 : UH4 = UH4_0(v19, v110)                                        │

00:03:15 #23845 [Verbose] > │     let v112 : UH4 = UH4_0(v18, v111)                                        │

00:03:15 #23846 [Verbose] > │     let v113 : UH4 = UH4_0(v17, v112)                                        │

00:03:15 #23847 [Verbose] > │     let v114 : UH4 = UH4_0(v16, v113)                                        │

00:03:15 #23848 [Verbose] > │     let v115 : UH4 = UH4_0(v15, v114)                                        │

00:03:15 #23849 [Verbose] > │     let v116 : UH4 = UH4_0(v14, v115)                                        │

00:03:15 #23850 [Verbose] > │     let v117 : UH4 = UH4_0(v13, v116)                                        │

00:03:15 #23851 [Verbose] > │     let v118 : UH4 = UH4_0(v12, v117)                                        │

00:03:15 #23852 [Verbose] > │     let v119 : UH4 = UH4_0(v11, v118)                                        │

00:03:15 #23853 [Verbose] > │     let v120 : UH4 = UH4_0(v10, v119)                                        │

00:03:15 #23854 [Verbose] > │     let v121 : UH4 = UH4_0(v9, v120)                                         │

00:03:15 #23855 [Verbose] > │     let v122 : UH4 = UH4_0(v8, v121)                                         │

00:03:15 #23856 [Verbose] > │     let v123 : UH4 = UH4_0(v7, v122)                                         │

00:03:15 #23857 [Verbose] > │     let v124 : UH4 = UH4_0(v6, v123)                                         │

00:03:15 #23858 [Verbose] > │     let v125 : UH4 = UH4_0(v5, v124)                                         │

00:03:15 #23859 [Verbose] > │     let v126 : UH4 = UH4_0(v3, v125)                                         │

00:03:15 #23860 [Verbose] > │     UH4_0(v1, v126)                                                          │

00:03:15 #23861 [Verbose] > │ and closure143 (v0 : UH5) () : UH5 =                                         │

00:03:15 #23862 [Verbose] > │     v0                                                                       │

00:03:15 #23863 [Verbose] > │ and method5 (v0 : UH1, v1 : UH5, v2 : int32) : struct (UH5 * int32) =        │

00:03:15 #23864 [Verbose] > │     match v0 with                                                            │

00:03:15 #23865 [Verbose] > │     | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *)   │

00:03:15 #23866 [Verbose] > │         let v13 : int32 = v2 + 1                                             │

00:03:15 #23867 [Verbose] > │         let v14 : UH1 = v12 ()                                               │

00:03:15 #23868 [Verbose] > │         let v15 : (unit -> UH5) = closure143(v1)                             │

00:03:15 #23869 [Verbose] > │         let v16 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │

00:03:15 #23870 [Verbose] > │         method5(v14, v16, v13)                                               │

00:03:15 #23871 [Verbose] > │     | UH1_1 -> (* StreamNil *)                                               │

00:03:15 #23872 [Verbose] > │         struct (v1, v2)                                                      │

00:03:15 #23873 [Verbose] > │ and closure144 (v0 : UH5) () : UH5 =                                         │

00:03:15 #23874 [Verbose] > │     v0                                                                       │

00:03:15 #23875 [Verbose] > │ and method6 (v0 : UH5, v1 : UH5) : UH5 =                                     │

00:03:15 #23876 [Verbose] > │     match v0 with                                                            │

00:03:15 #23877 [Verbose] > │     | UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons  │

00:03:15 #23878 [Verbose] > │ *)                                                                           │

00:03:15 #23879 [Verbose] > │         let v13 : UH5 = v12 ()                                               │

00:03:15 #23880 [Verbose] > │         let v14 : (unit -> UH5) = closure144(v1)                             │

00:03:15 #23881 [Verbose] > │         let v15 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │

00:03:15 #23882 [Verbose] > │         method6(v13, v15)                                                    │

00:03:15 #23883 [Verbose] > │     | UH5_1 -> (* StreamNil *)                                               │

00:03:15 #23884 [Verbose] > │         v1                                                                   │

00:03:15 #23885 [Verbose] > │ and closure145 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:03:15 #23886 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:03:15 #23887 [Verbose] > │ float * float) =                                                             │

00:03:15 #23888 [Verbose] > │     struct (0.0, 0.0, 0.0)                                                   │

00:03:15 #23889 [Verbose] > │ and method9 (v0 : int32, v1 : UH1) : US3 =                                   │

00:03:15 #23890 [Verbose] > │     match v1 with                                                            │

00:03:15 #23891 [Verbose] > │     | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:03:15 #23892 [Verbose] > │         let v12 : bool = v0 <= 0                                             │

00:03:15 #23893 [Verbose] > │         if v12 then                                                          │

00:03:15 #23894 [Verbose] > │             US3_1(v2, v3, v4, v5, v6, v7, v8, v9, v10)                       │

00:03:15 #23895 [Verbose] > │         else                                                                 │

00:03:15 #23896 [Verbose] > │             let v14 : int32 = v0 - 1                                         │

00:03:15 #23897 [Verbose] > │             let v15 : UH1 = v11 ()                                           │

00:03:15 #23898 [Verbose] > │             method9(v14, v15)                                                │

00:03:15 #23899 [Verbose] > │     | UH1_1 -> (* StreamNil *)                                               │

00:03:15 #23900 [Verbose] > │         US3_0                                                                │

00:03:15 #23901 [Verbose] > │ and closure146 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:03:15 #23902 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:03:15 #23903 [Verbose] > │ float * float) =                                                             │

00:03:15 #23904 [Verbose] > │     struct (0.0, 0.0, 0.0)                                                   │

00:03:15 #23905 [Verbose] > │ and method8 (v0 : int32, v1 : UH1, v2 : UH4, v3 : UH6) : UH6 =               │

00:03:15 #23906 [Verbose] > │     match v2 with                                                            │

00:03:15 #23907 [Verbose] > │     | UH4_0(v4, v5) -> (* Cons *)                                            │

00:03:15 #23908 [Verbose] > │         let v6 : UH6 = method8(v0, v1, v5, v3)                               │

00:03:15 #23909 [Verbose] > │         let v55 : (struct (float * float * float * float * float * float *   │

00:03:15 #23910 [Verbose] > │ float * float * float) -> struct (float * float * float)) =                  │

00:03:15 #23911 [Verbose] > │             match v4 with                                                    │

00:03:15 #23912 [Verbose] > │             | US1_0(v7, v8) -> (* ExternalForce *)                           │

00:03:15 #23913 [Verbose] > │                 let v9 : bool = v0 = v7                                      │

00:03:15 #23914 [Verbose] > │                 if v9 then                                                   │

00:03:15 #23915 [Verbose] > │                     v8                                                       │

00:03:15 #23916 [Verbose] > │                 else                                                         │

00:03:15 #23917 [Verbose] > │                     closure145()                                             │

00:03:15 #23918 [Verbose] > │             | US1_1(v12, v13, v14) -> (* InternalForce *)                    │

00:03:15 #23919 [Verbose] > │                 let v15 : bool = v0 = v12                                    │

00:03:15 #23920 [Verbose] > │                 let v49 : US2 =                                              │

00:03:15 #23921 [Verbose] > │                     if v15 then                                              │

00:03:15 #23922 [Verbose] > │                         let v16 : US3 = method9(v13, v1)                     │

00:03:15 #23923 [Verbose] > │                         match v16 with                                       │

00:03:15 #23924 [Verbose] > │                         | US3_0 -> (* None *)                                │

00:03:15 #23925 [Verbose] > │                             US2_0                                            │

00:03:15 #23926 [Verbose] > │                         | US3_1(v17, v18, v19, v20, v21, v22, v23, v24, v25) │

00:03:15 #23927 [Verbose] > │ -> (* Some *)                                                                │

00:03:15 #23928 [Verbose] > │                             let v26 : (struct (float * float * float * float │

00:03:15 #23929 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float))  │

00:03:15 #23930 [Verbose] > │ = v14 struct (v17, v18, v19, v20, v21, v22, v23, v24, v25)                   │

00:03:15 #23931 [Verbose] > │                             US2_1(v26)                                       │

00:03:15 #23932 [Verbose] > │                     else                                                     │

00:03:15 #23933 [Verbose] > │                         let v31 : bool = v0 = v13                            │

00:03:15 #23934 [Verbose] > │                         if v31 then                                          │

00:03:15 #23935 [Verbose] > │                             let v32 : US3 = method9(v12, v1)                 │

00:03:15 #23936 [Verbose] > │                             match v32 with                                   │

00:03:15 #23937 [Verbose] > │                             | US3_0 -> (* None *)                            │

00:03:15 #23938 [Verbose] > │                                 US2_0                                        │

00:03:15 #23939 [Verbose] > │                             | US3_1(v33, v34, v35, v36, v37, v38, v39, v40,  │

00:03:15 #23940 [Verbose] > │ v41) -> (* Some *)                                                           │

00:03:15 #23941 [Verbose] > │                                 let v42 : (struct (float * float * float *   │

00:03:15 #23942 [Verbose] > │ float * float * float * float * float * float) -> struct (float * float *    │

00:03:15 #23943 [Verbose] > │ float)) = v14 struct (v33, v34, v35, v36, v37, v38, v39, v40, v41)           │

00:03:15 #23944 [Verbose] > │                                 US2_1(v42)                                   │

00:03:15 #23945 [Verbose] > │                         else                                                 │

00:03:15 #23946 [Verbose] > │                             US2_0                                            │

00:03:15 #23947 [Verbose] > │                 match v49 with                                               │

00:03:15 #23948 [Verbose] > │                 | US2_0 -> (* None *)                                        │

00:03:15 #23949 [Verbose] > │                     closure146()                                             │

00:03:15 #23950 [Verbose] > │                 | US2_1(v50) -> (* Some *)                                   │

00:03:15 #23951 [Verbose] > │                     v50                                                      │

00:03:15 #23952 [Verbose] > │         UH6_0(v55, v6)                                                       │

00:03:15 #23953 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:03:15 #23954 [Verbose] > │         v3                                                                   │

00:03:15 #23955 [Verbose] > │ and method10 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │

00:03:15 #23956 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : UH6, v10 : UH7) : UH7 =    │

00:03:15 #23957 [Verbose] > │     match v9 with                                                            │

00:03:15 #23958 [Verbose] > │     | UH6_0(v11, v12) -> (* Cons *)                                          │

00:03:15 #23959 [Verbose] > │         let v13 : UH7 = method10(v0, v1, v2, v3, v4, v5, v6, v7, v8, v12,    │

00:03:15 #23960 [Verbose] > │ v10)                                                                         │

00:03:15 #23961 [Verbose] > │         let struct (v14 : float, v15 : float, v16 : float) = v11 struct (v0, │

00:03:15 #23962 [Verbose] > │ v1, v2, v3, v4, v5, v6, v7, v8)                                              │

00:03:15 #23963 [Verbose] > │         UH7_0(v14, v15, v16, v13)                                            │

00:03:15 #23964 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:03:15 #23965 [Verbose] > │         v10                                                                  │

00:03:15 #23966 [Verbose] > │ and method11 (v0 : UH7, v1 : float, v2 : float, v3 : float) : struct (float  │

00:03:15 #23967 [Verbose] > │ * float * float) =                                                           │

00:03:15 #23968 [Verbose] > │     match v0 with                                                            │

00:03:15 #23969 [Verbose] > │     | UH7_0(v4, v5, v6, v7) -> (* Cons *)                                    │

00:03:15 #23970 [Verbose] > │         let v8 : float = v1 + v4                                             │

00:03:15 #23971 [Verbose] > │         let v9 : float = v2 + v5                                             │

00:03:15 #23972 [Verbose] > │         let v10 : float = v3 + v6                                            │

00:03:15 #23973 [Verbose] > │         method11(v7, v8, v9, v10)                                            │

00:03:15 #23974 [Verbose] > │     | UH7_1 -> (* Nil *)                                                     │

00:03:15 #23975 [Verbose] > │         struct (v1, v2, v3)                                                  │

00:03:15 #23976 [Verbose] > │ and closure147 (v0 : UH3) () : UH3 =                                         │

00:03:15 #23977 [Verbose] > │     v0                                                                       │

00:03:15 #23978 [Verbose] > │ and method7 (v0 : UH4, v1 : UH1, v2 : UH5, v3 : UH3) : UH3 =                 │

00:03:15 #23979 [Verbose] > │     match v2 with                                                            │

00:03:15 #23980 [Verbose] > │     | UH5_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (*           │

00:03:15 #23981 [Verbose] > │ StreamCons *)                                                                │

00:03:15 #23982 [Verbose] > │         let v15 : UH5 = v14 ()                                               │

00:03:15 #23983 [Verbose] > │         let v16 : UH3 = method7(v0, v1, v15, v3)                             │

00:03:15 #23984 [Verbose] > │         let v17 : UH6 = UH6_1                                                │

00:03:15 #23985 [Verbose] > │         let v18 : UH6 = method8(v4, v1, v0, v17)                             │

00:03:15 #23986 [Verbose] > │         let v19 : UH7 = UH7_1                                                │

00:03:15 #23987 [Verbose] > │         let v20 : UH7 = method10(v5, v6, v7, v8, v9, v10, v11, v12, v13,     │

00:03:15 #23988 [Verbose] > │ v18, v19)                                                                    │

00:03:15 #23989 [Verbose] > │         let v21 : float = 0.0                                                │

00:03:15 #23990 [Verbose] > │         let v22 : float = 0.0                                                │

00:03:15 #23991 [Verbose] > │         let v23 : float = 0.0                                                │

00:03:15 #23992 [Verbose] > │         let struct (v24 : float, v25 : float, v26 : float) = method11(v20,   │

00:03:15 #23993 [Verbose] > │ v21, v22, v23)                                                               │

00:03:15 #23994 [Verbose] > │         let v27 : float = v24 / v6                                           │

00:03:15 #23995 [Verbose] > │         let v28 : float = v25 / v6                                           │

00:03:15 #23996 [Verbose] > │         let v29 : float = v26 / v6                                           │

00:03:15 #23997 [Verbose] > │         let v30 : (unit -> UH3) = closure147(v16)                            │

00:03:15 #23998 [Verbose] > │         UH3_0(0.0, 0.0, v11, v12, v13, 1.0, v27, v28, v29, v30)              │

00:03:15 #23999 [Verbose] > │     | UH5_1 -> (* StreamNil *)                                               │

00:03:15 #24000 [Verbose] > │         v3                                                                   │

00:03:15 #24001 [Verbose] > │ and closure142 (v0 : UH4) (v1 : UH1) : UH3 =                                 │

00:03:15 #24002 [Verbose] > │     let v2 : UH5 = UH5_1                                                     │

00:03:15 #24003 [Verbose] > │     let v3 : int32 = 0                                                       │

00:03:15 #24004 [Verbose] > │     let struct (v4 : UH5, v5 : int32) = method5(v1, v2, v3)                  │

00:03:15 #24005 [Verbose] > │     let v6 : UH5 = UH5_1                                                     │

00:03:15 #24006 [Verbose] > │     let v7 : UH5 = method6(v4, v6)                                           │

00:03:15 #24007 [Verbose] > │     let v8 : UH3 = UH3_1                                                     │

00:03:15 #24008 [Verbose] > │     let v9 : UH3 = method7(v0, v1, v7, v8)                                   │

00:03:15 #24009 [Verbose] > │     v9                                                                       │

00:03:15 #24010 [Verbose] > │ and closure148 (v0 : (UH1 -> UH1), v1 : UH1, v2 : UH1) () : UH8 =            │

00:03:15 #24011 [Verbose] > │     let v3 : UH1 = v0 v2                                                     │

00:03:15 #24012 [Verbose] > │     let v4 : (unit -> UH8) = closure148(v0, v1, v3)                          │

00:03:15 #24013 [Verbose] > │     UH8_0(v2, v4)                                                            │

00:03:15 #24014 [Verbose] > │ and method12 (v0 : float, v1 : UH8) : US4 =                                  │

00:03:15 #24015 [Verbose] > │     match v1 with                                                            │

00:03:15 #24016 [Verbose] > │     | UH8_0(v2, v3) -> (* StreamCons *)                                      │

00:03:15 #24017 [Verbose] > │         let v4 : bool = v0 <= 0.0                                            │

00:03:15 #24018 [Verbose] > │         if v4 then                                                           │

00:03:15 #24019 [Verbose] > │             US4_1(v2)                                                        │

00:03:15 #24020 [Verbose] > │         else                                                                 │

00:03:15 #24021 [Verbose] > │             let v6 : float = v0 - 1.0                                        │

00:03:15 #24022 [Verbose] > │             let v7 : UH8 = v3 ()                                             │

00:03:15 #24023 [Verbose] > │             method12(v6, v7)                                                 │

00:03:15 #24024 [Verbose] > │     | UH8_1 -> (* StreamNil *)                                               │

00:03:15 #24025 [Verbose] > │         US4_0                                                                │

00:03:15 #24026 [Verbose] > │ and closure149 (v0 : UH9) () : UH9 =                                         │

00:03:15 #24027 [Verbose] > │     v0                                                                       │

00:03:15 #24028 [Verbose] > │ and method13 (v0 : UH1, v1 : UH9) : UH9 =                                    │

00:03:15 #24029 [Verbose] > │     match v0 with                                                            │

00:03:15 #24030 [Verbose] > │     | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:03:15 #24031 [Verbose] > │         let v12 : UH1 = v11 ()                                               │

00:03:15 #24032 [Verbose] > │         let v13 : UH9 = method13(v12, v1)                                    │

00:03:15 #24033 [Verbose] > │         let v14 : (unit -> UH9) = closure149(v13)                            │

00:03:15 #24034 [Verbose] > │         UH9_0(v4, v5, v6, v14)                                               │

00:03:15 #24035 [Verbose] > │     | UH1_1 -> (* StreamNil *)                                               │

00:03:15 #24036 [Verbose] > │         v1                                                                   │

00:03:15 #24037 [Verbose] > │ and method14 (v0 : UH9, v1 : UH7) : UH7 =                                    │

00:03:15 #24038 [Verbose] > │     match v0 with                                                            │

00:03:15 #24039 [Verbose] > │     | UH9_0(v2, v3, v4, v5) -> (* StreamCons *)                              │

00:03:15 #24040 [Verbose] > │         let v6 : UH9 = v5 ()                                                 │

00:03:15 #24041 [Verbose] > │         let v7 : UH7 = method14(v6, v1)                                      │

00:03:15 #24042 [Verbose] > │         UH7_0(v2, v3, v4, v7)                                                │

00:03:15 #24043 [Verbose] > │     | UH9_1 -> (* StreamNil *)                                               │

00:03:15 #24044 [Verbose] > │         v1                                                                   │

00:03:15 #24045 [Verbose] > │ and method15 (v0 : UH7, v1 : UH7) : UH7 =                                    │

00:03:15 #24046 [Verbose] > │     match v0 with                                                            │

00:03:15 #24047 [Verbose] > │     | UH7_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:03:15 #24048 [Verbose] > │         let v6 : UH7 = method15(v5, v1)                                      │

00:03:15 #24049 [Verbose] > │         UH7_0(v2, v3, v4, v6)                                                │

00:03:15 #24050 [Verbose] > │     | UH7_1 -> (* Nil *)                                                     │

00:03:15 #24051 [Verbose] > │         v1                                                                   │

00:03:15 #24052 [Verbose] > │ and method16 (v0 : UH7, v1 : UH10) : UH10 =                                  │

00:03:15 #24053 [Verbose] > │     match v0 with                                                            │

00:03:15 #24054 [Verbose] > │     | UH7_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:03:15 #24055 [Verbose] > │         let v6 : UH10 = method16(v5, v1)                                     │

00:03:15 #24056 [Verbose] > │         UH10_0(v2, v3, v6)                                                   │

00:03:15 #24057 [Verbose] > │     | UH7_1 -> (* Nil *)                                                     │

00:03:15 #24058 [Verbose] > │         v1                                                                   │

00:03:15 #24059 [Verbose] > │ and closure150 (v0 : UH11) () : UH11 =                                       │

00:03:15 #24060 [Verbose] > │     v0                                                                       │

00:03:15 #24061 [Verbose] > │ and method17 (v0 : UH10, v1 : UH11) : UH11 =                                 │

00:03:15 #24062 [Verbose] > │     match v0 with                                                            │

00:03:15 #24063 [Verbose] > │     | UH10_0(v2, v3, v4) -> (* Cons *)                                       │

00:03:15 #24064 [Verbose] > │         let v5 : UH11 = method17(v4, v1)                                     │

00:03:15 #24065 [Verbose] > │         let v6 : (unit -> UH11) = closure150(v5)                             │

00:03:15 #24066 [Verbose] > │         UH11_0(v2, v3, v6)                                                   │

00:03:15 #24067 [Verbose] > │     | UH10_1 -> (* Nil *)                                                    │

00:03:15 #24068 [Verbose] > │         v1                                                                   │

00:03:15 #24069 [Verbose] > │ and closure151 (v0 : UH0) () : UH0 =                                         │

00:03:15 #24070 [Verbose] > │     v0                                                                       │

00:03:15 #24071 [Verbose] > │ and closure152 (v0 : UH0) () : UH0 =                                         │

00:03:15 #24072 [Verbose] > │     v0                                                                       │

00:03:15 #24073 [Verbose] > │ and method18 (v0 : UH11) : struct (UH0 * UH0) =                              │

00:03:15 #24074 [Verbose] > │     match v0 with                                                            │

00:03:15 #24075 [Verbose] > │     | UH11_0(v1, v2, v3) -> (* StreamCons *)                                 │

00:03:15 #24076 [Verbose] > │         let v4 : UH11 = v3 ()                                                │

00:03:15 #24077 [Verbose] > │         let struct (v5 : UH0, v6 : UH0) = method18(v4)                       │

00:03:15 #24078 [Verbose] > │         let v7 : (unit -> UH0) = closure151(v5)                              │

00:03:15 #24079 [Verbose] > │         let v8 : UH0 = UH0_0(v1, v7)                                         │

00:03:15 #24080 [Verbose] > │         let v9 : (unit -> UH0) = closure152(v6)                              │

00:03:15 #24081 [Verbose] > │         let v10 : UH0 = UH0_0(v2, v9)                                        │

00:03:15 #24082 [Verbose] > │         struct (v8, v10)                                                     │

00:03:15 #24083 [Verbose] > │     | UH11_1 -> (* StreamNil *)                                              │

00:03:15 #24084 [Verbose] > │         let v11 : UH0 = UH0_1                                                │

00:03:15 #24085 [Verbose] > │         let v12 : UH0 = UH0_1                                                │

00:03:15 #24086 [Verbose] > │         struct (v11, v12)                                                    │

00:03:15 #24087 [Verbose] > │ and method19 (v0 : UH0, v1 : UH12) : UH12 =                                  │

00:03:15 #24088 [Verbose] > │     match v0 with                                                            │

00:03:15 #24089 [Verbose] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:03:15 #24090 [Verbose] > │         let v4 : UH0 = v3 ()                                                 │

00:03:15 #24091 [Verbose] > │         let v5 : UH12 = method19(v4, v1)                                     │

00:03:15 #24092 [Verbose] > │         UH12_0(v2, v5)                                                       │

00:03:15 #24093 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:03:15 #24094 [Verbose] > │         v1                                                                   │

00:03:15 #24095 [Verbose] > │ and method21 (v0 : UH12, v1 : int32) : int32 =                               │

00:03:15 #24096 [Verbose] > │     match v0 with                                                            │

00:03:15 #24097 [Verbose] > │     | UH12_0(v2, v3) -> (* Cons *)                                           │

00:03:15 #24098 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:03:15 #24099 [Verbose] > │         method21(v3, v4)                                                     │

00:03:15 #24100 [Verbose] > │     | UH12_1 -> (* Nil *)                                                    │

00:03:15 #24101 [Verbose] > │         v1                                                                   │

00:03:15 #24102 [Verbose] > │ and method22 (v0 : (float []), v1 : UH12, v2 : int32) : int32 =              │

00:03:15 #24103 [Verbose] > │     match v1 with                                                            │

00:03:15 #24104 [Verbose] > │     | UH12_0(v3, v4) -> (* Cons *)                                           │

00:03:15 #24105 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:03:15 #24106 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:03:15 #24107 [Verbose] > │         method22(v0, v4, v5)                                                 │

00:03:15 #24108 [Verbose] > │     | UH12_1 -> (* Nil *)                                                    │

00:03:15 #24109 [Verbose] > │         v2                                                                   │

00:03:15 #24110 [Verbose] > │ and method20 (v0 : UH12) : (float []) =                                      │

00:03:15 #24111 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:15 #24112 [Verbose] > │     let v2 : int32 = method21(v0, v1)                                        │

00:03:15 #24113 [Verbose] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:03:15 #24114 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:15 #24115 [Verbose] > │     let v5 : int32 = method22(v3, v0, v4)                                    │

00:03:15 #24116 [Verbose] > │     v3                                                                       │

00:03:15 #24117 [Verbose] > │ and closure153 (v0 : UH2) () : UH2 =                                         │

00:03:15 #24118 [Verbose] > │     v0                                                                       │

00:03:15 #24119 [Verbose] > │ and method1 (v0 : UH1, v1 : UH0, v2 : UH2) : UH2 =                           │

00:03:15 #24120 [Verbose] > │     match v1 with                                                            │

00:03:15 #24121 [Verbose] > │     | UH0_0(v3, v4) -> (* StreamCons *)                                      │

00:03:15 #24122 [Verbose] > │         let v5 : UH0 = v4 ()                                                 │

00:03:15 #24123 [Verbose] > │         let v6 : UH2 = method1(v0, v5, v2)                                   │

00:03:15 #24124 [Verbose] > │         let v7 : ((UH1 -> UH3) -> (UH1 -> UH1)) = method2()                  │

00:03:15 #24125 [Verbose] > │         let v8 : UH4 = method4()                                             │

00:03:15 #24126 [Verbose] > │         let v9 : (UH1 -> UH3) = closure142(v8)                               │

00:03:15 #24127 [Verbose] > │         let v10 : (UH1 -> UH1) = v7 v9                                       │

00:03:15 #24128 [Verbose] > │         let v11 : UH1 = v10 v0                                               │

00:03:15 #24129 [Verbose] > │         let v12 : (unit -> UH8) = closure148(v10, v0, v11)                   │

00:03:15 #24130 [Verbose] > │         let v13 : UH8 = UH8_0(v0, v12)                                       │

00:03:15 #24131 [Verbose] > │         let v14 : US4 = method12(v3, v13)                                    │

00:03:15 #24132 [Verbose] > │         let v18 : UH1 =                                                      │

00:03:15 #24133 [Verbose] > │             match v14 with                                                   │

00:03:15 #24134 [Verbose] > │             | US4_0 -> (* None *)                                            │

00:03:15 #24135 [Verbose] > │                 failwith<UH1> "Option does not have a value."                │

00:03:15 #24136 [Verbose] > │             | US4_1(v15) -> (* Some *)                                       │

00:03:15 #24137 [Verbose] > │                 v15                                                          │

00:03:15 #24138 [Verbose] > │         let v19 : UH9 = UH9_1                                                │

00:03:15 #24139 [Verbose] > │         let v20 : UH9 = method13(v18, v19)                                   │

00:03:15 #24140 [Verbose] > │         let v21 : UH7 = UH7_1                                                │

00:03:15 #24141 [Verbose] > │         let v22 : UH7 = method14(v20, v21)                                   │

00:03:15 #24142 [Verbose] > │         let v23 : float = 0.65                                               │

00:03:15 #24143 [Verbose] > │         let v24 : float = 0.0                                                │

00:03:15 #24144 [Verbose] > │         let v25 : float = 0.0                                                │

00:03:15 #24145 [Verbose] > │         let v26 : UH7 = UH7_1                                                │

00:03:15 #24146 [Verbose] > │         let v27 : UH7 = UH7_0(v23, v24, v25, v26)                            │

00:03:15 #24147 [Verbose] > │         let v28 : UH7 = method15(v22, v27)                                   │

00:03:15 #24148 [Verbose] > │         let v29 : UH10 = UH10_1                                              │

00:03:15 #24149 [Verbose] > │         let v30 : UH10 = method16(v28, v29)                                  │

00:03:15 #24150 [Verbose] > │         let v31 : UH11 = UH11_1                                              │

00:03:15 #24151 [Verbose] > │         let v32 : UH11 = method17(v30, v31)                                  │

00:03:15 #24152 [Verbose] > │         let struct (v33 : UH0, v34 : UH0) = method18(v32)                    │

00:03:15 #24153 [Verbose] > │         let v35 : UH12 = UH12_1                                              │

00:03:15 #24154 [Verbose] > │         let v36 : UH12 = method19(v33, v35)                                  │

00:03:15 #24155 [Verbose] > │         let v37 : float = 0.0                                                │

00:03:15 #24156 [Verbose] > │         let v38 : UH12 = UH12_0(v37, v36)                                    │

00:03:15 #24157 [Verbose] > │         let v39 : (float []) = method20(v38)                                 │

00:03:15 #24158 [Verbose] > │         let v40 : UH12 = UH12_1                                              │

00:03:15 #24159 [Verbose] > │         let v41 : UH12 = method19(v34, v40)                                  │

00:03:15 #24160 [Verbose] > │         let v42 : float = 0.0                                                │

00:03:15 #24161 [Verbose] > │         let v43 : UH12 = UH12_0(v42, v41)                                    │

00:03:15 #24162 [Verbose] > │         let v44 : (float []) = method20(v43)                                 │

00:03:15 #24163 [Verbose] > │         let v45 : (unit -> UH2) = closure153(v6)                             │

00:03:15 #24164 [Verbose] > │         UH2_0(v39, v44, v45)                                                 │

00:03:15 #24165 [Verbose] > │     | UH0_1 -> (* StreamNil *)                                               │

00:03:15 #24166 [Verbose] > │         v2                                                                   │

00:03:15 #24167 [Verbose] > │ and closure154 (v0 : UH13) () : UH13 =                                       │

00:03:15 #24168 [Verbose] > │     v0                                                                       │

00:03:15 #24169 [Verbose] > │ and method23 (v0 : UH2, v1 : UH13, v2 : int32) : struct (UH13 * int32) =     │

00:03:15 #24170 [Verbose] > │     match v0 with                                                            │

00:03:15 #24171 [Verbose] > │     | UH2_0(v3, v4, v5) -> (* StreamCons *)                                  │

00:03:15 #24172 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:03:15 #24173 [Verbose] > │         let v7 : UH2 = v5 ()                                                 │

00:03:15 #24174 [Verbose] > │         let v8 : (unit -> UH13) = closure154(v1)                             │

00:03:15 #24175 [Verbose] > │         let v9 : UH13 = UH13_0(v2, v3, v4, v8)                               │

00:03:15 #24176 [Verbose] > │         method23(v7, v9, v6)                                                 │

00:03:15 #24177 [Verbose] > │     | UH2_1 -> (* StreamNil *)                                               │

00:03:15 #24178 [Verbose] > │         struct (v1, v2)                                                      │

00:03:15 #24179 [Verbose] > │ and closure155 (v0 : UH13) () : UH13 =                                       │

00:03:15 #24180 [Verbose] > │     v0                                                                       │

00:03:15 #24181 [Verbose] > │ and method24 (v0 : UH13, v1 : UH13) : UH13 =                                 │

00:03:15 #24182 [Verbose] > │     match v0 with                                                            │

00:03:15 #24183 [Verbose] > │     | UH13_0(v2, v3, v4, v5) -> (* StreamCons *)                             │

00:03:15 #24184 [Verbose] > │         let v6 : UH13 = v5 ()                                                │

00:03:15 #24185 [Verbose] > │         let v7 : (unit -> UH13) = closure155(v1)                             │

00:03:15 #24186 [Verbose] > │         let v8 : UH13 = UH13_0(v2, v3, v4, v7)                               │

00:03:15 #24187 [Verbose] > │         method24(v6, v8)                                                     │

00:03:15 #24188 [Verbose] > │     | UH13_1 -> (* StreamNil *)                                              │

00:03:15 #24189 [Verbose] > │         v1                                                                   │

00:03:15 #24190 [Verbose] > │ and method26 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │

00:03:15 #24191 [Verbose] > │ (string * (float []) * (float [])) []) =                                     │

00:03:15 #24192 [Verbose] > │     v0                                                                       │

00:03:15 #24193 [Verbose] > │ and closure156 (v0 : UH14) () : UH14 =                                       │

00:03:15 #24194 [Verbose] > │     v0                                                                       │

00:03:15 #24195 [Verbose] > │ and method25 (v0 : UH13, v1 : UH14) : UH14 =                                 │

00:03:15 #24196 [Verbose] > │     match v0 with                                                            │

00:03:15 #24197 [Verbose] > │     | UH13_0(v2, v3, v4, v5) -> (* StreamCons *)                             │

00:03:15 #24198 [Verbose] > │         let v6 : UH13 = v5 ()                                                │

00:03:15 #24199 [Verbose] > │         let v7 : UH14 = method25(v6, v1)                                     │

00:03:15 #24200 [Verbose] > │         let v8 : string = $"{v2}"                                            │

00:03:15 #24201 [Verbose] > │         let v9 : (struct (string * (float []) * (float [])) []) = [|struct   │

00:03:15 #24202 [Verbose] > │ (v8, v3, v4)|]                                                               │

00:03:15 #24203 [Verbose] > │         let v10 : (struct (string * (float []) * (float [])) []) =           │

00:03:15 #24204 [Verbose] > │ method26(v9)                                                                 │

00:03:15 #24205 [Verbose] > │         let v11 : string = "wave"                                            │

00:03:15 #24206 [Verbose] > │         let v12 : string = "position (m)"                                    │

00:03:15 #24207 [Verbose] > │         let v13 : string = "displacement (m)"                                │

00:03:15 #24208 [Verbose] > │         let v14 : (unit -> UH14) = closure156(v7)                            │

00:03:15 #24209 [Verbose] > │         UH14_0(v11, v12, v13, v10, v14)                                      │

00:03:15 #24210 [Verbose] > │     | UH13_1 -> (* StreamNil *)                                              │

00:03:15 #24211 [Verbose] > │         v1                                                                   │

00:03:15 #24212 [Verbose] > │ and method27 (v0 : UH14, v1 : UH15) : UH15 =                                 │

00:03:15 #24213 [Verbose] > │     match v0 with                                                            │

00:03:15 #24214 [Verbose] > │     | UH14_0(v2, v3, v4, v5, v6) -> (* StreamCons *)                         │

00:03:15 #24215 [Verbose] > │         let v7 : UH14 = v6 ()                                                │

00:03:15 #24216 [Verbose] > │         let v8 : UH15 = method27(v7, v1)                                     │

00:03:15 #24217 [Verbose] > │         UH15_0(v2, v3, v4, v5, v8)                                           │

00:03:15 #24218 [Verbose] > │     | UH14_1 -> (* StreamNil *)                                              │

00:03:15 #24219 [Verbose] > │         v1                                                                   │

00:03:15 #24220 [Verbose] > │ and method29 (v0 : UH15, v1 : int32) : int32 =                               │

00:03:15 #24221 [Verbose] > │     match v0 with                                                            │

00:03:15 #24222 [Verbose] > │     | UH15_0(v2, v3, v4, v5, v6) -> (* Cons *)                               │

00:03:15 #24223 [Verbose] > │         let v7 : int32 = v1 + 1                                              │

00:03:15 #24224 [Verbose] > │         method29(v6, v7)                                                     │

00:03:15 #24225 [Verbose] > │     | UH15_1 -> (* Nil *)                                                    │

00:03:15 #24226 [Verbose] > │         v1                                                                   │

00:03:15 #24227 [Verbose] > │ and method30 (v0 : (struct (string * string * string * (struct (string *     │

00:03:15 #24228 [Verbose] > │ (float []) * (float [])) [])) []), v1 : UH15, v2 : int32) : int32 =          │

00:03:15 #24229 [Verbose] > │     match v1 with                                                            │

00:03:15 #24230 [Verbose] > │     | UH15_0(v3, v4, v5, v6, v7) -> (* Cons *)                               │

00:03:15 #24231 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5, v6)                               │

00:03:15 #24232 [Verbose] > │         let v8 : int32 = v2 + 1                                              │

00:03:15 #24233 [Verbose] > │         method30(v0, v7, v8)                                                 │

00:03:15 #24234 [Verbose] > │     | UH15_1 -> (* Nil *)                                                    │

00:03:15 #24235 [Verbose] > │         v2                                                                   │

00:03:15 #24236 [Verbose] > │ and method28 (v0 : UH15) : (struct (string * string * string * (struct       │

00:03:15 #24237 [Verbose] > │ (string * (float []) * (float [])) [])) []) =                                │

00:03:15 #24238 [Verbose] > │     let v1 : int32 = 0                                                       │

00:03:15 #24239 [Verbose] > │     let v2 : int32 = method29(v0, v1)                                        │

00:03:15 #24240 [Verbose] > │     let v3 : (struct (string * string * string * (struct (string * (float [  │

00:03:15 #24241 [Verbose] > │ ]) * (float [])) [])) []) = Array.zeroCreate<struct (string * string *       │

00:03:15 #24242 [Verbose] > │ string * (struct (string * (float []) * (float [])) []))> (v2)               │

00:03:15 #24243 [Verbose] > │     let v4 : int32 = 0                                                       │

00:03:15 #24244 [Verbose] > │     let v5 : int32 = method30(v3, v0, v4)                                    │

00:03:15 #24245 [Verbose] > │     v3                                                                       │

00:03:15 #24246 [Verbose] > │ and method0 () : (struct (string * string * string * (struct (string *       │

00:03:15 #24247 [Verbose] > │ (float []) * (float [])) [])) []) =                                          │

00:03:15 #24248 [Verbose] > │     let v0 : float = 0.0                                                     │

00:03:15 #24249 [Verbose] > │     let v1 : (unit -> UH0) = closure0()                                      │

00:03:15 #24250 [Verbose] > │     let v2 : UH0 = UH0_0(v0, v1)                                             │

00:03:15 #24251 [Verbose] > │     let v3 : float = 0.0                                                     │

00:03:15 #24252 [Verbose] > │     let v4 : float = 8.422578125E-06                                         │

00:03:15 #24253 [Verbose] > │     let v5 : float = 0.01                                                    │

00:03:15 #24254 [Verbose] > │     let v6 : float = 0.0007224452478461068                                   │

00:03:15 #24255 [Verbose] > │     let v7 : float = 0.0                                                     │

00:03:15 #24256 [Verbose] > │     let v8 : float = 0.0                                                     │

00:03:15 #24257 [Verbose] > │     let v9 : float = 0.0                                                     │

00:03:15 #24258 [Verbose] > │     let v10 : float = 0.0                                                    │

00:03:15 #24259 [Verbose] > │     let v11 : float = 0.0                                                    │

00:03:15 #24260 [Verbose] > │     let v12 : (unit -> UH1) = closure66()                                    │

00:03:15 #24261 [Verbose] > │     let v13 : UH1 = UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12)         │

00:03:15 #24262 [Verbose] > │     let v14 : UH2 = UH2_1                                                    │

00:03:15 #24263 [Verbose] > │     let v15 : UH2 = method1(v13, v2, v14)                                    │

00:03:15 #24264 [Verbose] > │     let v16 : UH13 = UH13_1                                                  │

00:03:15 #24265 [Verbose] > │     let v17 : int32 = 0                                                      │

00:03:15 #24266 [Verbose] > │     let struct (v18 : UH13, v19 : int32) = method23(v15, v16, v17)           │

00:03:15 #24267 [Verbose] > │     let v20 : UH13 = UH13_1                                                  │

00:03:15 #24268 [Verbose] > │     let v21 : UH13 = method24(v18, v20)                                      │

00:03:15 #24269 [Verbose] > │     let v22 : UH14 = UH14_1                                                  │

00:03:15 #24270 [Verbose] > │     let v23 : UH14 = method25(v21, v22)                                      │

00:03:15 #24271 [Verbose] > │     let v24 : UH15 = UH15_1                                                  │

00:03:15 #24272 [Verbose] > │     let v25 : UH15 = method27(v23, v24)                                      │

00:03:15 #24273 [Verbose] > │     method28(v25)                                                            │

00:03:15 #24274 [Verbose] > │ method0()                                                                    │

00:03:15 #24275 [Verbose] > │                                                                              │

00:03:15 #24276 [Verbose] > │                                                                              │

00:03:15 #24277 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:15 #24278 [Verbose] >

00:03:15 #24279 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:03:15 #24280 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:03:15 #24281 [Verbose] > │ ## end                                                                       │

00:03:15 #24282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:03:17 #24283 [Verbose] > [NbConvertApp] Converting notebook physics.dib.ipynb to html

00:03:17 #24284 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:03:17 #24285 [Verbose] >   validate(nb)

00:03:18 #24286 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:03:18 #24287 [Verbose] >   return _pygments_highlight(

00:03:22 #24288 [Verbose] > [NbConvertApp] Writing 2735847 bytes to physics.dib.html

00:03:23 #24289 [Debug] executeAsync / exitCode: 0 / output.Length: 581906

00:03:23 #24290 [Debug] main / executeCommand / exitCode: 0

00:03:25 #24291 [Debug] runWithTimeoutAsync / timeout: 2000

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: guid.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: optionm'.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: common.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: testing.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: console.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: file_system.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: date_time.dib

00:00:00 #6 [Debug] parseDibCode / output: Spi / file: date_time.dib

00:00:00 #5 [Debug] parseDibCode / output: Spi / file: math.dib

00:00:00 #3 [Debug] parseDibCode / output: Spi / file: guid.dib

00:00:00 #8 [Debug] parseDibCode / output: Spi / file: testing.dib

00:00:00 #9 [Debug] parseDibCode / output: Spi / file: common.dib

00:00:00 #3 [Debug] parseDibCode / output: Spi / file: optionm'.dib

00:00:00 #8 [Debug] parseDibCode / output: Spi / file: file_system.dib

00:00:00 #4 [Debug] parseDibCode / output: Spi / file: console.dib

00:00:00 #11 [Debug] writeDibCode / output: Spi / path: seq.dib

00:00:00 #11 [Debug] writeDibCode / output: Spi / path: sm'.dib

00:00:00 #11 [Debug] writeDibCode / output: Spi / path: benchmark.dib

00:00:00 #11 [Debug] writeDibCode / output: Spi / path: am'.dib

00:00:00 #11 [Debug] writeDibCode / output: Spi / path: listm'.dib

00:00:00 #11 [Debug] writeDibCode / output: Spi / path: stream.dib

00:00:00 #12 [Debug] parseDibCode / output: Spi / file: seq.dib

00:00:00 #13 [Debug] parseDibCode / output: Spi / file: sm'.dib

00:00:00 #14 [Debug] parseDibCode / output: Spi / file: benchmark.dib

00:00:00 #15 [Debug] parseDibCode / output: Spi / file: am'.dib

00:00:00 #16 [Debug] parseDibCode / output: Spi / file: listm'.dib

00:00:00 #17 [Debug] parseDibCode / output: Spi / file: stream.dib

00:00:00 #18 [Debug] writeDibCode / output: Spi / path: util.dib

00:00:00 #19 [Debug] writeDibCode / output: Spi / path: rust.dib

00:00:00 #21 [Debug] parseDibCode / output: Spi / file: rust.dib

00:00:00 #20 [Debug] parseDibCode / output: Spi / file: util.dib

00:00:00 #22 [Debug] writeDibCode / output: Spi / path: physics.dib

00:00:00 #23 [Debug] parseDibCode / output: Spi / file: physics.dib

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@429-61> }

00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805

00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805

00:00:01 #13 [Debug] runWithTimeoutAsync / timeout: 60

00:00:01 #12 [Debug] runWithTimeoutAsync / timeout: 60

00:00:01 #12 [Debug] runWithTimeoutAsync / timeout: 60

00:00:01 #15 [Debug] runWithTimeoutAsync / timeout: 60

00:00:01 #14 [Debug] runWithTimeoutAsync / timeout: 60

00:00:01 #19 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #16 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #20 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #18 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #17 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #22 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #23 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #22 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #24 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #25 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #30 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # guid\n\n// // ## guid\n\nnominal guid = $\u0022System.Guid\u0022\n\n// // ## new_guid\n\ninl new_guid (x : string) : guid =\n    $\u0027\u0060guid !x \u0027\n\n// // ## new_raw_guid\n\ninl new_raw_guid () : guid =\n    $\u0022System.Guid.NewGuid ()\u0022\n\n// // ## main\n\ninl main () =\n    $\u0022let new_guid x = !new_guid x\u0022 : ()\n    $\u0022let new_raw_guid x = !new_raw_guid x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result.Length:

00:00:01 #27 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # file_system\n\nopen rust_operators\nopen sm\u0027_operators\n\n// // ## types\n\ninl types () =\n    ()\n\n// // ## (\u003C/\u003E)\n\ninl (\u003C/\u003E) (a : string) (b : string) : string =\n    $\u0027System.IO.Path.Combine (!a, !b)\u0027\n\n// // ## create_temp_directory_name\n\ninl create_temp_directory_name () =\n    run_target function\n        | Fsharp (Native) =\u003E fun () =\u003E\n            inl root = $\u0027System.Reflection.Assembly.GetEntryAssembly().GetName().Name\u0027 : string\n\n            ($\u0027System.IO.Path.GetTempPath\u0027 () : string)\n            \u003C/\u003E ($\u0027$\u0022{!root}\u0022\u0027 : string)\n            \u003C/\u003E (date_time.new_guid_from_date_time $\u0027System.DateTime.Now\u0027 |\u003E sm\u0027.obj_to_string)\n        | x =\u003E fun () =\u003E failwith $\u0027$\u0022create_temp_directory_name target: {!x}\u0022\u0027\n\n// // ## main\n\ninl main () =\n    $\u0022let create_temp_directory_name () = !create_temp_directory_name ()\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result.Length:

00:00:01 #26 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # common\n\n// // ## types\n\nnominal any = $\u0022obj\u0022\nnominal disposable = $\u0022System.IDisposable\u0022\nnominal exn = $\u0022exn\u0022\nnominal unativeint = $\u0022unativeint\u0022\n\nlet array x = x\n\ninl unativeint forall t {int}. (n : t) : unativeint =\n    $\u0022unativeint !n\u0022\n\n// // ## prototype\n\nprototype (~:\u003E) r : forall t. t -\u003E r\nprototype append t : t -\u003E t -\u003E t\nprototype of_string t : string -\u003E t\nprototype to_string t : t -\u003E string\n\n// // ## null\n\ninl null forall t. () : t =\n    $\u0022null |\u003E unbox\u003C\u0060t\u003E\u0022\n\ninl i32 forall t. (x : t) : i32 =\n    $\u0022int32 !x\u0022\n\ninl i64 forall t. (x : t) : i64 =\n    $\u0022int64 !x\u0022\n\ninl f32 forall t. (x : t) : f32 =\n    $\u0022float32 !x\u0022\n\ninl f64 forall t. (x : t) : f64 =\n    $\u0022float !x\u0022\n\n// // ## pair\n\ntype pair a b = $\u0022(\u0060a * \u0060b)\u0022\n\ninl pair x y =\n    x, y\n\n// // ## new_pair\n\ninl new_pair forall a b. (a : a) (b : b) : pair a b =\n    $\u0022!a, !b\u0022\n\n// // ## from_pair\n\ninl from_pair forall a b. (pair : pair a b) : a * b =\n    $\u0022let (a, b) = !pair\u0022\n    $\u0022a\u0022, $\u0022b\u0022\n\n// // ## log_level_type\n\nunion log_level_type =\n    | Verbose\n    | Debug\n    | Info\n    | Warning\n    | Critical\n\ninstance to_string log_level_type = function\n    | Verbose =\u003E \u0022Verbose\u0022\n    | Debug =\u003E \u0022Debug\u0022\n    | Info =\u003E \u0022Info\u0022\n    | Warning =\u003E \u0022Warning\u0022\n    | Critical =\u003E \u0022Critical\u0022\n\ninstance of_string log_level_type = function\n    | \u0022Verbose\u0022 =\u003E Verbose\n    | \u0022Debug\u0022 =\u003E Debug\n    | \u0022Info\u0022 =\u003E Info\n    | \u0022Warning\u0022 =\u003E Warning\n    | \u0022Critical\u0022 =\u003E Critical\n\n// // ## to_any\n\ninl to_any forall t. (obj : t) : any =\n    $\u0022!obj\u0022\n\ninstance (~:\u003E) any = to_any\n\n// // ## (/@)\n\ninl (/@) a b =\n    b |\u003E append a\n\n// // ## unbox\n\ninl unbox forall t u. (x : t) : u =\n    $\u0022!x |\u003E unbox\u003C\u0060u\u003E\u0022\n\n// // ## (/\u002B)\n\ninl (/\u002B) forall t. (a : t) (b : t) : t =\n    $\u0022!a \u002B !b\u0022\n\n// // ## (/=)\n\ninl (/=) forall t. (a : t) (b : t) : bool =\n    $\u0022!a = !b\u0022\n\n// // ## (||\u003E)\n\ninl (||\u003E) (arg1, arg2) fn =\n    arg2 |\u003E fn arg1\n\n// // ## flip\n\ninl flip fn a b =\n    fn b a\n\n// // ## join_body\n\ninl join_body body acc x =\n    if var_is x |\u003E not\n    then body acc x\n    else\n        inl acc = dyn acc\n        join body acc x\n\n// // ## join_body_unit\n\ninl join_body_unit body d x =\n    if var_is d |\u003E not\n    then body x\n    else\n        inl x = dyn x\n        join body x\n\n// // ## run_target\n\nunion target_runtime =\n    | Native\n    | Wasm\n    | Fable\n\nunion target =\n    | Rust : target_runtime\n    | Fsharp : target_runtime\n\ninl run_target forall t. (fn : target -\u003E (() -\u003E t)) : t =\n    $\u0022let mutable result = None\u0022\n    $\u0022#if FABLE_COMPILER_RUST \u0026\u0026 \\!WASM\u0022\n    fn (Rust Native) () |\u003E fun x =\u003E $\u0022!x\u0022\n    $\u0022#endif\u0022\n    $\u0022#if FABLE_COMPILER_RUST \u0026\u0026 WASM\u0022\n    fn (Rust Wasm) () |\u003E fun x =\u003E $\u0022!x\u0022\n    $\u0022#endif\u0022\n    $\u0022#if \\!FABLE_COMPILER \u0026\u0026 \\!FABLE_COMPILER_RUST \u0026\u0026 \\!WASM\u0022\n    fn (Fsharp Native) () |\u003E fun x =\u003E $\u0022!x\u0022\n    $\u0022#endif\u0022\n    $\u0022#if FABLE_COMPILER \u0026\u0026 \\!FABLE_COMPILER_RUST \u0026\u0026 \\!WASM\u0022\n    fn (Fsharp Fable) () |\u003E fun x =\u003E $\u0022!x\u0022\n    $\u0022#endif\u0022\n    $\u0022#if \\!FABLE_COMPILER_RUST \u0026\u0026 WASM\u0022\n    fn (Fsharp Wasm) () |\u003E fun x =\u003E $\u0022!x\u0022\n    $\u0022#endif\u0022\n    $\u0022|\u003E fun x -\u003E result \u003C- Some x\u0022\n    $\u0022result |\u003E Option.get\u0022\n\n// // ## nameof\n\ninl nameof x : string =\n    $\u0022nameof !x\u0022\n\n// // ## get_environment_variable\n\ninl get_environment_variable (var : string) : string =\n    $\u0022System.Environment.GetEnvironmentVariable !var\u0022\n\n// // ## memoize\n\nnominal lazy t = $\u0027Lazy\u003C\u0060t\u003E\u0027\n\ninl memoize forall t. (fn : () -\u003E t) : () -\u003E t =\n    inl result : lazy t = $\u0027lazy !fn ()\u0027\n    fun () =\u003E $\u0027!result.Value\u0027\n\n// // ## use_disposable\n\ninl use_disposable (disposable : disposable) : disposable =\n    $\u0022use !disposable = !disposable\u0022 : ()\n    $\u0022!disposable\u0022\n\n// // ## new_disposable\n\ninl new_disposable (fn : () -\u003E ()) : disposable =\n    run_target function\n        | Fsharp _ =\u003E fun () =\u003E $\u0027{ new System.IDisposable with member _.Dispose () = !fn () }\u0027\n        | Rust _ =\u003E\n            inl fn = join fn\n            fun () =\u003E $\u0027{ new System.IDisposable with member _.Dispose () = Fable.Core.RustInterop.emitRustExpr () \u0022!fn()\u0022 }\u0027\n\n// // ## try\n\ninl try forall t. (fn : () -\u003E t) (ex_fn : exn -\u003E ()) : option t =\n    inl none = None : option t\n    inl some (s : t) = Some s\n    $\u0027try !fn () |\u003E !some with ex -\u003E !ex_fn ex; !none \u0027\n\n// // ## sleep\n\ninl sleep (n : i32) : () =\n    run_target function\n        | Fsharp (Native) =\u003E fun () =\u003E $\u0027System.Threading.Thread.Sleep\u0027 n\n        | _ =\u003E fun () =\u003E ()\n\n// // ## retry_fn\n\ninl retry_fn forall t. retries (fn : () -\u003E t) : option t =\n    let rec loop retry =\n        try\n            fun () =\u003E\n                if retry \u003C retries\n                then fn () |\u003E Some\n                else None\n            fun ex =\u003E\n                let getLocals () = $\u0022retry: {retry} / ex: {ex |\u003E Sm.format_exception} / {getLocals ()}\u0022\n                // trace Warning (fun () =\u003E \u0022retry_fn\u0022) getLocals\n                sleep 1\n        |\u003E function\n            | Some x =\u003E x\n            | None =\u003E loop (retry \u002B 1)\n    loop 0\n\n// // ## main\n\ninl main () =\n    inl retry_fn (r : i32) (x : () -\u003E _) : optionm\u0027.option\u0027 () =\n        retry_fn r x |\u003E optionm\u0027.box\n    $\u0022let new_disposable x = !new_disposable x\u0022 : ()\n    $\u0022let retry_fn x = !retry_fn x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result.Length:

00:00:01 #29 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # date_time\n\nopen rust_operators\nopen sm\u0027_operators\n\n// // ## types\n\ninl types () =\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::DateTime\u003C$0\u003E\\\u0022)\u003E] type chrono_DateTime\u003C\u0027T\u003E = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::Local\\\u0022)\u003E] type chrono_Local = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::NaiveDateTime\\\u0022)\u003E] type chrono_NaiveDateTime = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::Utc\\\u0022)\u003E] type chrono_Utc = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022std::time::Duration\\\u0022)\u003E] type std_time_Duration = class end\u0022\n\nnominal ticks = i64\nnominal duration = $\u0022std_time_Duration\u0022\nnominal date_time = $\u0022System.DateTime\u0022\nnominal date_time\u0027 t = $\u0022chrono_DateTime\u003C\u0060t\u003E\u0022\nnominal local = $\u0022chrono_Local\u0022\nnominal naive_date_time = $\u0022chrono_NaiveDateTime\u0022\nnominal utc = $\u0022chrono_Utc\u0022\n\n// // ## naive_utc\n\ninl naive_utc (date_time : date_time\u0027 utc) : naive_date_time =\n    inl date_time = join date_time\n    !\\($\u0027\u0022!date_time.naive_utc()\u0022\u0027)\n\n// // ## to_local\n\ninl to_local (date_time : date_time\u0027 utc) : date_time\u0027 local =\n    inl naive_date_time = date_time |\u003E naive_utc\n    !\\($\u0027\u0022chrono::offset::TimeZone::from_utc_datetime(\u0026chrono::Local, \u0026!naive_date_time)\u0022\u0027)\n\n// // ## from_timestamp\u0027\n\ninl from_timestamp\u0027 forall t {number; int}. (timestamp : t) : option (date_time\u0027 utc) =\n    inl timestamp = join timestamp\n    inl result : optionm\u0027.option\u0027 (date_time\u0027 utc) =\n        !\\($\u0027\u0022chrono::DateTime::from_timestamp_micros(!timestamp / 1000i64)\u0022\u0027)\n    result |\u003E optionm\u0027.unbox\n\n// // ## format\u0027\n\ninl format\u0027 (format : string) (date_time : date_time\u0027 utc) : sm\u0027.std_string =\n    inl format = #format\n    inl date_time = join date_time\n    !\\($\u0027\u0022!date_time.format(!format).to_string()\u0022\u0027)\n\n// // ## format\u0027\u0027\n\ninl format\u0027\u0027 (format : string) (date_time : date_time\u0027 _) : sm\u0027.std_string =\n    inl format = #format\n    inl date_time = join date_time\n    !\\($\u0027\u0022!date_time.format(!format).to_string()\u0022\u0027)\n\n// // ## format_timestamp\n\ninl format_timestamp (timestamp : sm\u0027.std_string) =\n    inl timestamp = join timestamp\n    timestamp\n    |\u003E fun x =\u003E !\\($\u0027\u0022!x.parse().unwrap()\u0022\u0027) : i64\n    |\u003E from_timestamp\u0027\n    |\u003E optionm.map fun x =\u003E\n        x\n        |\u003E to_local\n        |\u003E format\u0027\u0027 \u0022%Y-%m-%d %H:%M:%S\u0022\n        |\u003E sm\u0027.from_std_string\n    |\u003E resultm.from_option\n\n// // ## duration_from_millis\n\ninl duration_from_millis (ms : u64) : duration =\n    inl ms = join ms\n    !\\($\u0027\u0022std::time::Duration::from_millis(!ms)\u0022\u0027)\n\n// // ## get_environment_variable\n\ninl get_environment_variable (var : string) : string =\n    $\u0022System.Environment.GetEnvironmentVariable !var\u0022\n\ntype ticks_guid = guid.guid\ntype date_time_guid = guid.guid\n\n// // ## date_time_guid_from_date_time\n\ninl date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =\n    inl guid = guid |\u003E sm\u0027.obj_to_string\n    inl prefix = $\u0027!date_time.ToString \u0022yyyyMMdd-HHmm-ssff-ffff-f\u0022\u0027 : string\n    $\u0027\u0060date_time_guid $\u0022{!prefix}{!guid.[!prefix.Length..]}\u0022\u0027 : date_time_guid\n\n// // ## date_time_from_guid\n\ninl date_time_from_guid (date_time_guid : date_time_guid) =\n    inl date_time_guid = date_time_guid |\u003E sm\u0027.obj_to_string\n    inl sm\u0027_replace = join sm\u0027.replace\n    run_target function\n        | Fsharp =\u003E fun () =\u003E $\u0027System.DateTime.ParseExact (!date_time_guid.[..24] |\u003E !sm\u0027_replace \u0022-\u0022 \u0022\u0022, \u0022yyyyMMddHHmmssfffffff\u0022, null)\u0027 : date_time\n        | Rust _ =\u003E fun () =\u003E\n            $\u0027System.DateTime.Parse (!date_time_guid.[..24] |\u003E !sm\u0027_replace \u0022-\u0022 \u0022\u0022)\u0027 : date_time\n\n// // ## ticks_guid_from_ticks\n\ninl ticks_guid_from_ticks (guid : guid.guid) (ticks : ticks) : ticks_guid =\n    inl guid = guid |\u003E sm\u0027.obj_to_string\n    inl ticks = ticks |\u003E sm\u0027.obj_to_string |\u003E sm\u0027.pad_left 18i32 \u00270\u0027\n    $\u0027\u0060ticks_guid $\u0022{!ticks.[0..7]}-{!ticks.[8..11]}-{!ticks.[12..15]}-{!ticks.[16..17]}{!guid.[21..]}\u0022\u0027\n\n// // ## ticks_from_guid\n\ninl ticks_from_guid (guid : date_time_guid) : ticks =\n    inl guid = guid |\u003E sm\u0027.obj_to_string\n    $\u0027\u0060i64 $\u0022{!guid.[0..7]}{!guid.[9..12]}{!guid.[14..17]}{!guid.[19..20]}\u0022\u0027\n\n// // ## new_guid_from_date_time\n\ninl new_guid_from_date_time (date_time : date_time) =\n    inl guid = guid.new_raw_guid ()\n    date_time_guid_from_date_time guid date_time\n\n// // ## new_guid_from_ticks\n\ninl new_guid_from_ticks (ticks : ticks) =\n    inl guid = guid.new_raw_guid ()\n    ticks_guid_from_ticks guid ticks\n\n// // ## main\n\ninl main () =\n    $\u0022let date_time_guid_from_date_time x = !date_time_guid_from_date_time x\u0022 : ()\n    $\u0022let date_time_from_guid x = !date_time_from_guid x\u0022 : ()\n    $\u0022let ticks_guid_from_ticks x = !ticks_guid_from_ticks x\u0022 : ()\n    $\u0022let ticks_from_guid x = !ticks_from_guid x\u0022 : ()\n    $\u0022let new_guid_from_date_time x = !new_guid_from_date_time x\u0022 : ()\n    $\u0022let new_guid_from_ticks x = !new_guid_from_ticks x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result.Length:

00:00:01 #28 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # sm\u0027\n\nopen rust_operators\n\ninl types () =\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022str\\\u0022)\u003E] type Str = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022base64::DecodeError\\\u0022)\u003E] type base64_DecodeError = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022borsh::io::Error\\\u0022)\u003E] type borsh_io_Error = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022js_sys::JsString\\\u0022)\u003E] type js_sys_JsString = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022serde_json::Error\\\u0022)\u003E] type serde_json_Error = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022serde_json::Value\\\u0022)\u003E] type serde_json_Value = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022serde_wasm_bindgen::Error\\\u0022)\u003E] type serde_wasm_bindgen_Error = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022std::str::Utf8Error\\\u0022)\u003E] type std_str_Utf8Error = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022std::string::String\\\u0022)\u003E] type std_string_String = class end\u0022\n\nnominal base64_decode_error = $\u0022base64_DecodeError\u0022\nnominal borsh_io_error = $\u0022borsh_io_Error\u0022\nnominal utf8_error = $\u0022std_str_Utf8Error\u0022\nnominal json_value = $\u0022serde_json_Value\u0022\nnominal json_error = $\u0022serde_json_Error\u0022\nnominal serde_wasm_bindgen_error = $\u0022serde_wasm_bindgen_Error\u0022\nnominal std_string = $\u0022std_string_String\u0022\nnominal js_string = $\u0022js_sys_JsString\u0022\nnominal str = $\u0022Str\u0022\n\n// // ## contains\n\ninl contains (value : string) (s : string) : bool =\n    $\u0022!s.Contains !value\u0022\n\n// // ## ends_with\n\ninl ends_with (value : string) (s : string) : bool =\n    $\u0022!s.EndsWith !value\u0022\n\n// // ## pad_left\n\ninl pad_left (total_width : i32) (padding_char : char) (s : string) : string =\n    $\u0022!s.PadLeft (!total_width, !padding_char)\u0022\n\n// // ## pad_right\n\ninl pad_right (pad : i32) (s : string) : string =\n    $\u0022!s.PadRight !pad\u0022\n\n// // ## replace\n\ninl replace (old_value : string) (new_value : string) (s : string) : string =\n    $\u0022!s.Replace (!old_value, !new_value)\u0022\n\n// // ## starts_with\n\ninl starts_with (value : string) (s : string) : bool =\n    $\u0022!s.StartsWith !value\u0022\n\n// // ## substring\n\ninl substring (start : i32) (len : i32) (str : string) : string =\n    $\u0022!str.Substring (!start, !len)\u0022\n\n// // ## to_lower\n\ninl to_lower (input : string) : string =\n    $\u0022!input.ToLower ()\u0022\n\n// // ## to_upper\n\ninl to_upper (input : string) : string =\n    $\u0022!input.ToUpper ()\u0022\n\n// // ## trim\n\ninl trim (input : string) : string =\n    $\u0022!input.Trim ()\u0022\n\n// // ## trim_end\n\ninl trim_end (trim_chars : array_base char) (input : string) : string =\n    $\u0022!input.TrimEnd !trim_chars\u0022\n\n// // ## trim_start\n\ninl trim_start (trim_chars : array_base char) (input : string) : string =\n    $\u0022!input.TrimStart !trim_chars\u0022\n\n// // ## ellipsis\n\ninl ellipsis (max : i32) (s : string) =\n    if sm.length s \u003C= max\n    then s\n    else s |\u003E substring 0 max |\u003E fun x =\u003E $\u0027!x \u002B \u0022...\u0022\u0027\n\n// // ## raw_string_literal\n\ninl raw_string_literal (s : string) : rust.ref\u0027 str =\n    !\\($\u0022\\\u0022r#\\\\\\\u0022\\\u0022 \u002B !s \u002B \\\u0022\\\\\\\u0022#\\\u0022\u0022)\n\n// // ## raw_string_literal_static\n\ninl raw_string_literal_static (s : string) : rust.static_ref\u0027 str =\n    !\\($\u0022\\\u0022r#\\\\\\\u0022\\\u0022 \u002B !s \u002B \\\u0022\\\\\\\u0022#\\\u0022\u0022)\n\n// // ## include_str\n\ninl include_str (path : string) : rust.ref\u0027 str =\n    !\\($\u0027\u0022include_str\\!(\\\\\\\u0022\u0022 \u002B !path \u002B \u0022\\\\\\\u0022)\u0022\u0027)\n\n// // ## as_str\n\ninl as_str (s : string) : rust.ref\u0027 str =\n    inl s = join s\n    !\\($\u0027$\u0022fable_library_rust::String_::LrcStr::as_str(\u0026!s)\u0022\u0027)\n\n// // ## from_std_string\n\ninl from_std_string (str : std_string) : string =\n    inl str = join str\n    !\\($\u0027\u0022fable_library_rust::String_::fromString(!str)\u0022\u0027)\n\n// // ## ref_to_std_string\n\ninl ref_to_std_string (str : rust.ref\u0027 str) : std_string =\n    !\\($\u0027\u0022String::from(!str)\u0022\u0027)\n\n// // ## to_std_string\n\ninl to_std_string (s : string) : std_string =\n    inl s = join s\n    s |\u003E as_str |\u003E ref_to_std_string\n\n// // ## as_str_std\n\ninl as_str_std (s : std_string) : rust.ref\u0027 str =\n    inl s = join s\n    !\\($\u0027\u0022!s.as_str()\u0022\u0027)\n\n// // ## into_boxed_str\n\ninl into_boxed_str (s : std_string) : rust.box str =\n    !\\($\u0027\u0022!s.into_boxed_str()\u0022\u0027)\n\n// // ## format\u0027\n\ninl format\u0027 x : std_string =\n    !\\\\(x, $\u0027@@$\u0022format\\!(\u0022\u0022{{}}\u0022\u0022, $0)\u0022\u0027)\n\n// // ## format_debug\n\ninl format_debug x : string =\n    $\u0027$\u0022%A{!x}\u0022\u0027\n\n// // ## format_debug\u0027\n\ninl format_debug\u0027 x : std_string =\n    !\\\\(x, $\u0027@@$\u0022format\\!(\u0022\u0022{{:?}}\u0022\u0022, $0)\u0022\u0027)\n\n// // ## format_pretty\u0027\n\ninl format_pretty\u0027 x : std_string =\n    !\\\\(x, $\u0027@@$\u0022format\\!(\u0022\u0022{{:#?}}\u0022\u0022, $0)\u0022\u0027)\n\n// // ## format_exception\n\ninl format_exception (ex : exn) : string =\n    run_target function\n        | Fsharp (Native) =\u003E fun () =\u003E $\u0027$\u0022{!ex.GetType ()}: {!ex.Message}\u0022\u0027\n        | _ =\u003E fun () =\u003E ex |\u003E format_debug\n\n// // ## format_ellipsis\u0027\n\ninl format_ellipsis\u0027 s =\n    s\n    |\u003E format_debug\n    |\u003E ellipsis 400i32\n\n// // ## obj_to_string\n\ninl obj_to_string x : string =\n    $\u0022!x.ToString ()\u0022\n\n// // ## to_string any\n\ninstance to_string any =\n    obj_to_string\n\n// // ## to_string result t u\n\ninstance to_string result t u = fun x =\u003E\n    real\n        open rust\n        typecase (t * u) with\n        | string * string =\u003E\n            match x with\n            | Ok x =\u003E x\n            | Error x =\u003E $\u0027\u0022Error: \u0022 \u002B !x \u002B \u0022\u0022\u0027 : string\n        | std_string * std_string =\u003E\n            match x with\n            | Ok x =\u003E from_std_string x\n            | Error x =\u003E $\u0027\u0022Error: \u0022 \u002B string !x \u002B \u0022\u0022\u0027 : string\n        | _ =\u003E obj_to_string \u0060u x\n\n// // ## serialize\n\ninl serialize forall t. (x : t) : resultm.result\u0027 std_string json_error =\n    !\\($\u0027\u0022serde_json::to_string(\u0026!x)\u0022\u0027)\n\n// // ## deserialize\n\ninl deserialize forall t. (json : string) : resultm.result\u0027 t std_string =\n    inl json = json |\u003E as_str\n    !\\($\u0027\u0022serde_json::from_str(\u0026!json)\u0022\u0027)\n    |\u003E resultm.map_error\u0027 fun (x : json_error) =\u003E x |\u003E format\u0027\n\n// // ## borsh_deserialize\n\ninl borsh_deserialize forall t. (data : array_base u8) : resultm.result\u0027 t std_string =\n    inl data = data |\u003E am\u0027.as_slice\n    !\\($\u0027\u0022let mut !data = !data\u0022\u0027)\n    inl result = !\\($\u0027\u0022borsh::BorshDeserialize::deserialize(\u0026mut !data)\u0022\u0027)\n    result\n    |\u003E resultm.map_error\u0027 fun (x : borsh_io_error) =\u003E x |\u003E format\u0027\n\n// // ## deserialize_vec\n\ninl deserialize_vec (value : json_value) : resultm.result\u0027 (am\u0027.vec u8) std_string =\n    inl value = join value\n    !\\($\u0027\u0022serde_json::from_value(!value)\u0022\u0027)\n    |\u003E resultm.map_error\u0027 fun (x : json_error) =\u003E x |\u003E format\u0027\n\n// // ## encode_uri_component\n\ninl encode_uri_component (s : std_string) : js_string =\n    !\\($\u0027\u0022js_sys::encode_uri_component(\u0026!s)\u0022\u0027)\n\n// // ## strip_prefix\n\ninl strip_prefix (prefix : char) (s : std_string) : optionm\u0027.option\u0027 (rust.ref\u0027 str) =\n    inl s = join s\n    !\\($\u0027\u0022!s.strip_prefix(!prefix)\u0022\u0027)\n\n// // ## base64_decode\n\ninl base64_decode (s : std_string) : result std_string std_string =\n    fun () =\u003E\n        inl s = join s\n        inl bytes : resultm.result\u0027 (am\u0027.vec u8) base64_decode_error =\n            !\\($\u0027\u0022base64::Engine::decode(\u0026base64::engine::general_purpose::STANDARD, !s)\u0022\u0027)\n        inl bytes =\n            bytes\n            |\u003E resultm.map_error\u0027 format\u0027\n            |\u003E resultm.try\u0027\n        inl result : resultm.result\u0027 std_string utf8_error =\n            !\\($\u0027\u0022std::str::from_utf8(\u0026!bytes).map(String::from)\u0022\u0027)\n        result\n        |\u003E resultm.map_error\u0027 format\u0027\n    |\u003E fun x =\u003E\n        join x ()\n        |\u003E resultm.unbox\n\n// // ## concat_array_trailing\n\ninl concat_array_trailing (separator : string) (input : a i32 string) =\n    (\u0022\u0022, input)\n    ||\u003E am.fold fun acc (x : string) =\u003E\n        $\u0027!acc \u002B !x \u002B !separator \u002B \u0022\u0022\u0027\n\n// // ## concat_list_trailing\n\ninl concat_list_trailing separator input =\n    (\u0022\u0022, input)\n    ||\u003E listm.fold fun acc (x : string) =\u003E\n        $\u0027!acc \u002B !x \u002B !separator \u002B \u0022\u0022\u0027\n\n// // ## concat_list_heap_trailing\n\ninl concat_list_heap_trailing separator input =\n    (\u0022\u0022, input)\n    ||\u003E listm.fold fun acc (x : string) =\u003E\n        inl acc = acc |\u003E to_std_string\n        inl x = x |\u003E as_str\n        inl separator = separator |\u003E as_str\n        !\\($\u0027\u0022!acc \u002B !x \u002B !separator\u0022\u0027)\n        |\u003E from_std_string\n\n// // ## concat\n\ninl concat (a : string) (b : seq.seq\u0027 _) : string =\n    $\u0022!b |\u003E String.concat !a\u0022\n\n// // ## split\n\ninl split (separator : string) (str : string) : array_base string =\n    $\u0022!str.Split !separator\u0022\n\n// // ## split_string\n\ninl split_string (separator : array_base string) (str : string) : array_base string =\n    run_target function\n        | Fsharp (Native) =\u003E fun () =\u003E $\u0022!str.Split (!separator, System.StringSplitOptions.None)\u0022\n        | _ =\u003E fun () =\u003E str |\u003E split ((a separator : _ i32 _) |\u003E seq.of_array |\u003E concat (join \u0022\u0022))\n\n// // ## join\u0027\n\ninl join\u0027 (concat : string) (s : a i32 string) : string =\n    $\u0022System.String.Join (!concat, !s)\u0022\n\n// // ## to_char_array\n\ninl to_char_array (str : string) : a i32 char =\n    am.init (str |\u003E sm.length) (fun i =\u003E sm.index str i)\n\n// // ## to_char_list\n\ninl to_char_list (str : string) : list char =\n    listm.init (str |\u003E sm.length) (fun (i : i64) =\u003E sm.index str i)\n\n// // ## to_string std_string\n\nopen rust\ninstance to_string std_string = from_std_string\n\n// // ## main\n\ninl main () =\n    $\u0022let contains x = !contains x\u0022 : ()\n    $\u0022let ends_with x = !ends_with x\u0022 : ()\n    $\u0022let pad_left x = !pad_left x\u0022 : ()\n    $\u0022let pad_right x = !pad_right x\u0022 : ()\n    $\u0022let replace x = !replace x\u0022 : ()\n    $\u0022let split x = !split x\u0022 : ()\n    $\u0022let split_string x = !split_string x\u0022 : ()\n    $\u0022let starts_with x = !starts_with x\u0022 : ()\n    $\u0022let substring x = !substring x\u0022 : ()\n    $\u0022let to_lower x = !to_lower x\u0022 : ()\n    $\u0022let to_upper x = !to_upper x\u0022 : ()\n    $\u0022let trim x = !trim x\u0022 : ()\n    $\u0022let trim_end x = !trim_end x\u0022 : ()\n    $\u0022let trim_start x = !trim_start x\u0022 : ()\n    $\u0022let ellipsis x = !ellipsis x\u0022 : ()\n    $\u0022let format_exception x = !format_exception x\u0022 : ()\n    $\u0022let concat_array_trailing x = !concat_array_trailing x\u0022 : ()\n    inl concat a (b : seq.seq\u0027 string) = concat a b\n    $\u0022let concat x = !concat x\u0022 : ()\n    $\u0022let join\u0027 x = !join\u0027 x\u0022 : ()\n    $\u0022let to_char_array x = !to_char_array x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result.Length:

00:00:01 #33 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result.Length:

00:00:01 #35 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result.Length:

00:00:01 #34 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result.Length:

00:00:01 #32 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result.Length:

00:00:01 #31 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result.Length:

00:00:02 #36 [Verbose] > Building c:\home\git\polyglot\lib\spiral\date_time.spi

00:00:02 #37 [Verbose] > Building c:\home\git\polyglot\lib\spiral\common.spi

00:00:02 #38 [Verbose] > Building c:\home\git\polyglot\lib\spiral\sm'.spi

00:00:02 #39 [Verbose] > Building c:\home\git\polyglot\lib\spiral\guid.spi

00:00:02 #40 [Verbose] > Building c:\home\git\polyglot\lib\spiral\file_system.spi

00:00:02 #41 [Verbose] > 00:00:00 #1 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_39_23_599_FileOpen.json' because it is being used by another process.)

00:00:02 #42 [Verbose] > 00:00:00 #1 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_39_23_599_FileOpen.json' because it is being used by another process.)

00:00:02 #43 [Verbose] > 00:00:00 #2 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_39_23_599_FileOpen.json' because it is being used by another process.)

00:00:02 #44 [Verbose] > 00:00:00 #4 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_39_23_700_BuildFile.json' because it is being used by another process.)

00:00:02 #45 [Verbose] > 00:00:00 #4 [Critical] ClientToServerMsg / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\supervisor\trace\2024_03_30_01_39_23_700_BuildFile.json' because it is being used by another process.)

00:00:02 #47 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:02 #47 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:02 #47 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:02 #47 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:02 #48 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:03 #49 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec closure0 () (v0 : string) : System.Guid =

    let v1 : System.Guid = System.Guid v0 

    v1

and closure1 () () : System.Guid =

    let v0 : System.Guid = System.Guid.NewGuid ()

    v0

let v0 : (string -> System.Guid) = closure0()

let new_guid x = v0 x

let v1 : (unit -> System.Guid) = closure1()

let new_raw_guid x = v1 x

()

 / errors: [] / typeErrorCount: 0

00:00:03 #50 [Debug] buildFile / takeWhileInclusive / fsxContent: type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri... / errors: [] / typeErrorCount: 0

00:00:03 #51 [Debug] buildFile / takeWhileInclusive / fsxContent: type [<Struct>] US0 =

    | US0_0

    | US0_1

    | US0_2

and [<Struct>] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()... / errors: [] / typeErrorCount: 0

00:00:03 #52 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ... / errors: [] / typeErrorCount: 0

00:00:03 #53 [Debug] buildFile / takeWhileInclusive / fsxContent: type [<Struct>] US0 =

    | US0_0

    | US0_1

and [<Struct>] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F... / errors: [] / typeErrorCount: 0

00:00:03 #54 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite

00:00:03 #55 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite

00:00:03 #56 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite

00:00:03 #57 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite

00:00:03 #58 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite

00:00:05 #59 [Debug] runWithTimeoutAsync / timeout: 2000

In [ ]:
{ . "$ScriptDir/../lib/math/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@429-61> }

00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\math

00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805

00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805

00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #12 [Verbose] >

00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #15 [Verbose] > │ # math                                                                       │

00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #17 [Verbose] >

00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #19 [Verbose] > open testing

00:00:04 #20 [Verbose] > open rust_operators

00:00:07 #21 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-3798-9824-9509950b7024\main.spi

00:00:10 #22 [Verbose] >

00:00:10 #23 [Verbose] > ╭─[ 6.30s - stdout ]───────────────────────────────────────────────────────────╮

00:00:10 #24 [Verbose] > │ ()                                                                           │

00:00:10 #25 [Verbose] > │                                                                              │

00:00:10 #26 [Verbose] > │                                                                              │

00:00:10 #27 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #28 [Verbose] >

00:00:10 #29 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #30 [Verbose] > inl types () =

00:00:10 #31 [Verbose] >     global "[[<Fable.Core.Erase;

00:00:10 #32 [Verbose] > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]] type num_complex_Complex<'T> =

00:00:10 #33 [Verbose] > class end"

00:00:10 #34 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::types::PyModule\")>]]

00:00:10 #35 [Verbose] > type pyo3_types_PyModule = class end"

00:00:10 #36 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Bound<$0>\")>]] type

00:00:10 #37 [Verbose] > pyo3_Bound<'T> = class end"

00:00:10 #38 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Python\")>]] type

00:00:10 #39 [Verbose] > pyo3_Python = class end"

00:00:10 #40 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyAny\")>]] type

00:00:10 #41 [Verbose] > pyo3_PyAny = class end"

00:00:10 #42 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyErr\")>]] type

00:00:10 #43 [Verbose] > pyo3_PyErr = class end"

00:00:10 #44 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4191-9127-9fd96ec08fb4\main.spi

00:00:10 #45 [Verbose] >

00:00:10 #46 [Verbose] > ╭─[ 272.82ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #47 [Verbose] > │ ()                                                                           │

00:00:10 #48 [Verbose] > │                                                                              │

00:00:10 #49 [Verbose] > │                                                                              │

00:00:10 #50 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #51 [Verbose] >

00:00:10 #52 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #53 [Verbose] > inl types () =

00:00:10 #54 [Verbose] >     rust.types ()

00:00:10 #55 [Verbose] >     sm'.types ()

00:00:10 #56 [Verbose] >     types ()

00:00:10 #57 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4217-1799-1a5c8ee69a64\main.spi

00:00:10 #58 [Verbose] >

00:00:10 #59 [Verbose] > ╭─[ 247.21ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #60 [Verbose] > │ ()                                                                           │

00:00:10 #61 [Verbose] > │                                                                              │

00:00:10 #62 [Verbose] > │                                                                              │

00:00:10 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #64 [Verbose] >

00:00:10 #65 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #66 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #67 [Verbose] > │ ## complex                                                                   │

00:00:10 #68 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #69 [Verbose] >

00:00:10 #70 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #71 [Verbose] > nominal complex t = $"num_complex_Complex<`t>"

00:00:10 #72 [Verbose] > nominal bound t = $"pyo3_Bound<`t>"

00:00:10 #73 [Verbose] > nominal python = $"pyo3_Python"

00:00:10 #74 [Verbose] > nominal pymodule = $"pyo3_types_PyModule"

00:00:10 #75 [Verbose] > nominal pyany = $"pyo3_PyAny"

00:00:10 #76 [Verbose] > nominal pyerr = $"pyo3_PyErr"

00:00:10 #77 [Verbose] >

00:00:10 #78 [Verbose] > inl complex forall t. ((re : t), (im : t)) : complex t =

00:00:10 #79 [Verbose] >     inl re = join re

00:00:10 #80 [Verbose] >     inl re = join re

00:00:10 #81 [Verbose] >     inl im = join im

00:00:10 #82 [Verbose] >     !\($'"num_complex::Complex::new(!re, !im)"')

00:00:10 #83 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4243-4330-4e4a208316bb\main.spi

00:00:11 #84 [Verbose] >

00:00:11 #85 [Verbose] > ╭─[ 293.84ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #86 [Verbose] > │ ()                                                                           │

00:00:11 #87 [Verbose] > │                                                                              │

00:00:11 #88 [Verbose] > │                                                                              │

00:00:11 #89 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #90 [Verbose] >

00:00:11 #91 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #92 [Verbose] > // // test

00:00:11 #93 [Verbose] > // // rust=

00:00:11 #94 [Verbose] >

00:00:11 #95 [Verbose] > types ()

00:00:11 #96 [Verbose] >

00:00:11 #97 [Verbose] > complex (0f64, 0f64)

00:00:11 #98 [Verbose] > |> sm'.format'

00:00:11 #99 [Verbose] > |> sm'.from_std_string

00:00:11 #100 [Verbose] > |> _assert_eq "0+0i"

00:00:11 #101 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4272-7298-7f8d166642cd\main.spi

00:00:16 #102 [Verbose] >

00:00:16 #103 [Verbose] > ╭─[ 5.89s - return value ]─────────────────────────────────────────────────────╮

00:00:16 #104 [Verbose] > │ .rs output:                                                                  │

00:00:16 #105 [Verbose] > │ "0+0i"                                                                       │

00:00:16 #106 [Verbose] > │                                                                              │

00:00:16 #107 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #108 [Verbose] >

00:00:17 #109 [Verbose] > ╭─[ 5.92s - stdout ]───────────────────────────────────────────────────────────╮

00:00:17 #110 [Verbose] > │                                                                              │

00:00:17 #111 [Verbose] > │ .fsx:                                                                        │

00:00:17 #112 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class    │

00:00:17 #113 [Verbose] > │ end                                                                          │

00:00:17 #114 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> =  │

00:00:17 #115 [Verbose] > │ class end                                                                    │

00:00:17 #116 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end    │

00:00:17 #117 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end     │

00:00:17 #118 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end  │

00:00:17 #119 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end        │

00:00:17 #120 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> =    │

00:00:17 #121 [Verbose] > │ class end                                                                    │

00:00:17 #122 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │

00:00:17 #123 [Verbose] > │ class end                                                                    │

00:00:17 #124 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end   │

00:00:17 #125 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end     │

00:00:17 #126 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:00:17 #127 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> =    │

00:00:17 #128 [Verbose] > │ class end                                                                    │

00:00:17 #129 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> =      │

00:00:17 #130 [Verbose] > │ class end                                                                    │

00:00:17 #131 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any =    │

00:00:17 #132 [Verbose] > │ class end                                                                    │

00:00:17 #133 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type         │

00:00:17 #134 [Verbose] > │ std_cell_RefCell<'T> = class end                                             │

00:00:17 #135 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type              │

00:00:17 #136 [Verbose] > │ std_pin_Pin<'T> = class end                                                  │

00:00:17 #137 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T>  │

00:00:17 #138 [Verbose] > │ = class end                                                                  │

00:00:17 #139 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type              │

00:00:17 #140 [Verbose] > │ std_rc_Weak<'T> = class end                                                  │

00:00:17 #141 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type             │

00:00:17 #142 [Verbose] > │ std_sync_Arc<'T> = class end                                                 │

00:00:17 #143 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:00:17 #144 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type            │

00:00:17 #145 [Verbose] > │ base64_DecodeError = class end                                               │

00:00:17 #146 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type               │

00:00:17 #147 [Verbose] > │ borsh_io_Error = class end                                                   │

00:00:17 #148 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type               │

00:00:17 #149 [Verbose] > │ js_sys_JsString = class end                                                  │

00:00:17 #150 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type              │

00:00:17 #151 [Verbose] > │ serde_json_Error = class end                                                 │

00:00:17 #152 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type              │

00:00:17 #153 [Verbose] > │ serde_json_Value = class end                                                 │

00:00:17 #154 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type      │

00:00:17 #155 [Verbose] > │ serde_wasm_bindgen_Error = class end                                         │

00:00:17 #156 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type            │

00:00:17 #157 [Verbose] > │ std_str_Utf8Error = class end                                                │

00:00:17 #158 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:00:17 #159 [Verbose] > │ std_string_String = class end                                                │

00:00:17 #160 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type       │

00:00:17 #161 [Verbose] > │ num_complex_Complex<'T> = class end                                          │

00:00:17 #162 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type          │

00:00:17 #163 [Verbose] > │ pyo3_types_PyModule = class end                                              │

00:00:17 #164 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │

00:00:17 #165 [Verbose] > │ = class end                                                                  │

00:00:17 #166 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python =     │

00:00:17 #167 [Verbose] > │ class end                                                                    │

00:00:17 #168 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │

00:00:17 #169 [Verbose] > │ end                                                                          │

00:00:17 #170 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │

00:00:17 #171 [Verbose] > │ end                                                                          │

00:00:17 #172 [Verbose] > │ let rec method1 () : float =                                                 │

00:00:17 #173 [Verbose] > │     0.0                                                                      │

00:00:17 #174 [Verbose] > │ and method2 (v0 : float) : float =                                           │

00:00:17 #175 [Verbose] > │     v0                                                                       │

00:00:17 #176 [Verbose] > │ and method3 () : float =                                                     │

00:00:17 #177 [Verbose] > │     0.0                                                                      │

00:00:17 #178 [Verbose] > │ and method4 (v0 : std_string_String) : std_string_String =                   │

00:00:17 #179 [Verbose] > │     v0                                                                       │

00:00:17 #180 [Verbose] > │ and method5 (v0 : bool) : bool =                                             │

00:00:17 #181 [Verbose] > │     v0                                                                       │

00:00:17 #182 [Verbose] > │ and method0 () : unit =                                                      │

00:00:17 #183 [Verbose] > │     let v0 : float = method1()                                               │

00:00:17 #184 [Verbose] > │     let v1 : float = method2(v0)                                             │

00:00:17 #185 [Verbose] > │     let v2 : float = method3()                                               │

00:00:17 #186 [Verbose] > │     let v3 : string = "num_complex::Complex::new(v1, v2)"                    │

00:00:17 #187 [Verbose] > │     let v4 : num_complex_Complex<float> =                                    │

00:00:17 #188 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3                                    │

00:00:17 #189 [Verbose] > │     let v5 : string = @$"format!(""{{}}"", $0)"                              │

00:00:17 #190 [Verbose] > │     let v6 : std_string_String = Fable.Core.RustInterop.emitRustExpr v4 v5   │

00:00:17 #191 [Verbose] > │     let v7 : std_string_String = method4(v6)                                 │

00:00:17 #192 [Verbose] > │     let v8 : string = "fable_library_rust::String_::fromString(v7)"          │

00:00:17 #193 [Verbose] > │     let v9 : string = Fable.Core.RustInterop.emitRustExpr () v8              │

00:00:17 #194 [Verbose] > │     let v10 : string = $"%A{v9}"                                             │

00:00:17 #195 [Verbose] > │     System.Console.WriteLine v10                                             │

00:00:17 #196 [Verbose] > │     let v12 : bool = v9 = "0+0i"                                             │

00:00:17 #197 [Verbose] > │     let v14 : bool =                                                         │

00:00:17 #198 [Verbose] > │         if v12 then                                                          │

00:00:17 #199 [Verbose] > │             true                                                             │

00:00:17 #200 [Verbose] > │         else                                                                 │

00:00:17 #201 [Verbose] > │             method5(v12)                                                     │

00:00:17 #202 [Verbose] > │     let v15 : string = "0+0i"                                                │

00:00:17 #203 [Verbose] > │     let v16 : string = $"__expect / actual: %A{v9} / expected: %A{v15}"      │

00:00:17 #204 [Verbose] > │     let v17 : bool = v14 = false                                             │

00:00:17 #205 [Verbose] > │     if v17 then                                                              │

00:00:17 #206 [Verbose] > │         failwith<unit> v16                                                   │

00:00:17 #207 [Verbose] > │ method0()                                                                    │

00:00:17 #208 [Verbose] > │                                                                              │

00:00:17 #209 [Verbose] > │                                                                              │

00:00:17 #210 [Verbose] > │ .rs:                                                                         │

00:00:17 #211 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:00:17 #212 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:00:17 #213 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:00:17 #214 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:17 #215 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:00:17 #216 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:00:17 #217 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:00:17 #218 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:00:17 #219 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:00:17 #220 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:00:17 #221 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:00:17 #222 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:00:17 #223 [Verbose] > │         use super::*;                                                        │

00:00:17 #224 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:00:17 #225 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:00:17 #226 [Verbose] > │         use fable_library_rust::String_::sprintf;                            │

00:00:17 #227 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:00:17 #228 [Verbose] > │         pub fn method1() -> f64 { 0.0_f64 }                                  │

00:00:17 #229 [Verbose] > │         pub fn method2(v0: f64) -> f64 { v0 }                                │

00:00:17 #230 [Verbose] > │         pub fn method3() -> f64 { 0.0_f64 }                                  │

00:00:17 #231 [Verbose] > │         pub fn method4(v0: std::string::String) -> std::string::String { v0  │

00:00:17 #232 [Verbose] > │ }                                                                            │

00:00:17 #233 [Verbose] > │         pub fn method5(v0: bool) -> bool { v0 }                              │

00:00:17 #234 [Verbose] > │         pub fn method0() {                                                   │

00:00:17 #235 [Verbose] > │             let v1: f64 = Spiral_eval::method2(Spiral_eval::method1());      │

00:00:17 #236 [Verbose] > │             let v2: f64 = Spiral_eval::method3();                            │

00:00:17 #237 [Verbose] > │             let v4: num_complex::Complex<f64> =                              │

00:00:17 #238 [Verbose] > │                 num_complex::Complex::new(v1, v2);                           │

00:00:17 #239 [Verbose] > │             let v7: std::string::String =                                    │

00:00:17 #240 [Verbose] > │                 Spiral_eval::method4(format!("{}", v4));                     │

00:00:17 #241 [Verbose] > │             let v9: string = fable_library_rust::String_::fromString(v7);    │

00:00:17 #242 [Verbose] > │             let v10: string = sprintf!("{:?}", v9.clone());                  │

00:00:17 #243 [Verbose] > │             printfn!("{0}", v10);                                            │

00:00:17 #244 [Verbose] > │             {                                                                │

00:00:17 #245 [Verbose] > │                 let v12: bool = v9.clone() == string("0+0i");                │

00:00:17 #246 [Verbose] > │                 if (if v12 { true } else { Spiral_eval::method5(v12) }) ==   │

00:00:17 #247 [Verbose] > │                        false {                                               │

00:00:17 #248 [Verbose] > │                     panic!("{}",                                             │

00:00:17 #249 [Verbose] > │                            sprintf!("__expect / actual: {:?} / expected:     │

00:00:17 #250 [Verbose] > │ {:?}", v9, string("0+0i")));                                                 │

00:00:17 #251 [Verbose] > │                 }                                                            │

00:00:17 #252 [Verbose] > │             }                                                                │

00:00:17 #253 [Verbose] > │         }                                                                    │

00:00:17 #254 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:00:17 #255 [Verbose] > │     }                                                                        │

00:00:17 #256 [Verbose] > │ }                                                                            │

00:00:17 #257 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:00:17 #258 [Verbose] > │                                                                              │

00:00:17 #259 [Verbose] > │                                                                              │

00:00:17 #260 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #261 [Verbose] >

00:00:17 #262 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #263 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #264 [Verbose] > │ ## complex_sin                                                               │

00:00:17 #265 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #266 [Verbose] >

00:00:17 #267 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #268 [Verbose] > inl re forall t. (c : complex t) : t =

00:00:17 #269 [Verbose] >     inl c = join c

00:00:17 #270 [Verbose] >     !\($'"!c.re"')

00:00:17 #271 [Verbose] >

00:00:17 #272 [Verbose] > inl im forall t. (c : complex t) : t =

00:00:17 #273 [Verbose] >     inl c = join c

00:00:17 #274 [Verbose] >     !\($'"!c.im"')

00:00:17 #275 [Verbose] >

00:00:17 #276 [Verbose] > inl complex_unbox forall t. (c : complex t) =

00:00:17 #277 [Verbose] >     re c, im c

00:00:17 #278 [Verbose] >

00:00:17 #279 [Verbose] > inl (~.^) c = complex c

00:00:17 #280 [Verbose] >

00:00:17 #281 [Verbose] > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =

00:00:17 #282 [Verbose] >     !\($'"!a == !b"')

00:00:17 #283 [Verbose] >

00:00:17 #284 [Verbose] > inl (.=) a b = complex_eq a b

00:00:17 #285 [Verbose] >

00:00:17 #286 [Verbose] > instance equable complex t = complex_eq

00:00:17 #287 [Verbose] >

00:00:17 #288 [Verbose] > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =

00:00:17 #289 [Verbose] >     !\($'"!a + !b"')

00:00:17 #290 [Verbose] >

00:00:17 #291 [Verbose] > inl (.+) a b = complex_add a b

00:00:17 #292 [Verbose] >

00:00:17 #293 [Verbose] > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =

00:00:17 #294 [Verbose] >     !\($'"!a - !b"')

00:00:17 #295 [Verbose] >

00:00:17 #296 [Verbose] > inl (.-) a b = complex_sub a b

00:00:17 #297 [Verbose] >

00:00:17 #298 [Verbose] > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =

00:00:17 #299 [Verbose] >     !\($'"!a * !b"')

00:00:17 #300 [Verbose] >

00:00:17 #301 [Verbose] > inl (.*) a b = complex_mult a b

00:00:17 #302 [Verbose] >

00:00:17 #303 [Verbose] > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =

00:00:17 #304 [Verbose] >     !\($'"!a / !b"')

00:00:17 #305 [Verbose] >

00:00:17 #306 [Verbose] > inl (./) a b = complex_div a b

00:00:17 #307 [Verbose] >

00:00:17 #308 [Verbose] > inl powc forall t. (s : complex t) (c : complex t) : complex t =

00:00:17 #309 [Verbose] >     inl c = join c

00:00:17 #310 [Verbose] >     inl s = join s

00:00:17 #311 [Verbose] >     !\($'"num_complex::Complex::powc(!c, !s)"')

00:00:17 #312 [Verbose] >

00:00:17 #313 [Verbose] > inl (.**) a b = powc b a

00:00:17 #314 [Verbose] >

00:00:17 #315 [Verbose] > inl complex_sin forall t. (c : complex t) : complex t =

00:00:17 #316 [Verbose] >     !\($'"!c.sin()"')

00:00:17 #317 [Verbose] >

00:00:17 #318 [Verbose] > inl conj forall t. (c : complex t) : complex t =

00:00:17 #319 [Verbose] >     !\($'"!c.conj()"')

00:00:17 #320 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4875-7511-7ec2e47876a1\main.spi

00:00:17 #321 [Verbose] >

00:00:17 #322 [Verbose] > ╭─[ 246.46ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #323 [Verbose] > │ ()                                                                           │

00:00:17 #324 [Verbose] > │                                                                              │

00:00:17 #325 [Verbose] > │                                                                              │

00:00:17 #326 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #327 [Verbose] >

00:00:17 #328 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #329 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #330 [Verbose] > │ ## zeta                                                                      │

00:00:17 #331 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #332 [Verbose] >

00:00:17 #333 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #334 [Verbose] > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex

00:00:17 #335 [Verbose] > f64 =

00:00:17 #336 [Verbose] >     inl rec zeta count gamma s =

00:00:17 #337 [Verbose] >         inl s = join s

00:00:17 #338 [Verbose] >         if log then

00:00:17 #339 [Verbose] >             !\($'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\", !count, !s)"')

00:00:17 #340 [Verbose] >         if re s > 1 then

00:00:17 #341 [Verbose] >             (.^(0, 0), (am.init 10000i32 id : a i32 _))

00:00:17 #342 [Verbose] >             ||> am.fold fun acc n =>

00:00:17 #343 [Verbose] >                 acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))

00:00:17 #344 [Verbose] >         else

00:00:17 #345 [Verbose] >             inl gamma_term = gamma (.^(1, 0) .- s)

00:00:17 #346 [Verbose] >             inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin

00:00:17 #347 [Verbose] >             inl one_minus_s = .^(1 - re s, -(im s))

00:00:17 #348 [Verbose] >             inl mirror_term =

00:00:17 #349 [Verbose] >                 if re one_minus_s <= 1

00:00:17 #350 [Verbose] >                 then .^(0, 0)

00:00:17 #351 [Verbose] >                 else

00:00:17 #352 [Verbose] >                     if count <= 3

00:00:17 #353 [Verbose] >                     then zeta (count + 1) gamma one_minus_s

00:00:17 #354 [Verbose] >                     else one_minus_s

00:00:17 #355 [Verbose] >             inl reflection_formula =

00:00:17 #356 [Verbose] >                 .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*

00:00:17 #357 [Verbose] > mirror_term

00:00:17 #358 [Verbose] >             reflection_formula

00:00:17 #359 [Verbose] >     join zeta 0i32 gamma s

00:00:17 #360 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4900-0013-0d521627adab\main.spi

00:00:17 #361 [Verbose] >

00:00:17 #362 [Verbose] > ╭─[ 286.81ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #363 [Verbose] > │ ()                                                                           │

00:00:17 #364 [Verbose] > │                                                                              │

00:00:17 #365 [Verbose] > │                                                                              │

00:00:17 #366 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #367 [Verbose] >

00:00:17 #368 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #369 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #370 [Verbose] > │ ## eval                                                                      │

00:00:17 #371 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #372 [Verbose] >

00:00:17 #373 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #374 [Verbose] > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =

00:00:17 #375 [Verbose] >     inl py = join py

00:00:17 #376 [Verbose] >     inl code = code |> sm'.as_str

00:00:17 #377 [Verbose] >     !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')

00:00:17 #378 [Verbose] >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'

00:00:17 #379 [Verbose] >

00:00:17 #380 [Verbose] > inl use_pyanymethods () =

00:00:17 #381 [Verbose] >     global "Fable.Core.RustInterop.emitRustExpr () \");\nuse

00:00:17 #382 [Verbose] > pyo3::prelude::PyAnyMethods;\n//\""

00:00:17 #383 [Verbose] >

00:00:17 #384 [Verbose] > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =

00:00:17 #385 [Verbose] >     inl attr = attr |> sm'.as_str

00:00:17 #386 [Verbose] >     inl module = join module

00:00:17 #387 [Verbose] >     use_pyanymethods ()

00:00:17 #388 [Verbose] >     !\($'"!module.getattr(!attr)"')

00:00:17 #389 [Verbose] >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'

00:00:17 #390 [Verbose] >

00:00:17 #391 [Verbose] > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =

00:00:17 #392 [Verbose] >     inl args = join args

00:00:17 #393 [Verbose] >     inl module = join module

00:00:17 #394 [Verbose] >     !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),

00:00:17 #395 [Verbose] > None)"')

00:00:17 #396 [Verbose] >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'

00:00:17 #397 [Verbose] >

00:00:17 #398 [Verbose] > inl extract forall t. (result : bound pyany) : _ t _ =

00:00:17 #399 [Verbose] >     inl result = join result

00:00:17 #400 [Verbose] >     use_pyanymethods ()

00:00:17 #401 [Verbose] >     !\($'"!result.extract()"')

00:00:17 #402 [Verbose] >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'

00:00:17 #403 [Verbose] >

00:00:17 #404 [Verbose] > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =

00:00:17 #405 [Verbose] >     inl code =

00:00:17 #406 [Verbose] >         code

00:00:17 #407 [Verbose] >         |> module_from_code py

00:00:17 #408 [Verbose] >         |> resultm.unwrap'

00:00:17 #409 [Verbose] >     inl fn =

00:00:17 #410 [Verbose] >         code

00:00:17 #411 [Verbose] >         |> getattr "fn"

00:00:17 #412 [Verbose] >         |> resultm.unwrap'

00:00:17 #413 [Verbose] >

00:00:17 #414 [Verbose] >     fn

00:00:17 #415 [Verbose] >     |> call args

00:00:17 #416 [Verbose] >     |> resultm.try'

00:00:17 #417 [Verbose] >     |> extract

00:00:17 #418 [Verbose] >     |> resultm.try'

00:00:17 #419 [Verbose] >     |> complex

00:00:17 #420 [Verbose] >     |> Ok

00:00:17 #421 [Verbose] >     |> resultm.box

00:00:17 #422 [Verbose] >

00:00:17 #423 [Verbose] > inl call1_ log py s code =

00:00:17 #424 [Verbose] >     inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"

00:00:17 #425 [Verbose] >

00:00:17 #426 [Verbose] >     inl s = new_pair (re s) (im s)

00:00:17 #427 [Verbose] >     inl args = new_pair log s

00:00:17 #428 [Verbose] >

00:00:17 #429 [Verbose] >     eval py code args

00:00:17 #430 [Verbose] >

00:00:17 #431 [Verbose] > inl call1_ log name py s line =

00:00:17 #432 [Verbose] >     inl s = join s

00:00:17 #433 [Verbose] >     join

00:00:17 #434 [Verbose] >         ;[[

00:00:17 #435 [Verbose] >             $'$"import sys"'

00:00:17 #436 [Verbose] >             $'$"import traceback"'

00:00:17 #437 [Verbose] >             $'$"import re"'

00:00:17 #438 [Verbose] >             $'$"count = 0"'

00:00:17 #439 [Verbose] >             $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'

00:00:17 #440 [Verbose] >             $'$"def trace_calls(frame, event, arg):"'

00:00:17 #441 [Verbose] >             $'$"    global count"'

00:00:17 #442 [Verbose] >             $'$"    count += 1"'

00:00:17 #443 [Verbose] >             $'$"    if count < 200:"'

00:00:17 #444 [Verbose] >             $'$"        try:"'

00:00:17 #445 [Verbose] >             $'$"            args = {{ k: v for k, v in frame.f_locals.items() if

00:00:17 #446 [Verbose] > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not

00:00:17 #447 [Verbose] > callable(v) }}"'

00:00:17 #448 [Verbose] >             $'$"            args_str = \', \'.join([[

00:00:17 #449 [Verbose] > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,

00:00:17 #450 [Verbose] > v in args.items() ]])"'

00:00:17 #451 [Verbose] >             $'$"            print(f\\\"{{event}}({!name}) / f_code.co_name:

00:00:17 #452 [Verbose] > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}

00:00:17 #453 [Verbose] > / f_code.co_filename:

00:00:17 #454 [Verbose] > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:

00:00:17 #455 [Verbose] > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}

00:00:17 #456 [Verbose] > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else

00:00:17 #457 [Verbose] > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:

00:00:17 #458 [Verbose] > {{re.sub(memory_address_pattern, \' at 0x<?>\', repr(arg))}}\\\", flush=True)"'

00:00:17 #459 [Verbose] >             $'$"        except ValueError as e:"'

00:00:17 #460 [Verbose] >             $'$"            print(f\'{!name} / e: {{e}}\', flush=True)"'

00:00:17 #461 [Verbose] >             $'$"        return trace_calls"'

00:00:17 #462 [Verbose] >             $'$"import mpmath"'

00:00:17 #463 [Verbose] >             $'$"def fn(log, s):"'

00:00:17 #464 [Verbose] >             $'$"    global count"'

00:00:17 #465 [Verbose] >             $'$"    if log:"'

00:00:17 #466 [Verbose] >             $'$"        print(f\'{!name} / s: {{s}} / count: {{count}}\',

00:00:17 #467 [Verbose] > flush=True)"'

00:00:17 #468 [Verbose] >             $'$"    s = complex(*s)"'

00:00:17 #469 [Verbose] >             $'$"    try:"'

00:00:17 #470 [Verbose] >             $'$"        if log: sys.settrace(trace_calls)"'

00:00:17 #471 [Verbose] >             line

00:00:17 #472 [Verbose] >             $'$"        if log:"'

00:00:17 #473 [Verbose] >             $'$"            sys.settrace(None)"'

00:00:17 #474 [Verbose] >             $'$"            print(f\'{!name} / result: {{s}} / count:

00:00:17 #475 [Verbose] > {{count}}\', flush=True)"'

00:00:17 #476 [Verbose] >             $'$"    except ValueError as e:"'

00:00:17 #477 [Verbose] >             $'$"        if s.real == 1:"'

00:00:17 #478 [Verbose] >             $'$"            s = complex(float(\'inf\'), 0)"'

00:00:17 #479 [Verbose] >             $'$"    return (s.real, s.imag)"'

00:00:17 #480 [Verbose] >         ]]

00:00:17 #481 [Verbose] >         |> call1_ log py s

00:00:17 #482 [Verbose] >

00:00:17 #483 [Verbose] > inl gamma_ log py s =

00:00:17 #484 [Verbose] >     call1_ log "gamma_" py s $'$"        s = mpmath.gamma(s)"'

00:00:17 #485 [Verbose] >

00:00:17 #486 [Verbose] > inl zeta_ log py s =

00:00:17 #487 [Verbose] >     call1_ log "zeta_" py s $'$"        s = mpmath.zeta(s)"'

00:00:17 #488 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4929-2923-235691f254ab\main.spi

00:00:17 #489 [Verbose] >

00:00:17 #490 [Verbose] > ╭─[ 218.67ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #491 [Verbose] > │ ()                                                                           │

00:00:17 #492 [Verbose] > │                                                                              │

00:00:17 #493 [Verbose] > │                                                                              │

00:00:17 #494 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #495 [Verbose] >

00:00:17 #496 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #497 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #498 [Verbose] > │ ## run_test                                                                  │

00:00:17 #499 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #500 [Verbose] >

00:00:17 #501 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #502 [Verbose] > inl run_test log closure_fix (fn : (complex f64 -> complex f64) * (complex f64

00:00:17 #503 [Verbose] > -> complex f64) -> ()) =

00:00:17 #504 [Verbose] >     inl fn_ (py : python) : resultm.result' () pyerr =

00:00:17 #505 [Verbose] >         inl nan () =

00:00:17 #506 [Verbose] >             !\($'"f64::NAN"')

00:00:17 #507 [Verbose] >         inl gamma__ = fun (s : complex f64) =>

00:00:17 #508 [Verbose] >             inl result = gamma_ log py s

00:00:17 #509 [Verbose] >             if log then

00:00:17 #510 [Verbose] >                 inl s = join s

00:00:17 #511 [Verbose] >                 !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,

00:00:17 #512 [Verbose] > !result)"')

00:00:17 #513 [Verbose] >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value

00:00:17 #514 [Verbose] > .^(nan (), nan ())

00:00:17 #515 [Verbose] >         inl zeta__ = fun (s : complex f64) =>

00:00:17 #516 [Verbose] >             inl result = zeta_ log py s

00:00:17 #517 [Verbose] >

00:00:17 #518 [Verbose] >             inl z = zeta true gamma__ s

00:00:17 #519 [Verbose] >

00:00:17 #520 [Verbose] >             if log then

00:00:17 #521 [Verbose] >                 inl s = join s

00:00:17 #522 [Verbose] >                 !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:

00:00:17 #523 [Verbose] > {:?}\\\", !s, !result, !z)"')

00:00:17 #524 [Verbose] >

00:00:17 #525 [Verbose] >     //             re result - re x |> abs

00:00:17 #526 [Verbose] >     //             |> _assert_lt 0.001

00:00:17 #527 [Verbose] >

00:00:17 #528 [Verbose] >     //             im result - im x |> abs

00:00:17 #529 [Verbose] >     //             |> _assert_lt 0.001

00:00:17 #530 [Verbose] >

00:00:17 #531 [Verbose] >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value

00:00:17 #532 [Verbose] > .^(nan (), nan ())

00:00:17 #533 [Verbose] >         join fn (zeta__, gamma__)

00:00:17 #534 [Verbose] >

00:00:17 #535 [Verbose] >         Ok ()

00:00:17 #536 [Verbose] >         |> resultm.box

00:00:17 #537 [Verbose] >

00:00:17 #538 [Verbose] >     join

00:00:17 #539 [Verbose] >         !\($'"pyo3::prepare_freethreaded_python()"') : ()

00:00:17 #540 [Verbose] >

00:00:17 #541 [Verbose] >         !\($'"let __result = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()> {

00:00:17 #542 [Verbose] > //"')

00:00:17 #543 [Verbose] >

00:00:17 #544 [Verbose] >         let x' = fn_ (!\($'"py"') : python)

00:00:17 #545 [Verbose] >         inl x' = join x'

00:00:17 #546 [Verbose] >

00:00:17 #547 [Verbose] >         inl closure_fix = 2u8, 1u8

00:00:17 #548 [Verbose] >         x' |> rust.fix_closure closure_fix

00:00:17 #549 [Verbose] >

00:00:17 #550 [Verbose] >         (!\($'"__result"') : _ () pyerr)

00:00:17 #551 [Verbose] >         |> resultm.unwrap'

00:00:18 #552 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4951-5188-51d570f6019b\main.spi

00:00:18 #553 [Verbose] >

00:00:18 #554 [Verbose] > ╭─[ 230.99ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #555 [Verbose] > │ ()                                                                           │

00:00:18 #556 [Verbose] > │                                                                              │

00:00:18 #557 [Verbose] > │                                                                              │

00:00:18 #558 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #559 [Verbose] >

00:00:18 #560 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:18 #561 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:18 #562 [Verbose] > │ ## test_zeta_at_known_values_                                                │

00:00:18 #563 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #564 [Verbose] >

00:00:18 #565 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #566 [Verbose] > inl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =>

00:00:18 #567 [Verbose] >     ;[[

00:00:18 #568 [Verbose] >         .^(2, 0), pi ** 2 / 6

00:00:18 #569 [Verbose] >         .^(-1, 0), -1 / 12

00:00:18 #570 [Verbose] >     ]]

00:00:18 #571 [Verbose] >     |> fun x => a x : _ i32 _

00:00:18 #572 [Verbose] >     |> am.iter fun s, e =>

00:00:18 #573 [Verbose] >         inl result = zeta s

00:00:18 #574 [Verbose] >

00:00:18 #575 [Verbose] >         result |> im |> _assert_eq 0

00:00:18 #576 [Verbose] >         re result - e |> abs |> _assert_lt 0.0001

00:00:18 #577 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4975-7583-7aa6f4a70579\main.spi

00:00:18 #578 [Verbose] >

00:00:18 #579 [Verbose] > ╭─[ 217.89ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #580 [Verbose] > │ ()                                                                           │

00:00:18 #581 [Verbose] > │                                                                              │

00:00:18 #582 [Verbose] > │                                                                              │

00:00:18 #583 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #584 [Verbose] >

00:00:18 #585 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #586 [Verbose] > // // test

00:00:18 #587 [Verbose] > // // rust=

00:00:18 #588 [Verbose] > // // print_code=false

00:00:18 #589 [Verbose] >

00:00:18 #590 [Verbose] > types ()

00:00:18 #591 [Verbose] > test_zeta_at_known_values_ true

00:00:18 #592 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-4997-9762-91a7808ce3a9\main.spi

00:00:28 #593 [Verbose] >

00:00:28 #594 [Verbose] > ╭─[ 9.92s - return value ]─────────────────────────────────────────────────────╮

00:00:28 #595 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │

00:00:28 #596 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:00:28 #597 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:00:28 #598 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:28 #599 [Verbose] > │ / arg: None                                                                  │

00:00:28 #600 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:00:28 #601 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:00:28 #602 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:28 #603 [Verbose] > │ / arg: None                                                                  │

00:00:28 #604 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:00:28 #605 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:00:28 #606 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:28 #607 [Verbose] > │ / arg: None                                                                  │

00:00:28 #608 [Verbose] > │ line(zeta_) / f_code.co_name: z...                                           │

00:00:28 #609 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #610 [Verbose] >

00:00:28 #611 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:28 #612 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:28 #613 [Verbose] > │ ## test_zeta_at_2_minus2                                                     │

00:00:28 #614 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #615 [Verbose] >

00:00:28 #616 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #617 [Verbose] > inl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =>

00:00:28 #618 [Verbose] >     inl s = .^(2, -2)

00:00:28 #619 [Verbose] >     inl result = zeta s

00:00:28 #620 [Verbose] >

00:00:28 #621 [Verbose] >     (re result - 0.8673) |> abs |> _assert_lt 0.001

00:00:28 #622 [Verbose] >     (im result - 0.2750) |> abs |> _assert_lt 0.001

00:00:28 #623 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0139-5991-9185-9184dbc3f985\main.spi

00:00:28 #624 [Verbose] >

00:00:28 #625 [Verbose] > ╭─[ 235.01ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #626 [Verbose] > │ ()                                                                           │

00:00:28 #627 [Verbose] > │                                                                              │

00:00:28 #628 [Verbose] > │                                                                              │

00:00:28 #629 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #630 [Verbose] >

00:00:28 #631 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #632 [Verbose] > // // test

00:00:28 #633 [Verbose] > // // rust=

00:00:28 #634 [Verbose] > // // print_code=false

00:00:28 #635 [Verbose] >

00:00:28 #636 [Verbose] > types ()

00:00:28 #637 [Verbose] > test_zeta_at_2_minus2 true

00:00:28 #638 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-0015-1536-1059e54cf028\main.spi

00:00:36 #639 [Verbose] >

00:00:36 #640 [Verbose] > ╭─[ 8.02s - return value ]─────────────────────────────────────────────────────╮

00:00:36 #641 [Verbose] > │ zeta_ / s: (2.0, -2.0) / count: 0                                            │

00:00:36 #642 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │

00:00:36 #643 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:00:36 #644 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:36 #645 [Verbose] > │ / arg: None                                                                  │

00:00:36 #646 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │

00:00:36 #647 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:00:36 #648 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:36 #649 [Verbose] > │ / arg: None                                                                  │

00:00:36 #650 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │

00:00:36 #651 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:00:36 #652 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:36 #653 [Verbose] > │ / arg: None                                                                  │

00:00:36 #654 [Verbose] > │ line(zeta_) / f_code.co_name: ...                                            │

00:00:36 #655 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #656 [Verbose] >

00:00:36 #657 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:36 #658 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:36 #659 [Verbose] > │ ## test_trivial_zero_at_negative_even___                                     │

00:00:36 #660 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #661 [Verbose] >

00:00:36 #662 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:36 #663 [Verbose] > inl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun

00:00:36 #664 [Verbose] > zeta, gamma =>

00:00:36 #665 [Verbose] >     (join listm'.init_series -2f64 -40 -2)

00:00:36 #666 [Verbose] >     |> listm.iter fun n =>

00:00:36 #667 [Verbose] >         inl s = .^(n, 0)

00:00:36 #668 [Verbose] >         inl result = zeta s

00:00:36 #669 [Verbose] >

00:00:36 #670 [Verbose] >         result |> re |> _assert_eq 0

00:00:36 #671 [Verbose] >         result |> im |> _assert_eq 0

00:00:36 #672 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-0819-1918-114d7721a343\main.spi

00:00:36 #673 [Verbose] >

00:00:36 #674 [Verbose] > ╭─[ 224.88ms - stdout ]────────────────────────────────────────────────────────╮

00:00:36 #675 [Verbose] > │ ()                                                                           │

00:00:36 #676 [Verbose] > │                                                                              │

00:00:36 #677 [Verbose] > │                                                                              │

00:00:36 #678 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:36 #679 [Verbose] >

00:00:36 #680 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:36 #681 [Verbose] > // // test

00:00:36 #682 [Verbose] > // // rust=

00:00:36 #683 [Verbose] > // // print_code=false

00:00:36 #684 [Verbose] >

00:00:36 #685 [Verbose] > types ()

00:00:36 #686 [Verbose] > test_trivial_zero_at_negative_even___ true

00:00:36 #687 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-0841-4177-4a1b15943591\main.spi

00:00:45 #688 [Verbose] >

00:00:45 #689 [Verbose] > ╭─[ 8.31s - return value ]─────────────────────────────────────────────────────╮

00:00:45 #690 [Verbose] > │ zeta_ / s: (-2.0, 0.0) / count: 0                                            │

00:00:45 #691 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │

00:00:45 #692 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:00:45 #693 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:45 #694 [Verbose] > │ / arg: None                                                                  │

00:00:45 #695 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │

00:00:45 #696 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:00:45 #697 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:45 #698 [Verbose] > │ / arg: None                                                                  │

00:00:45 #699 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │

00:00:45 #700 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:00:45 #701 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:45 #702 [Verbose] > │ / arg: None                                                                  │

00:00:45 #703 [Verbose] > │ line(zeta_) / f_code.co_nam...                                               │

00:00:45 #704 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #705 [Verbose] >

00:00:45 #706 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:45 #707 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:45 #708 [Verbose] > │ ## test_non_trivial_zero___                                                  │

00:00:45 #709 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #710 [Verbose] >

00:00:45 #711 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:45 #712 [Verbose] > inl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =>

00:00:45 #713 [Verbose] >     ;[[

00:00:45 #714 [Verbose] >         .^(0.5, 14.134725)

00:00:45 #715 [Verbose] >         .^(0.5, 21.022040)

00:00:45 #716 [Verbose] >         .^(0.5, 25.010857)

00:00:45 #717 [Verbose] >         .^(0.5, 30.424876)

00:00:45 #718 [Verbose] >         .^(0.5, 32.935062)

00:00:45 #719 [Verbose] >         .^(0.5, 37.586178)

00:00:45 #720 [Verbose] >     ]]

00:00:45 #721 [Verbose] >     |> fun x => a x : _ i32 _

00:00:45 #722 [Verbose] >     |> am.iter fun x =>

00:00:45 #723 [Verbose] >             inl result = zeta x

00:00:45 #724 [Verbose] >             result |> re |> abs |> _assert_lt 0.0001

00:00:45 #725 [Verbose] >             result |> im |> abs |> _assert_lt 0.0001

00:00:45 #726 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-1675-7590-720d4caec5f9\main.spi

00:00:45 #727 [Verbose] >

00:00:45 #728 [Verbose] > ╭─[ 211.80ms - stdout ]────────────────────────────────────────────────────────╮

00:00:45 #729 [Verbose] > │ ()                                                                           │

00:00:45 #730 [Verbose] > │                                                                              │

00:00:45 #731 [Verbose] > │                                                                              │

00:00:45 #732 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:45 #733 [Verbose] >

00:00:45 #734 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:45 #735 [Verbose] > // // test

00:00:45 #736 [Verbose] > // // rust=

00:00:45 #737 [Verbose] > // // print_code=false

00:00:45 #738 [Verbose] >

00:00:45 #739 [Verbose] > types ()

00:00:45 #740 [Verbose] > test_non_trivial_zero___ true

00:00:45 #741 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-1697-9715-9458fbe95876\main.spi

00:00:53 #742 [Verbose] >

00:00:53 #743 [Verbose] > ╭─[ 8.16s - return value ]─────────────────────────────────────────────────────╮

00:00:53 #744 [Verbose] > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │

00:00:53 #745 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │

00:00:53 #746 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │

00:00:53 #747 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:53 #748 [Verbose] > │ / arg: None                                                                  │

00:00:53 #749 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │

00:00:53 #750 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │

00:00:53 #751 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:00:53 #752 [Verbose] > │ / arg: None                                                                  │

00:00:53 #753 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │

00:00:53 #754 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │

00:00:53 #755 [Verbose] > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │

00:00:53 #756 [Verbose] > │ f_back.f_code.co_filename:  / arg: ...                                       │

00:00:53 #757 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:53 #758 [Verbose] >

00:00:53 #759 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:53 #760 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:53 #761 [Verbose] > │ ## test_real_part_greater_than_one___                                        │

00:00:53 #762 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:53 #763 [Verbose] >

00:00:53 #764 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:53 #765 [Verbose] > inl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta,

00:00:53 #766 [Verbose] > gamma =>

00:00:53 #767 [Verbose] >     inl points = ;[[2; 3; 4; 5; 10; 20; 50]]

00:00:53 #768 [Verbose] >     (a points : _ i32 _)

00:00:53 #769 [Verbose] >     |> am.iter fun point =>

00:00:53 #770 [Verbose] >         inl s = .^(point, 0)

00:00:53 #771 [Verbose] >         inl result = zeta s

00:00:53 #772 [Verbose] >         result |> re |> _assert_gt 0

00:00:53 #773 [Verbose] >         result |> im |> _assert_eq 0

00:00:53 #774 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-2514-1483-136879784f92\main.spi

00:00:53 #775 [Verbose] >

00:00:53 #776 [Verbose] > ╭─[ 229.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:53 #777 [Verbose] > │ ()                                                                           │

00:00:53 #778 [Verbose] > │                                                                              │

00:00:53 #779 [Verbose] > │                                                                              │

00:00:53 #780 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:53 #781 [Verbose] >

00:00:53 #782 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:53 #783 [Verbose] > // // test

00:00:53 #784 [Verbose] > // // rust=

00:00:53 #785 [Verbose] > // // print_code=false

00:00:53 #786 [Verbose] >

00:00:53 #787 [Verbose] > types ()

00:00:53 #788 [Verbose] > test_real_part_greater_than_one___ true

00:00:53 #789 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-2537-3792-313b65bbbd2c\main.spi

00:01:02 #790 [Verbose] >

00:01:02 #791 [Verbose] > ╭─[ 8.87s - return value ]─────────────────────────────────────────────────────╮

00:01:02 #792 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │

00:01:02 #793 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:01:02 #794 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:01:02 #795 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:02 #796 [Verbose] > │ / arg: None                                                                  │

00:01:02 #797 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:01:02 #798 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:01:02 #799 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:02 #800 [Verbose] > │ / arg: None                                                                  │

00:01:02 #801 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:01:02 #802 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:01:02 #803 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:02 #804 [Verbose] > │ / arg: None                                                                  │

00:01:02 #805 [Verbose] > │ line(zeta_) / f_code.co_name: z...                                           │

00:01:02 #806 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #807 [Verbose] >

00:01:02 #808 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:02 #809 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:02 #810 [Verbose] > │ ## test_zeta_at_1___                                                         │

00:01:02 #811 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #812 [Verbose] >

00:01:02 #813 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #814 [Verbose] > inl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =>

00:01:02 #815 [Verbose] >     inl s = .^(1, 0)

00:01:02 #816 [Verbose] >     inl result = zeta s

00:01:02 #817 [Verbose] >     result |> re |> _assert_eq limit.max

00:01:02 #818 [Verbose] >     result |> im |> _assert_eq 0

00:01:02 #819 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-3427-2727-266e99eed93c\main.spi

00:01:02 #820 [Verbose] >

00:01:02 #821 [Verbose] > ╭─[ 266.35ms - stdout ]────────────────────────────────────────────────────────╮

00:01:02 #822 [Verbose] > │ ()                                                                           │

00:01:02 #823 [Verbose] > │                                                                              │

00:01:02 #824 [Verbose] > │                                                                              │

00:01:02 #825 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:02 #826 [Verbose] >

00:01:02 #827 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:02 #828 [Verbose] > // // test

00:01:02 #829 [Verbose] > // // rust=

00:01:02 #830 [Verbose] > // // print_code=false

00:01:02 #831 [Verbose] >

00:01:02 #832 [Verbose] > types ()

00:01:02 #833 [Verbose] > test_zeta_at_1___ true

00:01:03 #834 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-3453-5390-54801bf4240a\main.spi

00:01:12 #835 [Verbose] >

00:01:12 #836 [Verbose] > ╭─[ 9.80s - return value ]─────────────────────────────────────────────────────╮

00:01:12 #837 [Verbose] > │ zeta_ / s: (1.0, 0.0) / count: 0                                             │

00:01:12 #838 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │

00:01:12 #839 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:01:12 #840 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:12 #841 [Verbose] > │ / arg: None                                                                  │

00:01:12 #842 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │

00:01:12 #843 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:01:12 #844 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:12 #845 [Verbose] > │ / arg: None                                                                  │

00:01:12 #846 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │

00:01:12 #847 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:01:12 #848 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:12 #849 [Verbose] > │ / arg: None                                                                  │

00:01:12 #850 [Verbose] > │ line(zeta_) / f_code.co_name: z...                                           │

00:01:12 #851 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #852 [Verbose] >

00:01:12 #853 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:12 #854 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:12 #855 [Verbose] > │ ## test_symmetry_across_real_axis___                                         │

00:01:12 #856 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #857 [Verbose] >

00:01:12 #858 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #859 [Verbose] > inl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta,

00:01:12 #860 [Verbose] > gamma =>

00:01:12 #861 [Verbose] >     inl s = .^(2, 10)

00:01:12 #862 [Verbose] >     inl result_positive_im = zeta s

00:01:12 #863 [Verbose] >     inl result_negative_im = zeta .^(re s, -(im s))

00:01:12 #864 [Verbose] >     inl conj = result_negative_im |> conj

00:01:12 #865 [Verbose] >     result_positive_im |> re |> _assert_eq (conj |> re)

00:01:12 #866 [Verbose] >     result_positive_im |> im |> _assert_eq (conj |> im)

00:01:12 #867 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-4435-3546-3ac43a0ce511\main.spi

00:01:12 #868 [Verbose] >

00:01:12 #869 [Verbose] > ╭─[ 201.32ms - stdout ]────────────────────────────────────────────────────────╮

00:01:12 #870 [Verbose] > │ ()                                                                           │

00:01:12 #871 [Verbose] > │                                                                              │

00:01:12 #872 [Verbose] > │                                                                              │

00:01:12 #873 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:12 #874 [Verbose] >

00:01:12 #875 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:12 #876 [Verbose] > // // test

00:01:12 #877 [Verbose] > // // rust=

00:01:12 #878 [Verbose] > // // print_code=false

00:01:12 #879 [Verbose] >

00:01:12 #880 [Verbose] > types ()

00:01:12 #881 [Verbose] > test_symmetry_across_real_axis___ true

00:01:13 #882 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-4455-5565-5ab36b9b9d18\main.spi

00:01:22 #883 [Verbose] >

00:01:22 #884 [Verbose] > ╭─[ 9.54s - return value ]─────────────────────────────────────────────────────╮

00:01:22 #885 [Verbose] > │ zeta_ / s: (2.0, 10.0) / count: 0                                            │

00:01:22 #886 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │

00:01:22 #887 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:01:22 #888 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:22 #889 [Verbose] > │ / arg: None                                                                  │

00:01:22 #890 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │

00:01:22 #891 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:01:22 #892 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:22 #893 [Verbose] > │ / arg: None                                                                  │

00:01:22 #894 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │

00:01:22 #895 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:01:22 #896 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:22 #897 [Verbose] > │ / arg: None                                                                  │

00:01:22 #898 [Verbose] > │ line(zeta_) / f_code.co_nam...                                               │

00:01:22 #899 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #900 [Verbose] >

00:01:22 #901 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:22 #902 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:22 #903 [Verbose] > │ ## test_behavior_near_origin___                                              │

00:01:22 #904 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #905 [Verbose] >

00:01:22 #906 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:22 #907 [Verbose] > inl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma

00:01:22 #908 [Verbose] > =>

00:01:22 #909 [Verbose] >     inl s = .^(0.01, 0.01)

00:01:22 #910 [Verbose] >     inl result = zeta s

00:01:22 #911 [Verbose] >     result |> re |> _assert_lt limit.max

00:01:22 #912 [Verbose] >     result |> im |> _assert_lt limit.max

00:01:22 #913 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-5410-1089-158bb0fc635e\main.spi

00:01:22 #914 [Verbose] >

00:01:22 #915 [Verbose] > ╭─[ 202.06ms - stdout ]────────────────────────────────────────────────────────╮

00:01:22 #916 [Verbose] > │ ()                                                                           │

00:01:22 #917 [Verbose] > │                                                                              │

00:01:22 #918 [Verbose] > │                                                                              │

00:01:22 #919 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:22 #920 [Verbose] >

00:01:22 #921 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:22 #922 [Verbose] > // // test

00:01:22 #923 [Verbose] > // // rust=

00:01:22 #924 [Verbose] > // // print_code=false

00:01:22 #925 [Verbose] >

00:01:22 #926 [Verbose] > types ()

00:01:22 #927 [Verbose] > test_behavior_near_origin___ true

00:01:22 #928 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0140-5431-3125-3957a8217d1e\main.spi

00:01:31 #929 [Verbose] >

00:01:31 #930 [Verbose] > ╭─[ 9.08s - return value ]─────────────────────────────────────────────────────╮

00:01:31 #931 [Verbose] > │ zeta_ / s: (0.01, 0.01) / count: 0                                           │

00:01:31 #932 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │

00:01:31 #933 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │

00:01:31 #934 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:31 #935 [Verbose] > │ / arg: None                                                                  │

00:01:31 #936 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │

00:01:31 #937 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │

00:01:31 #938 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:31 #939 [Verbose] > │ / arg: None                                                                  │

00:01:31 #940 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │

00:01:31 #941 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │

00:01:31 #942 [Verbose] > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │

00:01:31 #943 [Verbose] > │ f_back.f_code.co_filename:  / arg: None                                      │

00:01:31 #944 [Verbose] > │ line(zeta_)...                                                               │

00:01:31 #945 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #946 [Verbose] >

00:01:31 #947 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #948 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #949 [Verbose] > │ ## test_imaginary_axis                                                       │

00:01:31 #950 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #951 [Verbose] >

00:01:31 #952 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #953 [Verbose] > inl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =>

00:01:31 #954 [Verbose] >     (join a ;[[10; 20; 30; 40; 50; 60; 70; 80; 90; 100]] : _ i32 _)

00:01:31 #955 [Verbose] >     |> am.iter fun s =>

00:01:31 #956 [Verbose] >         inl s = .^(0, s)

00:01:31 #957 [Verbose] >         inl result = zeta s

00:01:31 #958 [Verbose] >         result |> re |> _assert_ne 0

00:01:31 #959 [Verbose] >         result |> im |> _assert_ne 0

00:01:31 #960 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-0340-4027-448ebd3d2926\main.spi

00:01:31 #961 [Verbose] >

00:01:31 #962 [Verbose] > ╭─[ 221.89ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #963 [Verbose] > │ ()                                                                           │

00:01:31 #964 [Verbose] > │                                                                              │

00:01:31 #965 [Verbose] > │                                                                              │

00:01:31 #966 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #967 [Verbose] >

00:01:31 #968 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #969 [Verbose] > // // test

00:01:32 #970 [Verbose] > // // rust=

00:01:32 #971 [Verbose] > // // print_code=false

00:01:32 #972 [Verbose] >

00:01:32 #973 [Verbose] > types ()

00:01:32 #974 [Verbose] > test_imaginary_axis true

00:01:32 #975 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-0362-6265-6c32d9f9745a\main.spi

00:01:43 #976 [Verbose] >

00:01:43 #977 [Verbose] > ╭─[ 11.55s - return value ]────────────────────────────────────────────────────╮

00:01:43 #978 [Verbose] > │ zeta_ / s: (0.0, 10.0) / count: 0                                            │

00:01:43 #979 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │

00:01:43 #980 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:01:43 #981 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:43 #982 [Verbose] > │ / arg: None                                                                  │

00:01:43 #983 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │

00:01:43 #984 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:01:43 #985 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:43 #986 [Verbose] > │ / arg: None                                                                  │

00:01:43 #987 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │

00:01:43 #988 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:01:43 #989 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:43 #990 [Verbose] > │ / arg: None                                                                  │

00:01:43 #991 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_...                                   │

00:01:43 #992 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #993 [Verbose] >

00:01:43 #994 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:43 #995 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:43 #996 [Verbose] > │ ## test_critical_strip                                                       │

00:01:43 #997 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #998 [Verbose] >

00:01:43 #999 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:43 #1000 [Verbose] > inl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =>

00:01:43 #1001 [Verbose] >     ;[[

00:01:43 #1002 [Verbose] >         .^(0.5, 14.134725)

00:01:43 #1003 [Verbose] >         .^(0.75, 20.5)

00:01:43 #1004 [Verbose] >         .^(1.25, 30.1)

00:01:43 #1005 [Verbose] >         .^(0.25, 40.0)

00:01:43 #1006 [Verbose] >         .^(1.0, 50.0)

00:01:43 #1007 [Verbose] >     ]]

00:01:43 #1008 [Verbose] >     |> fun x => a x : _ i32 _

00:01:43 #1009 [Verbose] >     |> am.iter fun s =>

00:01:43 #1010 [Verbose] >         inl result = zeta s

00:01:43 #1011 [Verbose] >         result |> re |> _assert_ne 0

00:01:43 #1012 [Verbose] >         result |> im |> _assert_ne 0

00:01:43 #1013 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-1520-2018-2ca9f01b2093\main.spi

00:01:43 #1014 [Verbose] >

00:01:43 #1015 [Verbose] > ╭─[ 268.99ms - stdout ]────────────────────────────────────────────────────────╮

00:01:43 #1016 [Verbose] > │ ()                                                                           │

00:01:43 #1017 [Verbose] > │                                                                              │

00:01:43 #1018 [Verbose] > │                                                                              │

00:01:43 #1019 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:43 #1020 [Verbose] >

00:01:43 #1021 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:43 #1022 [Verbose] > // // test

00:01:43 #1023 [Verbose] > // // rust=

00:01:43 #1024 [Verbose] > // // print_code=false

00:01:43 #1025 [Verbose] >

00:01:43 #1026 [Verbose] > types ()

00:01:43 #1027 [Verbose] > test_critical_strip true

00:01:43 #1028 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-1547-4712-443c0e67916c\main.spi

00:01:55 #1029 [Verbose] >

00:01:55 #1030 [Verbose] > ╭─[ 12.07s - return value ]────────────────────────────────────────────────────╮

00:01:55 #1031 [Verbose] > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │

00:01:55 #1032 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │

00:01:55 #1033 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │

00:01:55 #1034 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:55 #1035 [Verbose] > │ / arg: None                                                                  │

00:01:55 #1036 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │

00:01:55 #1037 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │

00:01:55 #1038 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:01:55 #1039 [Verbose] > │ / arg: None                                                                  │

00:01:55 #1040 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │

00:01:55 #1041 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │

00:01:55 #1042 [Verbose] > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │

00:01:55 #1043 [Verbose] > │ f_back.f_code.co_filename:  / arg: ...                                       │

00:01:55 #1044 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:55 #1045 [Verbose] >

00:01:55 #1046 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:55 #1047 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:55 #1048 [Verbose] > │ ## test_reflection_formula_for_specific_value                                │

00:01:55 #1049 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:55 #1050 [Verbose] >

00:01:55 #1051 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:55 #1052 [Verbose] > inl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun

00:01:55 #1053 [Verbose] > zeta, gamma =>

00:01:55 #1054 [Verbose] >     ;[[

00:01:55 #1055 [Verbose] >         .^(3, 4)

00:01:55 #1056 [Verbose] >         .^(2.5, -3.5)

00:01:55 #1057 [Verbose] >         .^(1.5, 2.5)

00:01:55 #1058 [Verbose] >         .^(0.5, 14.134725)

00:01:55 #1059 [Verbose] >     ]]

00:01:55 #1060 [Verbose] >     |> fun x => a x : _ i32 _

00:01:55 #1061 [Verbose] >     |> am.iter fun s =>

00:01:55 #1062 [Verbose] >         inl lhs = zeta s

00:01:55 #1063 [Verbose] >         inl reflection_coefficient =

00:01:55 #1064 [Verbose] >             (.^(2, 0) .** s)

00:01:55 #1065 [Verbose] >             .* (.^(pi, 0) .** (s .- .^(1, 0)))

00:01:55 #1066 [Verbose] >             .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)

00:01:55 #1067 [Verbose] >             .* gamma (.^(1, 0) .- s)

00:01:55 #1068 [Verbose] >

00:01:55 #1069 [Verbose] >         inl one_minus_s = .^(1 - re s, -(im s))

00:01:55 #1070 [Verbose] >         inl rhs = reflection_coefficient .* zeta one_minus_s

00:01:55 #1071 [Verbose] >

00:01:55 #1072 [Verbose] >         re lhs - re rhs |> abs |> _assert_lt 0.0001

00:01:55 #1073 [Verbose] >         im lhs - im rhs |> abs |> _assert_lt 0.0001

00:01:56 #1074 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-2755-5536-5362e88b7954\main.spi

00:01:56 #1075 [Verbose] >

00:01:56 #1076 [Verbose] > ╭─[ 230.08ms - stdout ]────────────────────────────────────────────────────────╮

00:01:56 #1077 [Verbose] > │ ()                                                                           │

00:01:56 #1078 [Verbose] > │                                                                              │

00:01:56 #1079 [Verbose] > │                                                                              │

00:01:56 #1080 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:56 #1081 [Verbose] >

00:01:56 #1082 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:56 #1083 [Verbose] > // // test

00:01:56 #1084 [Verbose] > // // rust=

00:01:56 #1085 [Verbose] > // // print_code=false

00:01:56 #1086 [Verbose] >

00:01:56 #1087 [Verbose] > types ()

00:01:56 #1088 [Verbose] > test_reflection_formula_for_specific_value true

00:01:56 #1089 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-2778-7842-717e4b31ca12\main.spi

00:02:04 #1090 [Verbose] >

00:02:04 #1091 [Verbose] > ╭─[ 8.25s - return value ]─────────────────────────────────────────────────────╮

00:02:04 #1092 [Verbose] > │ zeta_ / s: (3.0, 4.0) / count: 0                                             │

00:02:04 #1093 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │

00:02:04 #1094 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:02:04 #1095 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:02:04 #1096 [Verbose] > │ / arg: None                                                                  │

00:02:04 #1097 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │

00:02:04 #1098 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:02:04 #1099 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:02:04 #1100 [Verbose] > │ / arg: None                                                                  │

00:02:04 #1101 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │

00:02:04 #1102 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:02:04 #1103 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:02:04 #1104 [Verbose] > │ / arg: None                                                                  │

00:02:04 #1105 [Verbose] > │ line(zeta_) / f_code.co_name: z...                                           │

00:02:04 #1106 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:04 #1107 [Verbose] >

00:02:04 #1108 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:04 #1109 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:04 #1110 [Verbose] > │ ## test_euler_product_formula                                                │

00:02:04 #1111 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:04 #1112 [Verbose] >

00:02:04 #1113 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:04 #1114 [Verbose] > inl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =>

00:02:04 #1115 [Verbose] >     inl s_values = ;[[2; 2.5; 3; 3.5; 4; 4.5; 5]]

00:02:04 #1116 [Verbose] >     inl primes = ;[[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53;

00:02:04 #1117 [Verbose] > 59; 61; 67; 71]]

00:02:04 #1118 [Verbose] >     (a s_values : _ i32 _)

00:02:04 #1119 [Verbose] >     |> am.iter fun s_re =>

00:02:04 #1120 [Verbose] >         inl s = .^(s_re, 0)

00:02:04 #1121 [Verbose] >         inl product =

00:02:04 #1122 [Verbose] >             (1, (a primes : _ i32 _))

00:02:04 #1123 [Verbose] >             ||> am.fold fun acc x =>

00:02:04 #1124 [Verbose] >                 acc * 1 / (1 - x ** -s_re)

00:02:04 #1125 [Verbose] >

00:02:04 #1126 [Verbose] >         inl result = zeta s

00:02:04 #1127 [Verbose] >         re result - product |> abs |> _assert_lt 0.01

00:02:04 #1128 [Verbose] >         result |> im |> _assert_lt 0.01

00:02:04 #1129 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-3605-0554-00bf4bffc610\main.spi

00:02:04 #1130 [Verbose] >

00:02:04 #1131 [Verbose] > ╭─[ 228.77ms - stdout ]────────────────────────────────────────────────────────╮

00:02:04 #1132 [Verbose] > │ ()                                                                           │

00:02:04 #1133 [Verbose] > │                                                                              │

00:02:04 #1134 [Verbose] > │                                                                              │

00:02:04 #1135 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:04 #1136 [Verbose] >

00:02:04 #1137 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:04 #1138 [Verbose] > // // test

00:02:04 #1139 [Verbose] > // // rust=

00:02:04 #1140 [Verbose] > // // print_code=false

00:02:04 #1141 [Verbose] >

00:02:04 #1142 [Verbose] > types ()

00:02:04 #1143 [Verbose] > test_euler_product_formula true

00:02:04 #1144 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-3628-2838-26a21dbaba5d\main.spi

00:02:13 #1145 [Verbose] >

00:02:13 #1146 [Verbose] > ╭─[ 8.47s - return value ]─────────────────────────────────────────────────────╮

00:02:13 #1147 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │

00:02:13 #1148 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:02:13 #1149 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │

00:02:13 #1150 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:02:13 #1151 [Verbose] > │ / arg: None                                                                  │

00:02:13 #1152 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:02:13 #1153 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │

00:02:13 #1154 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:02:13 #1155 [Verbose] > │ / arg: None                                                                  │

00:02:13 #1156 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │

00:02:13 #1157 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │

00:02:13 #1158 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │

00:02:13 #1159 [Verbose] > │ / arg: None                                                                  │

00:02:13 #1160 [Verbose] > │ line(zeta_) / f_code.co_name: z...                                           │

00:02:13 #1161 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #1162 [Verbose] >

00:02:13 #1163 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:13 #1164 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:13 #1165 [Verbose] > │ ## graph                                                                     │

00:02:13 #1166 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #1167 [Verbose] >

00:02:13 #1168 [Verbose] > ── mermaid ─────────────────────────────────────────────────────────────────────

00:02:13 #1169 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:13 #1170 [Verbose] > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │

00:02:13 #1171 [Verbose] > │ <link rel="stylesheet"                                                       │

00:02:13 #1172 [Verbose] > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │

00:02:13 #1173 [Verbose] > │ css">                                                                        │

00:02:13 #1174 [Verbose] > │ <div id="b4a03c6f6559435b801e5ae6ceb4ab30"></div>                            │

00:02:13 #1175 [Verbose] > │ <script type="module">                                                       │

00:02:13 #1176 [Verbose] > │                                                                              │

00:02:13 #1177 [Verbose] > │             import mermaid from                                              │

00:02:13 #1178 [Verbose] > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │

00:02:13 #1179 [Verbose] > │             let renderTarget =                                               │

00:02:13 #1180 [Verbose] > │ document.getElementById('b4a03c6f6559435b801e5ae6ceb4ab30');                 │

00:02:13 #1181 [Verbose] > │             try {                                                            │

00:02:13 #1182 [Verbose] > │                 const {svg, bindFunctions} = await                           │

00:02:13 #1183 [Verbose] > │ mermaid.mermaidAPI.render(                                                   │

00:02:13 #1184 [Verbose] > │                     'mermaid_b4a03c6f6559435b801e5ae6ceb4ab30',              │

00:02:13 #1185 [Verbose] > │                     `graph TD                                                │

00:02:13 #1186 [Verbose] > │     zeta("zeta()") --> convert                                               │

00:02:13 #1187 [Verbose] > │     zeta --> f["f()"]                                                        │

00:02:13 #1188 [Verbose] > │     f --> mpc_f["mpc_zeta()"]                                                │

00:02:13 #1189 [Verbose] > │     f --> mpf_f["mpf_zeta()"]                                                │

00:02:13 #1190 [Verbose] > │     convert --> from_float                                                   │

00:02:13 #1191 [Verbose] > │     from_float --> from_man_exp                                              │

00:02:13 #1192 [Verbose] > │     from_man_exp --> python_bitcount                                         │

00:02:13 #1193 [Verbose] > │     python_bitcount --> _normalize                                           │

00:02:13 #1194 [Verbose] > │     _normalize --> make_mpc                                                  │

00:02:13 #1195 [Verbose] > │     make_mpc --> mpc_zeta["mpc_zeta()"]                                      │

00:02:13 #1196 [Verbose] > │     mpc_zeta --> mpf_zeta["mpf_zeta()"]                                      │

00:02:13 #1197 [Verbose] > │     mpf_zeta --> to_int                                                      │

00:02:13 #1198 [Verbose] > │     to_int --> mpf_zeta_int["mpf_zeta_int()"]                                │

00:02:13 #1199 [Verbose] > │     mpf_zeta_int --> borwein_coefficients                                    │

00:02:13 #1200 [Verbose] > │     borwein_coefficients --> from_man_exp_2("from_man_exp()")                │

00:02:13 #1201 [Verbose] > │     from_man_exp_2 --> python_bitcount_2("python_bitcount()")                │

00:02:13 #1202 [Verbose] > │     python_bitcount_2 --> _normalize_2("_normalize()")                       │

00:02:13 #1203 [Verbose] > │     _normalize_2 --> make_mpc_2("make_mpc()")                                │

00:02:13 #1204 [Verbose] > │     make_mpc_2 --> stop_trace                                                │

00:02:13 #1205 [Verbose] > │     mpf_zeta_int --> mpf_bernoulli                                           │

00:02:13 #1206 [Verbose] > │     mpf_bernoulli --> bernoulli_size                                         │

00:02:13 #1207 [Verbose] > │     bernoulli_size --> mpf_rdiv_int                                          │

00:02:13 #1208 [Verbose] > │     mpf_rdiv_int --> python_bitcount_3("python_bitcount()")                  │

00:02:13 #1209 [Verbose] > │     python_bitcount_3 --> _normalize1                                        │

00:02:13 #1210 [Verbose] > │     _normalize1 --> from_man_exp_3("from_man_exp()")                         │

00:02:13 #1211 [Verbose] > │     from_man_exp_3 --> _normalize_3("_normalize()")                          │

00:02:13 #1212 [Verbose] > │     _normalize_3 --> mpf_sub                                                 │

00:02:13 #1213 [Verbose] > │     mpf_sub --> mpf_add                                                      │

00:02:13 #1214 [Verbose] > │     mpf_add --> mpf_neg                                                      │

00:02:13 #1215 [Verbose] > │     mpf_neg --> _normalize1_2("_normalize1()")                               │

00:02:13 #1216 [Verbose] > │     _normalize1_2 --> from_int                                               │

00:02:13 #1217 [Verbose] > │     from_int --> mpf_div                                                     │

00:02:13 #1218 [Verbose] > │     mpf_div --> python_bitcount_4("python_bitcount()")                       │

00:02:13 #1219 [Verbose] > │     python_bitcount_4 --> _normalize1_3("_normalize1()")                     │

00:02:13 #1220 [Verbose] > │     _normalize1_3 --> make_mpc_3("make_mpc()")                               │

00:02:13 #1221 [Verbose] > │     make_mpc_3 --> final_stop["stop_trace()"]`);                             │

00:02:13 #1222 [Verbose] > │                 renderTarget.innerHTML = svg;                                │

00:02:13 #1223 [Verbose] > │                 bindFunctions?.(renderTarget);                               │

00:02:13 #1224 [Verbose] > │             }                                                                │

00:02:13 #1225 [Verbose] > │             catch (error) {                                                  │

00:02:13 #1226 [Verbose] > │                 console.log(error);                                          │

00:02:13 #1227 [Verbose] > │             }                                                                │

00:02:13 #1228 [Verbose] > │ </script>                                                                    │

00:02:13 #1229 [Verbose] > │ </div>                                                                       │

00:02:13 #1230 [Verbose] > │                                                                              │

00:02:13 #1231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #1232 [Verbose] >

00:02:13 #1233 [Verbose] > ── mermaid ─────────────────────────────────────────────────────────────────────

00:02:13 #1234 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:13 #1235 [Verbose] > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │

00:02:13 #1236 [Verbose] > │ <link rel="stylesheet"                                                       │

00:02:13 #1237 [Verbose] > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │

00:02:13 #1238 [Verbose] > │ css">                                                                        │

00:02:13 #1239 [Verbose] > │ <div id="f01eb1e3dc724e73aa8524bc2f0162a0"></div>                            │

00:02:13 #1240 [Verbose] > │ <script type="module">                                                       │

00:02:13 #1241 [Verbose] > │                                                                              │

00:02:13 #1242 [Verbose] > │             import mermaid from                                              │

00:02:13 #1243 [Verbose] > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │

00:02:13 #1244 [Verbose] > │             let renderTarget =                                               │

00:02:13 #1245 [Verbose] > │ document.getElementById('f01eb1e3dc724e73aa8524bc2f0162a0');                 │

00:02:13 #1246 [Verbose] > │             try {                                                            │

00:02:13 #1247 [Verbose] > │                 const {svg, bindFunctions} = await                           │

00:02:13 #1248 [Verbose] > │ mermaid.mermaidAPI.render(                                                   │

00:02:13 #1249 [Verbose] > │                     'mermaid_f01eb1e3dc724e73aa8524bc2f0162a0',              │

00:02:13 #1250 [Verbose] > │                     `graph TD                                                │

00:02:13 #1251 [Verbose] > │     zeta_rust("zeta() - Rust") --> num_traits("num-traits")                  │

00:02:13 #1252 [Verbose] > │     zeta_rust --> num_bigint("num-bigint")                                   │

00:02:13 #1253 [Verbose] > │     zeta_rust --> rust_decimal("rust_decimal for precision")                 │

00:02:13 #1254 [Verbose] > │     zeta_rust --> error_handling("Rust Error Handling")                      │

00:02:13 #1255 [Verbose] > │                                                                              │

00:02:13 #1256 [Verbose] > │     num_traits --> num_traits_usage("Use for common traits")                 │

00:02:13 #1257 [Verbose] > │     num_bigint --> bigint_operations("Arbitrary-precision arithmetic         │

00:02:13 #1258 [Verbose] > │ operations")                                                                 │

00:02:13 #1259 [Verbose] > │     rust_decimal --> decimal_operations("High-precision decimal operations") │

00:02:13 #1260 [Verbose] > │     error_handling --> result_type("Use Result<T, E> for error handling")    │

00:02:13 #1261 [Verbose] > │                                                                              │

00:02:13 #1262 [Verbose] > │     bigint_operations --> convert_rust("convert() - Rust")                   │

00:02:13 #1263 [Verbose] > │     bigint_operations --> normalize_rust("_normalize() - Rust")              │

00:02:13 #1264 [Verbose] > │                                                                              │

00:02:13 #1265 [Verbose] > │     convert_rust --> from_float_rust("from_float() - Rust")                  │

00:02:13 #1266 [Verbose] > │     from_float_rust --> from_man_exp_rust("from_man_exp() - Rust")           │

00:02:13 #1267 [Verbose] > │     from_man_exp_rust --> bitcount_rust("bitcount() - Rust")                 │

00:02:13 #1268 [Verbose] > │     bitcount_rust --> normalize_rust                                         │

00:02:13 #1269 [Verbose] > │     normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust")                    │

00:02:13 #1270 [Verbose] > │     mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust")                     │

00:02:13 #1271 [Verbose] > │     mpf_zeta_rust --> to_int_rust("to_int() - Rust")                         │

00:02:13 #1272 [Verbose] > │     to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust")               │

00:02:13 #1273 [Verbose] > │                                                                              │

00:02:13 #1274 [Verbose] > │     mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients()  │

00:02:13 #1275 [Verbose] > │ - Rust")                                                                     │

00:02:13 #1276 [Verbose] > │     borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() -      │

00:02:13 #1277 [Verbose] > │ Rust")                                                                       │

00:02:13 #1278 [Verbose] > │     from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust")             │

00:02:13 #1279 [Verbose] > │     bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust")              │

00:02:13 #1280 [Verbose] > │     normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust")                  │

00:02:13 #1281 [Verbose] > │                                                                              │

00:02:13 #1282 [Verbose] > │     mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust")       │

00:02:13 #1283 [Verbose] > │     mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust")    │

00:02:13 #1284 [Verbose] > │     bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust")       │

00:02:13 #1285 [Verbose] > │     mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust")               │

00:02:13 #1286 [Verbose] > │     bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust")              │

00:02:13 #1287 [Verbose] > │     normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust")         │

00:02:13 #1288 [Verbose] > │     from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust")          │

00:02:13 #1289 [Verbose] > │     normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust")                    │

00:02:13 #1290 [Verbose] > │     mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust")                        │

00:02:13 #1291 [Verbose] > │     mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust")                        │

00:02:13 #1292 [Verbose] > │     mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust")               │

00:02:13 #1293 [Verbose] > │     normalize1_rust_2 --> from_int_rust("from_int() - Rust")                 │

00:02:13 #1294 [Verbose] > │     from_int_rust --> mpf_div_rust("mpf_div() - Rust")                       │

00:02:13 #1295 [Verbose] > │     mpf_div_rust --> bitcount_rust_4("bitcount() - Rust")                    │

00:02:13 #1296 [Verbose] > │     bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust")            │

00:02:13 #1297 [Verbose] > │                                                                              │

00:02:13 #1298 [Verbose] > │     style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px                   │

00:02:13 #1299 [Verbose] > │     style num_traits fill:#bbf,stroke:#333,stroke-width:2px                  │

00:02:13 #1300 [Verbose] > │     style num_bigint fill:#bbf,stroke:#333,stroke-width:2px                  │

00:02:13 #1301 [Verbose] > │     style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px                │

00:02:13 #1302 [Verbose] > │     style error_handling fill:#bbf,stroke:#333,stroke-width:2px              │

00:02:13 #1303 [Verbose] > │     style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px           │

00:02:13 #1304 [Verbose] > │     style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px          │

00:02:13 #1305 [Verbose] > │     style result_type fill:#bfb,stroke:#333,stroke-width:2px`);              │

00:02:13 #1306 [Verbose] > │                 renderTarget.innerHTML = svg;                                │

00:02:13 #1307 [Verbose] > │                 bindFunctions?.(renderTarget);                               │

00:02:13 #1308 [Verbose] > │             }                                                                │

00:02:13 #1309 [Verbose] > │             catch (error) {                                                  │

00:02:13 #1310 [Verbose] > │                 console.log(error);                                          │

00:02:13 #1311 [Verbose] > │             }                                                                │

00:02:13 #1312 [Verbose] > │ </script>                                                                    │

00:02:13 #1313 [Verbose] > │ </div>                                                                       │

00:02:13 #1314 [Verbose] > │                                                                              │

00:02:13 #1315 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #1316 [Verbose] >

00:02:13 #1317 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:02:13 #1318 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:02:13 #1319 [Verbose] > │ ## tests                                                                     │

00:02:13 #1320 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #1321 [Verbose] >

00:02:13 #1322 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:13 #1323 [Verbose] > inl tests () =

00:02:13 #1324 [Verbose] >     !\($'"}//"') : ()

00:02:13 #1325 [Verbose] >

00:02:13 #1326 [Verbose] >     !\($'"#[[test]] fn test_zeta_at_known_values_() { //"') : ()

00:02:13 #1327 [Verbose] >     test_zeta_at_known_values_ false

00:02:13 #1328 [Verbose] >     !\($'"} #[[test]] fn test_zeta_at_2_minus2() { //"') : ()

00:02:13 #1329 [Verbose] >     test_zeta_at_2_minus2 false

00:02:13 #1330 [Verbose] >     !\($'"} #[[test]] fn test_trivial_zero_at_negative_even___() { //"') : ()

00:02:13 #1331 [Verbose] >     test_trivial_zero_at_negative_even___ false

00:02:13 #1332 [Verbose] >     !\($'"} #[[test]] fn test_non_trivial_zero___() { //"') : ()

00:02:13 #1333 [Verbose] >     test_non_trivial_zero___ false

00:02:13 #1334 [Verbose] >     !\($'"} #[[test]] fn test_real_part_greater_than_one___() { //"') : ()

00:02:13 #1335 [Verbose] >     test_real_part_greater_than_one___ false

00:02:13 #1336 [Verbose] >     !\($'"} #[[test]] fn test_zeta_at_1___() { //"') : ()

00:02:13 #1337 [Verbose] >     test_zeta_at_1___ false

00:02:13 #1338 [Verbose] >     !\($'"} #[[test]] fn test_symmetry_across_real_axis___() { //"') : ()

00:02:13 #1339 [Verbose] >     test_symmetry_across_real_axis___ false

00:02:13 #1340 [Verbose] >     !\($'"} #[[test]] fn test_behavior_near_origin___() { //"') : ()

00:02:13 #1341 [Verbose] >     test_behavior_near_origin___ false

00:02:13 #1342 [Verbose] >     !\($'"} #[[test]] fn test_imaginary_axis() { //"') : ()

00:02:13 #1343 [Verbose] >     test_imaginary_axis false

00:02:13 #1344 [Verbose] >     !\($'"} #[[test]] fn test_critical_strip() { //"') : ()

00:02:13 #1345 [Verbose] >     test_critical_strip false

00:02:13 #1346 [Verbose] >     !\($'"} #[[test]] fn test_reflection_formula_for_specific_value() { //"') :

00:02:13 #1347 [Verbose] > ()

00:02:13 #1348 [Verbose] >     test_reflection_formula_for_specific_value false

00:02:13 #1349 [Verbose] >     !\($'"} #[[test]] fn test_euler_product_formula() { //"') : ()

00:02:13 #1350 [Verbose] >     test_euler_product_formula false

00:02:13 #1351 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-4486-8623-83a151b937d8\main.spi

00:02:13 #1352 [Verbose] >

00:02:13 #1353 [Verbose] > ╭─[ 420.83ms - stdout ]────────────────────────────────────────────────────────╮

00:02:13 #1354 [Verbose] > │ ()                                                                           │

00:02:13 #1355 [Verbose] > │                                                                              │

00:02:13 #1356 [Verbose] > │                                                                              │

00:02:13 #1357 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:13 #1358 [Verbose] >

00:02:13 #1359 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:02:13 #1360 [Verbose] > // // rust=

00:02:13 #1361 [Verbose] >

00:02:13 #1362 [Verbose] > inl main (_args : array_base string) =

00:02:13 #1363 [Verbose] >     inl value = 1i32

00:02:13 #1364 [Verbose] >     console.write_line ($"$\"value: {!value}\"" : string)

00:02:13 #1365 [Verbose] >     0i32

00:02:13 #1366 [Verbose] >

00:02:13 #1367 [Verbose] > inl main () =

00:02:13 #1368 [Verbose] >     types ()

00:02:13 #1369 [Verbose] >     $"let tests () = !tests ()" : ()

00:02:13 #1370 [Verbose] >     $"let main args = !main args" : ()

00:02:13 #1371 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0141-4529-2932-281774dc4fa8\main.spi

00:02:13 #1372 [Verbose] >

00:02:14 #1373 [Verbose] > ╭─[ 294.18ms - stdout ]────────────────────────────────────────────────────────╮

00:02:14 #1374 [Verbose] > │                                                                              │

00:02:14 #1375 [Verbose] > │ .fsx:                                                                        │

00:02:14 #1376 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class    │

00:02:14 #1377 [Verbose] > │ end                                                                          │

00:02:14 #1378 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> =  │

00:02:14 #1379 [Verbose] > │ class end                                                                    │

00:02:14 #1380 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end    │

00:02:14 #1381 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end     │

00:02:14 #1382 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end  │

00:02:14 #1383 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end        │

00:02:14 #1384 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> =    │

00:02:14 #1385 [Verbose] > │ class end                                                                    │

00:02:14 #1386 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │

00:02:14 #1387 [Verbose] > │ class end                                                                    │

00:02:14 #1388 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end   │

00:02:14 #1389 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end     │

00:02:14 #1390 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:02:14 #1391 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> =    │

00:02:14 #1392 [Verbose] > │ class end                                                                    │

00:02:14 #1393 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> =      │

00:02:14 #1394 [Verbose] > │ class end                                                                    │

00:02:14 #1395 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any =    │

00:02:14 #1396 [Verbose] > │ class end                                                                    │

00:02:14 #1397 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type         │

00:02:14 #1398 [Verbose] > │ std_cell_RefCell<'T> = class end                                             │

00:02:14 #1399 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type              │

00:02:14 #1400 [Verbose] > │ std_pin_Pin<'T> = class end                                                  │

00:02:14 #1401 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T>  │

00:02:14 #1402 [Verbose] > │ = class end                                                                  │

00:02:14 #1403 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type              │

00:02:14 #1404 [Verbose] > │ std_rc_Weak<'T> = class end                                                  │

00:02:14 #1405 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type             │

00:02:14 #1406 [Verbose] > │ std_sync_Arc<'T> = class end                                                 │

00:02:14 #1407 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:02:14 #1408 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type            │

00:02:14 #1409 [Verbose] > │ base64_DecodeError = class end                                               │

00:02:14 #1410 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type               │

00:02:14 #1411 [Verbose] > │ borsh_io_Error = class end                                                   │

00:02:14 #1412 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type               │

00:02:14 #1413 [Verbose] > │ js_sys_JsString = class end                                                  │

00:02:14 #1414 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type              │

00:02:14 #1415 [Verbose] > │ serde_json_Error = class end                                                 │

00:02:14 #1416 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type              │

00:02:14 #1417 [Verbose] > │ serde_json_Value = class end                                                 │

00:02:14 #1418 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type      │

00:02:14 #1419 [Verbose] > │ serde_wasm_bindgen_Error = class end                                         │

00:02:14 #1420 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type            │

00:02:14 #1421 [Verbose] > │ std_str_Utf8Error = class end                                                │

00:02:14 #1422 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:02:14 #1423 [Verbose] > │ std_string_String = class end                                                │

00:02:14 #1424 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type       │

00:02:14 #1425 [Verbose] > │ num_complex_Complex<'T> = class end                                          │

00:02:14 #1426 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type          │

00:02:14 #1427 [Verbose] > │ pyo3_types_PyModule = class end                                              │

00:02:14 #1428 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │

00:02:14 #1429 [Verbose] > │ = class end                                                                  │

00:02:14 #1430 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python =     │

00:02:14 #1431 [Verbose] > │ class end                                                                    │

00:02:14 #1432 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │

00:02:14 #1433 [Verbose] > │ end                                                                          │

00:02:14 #1434 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │

00:02:14 #1435 [Verbose] > │ end                                                                          │

00:02:14 #1436 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () ");                                   │

00:02:14 #1437 [Verbose] > │ use pyo3::prelude::PyAnyMethods;                                             │

00:02:14 #1438 [Verbose] > │ //"                                                                          │

00:02:14 #1439 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:02:14 #1440 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : string}                         │

00:02:14 #1441 [Verbose] > │ and Mut2 = {mutable l0 : int32; mutable l1 : num_complex_Complex<float>}     │

00:02:14 #1442 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:02:14 #1443 [Verbose] > │     | US0_0                                                                  │

00:02:14 #1444 [Verbose] > │     | US0_1 of f1_0 : num_complex_Complex<float>                             │

00:02:14 #1445 [Verbose] > │ and UH0 =                                                                    │

00:02:14 #1446 [Verbose] > │     | UH0_0 of float * UH0                                                   │

00:02:14 #1447 [Verbose] > │     | UH0_1                                                                  │

00:02:14 #1448 [Verbose] > │ and Mut3 = {mutable l0 : int32; mutable l1 : float}                          │

00:02:14 #1449 [Verbose] > │ let rec method2 () : float =                                                 │

00:02:14 #1450 [Verbose] > │     2.0                                                                      │

00:02:14 #1451 [Verbose] > │ and method3 (v0 : float) : float =                                           │

00:02:14 #1452 [Verbose] > │     v0                                                                       │

00:02:14 #1453 [Verbose] > │ and method4 () : float =                                                     │

00:02:14 #1454 [Verbose] > │     0.0                                                                      │

00:02:14 #1455 [Verbose] > │ and method5 () : float =                                                     │

00:02:14 #1456 [Verbose] > │     -1.0                                                                     │

00:02:14 #1457 [Verbose] > │ and method6 (v0 : (struct (num_complex_Complex<float> * float) [])) :        │

00:02:14 #1458 [Verbose] > │ (struct (num_complex_Complex<float> * float) []) =                           │

00:02:14 #1459 [Verbose] > │     v0                                                                       │

00:02:14 #1460 [Verbose] > │ and method7 (v0 : int32, v1 : Mut0) : bool =                                 │

00:02:14 #1461 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:14 #1462 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:14 #1463 [Verbose] > │     v3                                                                       │

00:02:14 #1464 [Verbose] > │ and method8 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> = │

00:02:14 #1465 [Verbose] > │     v0                                                                       │

00:02:14 #1466 [Verbose] > │ and method10 (v0 : (string [])) : (string []) =                              │

00:02:14 #1467 [Verbose] > │     v0                                                                       │

00:02:14 #1468 [Verbose] > │ and method12 (v0 : int32, v1 : Mut1) : bool =                                │

00:02:14 #1469 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:14 #1470 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:14 #1471 [Verbose] > │     v3                                                                       │

00:02:14 #1472 [Verbose] > │ and method11 (v0 : (string [])) : string =                                   │

00:02:14 #1473 [Verbose] > │     let v1 : int32 = v0.Length                                               │

00:02:14 #1474 [Verbose] > │     let v2 : string = ""                                                     │

00:02:14 #1475 [Verbose] > │     let v3 : Mut1 = {l0 = 0; l1 = v2} : Mut1                                 │

00:02:14 #1476 [Verbose] > │     while method12(v1, v3) do                                                │

00:02:14 #1477 [Verbose] > │         let v5 : int32 = v3.l0                                               │

00:02:14 #1478 [Verbose] > │         let v6 : string = v3.l1                                              │

00:02:14 #1479 [Verbose] > │         let v7 : string = v0.[int v5]                                        │

00:02:14 #1480 [Verbose] > │         let v8 : string = "\n"                                               │

00:02:14 #1481 [Verbose] > │         let v9 : string = v6 + v7 + v8 + ""                                  │

00:02:14 #1482 [Verbose] > │         let v10 : int32 = v5 + 1                                             │

00:02:14 #1483 [Verbose] > │         v3.l0 <- v10                                                         │

00:02:14 #1484 [Verbose] > │         v3.l1 <- v9                                                          │

00:02:14 #1485 [Verbose] > │         ()                                                                   │

00:02:14 #1486 [Verbose] > │     let v11 : string = v3.l1                                                 │

00:02:14 #1487 [Verbose] > │     v11                                                                      │

00:02:14 #1488 [Verbose] > │ and method13 (v0 : num_complex_Complex<float>) : num_complex_Complex<float>  │

00:02:14 #1489 [Verbose] > │ =                                                                            │

00:02:14 #1490 [Verbose] > │     v0                                                                       │

00:02:14 #1491 [Verbose] > │ and method14 (v0 : num_complex_Complex<float>) : num_complex_Complex<float>  │

00:02:14 #1492 [Verbose] > │ =                                                                            │

00:02:14 #1493 [Verbose] > │     v0                                                                       │

00:02:14 #1494 [Verbose] > │ and method15 (v0 : pyo3_Python) : pyo3_Python =                              │

00:02:14 #1495 [Verbose] > │     v0                                                                       │

00:02:14 #1496 [Verbose] > │ and method16 (v0 : string) : string =                                        │

00:02:14 #1497 [Verbose] > │     v0                                                                       │

00:02:14 #1498 [Verbose] > │ and closure1 () (v0 : pyo3_PyErr) : std_string_String =                      │

00:02:14 #1499 [Verbose] > │     let v1 : string = @$"format!(""{{}}"", $0)"                              │

00:02:14 #1500 [Verbose] > │     let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1   │

00:02:14 #1501 [Verbose] > │     v2                                                                       │

00:02:14 #1502 [Verbose] > │ and method17 () : (pyo3_PyErr -> std_string_String) =                        │

00:02:14 #1503 [Verbose] > │     closure1()                                                               │

00:02:14 #1504 [Verbose] > │ and method18 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr>) :    │

00:02:14 #1505 [Verbose] > │ Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> =                        │

00:02:14 #1506 [Verbose] > │     v0                                                                       │

00:02:14 #1507 [Verbose] > │ and method19 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>,                   │

00:02:14 #1508 [Verbose] > │ std_string_String>) : Result<pyo3_Bound<pyo3_types_PyModule>,                │

00:02:14 #1509 [Verbose] > │ std_string_String> =                                                         │

00:02:14 #1510 [Verbose] > │     v0                                                                       │

00:02:14 #1511 [Verbose] > │ and method20 () : string =                                                   │

00:02:14 #1512 [Verbose] > │     let v0 : string = "fn"                                                   │

00:02:14 #1513 [Verbose] > │     v0                                                                       │

00:02:14 #1514 [Verbose] > │ and method21 (v0 : pyo3_Bound<pyo3_types_PyModule>) :                        │

00:02:14 #1515 [Verbose] > │ pyo3_Bound<pyo3_types_PyModule> =                                            │

00:02:14 #1516 [Verbose] > │     v0                                                                       │

00:02:14 #1517 [Verbose] > │ and closure2 () (v0 : pyo3_PyErr) : std_string_String =                      │

00:02:14 #1518 [Verbose] > │     let v1 : string = @$"format!(""{{}}"", $0)"                              │

00:02:14 #1519 [Verbose] > │     let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1   │

00:02:14 #1520 [Verbose] > │     v2                                                                       │

00:02:14 #1521 [Verbose] > │ and method22 () : (pyo3_PyErr -> std_string_String) =                        │

00:02:14 #1522 [Verbose] > │     closure2()                                                               │

00:02:14 #1523 [Verbose] > │ and method23 (v0 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr>) :             │

00:02:14 #1524 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> =                                 │

00:02:14 #1525 [Verbose] > │     v0                                                                       │

00:02:14 #1526 [Verbose] > │ and method24 (v0 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String>) :      │

00:02:14 #1527 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =                          │

00:02:14 #1528 [Verbose] > │     v0                                                                       │

00:02:14 #1529 [Verbose] > │ and method25 (v0 : (bool * (float * float))) : (bool * (float * float)) =    │

00:02:14 #1530 [Verbose] > │     v0                                                                       │

00:02:14 #1531 [Verbose] > │ and method26 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> =        │

00:02:14 #1532 [Verbose] > │     v0                                                                       │

00:02:14 #1533 [Verbose] > │ and closure3 () (v0 : pyo3_PyErr) : std_string_String =                      │

00:02:14 #1534 [Verbose] > │     let v1 : string = @$"format!(""{{}}"", $0)"                              │

00:02:14 #1535 [Verbose] > │     let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1   │

00:02:14 #1536 [Verbose] > │     v2                                                                       │

00:02:14 #1537 [Verbose] > │ and method27 () : (pyo3_PyErr -> std_string_String) =                        │

00:02:14 #1538 [Verbose] > │     closure3()                                                               │

00:02:14 #1539 [Verbose] > │ and method28 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> =        │

00:02:14 #1540 [Verbose] > │     v0                                                                       │

00:02:14 #1541 [Verbose] > │ and closure4 () (v0 : pyo3_PyErr) : std_string_String =                      │

00:02:14 #1542 [Verbose] > │     let v1 : string = @$"format!(""{{}}"", $0)"                              │

00:02:14 #1543 [Verbose] > │     let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1   │

00:02:14 #1544 [Verbose] > │     v2                                                                       │

00:02:14 #1545 [Verbose] > │ and method29 () : (pyo3_PyErr -> std_string_String) =                        │

00:02:14 #1546 [Verbose] > │     closure4()                                                               │

00:02:14 #1547 [Verbose] > │ and method30 (v0 : Result<struct (float * float), pyo3_PyErr>) :             │

00:02:14 #1548 [Verbose] > │ Result<struct (float * float), pyo3_PyErr> =                                 │

00:02:14 #1549 [Verbose] > │     v0                                                                       │

00:02:14 #1550 [Verbose] > │ and method31 (v0 : float) : float =                                          │

00:02:14 #1551 [Verbose] > │     v0                                                                       │

00:02:14 #1552 [Verbose] > │ and method32 (v0 : float) : float =                                          │

00:02:14 #1553 [Verbose] > │     v0                                                                       │

00:02:14 #1554 [Verbose] > │ and method9 (v0 : pyo3_Python, v1 : string, v2 : num_complex_Complex<float>) │

00:02:14 #1555 [Verbose] > │ : Result<num_complex_Complex<float>, std_string_String> =                    │

00:02:14 #1556 [Verbose] > │     let v3 : string = $"import sys"                                          │

00:02:14 #1557 [Verbose] > │     let v4 : string = $"import traceback"                                    │

00:02:14 #1558 [Verbose] > │     let v5 : string = $"import re"                                           │

00:02:14 #1559 [Verbose] > │     let v6 : string = $"count = 0"                                           │

00:02:14 #1560 [Verbose] > │     let v7 : string = $"memory_address_pattern = re.compile(r' at 0x[        │

00:02:14 #1561 [Verbose] > │ 0-9a-fA-F]+')"                                                               │

00:02:14 #1562 [Verbose] > │     let v8 : string = $"def trace_calls(frame, event, arg):"                 │

00:02:14 #1563 [Verbose] > │     let v9 : string = $"    global count"                                    │

00:02:14 #1564 [Verbose] > │     let v10 : string = $"    count += 1"                                     │

00:02:14 #1565 [Verbose] > │     let v11 : string = $"    if count < 200:"                                │

00:02:14 #1566 [Verbose] > │     let v12 : string = $"        try:"                                       │

00:02:14 #1567 [Verbose] > │     let v13 : string = $"            args = {{ k: v for k, v in              │

00:02:14 #1568 [Verbose] > │ frame.f_locals.items() if frame.f_code.co_name != 'make_mpc' and k not in [  │

00:02:14 #1569 [Verbose] > │ 'ctx'] and not callable(v) }}"                                               │

00:02:14 #1570 [Verbose] > │     let v14 : string = $"            args_str = ', '.join([                  │

00:02:14 #1571 [Verbose] > │ f\"{{k}}={{re.sub(memory_address_pattern, ' at 0x<?>', repr(v))}}\" for k, v │

00:02:14 #1572 [Verbose] > │ in args.items() ])"                                                          │

00:02:14 #1573 [Verbose] > │     let v15 : string = "zeta_"                                               │

00:02:14 #1574 [Verbose] > │     let v16 : string = $"            print(f\"{{event}}({v15}) /             │

00:02:14 #1575 [Verbose] > │ f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} /          │

00:02:14 #1576 [Verbose] > │ f_lineno: {{frame.f_lineno}} / f_code.co_filename:                           │

00:02:14 #1577 [Verbose] > │ {{frame.f_code.co_filename.split('site-packages')[-1]}} / f_back.f_lineno:   │

00:02:14 #1578 [Verbose] > │ {{ '' if frame.f_back is None else frame.f_back.f_lineno }} /                │

00:02:14 #1579 [Verbose] > │ f_back.f_code.co_filename: {{ '' if frame.f_back is None else                │

00:02:14 #1580 [Verbose] > │ frame.f_back.f_code.co_filename.split('site-packages')[-1] }} / arg:         │

00:02:14 #1581 [Verbose] > │ {{re.sub(memory_address_pattern, ' at 0x<?>', repr(arg))}}\", flush=True)"   │

00:02:14 #1582 [Verbose] > │     let v17 : string = $"        except ValueError as e:"                    │

00:02:14 #1583 [Verbose] > │     let v18 : string = $"            print(f'{v15} / e: {{e}}', flush=True)" │

00:02:14 #1584 [Verbose] > │     let v19 : string = $"        return trace_calls"                         │

00:02:14 #1585 [Verbose] > │     let v20 : string = $"import mpmath"                                      │

00:02:14 #1586 [Verbose] > │     let v21 : string = $"def fn(log, s):"                                    │

00:02:14 #1587 [Verbose] > │     let v22 : string = $"    global count"                                   │

00:02:14 #1588 [Verbose] > │     let v23 : string = $"    if log:"                                        │

00:02:14 #1589 [Verbose] > │     let v24 : string = $"        print(f'{v15} / s: {{s}} / count:           │

00:02:14 #1590 [Verbose] > │ {{count}}', flush=True)"                                                     │

00:02:14 #1591 [Verbose] > │     let v25 : string = $"    s = complex(*s)"                                │

00:02:14 #1592 [Verbose] > │     let v26 : string = $"    try:"                                           │

00:02:14 #1593 [Verbose] > │     let v27 : string = $"        if log: sys.settrace(trace_calls)"          │

00:02:14 #1594 [Verbose] > │     let v28 : string = $"        if log:"                                    │

00:02:14 #1595 [Verbose] > │     let v29 : string = $"            sys.settrace(None)"                     │

00:02:14 #1596 [Verbose] > │     let v30 : string = $"            print(f'{v15} / result: {{s}} / count:  │

00:02:14 #1597 [Verbose] > │ {{count}}', flush=True)"                                                     │

00:02:14 #1598 [Verbose] > │     let v31 : string = $"    except ValueError as e:"                        │

00:02:14 #1599 [Verbose] > │     let v32 : string = $"        if s.real == 1:"                            │

00:02:14 #1600 [Verbose] > │     let v33 : string = $"            s = complex(float('inf'), 0)"           │

00:02:14 #1601 [Verbose] > │     let v34 : string = $"    return (s.real, s.imag)"                        │

00:02:14 #1602 [Verbose] > │     let v35 : (string []) = [|v3; v4; v5; v6; v7; v8; v9; v10; v11; v12;     │

00:02:14 #1603 [Verbose] > │ v13; v14; v16; v17; v18; v19; v20; v21; v22; v23; v24; v25; v26; v27; v1;    │

00:02:14 #1604 [Verbose] > │ v28; v29; v30; v31; v32; v33; v34|]                                          │

00:02:14 #1605 [Verbose] > │     let v36 : (string []) = method10(v35)                                    │

00:02:14 #1606 [Verbose] > │     let v37 : string = method11(v36)                                         │

00:02:14 #1607 [Verbose] > │     let v38 : num_complex_Complex<float> = method13(v2)                      │

00:02:14 #1608 [Verbose] > │     let v39 : string = "v38.re"                                              │

00:02:14 #1609 [Verbose] > │     let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39             │

00:02:14 #1610 [Verbose] > │     let v41 : num_complex_Complex<float> = method14(v2)                      │

00:02:14 #1611 [Verbose] > │     let v42 : string = "v41.im"                                              │

00:02:14 #1612 [Verbose] > │     let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42             │

00:02:14 #1613 [Verbose] > │     let v44 : (float * float) = v40, v43                                     │

00:02:14 #1614 [Verbose] > │     let v45 : (bool * (float * float)) = false, v44                          │

00:02:14 #1615 [Verbose] > │     let v46 : pyo3_Python = method15(v0)                                     │

00:02:14 #1616 [Verbose] > │     let v47 : string = method16(v37)                                         │

00:02:14 #1617 [Verbose] > │     let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)"  │

00:02:14 #1618 [Verbose] > │     let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48          │

00:02:14 #1619 [Verbose] > │     let v50 : string = "pyo3::types::PyModule::from_code_bound(v46, v49,     │

00:02:14 #1620 [Verbose] > │ \"\", \"\")"                                                                 │

00:02:14 #1621 [Verbose] > │     let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> =          │

00:02:14 #1622 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50                                   │

00:02:14 #1623 [Verbose] > │     let v52 : (pyo3_PyErr -> std_string_String) = method17()                 │

00:02:14 #1624 [Verbose] > │     let v53 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> =          │

00:02:14 #1625 [Verbose] > │ method18(v51)                                                                │

00:02:14 #1626 [Verbose] > │     let v54 : string = "v53.map_err(|x| v52(x))"                             │

00:02:14 #1627 [Verbose] > │     let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> =   │

00:02:14 #1628 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54                                   │

00:02:14 #1629 [Verbose] > │     let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> =   │

00:02:14 #1630 [Verbose] > │ method19(v55)                                                                │

00:02:14 #1631 [Verbose] > │     let v57 : string = "v56.unwrap()"                                        │

00:02:14 #1632 [Verbose] > │     let v58 : pyo3_Bound<pyo3_types_PyModule> =                              │

00:02:14 #1633 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57                                   │

00:02:14 #1634 [Verbose] > │     let v59 : string = method20()                                            │

00:02:14 #1635 [Verbose] > │     let v60 : string = $"fable_library_rust::String_::LrcStr::as_str(&v59)"  │

00:02:14 #1636 [Verbose] > │     let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60          │

00:02:14 #1637 [Verbose] > │     let v62 : pyo3_Bound<pyo3_types_PyModule> = method21(v58)                │

00:02:14 #1638 [Verbose] > │     let v63 : string = "v62.getattr(v61)"                                    │

00:02:14 #1639 [Verbose] > │     let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> =                   │

00:02:14 #1640 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63                                   │

00:02:14 #1641 [Verbose] > │     let v65 : (pyo3_PyErr -> std_string_String) = method22()                 │

00:02:14 #1642 [Verbose] > │     let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v64)     │

00:02:14 #1643 [Verbose] > │     let v67 : string = "v66.map_err(|x| v65(x))"                             │

00:02:14 #1644 [Verbose] > │     let v68 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =            │

00:02:14 #1645 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67                                   │

00:02:14 #1646 [Verbose] > │     let v69 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =            │

00:02:14 #1647 [Verbose] > │ method24(v68)                                                                │

00:02:14 #1648 [Verbose] > │     let v70 : string = "v69.unwrap()"                                        │

00:02:14 #1649 [Verbose] > │     let v71 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #1650 [Verbose] > │ () v70                                                                       │

00:02:14 #1651 [Verbose] > │     let v72 : (bool * (float * float)) = method25(v45)                       │

00:02:14 #1652 [Verbose] > │     let v73 : pyo3_Bound<pyo3_PyAny> = method26(v71)                         │

00:02:14 #1653 [Verbose] > │     let v74 : string = "pyo3::prelude::PyAnyMethods::call(&v73, ((*v72).0,   │

00:02:14 #1654 [Verbose] > │ *(*v72).1), None)"                                                           │

00:02:14 #1655 [Verbose] > │     let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> =                   │

00:02:14 #1656 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74                                   │

00:02:14 #1657 [Verbose] > │     let v76 : (pyo3_PyErr -> std_string_String) = method27()                 │

00:02:14 #1658 [Verbose] > │     let v77 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v75)     │

00:02:14 #1659 [Verbose] > │     let v78 : string = "v77.map_err(|x| v76(x))"                             │

00:02:14 #1660 [Verbose] > │     let v79 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =            │

00:02:14 #1661 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78                                   │

00:02:14 #1662 [Verbose] > │     let v80 : string = "v79?"                                                │

00:02:14 #1663 [Verbose] > │     let v81 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #1664 [Verbose] > │ () v80                                                                       │

00:02:14 #1665 [Verbose] > │     let v82 : pyo3_Bound<pyo3_PyAny> = method28(v81)                         │

00:02:14 #1666 [Verbose] > │     let v83 : string = "v82.extract()"                                       │

00:02:14 #1667 [Verbose] > │     let v84 : Result<struct (float * float), pyo3_PyErr> =                   │

00:02:14 #1668 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83                                   │

00:02:14 #1669 [Verbose] > │     let v85 : (pyo3_PyErr -> std_string_String) = method29()                 │

00:02:14 #1670 [Verbose] > │     let v86 : Result<struct (float * float), pyo3_PyErr> = method30(v84)     │

00:02:14 #1671 [Verbose] > │     let v87 : string = "v86.map_err(|x| v85(x))"                             │

00:02:14 #1672 [Verbose] > │     let v88 : Result<struct (float * float), std_string_String> =            │

00:02:14 #1673 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87                                   │

00:02:14 #1674 [Verbose] > │     let v89 : string = "v88?"                                                │

00:02:14 #1675 [Verbose] > │     let struct (v90 : float, v91 : float) =                                  │

00:02:14 #1676 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v89                                   │

00:02:14 #1677 [Verbose] > │     let v92 : float = method31(v90)                                          │

00:02:14 #1678 [Verbose] > │     let v93 : float = method3(v92)                                           │

00:02:14 #1679 [Verbose] > │     let v94 : float = method32(v91)                                          │

00:02:14 #1680 [Verbose] > │     let v95 : string = "num_complex::Complex::new(v93, v94)"                 │

00:02:14 #1681 [Verbose] > │     let v96 : num_complex_Complex<float> =                                   │

00:02:14 #1682 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95                                   │

00:02:14 #1683 [Verbose] > │     let v97 : Result<num_complex_Complex<float>, std_string_String> = Ok v96 │

00:02:14 #1684 [Verbose] > │     v97                                                                      │

00:02:14 #1685 [Verbose] > │ and method34 (v0 : num_complex_Complex<float>) : num_complex_Complex<float>  │

00:02:14 #1686 [Verbose] > │ =                                                                            │

00:02:14 #1687 [Verbose] > │     v0                                                                       │

00:02:14 #1688 [Verbose] > │ and method35 () : float =                                                    │

00:02:14 #1689 [Verbose] > │     0.0                                                                      │

00:02:14 #1690 [Verbose] > │ and method36 (v0 : Mut0) : bool =                                            │

00:02:14 #1691 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:02:14 #1692 [Verbose] > │     let v2 : bool = v1 < 10000                                               │

00:02:14 #1693 [Verbose] > │     v2                                                                       │

00:02:14 #1694 [Verbose] > │ and method37 (v0 : int32, v1 : Mut2) : bool =                                │

00:02:14 #1695 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:14 #1696 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:14 #1697 [Verbose] > │     v3                                                                       │

00:02:14 #1698 [Verbose] > │ and method38 () : float =                                                    │

00:02:14 #1699 [Verbose] > │     1.0                                                                      │

00:02:14 #1700 [Verbose] > │ and method39 (v0 : num_complex_Complex<float>) : num_complex_Complex<float>  │

00:02:14 #1701 [Verbose] > │ =                                                                            │

00:02:14 #1702 [Verbose] > │     v0                                                                       │

00:02:14 #1703 [Verbose] > │ and method40 (v0 : num_complex_Complex<float>) : num_complex_Complex<float>  │

00:02:14 #1704 [Verbose] > │ =                                                                            │

00:02:14 #1705 [Verbose] > │     v0                                                                       │

00:02:14 #1706 [Verbose] > │ and method41 (v0 : pyo3_Python, v1 : string, v2 :                            │

00:02:14 #1707 [Verbose] > │ num_complex_Complex<float>) : Result<num_complex_Complex<float>,             │

00:02:14 #1708 [Verbose] > │ std_string_String> =                                                         │

00:02:14 #1709 [Verbose] > │     let v3 : string = $"import sys"                                          │

00:02:14 #1710 [Verbose] > │     let v4 : string = $"import traceback"                                    │

00:02:14 #1711 [Verbose] > │     let v5 : string = $"import re"                                           │

00:02:14 #1712 [Verbose] > │     let v6 : string = $"count = 0"                                           │

00:02:14 #1713 [Verbose] > │     let v7 : string = $"memory_address_pattern = re.compile(r' at 0x[        │

00:02:14 #1714 [Verbose] > │ 0-9a-fA-F]+')"                                                               │

00:02:14 #1715 [Verbose] > │     let v8 : string = $"def trace_calls(frame, event, arg):"                 │

00:02:14 #1716 [Verbose] > │     let v9 : string = $"    global count"                                    │

00:02:14 #1717 [Verbose] > │     let v10 : string = $"    count += 1"                                     │

00:02:14 #1718 [Verbose] > │     let v11 : string = $"    if count < 200:"                                │

00:02:14 #1719 [Verbose] > │     let v12 : string = $"        try:"                                       │

00:02:14 #1720 [Verbose] > │     let v13 : string = $"            args = {{ k: v for k, v in              │

00:02:14 #1721 [Verbose] > │ frame.f_locals.items() if frame.f_code.co_name != 'make_mpc' and k not in [  │

00:02:14 #1722 [Verbose] > │ 'ctx'] and not callable(v) }}"                                               │

00:02:14 #1723 [Verbose] > │     let v14 : string = $"            args_str = ', '.join([                  │

00:02:14 #1724 [Verbose] > │ f\"{{k}}={{re.sub(memory_address_pattern, ' at 0x<?>', repr(v))}}\" for k, v │

00:02:14 #1725 [Verbose] > │ in args.items() ])"                                                          │

00:02:14 #1726 [Verbose] > │     let v15 : string = "gamma_"                                              │

00:02:14 #1727 [Verbose] > │     let v16 : string = $"            print(f\"{{event}}({v15}) /             │

00:02:14 #1728 [Verbose] > │ f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} /          │

00:02:14 #1729 [Verbose] > │ f_lineno: {{frame.f_lineno}} / f_code.co_filename:                           │

00:02:14 #1730 [Verbose] > │ {{frame.f_code.co_filename.split('site-packages')[-1]}} / f_back.f_lineno:   │

00:02:14 #1731 [Verbose] > │ {{ '' if frame.f_back is None else frame.f_back.f_lineno }} /                │

00:02:14 #1732 [Verbose] > │ f_back.f_code.co_filename: {{ '' if frame.f_back is None else                │

00:02:14 #1733 [Verbose] > │ frame.f_back.f_code.co_filename.split('site-packages')[-1] }} / arg:         │

00:02:14 #1734 [Verbose] > │ {{re.sub(memory_address_pattern, ' at 0x<?>', repr(arg))}}\", flush=True)"   │

00:02:14 #1735 [Verbose] > │     let v17 : string = $"        except ValueError as e:"                    │

00:02:14 #1736 [Verbose] > │     let v18 : string = $"            print(f'{v15} / e: {{e}}', flush=True)" │

00:02:14 #1737 [Verbose] > │     let v19 : string = $"        return trace_calls"                         │

00:02:14 #1738 [Verbose] > │     let v20 : string = $"import mpmath"                                      │

00:02:14 #1739 [Verbose] > │     let v21 : string = $"def fn(log, s):"                                    │

00:02:14 #1740 [Verbose] > │     let v22 : string = $"    global count"                                   │

00:02:14 #1741 [Verbose] > │     let v23 : string = $"    if log:"                                        │

00:02:14 #1742 [Verbose] > │     let v24 : string = $"        print(f'{v15} / s: {{s}} / count:           │

00:02:14 #1743 [Verbose] > │ {{count}}', flush=True)"                                                     │

00:02:14 #1744 [Verbose] > │     let v25 : string = $"    s = complex(*s)"                                │

00:02:14 #1745 [Verbose] > │     let v26 : string = $"    try:"                                           │

00:02:14 #1746 [Verbose] > │     let v27 : string = $"        if log: sys.settrace(trace_calls)"          │

00:02:14 #1747 [Verbose] > │     let v28 : string = $"        if log:"                                    │

00:02:14 #1748 [Verbose] > │     let v29 : string = $"            sys.settrace(None)"                     │

00:02:14 #1749 [Verbose] > │     let v30 : string = $"            print(f'{v15} / result: {{s}} / count:  │

00:02:14 #1750 [Verbose] > │ {{count}}', flush=True)"                                                     │

00:02:14 #1751 [Verbose] > │     let v31 : string = $"    except ValueError as e:"                        │

00:02:14 #1752 [Verbose] > │     let v32 : string = $"        if s.real == 1:"                            │

00:02:14 #1753 [Verbose] > │     let v33 : string = $"            s = complex(float('inf'), 0)"           │

00:02:14 #1754 [Verbose] > │     let v34 : string = $"    return (s.real, s.imag)"                        │

00:02:14 #1755 [Verbose] > │     let v35 : (string []) = [|v3; v4; v5; v6; v7; v8; v9; v10; v11; v12;     │

00:02:14 #1756 [Verbose] > │ v13; v14; v16; v17; v18; v19; v20; v21; v22; v23; v24; v25; v26; v27; v1;    │

00:02:14 #1757 [Verbose] > │ v28; v29; v30; v31; v32; v33; v34|]                                          │

00:02:14 #1758 [Verbose] > │     let v36 : (string []) = method10(v35)                                    │

00:02:14 #1759 [Verbose] > │     let v37 : string = method11(v36)                                         │

00:02:14 #1760 [Verbose] > │     let v38 : num_complex_Complex<float> = method13(v2)                      │

00:02:14 #1761 [Verbose] > │     let v39 : string = "v38.re"                                              │

00:02:14 #1762 [Verbose] > │     let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39             │

00:02:14 #1763 [Verbose] > │     let v41 : num_complex_Complex<float> = method14(v2)                      │

00:02:14 #1764 [Verbose] > │     let v42 : string = "v41.im"                                              │

00:02:14 #1765 [Verbose] > │     let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42             │

00:02:14 #1766 [Verbose] > │     let v44 : (float * float) = v40, v43                                     │

00:02:14 #1767 [Verbose] > │     let v45 : (bool * (float * float)) = false, v44                          │

00:02:14 #1768 [Verbose] > │     let v46 : pyo3_Python = method15(v0)                                     │

00:02:14 #1769 [Verbose] > │     let v47 : string = method16(v37)                                         │

00:02:14 #1770 [Verbose] > │     let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)"  │

00:02:14 #1771 [Verbose] > │     let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48          │

00:02:14 #1772 [Verbose] > │     let v50 : string = "pyo3::types::PyModule::from_code_bound(v46, v49,     │

00:02:14 #1773 [Verbose] > │ \"\", \"\")"                                                                 │

00:02:14 #1774 [Verbose] > │     let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> =          │

00:02:14 #1775 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50                                   │

00:02:14 #1776 [Verbose] > │     let v52 : (pyo3_PyErr -> std_string_String) = method17()                 │

00:02:14 #1777 [Verbose] > │     let v53 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> =          │

00:02:14 #1778 [Verbose] > │ method18(v51)                                                                │

00:02:14 #1779 [Verbose] > │     let v54 : string = "v53.map_err(|x| v52(x))"                             │

00:02:14 #1780 [Verbose] > │     let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> =   │

00:02:14 #1781 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54                                   │

00:02:14 #1782 [Verbose] > │     let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> =   │

00:02:14 #1783 [Verbose] > │ method19(v55)                                                                │

00:02:14 #1784 [Verbose] > │     let v57 : string = "v56.unwrap()"                                        │

00:02:14 #1785 [Verbose] > │     let v58 : pyo3_Bound<pyo3_types_PyModule> =                              │

00:02:14 #1786 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57                                   │

00:02:14 #1787 [Verbose] > │     let v59 : string = method20()                                            │

00:02:14 #1788 [Verbose] > │     let v60 : string = $"fable_library_rust::String_::LrcStr::as_str(&v59)"  │

00:02:14 #1789 [Verbose] > │     let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60          │

00:02:14 #1790 [Verbose] > │     let v62 : pyo3_Bound<pyo3_types_PyModule> = method21(v58)                │

00:02:14 #1791 [Verbose] > │     let v63 : string = "v62.getattr(v61)"                                    │

00:02:14 #1792 [Verbose] > │     let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> =                   │

00:02:14 #1793 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63                                   │

00:02:14 #1794 [Verbose] > │     let v65 : (pyo3_PyErr -> std_string_String) = method22()                 │

00:02:14 #1795 [Verbose] > │     let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v64)     │

00:02:14 #1796 [Verbose] > │     let v67 : string = "v66.map_err(|x| v65(x))"                             │

00:02:14 #1797 [Verbose] > │     let v68 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =            │

00:02:14 #1798 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67                                   │

00:02:14 #1799 [Verbose] > │     let v69 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =            │

00:02:14 #1800 [Verbose] > │ method24(v68)                                                                │

00:02:14 #1801 [Verbose] > │     let v70 : string = "v69.unwrap()"                                        │

00:02:14 #1802 [Verbose] > │     let v71 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #1803 [Verbose] > │ () v70                                                                       │

00:02:14 #1804 [Verbose] > │     let v72 : (bool * (float * float)) = method25(v45)                       │

00:02:14 #1805 [Verbose] > │     let v73 : pyo3_Bound<pyo3_PyAny> = method26(v71)                         │

00:02:14 #1806 [Verbose] > │     let v74 : string = "pyo3::prelude::PyAnyMethods::call(&v73, ((*v72).0,   │

00:02:14 #1807 [Verbose] > │ *(*v72).1), None)"                                                           │

00:02:14 #1808 [Verbose] > │     let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> =                   │

00:02:14 #1809 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74                                   │

00:02:14 #1810 [Verbose] > │     let v76 : (pyo3_PyErr -> std_string_String) = method27()                 │

00:02:14 #1811 [Verbose] > │     let v77 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v75)     │

00:02:14 #1812 [Verbose] > │     let v78 : string = "v77.map_err(|x| v76(x))"                             │

00:02:14 #1813 [Verbose] > │     let v79 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> =            │

00:02:14 #1814 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78                                   │

00:02:14 #1815 [Verbose] > │     let v80 : string = "v79?"                                                │

00:02:14 #1816 [Verbose] > │     let v81 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #1817 [Verbose] > │ () v80                                                                       │

00:02:14 #1818 [Verbose] > │     let v82 : pyo3_Bound<pyo3_PyAny> = method28(v81)                         │

00:02:14 #1819 [Verbose] > │     let v83 : string = "v82.extract()"                                       │

00:02:14 #1820 [Verbose] > │     let v84 : Result<struct (float * float), pyo3_PyErr> =                   │

00:02:14 #1821 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83                                   │

00:02:14 #1822 [Verbose] > │     let v85 : (pyo3_PyErr -> std_string_String) = method29()                 │

00:02:14 #1823 [Verbose] > │     let v86 : Result<struct (float * float), pyo3_PyErr> = method30(v84)     │

00:02:14 #1824 [Verbose] > │     let v87 : string = "v86.map_err(|x| v85(x))"                             │

00:02:14 #1825 [Verbose] > │     let v88 : Result<struct (float * float), std_string_String> =            │

00:02:14 #1826 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87                                   │

00:02:14 #1827 [Verbose] > │     let v89 : string = "v88?"                                                │

00:02:14 #1828 [Verbose] > │     let struct (v90 : float, v91 : float) =                                  │

00:02:14 #1829 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v89                                   │

00:02:14 #1830 [Verbose] > │     let v92 : float = method31(v90)                                          │

00:02:14 #1831 [Verbose] > │     let v93 : float = method3(v92)                                           │

00:02:14 #1832 [Verbose] > │     let v94 : float = method32(v91)                                          │

00:02:14 #1833 [Verbose] > │     let v95 : string = "num_complex::Complex::new(v93, v94)"                 │

00:02:14 #1834 [Verbose] > │     let v96 : num_complex_Complex<float> =                                   │

00:02:14 #1835 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95                                   │

00:02:14 #1836 [Verbose] > │     let v97 : Result<num_complex_Complex<float>, std_string_String> = Ok v96 │

00:02:14 #1837 [Verbose] > │     v97                                                                      │

00:02:14 #1838 [Verbose] > │ and closure5 () (v0 : num_complex_Complex<float>) : US0 =                    │

00:02:14 #1839 [Verbose] > │     US0_1(v0)                                                                │

00:02:14 #1840 [Verbose] > │ and method42 () : float =                                                    │

00:02:14 #1841 [Verbose] > │     3.141592653589793                                                        │

00:02:14 #1842 [Verbose] > │ and method33 (v0 : pyo3_Python, v1 : num_complex_Complex<float>) :           │

00:02:14 #1843 [Verbose] > │ num_complex_Complex<float> =                                                 │

00:02:14 #1844 [Verbose] > │     let v2 : num_complex_Complex<float> = method34(v1)                       │

00:02:14 #1845 [Verbose] > │     let v3 : string = "println!(\"zeta / count: {:?} / s: {:?}\", 0, v2)"    │

00:02:14 #1846 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v3                                │

00:02:14 #1847 [Verbose] > │     let v4 : num_complex_Complex<float> = method13(v2)                       │

00:02:14 #1848 [Verbose] > │     let v5 : string = "v4.re"                                                │

00:02:14 #1849 [Verbose] > │     let v6 : float = Fable.Core.RustInterop.emitRustExpr () v5               │

00:02:14 #1850 [Verbose] > │     let v7 : bool = v6 > 1.0                                                 │

00:02:14 #1851 [Verbose] > │     if v7 then                                                               │

00:02:14 #1852 [Verbose] > │         let v8 : float = method35()                                          │

00:02:14 #1853 [Verbose] > │         let v9 : float = method3(v8)                                         │

00:02:14 #1854 [Verbose] > │         let v10 : float = method4()                                          │

00:02:14 #1855 [Verbose] > │         let v11 : string = "num_complex::Complex::new(v9, v10)"              │

00:02:14 #1856 [Verbose] > │         let v12 : num_complex_Complex<float> =                               │

00:02:14 #1857 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11                                   │

00:02:14 #1858 [Verbose] > │         let v13 : (int32 []) = Array.zeroCreate<int32> (10000)               │

00:02:14 #1859 [Verbose] > │         let v14 : Mut0 = {l0 = 0} : Mut0                                     │

00:02:14 #1860 [Verbose] > │         while method36(v14) do                                               │

00:02:14 #1861 [Verbose] > │             let v16 : int32 = v14.l0                                         │

00:02:14 #1862 [Verbose] > │             v13.[int v16] <- v16                                             │

00:02:14 #1863 [Verbose] > │             let v17 : int32 = v16 + 1                                        │

00:02:14 #1864 [Verbose] > │             v14.l0 <- v17                                                    │

00:02:14 #1865 [Verbose] > │             ()                                                               │

00:02:14 #1866 [Verbose] > │         let v18 : int32 = v13.Length                                         │

00:02:14 #1867 [Verbose] > │         let v19 : Mut2 = {l0 = 0; l1 = v12} : Mut2                           │

00:02:14 #1868 [Verbose] > │         while method37(v18, v19) do                                          │

00:02:14 #1869 [Verbose] > │             let v21 : int32 = v19.l0                                         │

00:02:14 #1870 [Verbose] > │             let v22 : num_complex_Complex<float> = v19.l1                    │

00:02:14 #1871 [Verbose] > │             let v23 : int32 = v13.[int v21]                                  │

00:02:14 #1872 [Verbose] > │             let v24 : float = method38()                                     │

00:02:14 #1873 [Verbose] > │             let v25 : float = method3(v24)                                   │

00:02:14 #1874 [Verbose] > │             let v26 : float = method4()                                      │

00:02:14 #1875 [Verbose] > │             let v27 : string = "num_complex::Complex::new(v25, v26)"         │

00:02:14 #1876 [Verbose] > │             let v28 : num_complex_Complex<float> =                           │

00:02:14 #1877 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v27                                   │

00:02:14 #1878 [Verbose] > │             let v29 : float = float v23                                      │

00:02:14 #1879 [Verbose] > │             let v30 : float = method31(v29)                                  │

00:02:14 #1880 [Verbose] > │             let v31 : float = method3(v30)                                   │

00:02:14 #1881 [Verbose] > │             let v32 : float = method4()                                      │

00:02:14 #1882 [Verbose] > │             let v33 : string = "num_complex::Complex::new(v31, v32)"         │

00:02:14 #1883 [Verbose] > │             let v34 : num_complex_Complex<float> =                           │

00:02:14 #1884 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v33                                   │

00:02:14 #1885 [Verbose] > │             let v35 : num_complex_Complex<float> = method39(v34)             │

00:02:14 #1886 [Verbose] > │             let v36 : num_complex_Complex<float> = method40(v2)              │

00:02:14 #1887 [Verbose] > │             let v37 : string = "num_complex::Complex::powc(v35, v36)"        │

00:02:14 #1888 [Verbose] > │             let v38 : num_complex_Complex<float> =                           │

00:02:14 #1889 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37                                   │

00:02:14 #1890 [Verbose] > │             let v39 : string = "v28 / v38"                                   │

00:02:14 #1891 [Verbose] > │             let v40 : num_complex_Complex<float> =                           │

00:02:14 #1892 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v39                                   │

00:02:14 #1893 [Verbose] > │             let v41 : string = "v22 + v40"                                   │

00:02:14 #1894 [Verbose] > │             let v42 : num_complex_Complex<float> =                           │

00:02:14 #1895 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v41                                   │

00:02:14 #1896 [Verbose] > │             let v43 : int32 = v21 + 1                                        │

00:02:14 #1897 [Verbose] > │             v19.l0 <- v43                                                    │

00:02:14 #1898 [Verbose] > │             v19.l1 <- v42                                                    │

00:02:14 #1899 [Verbose] > │             ()                                                               │

00:02:14 #1900 [Verbose] > │         let v44 : num_complex_Complex<float> = v19.l1                        │

00:02:14 #1901 [Verbose] > │         v44                                                                  │

00:02:14 #1902 [Verbose] > │     else                                                                     │

00:02:14 #1903 [Verbose] > │         let v45 : float = method38()                                         │

00:02:14 #1904 [Verbose] > │         let v46 : float = method3(v45)                                       │

00:02:14 #1905 [Verbose] > │         let v47 : float = method4()                                          │

00:02:14 #1906 [Verbose] > │         let v48 : string = "num_complex::Complex::new(v46, v47)"             │

00:02:14 #1907 [Verbose] > │         let v49 : num_complex_Complex<float> =                               │

00:02:14 #1908 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v48                                   │

00:02:14 #1909 [Verbose] > │         let v50 : string = "v49 - v2"                                        │

00:02:14 #1910 [Verbose] > │         let v51 : num_complex_Complex<float> =                               │

00:02:14 #1911 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50                                   │

00:02:14 #1912 [Verbose] > │         let v52 : string = $"        s = mpmath.gamma(s)"                    │

00:02:14 #1913 [Verbose] > │         let v53 : num_complex_Complex<float> = method8(v51)                  │

00:02:14 #1914 [Verbose] > │         let v54 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #1915 [Verbose] > │ method41(v0, v52, v53)                                                       │

00:02:14 #1916 [Verbose] > │         let v55 : string = "v54.ok()"                                        │

00:02:14 #1917 [Verbose] > │         let v56 : num_complex_Complex<float> option =                        │

00:02:14 #1918 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v55                                   │

00:02:14 #1919 [Verbose] > │         let v57 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #1920 [Verbose] > │         let v58 : US0 = US0_0                                                │

00:02:14 #1921 [Verbose] > │         let v59 : US0 = v56 |> Option.map v57 |> Option.defaultValue v58     │

00:02:14 #1922 [Verbose] > │         let v60 : string = "f64::NAN"                                        │

00:02:14 #1923 [Verbose] > │         let v61 : float = Fable.Core.RustInterop.emitRustExpr () v60         │

00:02:14 #1924 [Verbose] > │         let v62 : string = "f64::NAN"                                        │

00:02:14 #1925 [Verbose] > │         let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62         │

00:02:14 #1926 [Verbose] > │         let v64 : float = method31(v61)                                      │

00:02:14 #1927 [Verbose] > │         let v65 : float = method3(v64)                                       │

00:02:14 #1928 [Verbose] > │         let v66 : float = method32(v63)                                      │

00:02:14 #1929 [Verbose] > │         let v67 : string = "num_complex::Complex::new(v65, v66)"             │

00:02:14 #1930 [Verbose] > │         let v68 : num_complex_Complex<float> =                               │

00:02:14 #1931 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67                                   │

00:02:14 #1932 [Verbose] > │         let v71 : num_complex_Complex<float> =                               │

00:02:14 #1933 [Verbose] > │             match v59 with                                                   │

00:02:14 #1934 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #1935 [Verbose] > │                 v68                                                          │

00:02:14 #1936 [Verbose] > │             | US0_1(v69) -> (* Some *)                                       │

00:02:14 #1937 [Verbose] > │                 v69                                                          │

00:02:14 #1938 [Verbose] > │         let v72 : float = method42()                                         │

00:02:14 #1939 [Verbose] > │         let v73 : float = method3(v72)                                       │

00:02:14 #1940 [Verbose] > │         let v74 : float = method4()                                          │

00:02:14 #1941 [Verbose] > │         let v75 : string = "num_complex::Complex::new(v73, v74)"             │

00:02:14 #1942 [Verbose] > │         let v76 : num_complex_Complex<float> =                               │

00:02:14 #1943 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v75                                   │

00:02:14 #1944 [Verbose] > │         let v77 : string = "v76 * v2"                                        │

00:02:14 #1945 [Verbose] > │         let v78 : num_complex_Complex<float> =                               │

00:02:14 #1946 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v77                                   │

00:02:14 #1947 [Verbose] > │         let v79 : float = method2()                                          │

00:02:14 #1948 [Verbose] > │         let v80 : float = method3(v79)                                       │

00:02:14 #1949 [Verbose] > │         let v81 : float = method4()                                          │

00:02:14 #1950 [Verbose] > │         let v82 : string = "num_complex::Complex::new(v80, v81)"             │

00:02:14 #1951 [Verbose] > │         let v83 : num_complex_Complex<float> =                               │

00:02:14 #1952 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v82                                   │

00:02:14 #1953 [Verbose] > │         let v84 : string = "v78 / v83"                                       │

00:02:14 #1954 [Verbose] > │         let v85 : num_complex_Complex<float> =                               │

00:02:14 #1955 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v84                                   │

00:02:14 #1956 [Verbose] > │         let v86 : string = "v85.sin()"                                       │

00:02:14 #1957 [Verbose] > │         let v87 : num_complex_Complex<float> =                               │

00:02:14 #1958 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86                                   │

00:02:14 #1959 [Verbose] > │         let v88 : num_complex_Complex<float> = method13(v2)                  │

00:02:14 #1960 [Verbose] > │         let v89 : string = "v88.re"                                          │

00:02:14 #1961 [Verbose] > │         let v90 : float = Fable.Core.RustInterop.emitRustExpr () v89         │

00:02:14 #1962 [Verbose] > │         let v91 : float = 1.0 - v90                                          │

00:02:14 #1963 [Verbose] > │         let v92 : num_complex_Complex<float> = method14(v2)                  │

00:02:14 #1964 [Verbose] > │         let v93 : string = "v92.im"                                          │

00:02:14 #1965 [Verbose] > │         let v94 : float = Fable.Core.RustInterop.emitRustExpr () v93         │

00:02:14 #1966 [Verbose] > │         let v95 : float =  -v94                                              │

00:02:14 #1967 [Verbose] > │         let v96 : float = method31(v91)                                      │

00:02:14 #1968 [Verbose] > │         let v97 : float = method3(v96)                                       │

00:02:14 #1969 [Verbose] > │         let v98 : float = method32(v95)                                      │

00:02:14 #1970 [Verbose] > │         let v99 : string = "num_complex::Complex::new(v97, v98)"             │

00:02:14 #1971 [Verbose] > │         let v100 : num_complex_Complex<float> =                              │

00:02:14 #1972 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99                                   │

00:02:14 #1973 [Verbose] > │         let v101 : num_complex_Complex<float> = method13(v100)               │

00:02:14 #1974 [Verbose] > │         let v102 : string = "v101.re"                                        │

00:02:14 #1975 [Verbose] > │         let v103 : float = Fable.Core.RustInterop.emitRustExpr () v102       │

00:02:14 #1976 [Verbose] > │         let v104 : bool = v103 <= 1.0                                        │

00:02:14 #1977 [Verbose] > │         let v634 : num_complex_Complex<float> =                              │

00:02:14 #1978 [Verbose] > │             if v104 then                                                     │

00:02:14 #1979 [Verbose] > │                 let v105 : float = method35()                                │

00:02:14 #1980 [Verbose] > │                 let v106 : float = method3(v105)                             │

00:02:14 #1981 [Verbose] > │                 let v107 : float = method4()                                 │

00:02:14 #1982 [Verbose] > │                 let v108 : string = "num_complex::Complex::new(v106, v107)"  │

00:02:14 #1983 [Verbose] > │                 let v109 : num_complex_Complex<float> =                      │

00:02:14 #1984 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v108                                  │

00:02:14 #1985 [Verbose] > │                 v109                                                         │

00:02:14 #1986 [Verbose] > │             else                                                             │

00:02:14 #1987 [Verbose] > │                 let v110 : num_complex_Complex<float> = method34(v100)       │

00:02:14 #1988 [Verbose] > │                 let v111 : string = "println!(\"zeta / count: {:?} / s:      │

00:02:14 #1989 [Verbose] > │ {:?}\", 1, v110)"                                                            │

00:02:14 #1990 [Verbose] > │                 Fable.Core.RustInterop.emitRustExpr () v111                  │

00:02:14 #1991 [Verbose] > │                 let v112 : num_complex_Complex<float> = method13(v110)       │

00:02:14 #1992 [Verbose] > │                 let v113 : string = "v112.re"                                │

00:02:14 #1993 [Verbose] > │                 let v114 : float = Fable.Core.RustInterop.emitRustExpr ()    │

00:02:14 #1994 [Verbose] > │ v113                                                                         │

00:02:14 #1995 [Verbose] > │                 let v115 : bool = v114 > 1.0                                 │

00:02:14 #1996 [Verbose] > │                 if v115 then                                                 │

00:02:14 #1997 [Verbose] > │                     let v116 : float = method35()                            │

00:02:14 #1998 [Verbose] > │                     let v117 : float = method3(v116)                         │

00:02:14 #1999 [Verbose] > │                     let v118 : float = method4()                             │

00:02:14 #2000 [Verbose] > │                     let v119 : string = "num_complex::Complex::new(v117,     │

00:02:14 #2001 [Verbose] > │ v118)"                                                                       │

00:02:14 #2002 [Verbose] > │                     let v120 : num_complex_Complex<float> =                  │

00:02:14 #2003 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v119                                  │

00:02:14 #2004 [Verbose] > │                     let v121 : (int32 []) = Array.zeroCreate<int32> (10000)  │

00:02:14 #2005 [Verbose] > │                     let v122 : Mut0 = {l0 = 0} : Mut0                        │

00:02:14 #2006 [Verbose] > │                     while method36(v122) do                                  │

00:02:14 #2007 [Verbose] > │                         let v124 : int32 = v122.l0                           │

00:02:14 #2008 [Verbose] > │                         v121.[int v124] <- v124                              │

00:02:14 #2009 [Verbose] > │                         let v125 : int32 = v124 + 1                          │

00:02:14 #2010 [Verbose] > │                         v122.l0 <- v125                                      │

00:02:14 #2011 [Verbose] > │                         ()                                                   │

00:02:14 #2012 [Verbose] > │                     let v126 : int32 = v121.Length                           │

00:02:14 #2013 [Verbose] > │                     let v127 : Mut2 = {l0 = 0; l1 = v120} : Mut2             │

00:02:14 #2014 [Verbose] > │                     while method37(v126, v127) do                            │

00:02:14 #2015 [Verbose] > │                         let v129 : int32 = v127.l0                           │

00:02:14 #2016 [Verbose] > │                         let v130 : num_complex_Complex<float> = v127.l1      │

00:02:14 #2017 [Verbose] > │                         let v131 : int32 = v121.[int v129]                   │

00:02:14 #2018 [Verbose] > │                         let v132 : float = method38()                        │

00:02:14 #2019 [Verbose] > │                         let v133 : float = method3(v132)                     │

00:02:14 #2020 [Verbose] > │                         let v134 : float = method4()                         │

00:02:14 #2021 [Verbose] > │                         let v135 : string = "num_complex::Complex::new(v133, │

00:02:14 #2022 [Verbose] > │ v134)"                                                                       │

00:02:14 #2023 [Verbose] > │                         let v136 : num_complex_Complex<float> =              │

00:02:14 #2024 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v135                                  │

00:02:14 #2025 [Verbose] > │                         let v137 : float = float v131                        │

00:02:14 #2026 [Verbose] > │                         let v138 : float = method31(v137)                    │

00:02:14 #2027 [Verbose] > │                         let v139 : float = method3(v138)                     │

00:02:14 #2028 [Verbose] > │                         let v140 : float = method4()                         │

00:02:14 #2029 [Verbose] > │                         let v141 : string = "num_complex::Complex::new(v139, │

00:02:14 #2030 [Verbose] > │ v140)"                                                                       │

00:02:14 #2031 [Verbose] > │                         let v142 : num_complex_Complex<float> =              │

00:02:14 #2032 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v141                                  │

00:02:14 #2033 [Verbose] > │                         let v143 : num_complex_Complex<float> =              │

00:02:14 #2034 [Verbose] > │ method39(v142)                                                               │

00:02:14 #2035 [Verbose] > │                         let v144 : num_complex_Complex<float> =              │

00:02:14 #2036 [Verbose] > │ method40(v110)                                                               │

00:02:14 #2037 [Verbose] > │                         let v145 : string =                                  │

00:02:14 #2038 [Verbose] > │ "num_complex::Complex::powc(v143, v144)"                                     │

00:02:14 #2039 [Verbose] > │                         let v146 : num_complex_Complex<float> =              │

00:02:14 #2040 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v145                                  │

00:02:14 #2041 [Verbose] > │                         let v147 : string = "v136 / v146"                    │

00:02:14 #2042 [Verbose] > │                         let v148 : num_complex_Complex<float> =              │

00:02:14 #2043 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v147                                  │

00:02:14 #2044 [Verbose] > │                         let v149 : string = "v130 + v148"                    │

00:02:14 #2045 [Verbose] > │                         let v150 : num_complex_Complex<float> =              │

00:02:14 #2046 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v149                                  │

00:02:14 #2047 [Verbose] > │                         let v151 : int32 = v129 + 1                          │

00:02:14 #2048 [Verbose] > │                         v127.l0 <- v151                                      │

00:02:14 #2049 [Verbose] > │                         v127.l1 <- v150                                      │

00:02:14 #2050 [Verbose] > │                         ()                                                   │

00:02:14 #2051 [Verbose] > │                     let v152 : num_complex_Complex<float> = v127.l1          │

00:02:14 #2052 [Verbose] > │                     v152                                                     │

00:02:14 #2053 [Verbose] > │                 else                                                         │

00:02:14 #2054 [Verbose] > │                     let v153 : float = method38()                            │

00:02:14 #2055 [Verbose] > │                     let v154 : float = method3(v153)                         │

00:02:14 #2056 [Verbose] > │                     let v155 : float = method4()                             │

00:02:14 #2057 [Verbose] > │                     let v156 : string = "num_complex::Complex::new(v154,     │

00:02:14 #2058 [Verbose] > │ v155)"                                                                       │

00:02:14 #2059 [Verbose] > │                     let v157 : num_complex_Complex<float> =                  │

00:02:14 #2060 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v156                                  │

00:02:14 #2061 [Verbose] > │                     let v158 : string = "v157 - v110"                        │

00:02:14 #2062 [Verbose] > │                     let v159 : num_complex_Complex<float> =                  │

00:02:14 #2063 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v158                                  │

00:02:14 #2064 [Verbose] > │                     let v160 : string = $"        s = mpmath.gamma(s)"       │

00:02:14 #2065 [Verbose] > │                     let v161 : num_complex_Complex<float> = method8(v159)    │

00:02:14 #2066 [Verbose] > │                     let v162 : Result<num_complex_Complex<float>,            │

00:02:14 #2067 [Verbose] > │ std_string_String> = method41(v0, v160, v161)                                │

00:02:14 #2068 [Verbose] > │                     let v163 : string = "v162.ok()"                          │

00:02:14 #2069 [Verbose] > │                     let v164 : num_complex_Complex<float> option =           │

00:02:14 #2070 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v163                                  │

00:02:14 #2071 [Verbose] > │                     let v165 : US0 = US0_0                                   │

00:02:14 #2072 [Verbose] > │                     let v166 : US0 = v164 |> Option.map v57 |>               │

00:02:14 #2073 [Verbose] > │ Option.defaultValue v165                                                     │

00:02:14 #2074 [Verbose] > │                     let v167 : string = "f64::NAN"                           │

00:02:14 #2075 [Verbose] > │                     let v168 : float = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #2076 [Verbose] > │ () v167                                                                      │

00:02:14 #2077 [Verbose] > │                     let v169 : string = "f64::NAN"                           │

00:02:14 #2078 [Verbose] > │                     let v170 : float = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #2079 [Verbose] > │ () v169                                                                      │

00:02:14 #2080 [Verbose] > │                     let v171 : float = method31(v168)                        │

00:02:14 #2081 [Verbose] > │                     let v172 : float = method3(v171)                         │

00:02:14 #2082 [Verbose] > │                     let v173 : float = method32(v170)                        │

00:02:14 #2083 [Verbose] > │                     let v174 : string = "num_complex::Complex::new(v172,     │

00:02:14 #2084 [Verbose] > │ v173)"                                                                       │

00:02:14 #2085 [Verbose] > │                     let v175 : num_complex_Complex<float> =                  │

00:02:14 #2086 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v174                                  │

00:02:14 #2087 [Verbose] > │                     let v178 : num_complex_Complex<float> =                  │

00:02:14 #2088 [Verbose] > │                         match v166 with                                      │

00:02:14 #2089 [Verbose] > │                         | US0_0 -> (* None *)                                │

00:02:14 #2090 [Verbose] > │                             v175                                             │

00:02:14 #2091 [Verbose] > │                         | US0_1(v176) -> (* Some *)                          │

00:02:14 #2092 [Verbose] > │                             v176                                             │

00:02:14 #2093 [Verbose] > │                     let v179 : float = method42()                            │

00:02:14 #2094 [Verbose] > │                     let v180 : float = method3(v179)                         │

00:02:14 #2095 [Verbose] > │                     let v181 : float = method4()                             │

00:02:14 #2096 [Verbose] > │                     let v182 : string = "num_complex::Complex::new(v180,     │

00:02:14 #2097 [Verbose] > │ v181)"                                                                       │

00:02:14 #2098 [Verbose] > │                     let v183 : num_complex_Complex<float> =                  │

00:02:14 #2099 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v182                                  │

00:02:14 #2100 [Verbose] > │                     let v184 : string = "v183 * v110"                        │

00:02:14 #2101 [Verbose] > │                     let v185 : num_complex_Complex<float> =                  │

00:02:14 #2102 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v184                                  │

00:02:14 #2103 [Verbose] > │                     let v186 : float = method2()                             │

00:02:14 #2104 [Verbose] > │                     let v187 : float = method3(v186)                         │

00:02:14 #2105 [Verbose] > │                     let v188 : float = method4()                             │

00:02:14 #2106 [Verbose] > │                     let v189 : string = "num_complex::Complex::new(v187,     │

00:02:14 #2107 [Verbose] > │ v188)"                                                                       │

00:02:14 #2108 [Verbose] > │                     let v190 : num_complex_Complex<float> =                  │

00:02:14 #2109 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v189                                  │

00:02:14 #2110 [Verbose] > │                     let v191 : string = "v185 / v190"                        │

00:02:14 #2111 [Verbose] > │                     let v192 : num_complex_Complex<float> =                  │

00:02:14 #2112 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v191                                  │

00:02:14 #2113 [Verbose] > │                     let v193 : string = "v192.sin()"                         │

00:02:14 #2114 [Verbose] > │                     let v194 : num_complex_Complex<float> =                  │

00:02:14 #2115 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v193                                  │

00:02:14 #2116 [Verbose] > │                     let v195 : num_complex_Complex<float> = method13(v110)   │

00:02:14 #2117 [Verbose] > │                     let v196 : string = "v195.re"                            │

00:02:14 #2118 [Verbose] > │                     let v197 : float = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #2119 [Verbose] > │ () v196                                                                      │

00:02:14 #2120 [Verbose] > │                     let v198 : float = 1.0 - v197                            │

00:02:14 #2121 [Verbose] > │                     let v199 : num_complex_Complex<float> = method14(v110)   │

00:02:14 #2122 [Verbose] > │                     let v200 : string = "v199.im"                            │

00:02:14 #2123 [Verbose] > │                     let v201 : float = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #2124 [Verbose] > │ () v200                                                                      │

00:02:14 #2125 [Verbose] > │                     let v202 : float =  -v201                                │

00:02:14 #2126 [Verbose] > │                     let v203 : float = method31(v198)                        │

00:02:14 #2127 [Verbose] > │                     let v204 : float = method3(v203)                         │

00:02:14 #2128 [Verbose] > │                     let v205 : float = method32(v202)                        │

00:02:14 #2129 [Verbose] > │                     let v206 : string = "num_complex::Complex::new(v204,     │

00:02:14 #2130 [Verbose] > │ v205)"                                                                       │

00:02:14 #2131 [Verbose] > │                     let v207 : num_complex_Complex<float> =                  │

00:02:14 #2132 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v206                                  │

00:02:14 #2133 [Verbose] > │                     let v208 : num_complex_Complex<float> = method13(v207)   │

00:02:14 #2134 [Verbose] > │                     let v209 : string = "v208.re"                            │

00:02:14 #2135 [Verbose] > │                     let v210 : float = Fable.Core.RustInterop.emitRustExpr   │

00:02:14 #2136 [Verbose] > │ () v209                                                                      │

00:02:14 #2137 [Verbose] > │                     let v211 : bool = v210 <= 1.0                            │

00:02:14 #2138 [Verbose] > │                     let v610 : num_complex_Complex<float> =                  │

00:02:14 #2139 [Verbose] > │                         if v211 then                                         │

00:02:14 #2140 [Verbose] > │                             let v212 : float = method35()                    │

00:02:14 #2141 [Verbose] > │                             let v213 : float = method3(v212)                 │

00:02:14 #2142 [Verbose] > │                             let v214 : float = method4()                     │

00:02:14 #2143 [Verbose] > │                             let v215 : string =                              │

00:02:14 #2144 [Verbose] > │ "num_complex::Complex::new(v213, v214)"                                      │

00:02:14 #2145 [Verbose] > │                             let v216 : num_complex_Complex<float> =          │

00:02:14 #2146 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v215                                  │

00:02:14 #2147 [Verbose] > │                             v216                                             │

00:02:14 #2148 [Verbose] > │                         else                                                 │

00:02:14 #2149 [Verbose] > │                             let v217 : num_complex_Complex<float> =          │

00:02:14 #2150 [Verbose] > │ method34(v207)                                                               │

00:02:14 #2151 [Verbose] > │                             let v218 : string = "println!(\"zeta / count:    │

00:02:14 #2152 [Verbose] > │ {:?} / s: {:?}\", 2, v217)"                                                  │

00:02:14 #2153 [Verbose] > │                             Fable.Core.RustInterop.emitRustExpr () v218      │

00:02:14 #2154 [Verbose] > │                             let v219 : num_complex_Complex<float> =          │

00:02:14 #2155 [Verbose] > │ method13(v217)                                                               │

00:02:14 #2156 [Verbose] > │                             let v220 : string = "v219.re"                    │

00:02:14 #2157 [Verbose] > │                             let v221 : float =                               │

00:02:14 #2158 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v220                                  │

00:02:14 #2159 [Verbose] > │                             let v222 : bool = v221 > 1.0                     │

00:02:14 #2160 [Verbose] > │                             if v222 then                                     │

00:02:14 #2161 [Verbose] > │                                 let v223 : float = method35()                │

00:02:14 #2162 [Verbose] > │                                 let v224 : float = method3(v223)             │

00:02:14 #2163 [Verbose] > │                                 let v225 : float = method4()                 │

00:02:14 #2164 [Verbose] > │                                 let v226 : string =                          │

00:02:14 #2165 [Verbose] > │ "num_complex::Complex::new(v224, v225)"                                      │

00:02:14 #2166 [Verbose] > │                                 let v227 : num_complex_Complex<float> =      │

00:02:14 #2167 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v226                                  │

00:02:14 #2168 [Verbose] > │                                 let v228 : (int32 []) =                      │

00:02:14 #2169 [Verbose] > │ Array.zeroCreate<int32> (10000)                                              │

00:02:14 #2170 [Verbose] > │                                 let v229 : Mut0 = {l0 = 0} : Mut0            │

00:02:14 #2171 [Verbose] > │                                 while method36(v229) do                      │

00:02:14 #2172 [Verbose] > │                                     let v231 : int32 = v229.l0               │

00:02:14 #2173 [Verbose] > │                                     v228.[int v231] <- v231                  │

00:02:14 #2174 [Verbose] > │                                     let v232 : int32 = v231 + 1              │

00:02:14 #2175 [Verbose] > │                                     v229.l0 <- v232                          │

00:02:14 #2176 [Verbose] > │                                     ()                                       │

00:02:14 #2177 [Verbose] > │                                 let v233 : int32 = v228.Length               │

00:02:14 #2178 [Verbose] > │                                 let v234 : Mut2 = {l0 = 0; l1 = v227} : Mut2 │

00:02:14 #2179 [Verbose] > │                                 while method37(v233, v234) do                │

00:02:14 #2180 [Verbose] > │                                     let v236 : int32 = v234.l0               │

00:02:14 #2181 [Verbose] > │                                     let v237 : num_complex_Complex<float> =  │

00:02:14 #2182 [Verbose] > │ v234.l1                                                                      │

00:02:14 #2183 [Verbose] > │                                     let v238 : int32 = v228.[int v236]       │

00:02:14 #2184 [Verbose] > │                                     let v239 : float = method38()            │

00:02:14 #2185 [Verbose] > │                                     let v240 : float = method3(v239)         │

00:02:14 #2186 [Verbose] > │                                     let v241 : float = method4()             │

00:02:14 #2187 [Verbose] > │                                     let v242 : string =                      │

00:02:14 #2188 [Verbose] > │ "num_complex::Complex::new(v240, v241)"                                      │

00:02:14 #2189 [Verbose] > │                                     let v243 : num_complex_Complex<float> =  │

00:02:14 #2190 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v242                                  │

00:02:14 #2191 [Verbose] > │                                     let v244 : float = float v238            │

00:02:14 #2192 [Verbose] > │                                     let v245 : float = method31(v244)        │

00:02:14 #2193 [Verbose] > │                                     let v246 : float = method3(v245)         │

00:02:14 #2194 [Verbose] > │                                     let v247 : float = method4()             │

00:02:14 #2195 [Verbose] > │                                     let v248 : string =                      │

00:02:14 #2196 [Verbose] > │ "num_complex::Complex::new(v246, v247)"                                      │

00:02:14 #2197 [Verbose] > │                                     let v249 : num_complex_Complex<float> =  │

00:02:14 #2198 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v248                                  │

00:02:14 #2199 [Verbose] > │                                     let v250 : num_complex_Complex<float> =  │

00:02:14 #2200 [Verbose] > │ method39(v249)                                                               │

00:02:14 #2201 [Verbose] > │                                     let v251 : num_complex_Complex<float> =  │

00:02:14 #2202 [Verbose] > │ method40(v217)                                                               │

00:02:14 #2203 [Verbose] > │                                     let v252 : string =                      │

00:02:14 #2204 [Verbose] > │ "num_complex::Complex::powc(v250, v251)"                                     │

00:02:14 #2205 [Verbose] > │                                     let v253 : num_complex_Complex<float> =  │

00:02:14 #2206 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v252                                  │

00:02:14 #2207 [Verbose] > │                                     let v254 : string = "v243 / v253"        │

00:02:14 #2208 [Verbose] > │                                     let v255 : num_complex_Complex<float> =  │

00:02:14 #2209 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v254                                  │

00:02:14 #2210 [Verbose] > │                                     let v256 : string = "v237 + v255"        │

00:02:14 #2211 [Verbose] > │                                     let v257 : num_complex_Complex<float> =  │

00:02:14 #2212 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v256                                  │

00:02:14 #2213 [Verbose] > │                                     let v258 : int32 = v236 + 1              │

00:02:14 #2214 [Verbose] > │                                     v234.l0 <- v258                          │

00:02:14 #2215 [Verbose] > │                                     v234.l1 <- v257                          │

00:02:14 #2216 [Verbose] > │                                     ()                                       │

00:02:14 #2217 [Verbose] > │                                 let v259 : num_complex_Complex<float> =      │

00:02:14 #2218 [Verbose] > │ v234.l1                                                                      │

00:02:14 #2219 [Verbose] > │                                 v259                                         │

00:02:14 #2220 [Verbose] > │                             else                                             │

00:02:14 #2221 [Verbose] > │                                 let v260 : float = method38()                │

00:02:14 #2222 [Verbose] > │                                 let v261 : float = method3(v260)             │

00:02:14 #2223 [Verbose] > │                                 let v262 : float = method4()                 │

00:02:14 #2224 [Verbose] > │                                 let v263 : string =                          │

00:02:14 #2225 [Verbose] > │ "num_complex::Complex::new(v261, v262)"                                      │

00:02:14 #2226 [Verbose] > │                                 let v264 : num_complex_Complex<float> =      │

00:02:14 #2227 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v263                                  │

00:02:14 #2228 [Verbose] > │                                 let v265 : string = "v264 - v217"            │

00:02:14 #2229 [Verbose] > │                                 let v266 : num_complex_Complex<float> =      │

00:02:14 #2230 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v265                                  │

00:02:14 #2231 [Verbose] > │                                 let v267 : string = $"        s =            │

00:02:14 #2232 [Verbose] > │ mpmath.gamma(s)"                                                             │

00:02:14 #2233 [Verbose] > │                                 let v268 : num_complex_Complex<float> =      │

00:02:14 #2234 [Verbose] > │ method8(v266)                                                                │

00:02:14 #2235 [Verbose] > │                                 let v269 :                                   │

00:02:14 #2236 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v267,   │

00:02:14 #2237 [Verbose] > │ v268)                                                                        │

00:02:14 #2238 [Verbose] > │                                 let v270 : string = "v269.ok()"              │

00:02:14 #2239 [Verbose] > │                                 let v271 : num_complex_Complex<float> option │

00:02:14 #2240 [Verbose] > │ = Fable.Core.RustInterop.emitRustExpr () v270                                │

00:02:14 #2241 [Verbose] > │                                 let v272 : US0 = US0_0                       │

00:02:14 #2242 [Verbose] > │                                 let v273 : US0 = v271 |> Option.map v57 |>   │

00:02:14 #2243 [Verbose] > │ Option.defaultValue v272                                                     │

00:02:14 #2244 [Verbose] > │                                 let v274 : string = "f64::NAN"               │

00:02:14 #2245 [Verbose] > │                                 let v275 : float =                           │

00:02:14 #2246 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v274                                  │

00:02:14 #2247 [Verbose] > │                                 let v276 : string = "f64::NAN"               │

00:02:14 #2248 [Verbose] > │                                 let v277 : float =                           │

00:02:14 #2249 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v276                                  │

00:02:14 #2250 [Verbose] > │                                 let v278 : float = method31(v275)            │

00:02:14 #2251 [Verbose] > │                                 let v279 : float = method3(v278)             │

00:02:14 #2252 [Verbose] > │                                 let v280 : float = method32(v277)            │

00:02:14 #2253 [Verbose] > │                                 let v281 : string =                          │

00:02:14 #2254 [Verbose] > │ "num_complex::Complex::new(v279, v280)"                                      │

00:02:14 #2255 [Verbose] > │                                 let v282 : num_complex_Complex<float> =      │

00:02:14 #2256 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v281                                  │

00:02:14 #2257 [Verbose] > │                                 let v285 : num_complex_Complex<float> =      │

00:02:14 #2258 [Verbose] > │                                     match v273 with                          │

00:02:14 #2259 [Verbose] > │                                     | US0_0 -> (* None *)                    │

00:02:14 #2260 [Verbose] > │                                         v282                                 │

00:02:14 #2261 [Verbose] > │                                     | US0_1(v283) -> (* Some *)              │

00:02:14 #2262 [Verbose] > │                                         v283                                 │

00:02:14 #2263 [Verbose] > │                                 let v286 : float = method42()                │

00:02:14 #2264 [Verbose] > │                                 let v287 : float = method3(v286)             │

00:02:14 #2265 [Verbose] > │                                 let v288 : float = method4()                 │

00:02:14 #2266 [Verbose] > │                                 let v289 : string =                          │

00:02:14 #2267 [Verbose] > │ "num_complex::Complex::new(v287, v288)"                                      │

00:02:14 #2268 [Verbose] > │                                 let v290 : num_complex_Complex<float> =      │

00:02:14 #2269 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v289                                  │

00:02:14 #2270 [Verbose] > │                                 let v291 : string = "v290 * v217"            │

00:02:14 #2271 [Verbose] > │                                 let v292 : num_complex_Complex<float> =      │

00:02:14 #2272 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v291                                  │

00:02:14 #2273 [Verbose] > │                                 let v293 : float = method2()                 │

00:02:14 #2274 [Verbose] > │                                 let v294 : float = method3(v293)             │

00:02:14 #2275 [Verbose] > │                                 let v295 : float = method4()                 │

00:02:14 #2276 [Verbose] > │                                 let v296 : string =                          │

00:02:14 #2277 [Verbose] > │ "num_complex::Complex::new(v294, v295)"                                      │

00:02:14 #2278 [Verbose] > │                                 let v297 : num_complex_Complex<float> =      │

00:02:14 #2279 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v296                                  │

00:02:14 #2280 [Verbose] > │                                 let v298 : string = "v292 / v297"            │

00:02:14 #2281 [Verbose] > │                                 let v299 : num_complex_Complex<float> =      │

00:02:14 #2282 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v298                                  │

00:02:14 #2283 [Verbose] > │                                 let v300 : string = "v299.sin()"             │

00:02:14 #2284 [Verbose] > │                                 let v301 : num_complex_Complex<float> =      │

00:02:14 #2285 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v300                                  │

00:02:14 #2286 [Verbose] > │                                 let v302 : num_complex_Complex<float> =      │

00:02:14 #2287 [Verbose] > │ method13(v217)                                                               │

00:02:14 #2288 [Verbose] > │                                 let v303 : string = "v302.re"                │

00:02:14 #2289 [Verbose] > │                                 let v304 : float =                           │

00:02:14 #2290 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v303                                  │

00:02:14 #2291 [Verbose] > │                                 let v305 : float = 1.0 - v304                │

00:02:14 #2292 [Verbose] > │                                 let v306 : num_complex_Complex<float> =      │

00:02:14 #2293 [Verbose] > │ method14(v217)                                                               │

00:02:14 #2294 [Verbose] > │                                 let v307 : string = "v306.im"                │

00:02:14 #2295 [Verbose] > │                                 let v308 : float =                           │

00:02:14 #2296 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v307                                  │

00:02:14 #2297 [Verbose] > │                                 let v309 : float =  -v308                    │

00:02:14 #2298 [Verbose] > │                                 let v310 : float = method31(v305)            │

00:02:14 #2299 [Verbose] > │                                 let v311 : float = method3(v310)             │

00:02:14 #2300 [Verbose] > │                                 let v312 : float = method32(v309)            │

00:02:14 #2301 [Verbose] > │                                 let v313 : string =                          │

00:02:14 #2302 [Verbose] > │ "num_complex::Complex::new(v311, v312)"                                      │

00:02:14 #2303 [Verbose] > │                                 let v314 : num_complex_Complex<float> =      │

00:02:14 #2304 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v313                                  │

00:02:14 #2305 [Verbose] > │                                 let v315 : num_complex_Complex<float> =      │

00:02:14 #2306 [Verbose] > │ method13(v314)                                                               │

00:02:14 #2307 [Verbose] > │                                 let v316 : string = "v315.re"                │

00:02:14 #2308 [Verbose] > │                                 let v317 : float =                           │

00:02:14 #2309 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v316                                  │

00:02:14 #2310 [Verbose] > │                                 let v318 : bool = v317 <= 1.0                │

00:02:14 #2311 [Verbose] > │                                 let v586 : num_complex_Complex<float> =      │

00:02:14 #2312 [Verbose] > │                                     if v318 then                             │

00:02:14 #2313 [Verbose] > │                                         let v319 : float = method35()        │

00:02:14 #2314 [Verbose] > │                                         let v320 : float = method3(v319)     │

00:02:14 #2315 [Verbose] > │                                         let v321 : float = method4()         │

00:02:14 #2316 [Verbose] > │                                         let v322 : string =                  │

00:02:14 #2317 [Verbose] > │ "num_complex::Complex::new(v320, v321)"                                      │

00:02:14 #2318 [Verbose] > │                                         let v323 :                           │

00:02:14 #2319 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v322     │

00:02:14 #2320 [Verbose] > │                                         v323                                 │

00:02:14 #2321 [Verbose] > │                                     else                                     │

00:02:14 #2322 [Verbose] > │                                         let v324 :                           │

00:02:14 #2323 [Verbose] > │ num_complex_Complex<float> = method34(v314)                                  │

00:02:14 #2324 [Verbose] > │                                         let v325 : string = "println!(\"zeta │

00:02:14 #2325 [Verbose] > │ / count: {:?} / s: {:?}\", 3, v324)"                                         │

00:02:14 #2326 [Verbose] > │                                         Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #2327 [Verbose] > │ () v325                                                                      │

00:02:14 #2328 [Verbose] > │                                         let v326 :                           │

00:02:14 #2329 [Verbose] > │ num_complex_Complex<float> = method13(v324)                                  │

00:02:14 #2330 [Verbose] > │                                         let v327 : string = "v326.re"        │

00:02:14 #2331 [Verbose] > │                                         let v328 : float =                   │

00:02:14 #2332 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v327                                  │

00:02:14 #2333 [Verbose] > │                                         let v329 : bool = v328 > 1.0         │

00:02:14 #2334 [Verbose] > │                                         if v329 then                         │

00:02:14 #2335 [Verbose] > │                                             let v330 : float = method35()    │

00:02:14 #2336 [Verbose] > │                                             let v331 : float = method3(v330) │

00:02:14 #2337 [Verbose] > │                                             let v332 : float = method4()     │

00:02:14 #2338 [Verbose] > │                                             let v333 : string =              │

00:02:14 #2339 [Verbose] > │ "num_complex::Complex::new(v331, v332)"                                      │

00:02:14 #2340 [Verbose] > │                                             let v334 :                       │

00:02:14 #2341 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v333     │

00:02:14 #2342 [Verbose] > │                                             let v335 : (int32 []) =          │

00:02:14 #2343 [Verbose] > │ Array.zeroCreate<int32> (10000)                                              │

00:02:14 #2344 [Verbose] > │                                             let v336 : Mut0 = {l0 = 0} :     │

00:02:14 #2345 [Verbose] > │ Mut0                                                                         │

00:02:14 #2346 [Verbose] > │                                             while method36(v336) do          │

00:02:14 #2347 [Verbose] > │                                                 let v338 : int32 = v336.l0   │

00:02:14 #2348 [Verbose] > │                                                 v335.[int v338] <- v338      │

00:02:14 #2349 [Verbose] > │                                                 let v339 : int32 = v338 + 1  │

00:02:14 #2350 [Verbose] > │                                                 v336.l0 <- v339              │

00:02:14 #2351 [Verbose] > │                                                 ()                           │

00:02:14 #2352 [Verbose] > │                                             let v340 : int32 = v335.Length   │

00:02:14 #2353 [Verbose] > │                                             let v341 : Mut2 = {l0 = 0; l1 =  │

00:02:14 #2354 [Verbose] > │ v334} : Mut2                                                                 │

00:02:14 #2355 [Verbose] > │                                             while method37(v340, v341) do    │

00:02:14 #2356 [Verbose] > │                                                 let v343 : int32 = v341.l0   │

00:02:14 #2357 [Verbose] > │                                                 let v344 :                   │

00:02:14 #2358 [Verbose] > │ num_complex_Complex<float> = v341.l1                                         │

00:02:14 #2359 [Verbose] > │                                                 let v345 : int32 = v335.[int │

00:02:14 #2360 [Verbose] > │ v343]                                                                        │

00:02:14 #2361 [Verbose] > │                                                 let v346 : float =           │

00:02:14 #2362 [Verbose] > │ method38()                                                                   │

00:02:14 #2363 [Verbose] > │                                                 let v347 : float =           │

00:02:14 #2364 [Verbose] > │ method3(v346)                                                                │

00:02:14 #2365 [Verbose] > │                                                 let v348 : float = method4() │

00:02:14 #2366 [Verbose] > │                                                 let v349 : string =          │

00:02:14 #2367 [Verbose] > │ "num_complex::Complex::new(v347, v348)"                                      │

00:02:14 #2368 [Verbose] > │                                                 let v350 :                   │

00:02:14 #2369 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v349     │

00:02:14 #2370 [Verbose] > │                                                 let v351 : float = float     │

00:02:14 #2371 [Verbose] > │ v345                                                                         │

00:02:14 #2372 [Verbose] > │                                                 let v352 : float =           │

00:02:14 #2373 [Verbose] > │ method31(v351)                                                               │

00:02:14 #2374 [Verbose] > │                                                 let v353 : float =           │

00:02:14 #2375 [Verbose] > │ method3(v352)                                                                │

00:02:14 #2376 [Verbose] > │                                                 let v354 : float = method4() │

00:02:14 #2377 [Verbose] > │                                                 let v355 : string =          │

00:02:14 #2378 [Verbose] > │ "num_complex::Complex::new(v353, v354)"                                      │

00:02:14 #2379 [Verbose] > │                                                 let v356 :                   │

00:02:14 #2380 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v355     │

00:02:14 #2381 [Verbose] > │                                                 let v357 :                   │

00:02:14 #2382 [Verbose] > │ num_complex_Complex<float> = method39(v356)                                  │

00:02:14 #2383 [Verbose] > │                                                 let v358 :                   │

00:02:14 #2384 [Verbose] > │ num_complex_Complex<float> = method40(v324)                                  │

00:02:14 #2385 [Verbose] > │                                                 let v359 : string =          │

00:02:14 #2386 [Verbose] > │ "num_complex::Complex::powc(v357, v358)"                                     │

00:02:14 #2387 [Verbose] > │                                                 let v360 :                   │

00:02:14 #2388 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v359     │

00:02:14 #2389 [Verbose] > │                                                 let v361 : string = "v350 /  │

00:02:14 #2390 [Verbose] > │ v360"                                                                        │

00:02:14 #2391 [Verbose] > │                                                 let v362 :                   │

00:02:14 #2392 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v361     │

00:02:14 #2393 [Verbose] > │                                                 let v363 : string = "v344 +  │

00:02:14 #2394 [Verbose] > │ v362"                                                                        │

00:02:14 #2395 [Verbose] > │                                                 let v364 :                   │

00:02:14 #2396 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v363     │

00:02:14 #2397 [Verbose] > │                                                 let v365 : int32 = v343 + 1  │

00:02:14 #2398 [Verbose] > │                                                 v341.l0 <- v365              │

00:02:14 #2399 [Verbose] > │                                                 v341.l1 <- v364              │

00:02:14 #2400 [Verbose] > │                                                 ()                           │

00:02:14 #2401 [Verbose] > │                                             let v366 :                       │

00:02:14 #2402 [Verbose] > │ num_complex_Complex<float> = v341.l1                                         │

00:02:14 #2403 [Verbose] > │                                             v366                             │

00:02:14 #2404 [Verbose] > │                                         else                                 │

00:02:14 #2405 [Verbose] > │                                             let v367 : float = method38()    │

00:02:14 #2406 [Verbose] > │                                             let v368 : float = method3(v367) │

00:02:14 #2407 [Verbose] > │                                             let v369 : float = method4()     │

00:02:14 #2408 [Verbose] > │                                             let v370 : string =              │

00:02:14 #2409 [Verbose] > │ "num_complex::Complex::new(v368, v369)"                                      │

00:02:14 #2410 [Verbose] > │                                             let v371 :                       │

00:02:14 #2411 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v370     │

00:02:14 #2412 [Verbose] > │                                             let v372 : string = "v371 -      │

00:02:14 #2413 [Verbose] > │ v324"                                                                        │

00:02:14 #2414 [Verbose] > │                                             let v373 :                       │

00:02:14 #2415 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v372     │

00:02:14 #2416 [Verbose] > │                                             let v374 : string = $"        s  │

00:02:14 #2417 [Verbose] > │ = mpmath.gamma(s)"                                                           │

00:02:14 #2418 [Verbose] > │                                             let v375 :                       │

00:02:14 #2419 [Verbose] > │ num_complex_Complex<float> = method8(v373)                                   │

00:02:14 #2420 [Verbose] > │                                             let v376 :                       │

00:02:14 #2421 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v374,   │

00:02:14 #2422 [Verbose] > │ v375)                                                                        │

00:02:14 #2423 [Verbose] > │                                             let v377 : string = "v376.ok()"  │

00:02:14 #2424 [Verbose] > │                                             let v378 :                       │

00:02:14 #2425 [Verbose] > │ num_complex_Complex<float> option = Fable.Core.RustInterop.emitRustExpr ()   │

00:02:14 #2426 [Verbose] > │ v377                                                                         │

00:02:14 #2427 [Verbose] > │                                             let v379 : US0 = US0_0           │

00:02:14 #2428 [Verbose] > │                                             let v380 : US0 = v378 |>         │

00:02:14 #2429 [Verbose] > │ Option.map v57 |> Option.defaultValue v379                                   │

00:02:14 #2430 [Verbose] > │                                             let v381 : string = "f64::NAN"   │

00:02:14 #2431 [Verbose] > │                                             let v382 : float =               │

00:02:14 #2432 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v381                                  │

00:02:14 #2433 [Verbose] > │                                             let v383 : string = "f64::NAN"   │

00:02:14 #2434 [Verbose] > │                                             let v384 : float =               │

00:02:14 #2435 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v383                                  │

00:02:14 #2436 [Verbose] > │                                             let v385 : float =               │

00:02:14 #2437 [Verbose] > │ method31(v382)                                                               │

00:02:14 #2438 [Verbose] > │                                             let v386 : float = method3(v385) │

00:02:14 #2439 [Verbose] > │                                             let v387 : float =               │

00:02:14 #2440 [Verbose] > │ method32(v384)                                                               │

00:02:14 #2441 [Verbose] > │                                             let v388 : string =              │

00:02:14 #2442 [Verbose] > │ "num_complex::Complex::new(v386, v387)"                                      │

00:02:14 #2443 [Verbose] > │                                             let v389 :                       │

00:02:14 #2444 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v388     │

00:02:14 #2445 [Verbose] > │                                             let v392 :                       │

00:02:14 #2446 [Verbose] > │ num_complex_Complex<float> =                                                 │

00:02:14 #2447 [Verbose] > │                                                 match v380 with              │

00:02:14 #2448 [Verbose] > │                                                 | US0_0 -> (* None *)        │

00:02:14 #2449 [Verbose] > │                                                     v389                     │

00:02:14 #2450 [Verbose] > │                                                 | US0_1(v390) -> (* Some *)  │

00:02:14 #2451 [Verbose] > │                                                     v390                     │

00:02:14 #2452 [Verbose] > │                                             let v393 : float = method42()    │

00:02:14 #2453 [Verbose] > │                                             let v394 : float = method3(v393) │

00:02:14 #2454 [Verbose] > │                                             let v395 : float = method4()     │

00:02:14 #2455 [Verbose] > │                                             let v396 : string =              │

00:02:14 #2456 [Verbose] > │ "num_complex::Complex::new(v394, v395)"                                      │

00:02:14 #2457 [Verbose] > │                                             let v397 :                       │

00:02:14 #2458 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v396     │

00:02:14 #2459 [Verbose] > │                                             let v398 : string = "v397 *      │

00:02:14 #2460 [Verbose] > │ v324"                                                                        │

00:02:14 #2461 [Verbose] > │                                             let v399 :                       │

00:02:14 #2462 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v398     │

00:02:14 #2463 [Verbose] > │                                             let v400 : float = method2()     │

00:02:14 #2464 [Verbose] > │                                             let v401 : float = method3(v400) │

00:02:14 #2465 [Verbose] > │                                             let v402 : float = method4()     │

00:02:14 #2466 [Verbose] > │                                             let v403 : string =              │

00:02:14 #2467 [Verbose] > │ "num_complex::Complex::new(v401, v402)"                                      │

00:02:14 #2468 [Verbose] > │                                             let v404 :                       │

00:02:14 #2469 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v403     │

00:02:14 #2470 [Verbose] > │                                             let v405 : string = "v399 /      │

00:02:14 #2471 [Verbose] > │ v404"                                                                        │

00:02:14 #2472 [Verbose] > │                                             let v406 :                       │

00:02:14 #2473 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v405     │

00:02:14 #2474 [Verbose] > │                                             let v407 : string = "v406.sin()" │

00:02:14 #2475 [Verbose] > │                                             let v408 :                       │

00:02:14 #2476 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v407     │

00:02:14 #2477 [Verbose] > │                                             let v409 :                       │

00:02:14 #2478 [Verbose] > │ num_complex_Complex<float> = method13(v324)                                  │

00:02:14 #2479 [Verbose] > │                                             let v410 : string = "v409.re"    │

00:02:14 #2480 [Verbose] > │                                             let v411 : float =               │

00:02:14 #2481 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v410                                  │

00:02:14 #2482 [Verbose] > │                                             let v412 : float = 1.0 - v411    │

00:02:14 #2483 [Verbose] > │                                             let v413 :                       │

00:02:14 #2484 [Verbose] > │ num_complex_Complex<float> = method14(v324)                                  │

00:02:14 #2485 [Verbose] > │                                             let v414 : string = "v413.im"    │

00:02:14 #2486 [Verbose] > │                                             let v415 : float =               │

00:02:14 #2487 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v414                                  │

00:02:14 #2488 [Verbose] > │                                             let v416 : float =  -v415        │

00:02:14 #2489 [Verbose] > │                                             let v417 : float =               │

00:02:14 #2490 [Verbose] > │ method31(v412)                                                               │

00:02:14 #2491 [Verbose] > │                                             let v418 : float = method3(v417) │

00:02:14 #2492 [Verbose] > │                                             let v419 : float =               │

00:02:14 #2493 [Verbose] > │ method32(v416)                                                               │

00:02:14 #2494 [Verbose] > │                                             let v420 : string =              │

00:02:14 #2495 [Verbose] > │ "num_complex::Complex::new(v418, v419)"                                      │

00:02:14 #2496 [Verbose] > │                                             let v421 :                       │

00:02:14 #2497 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v420     │

00:02:14 #2498 [Verbose] > │                                             let v422 :                       │

00:02:14 #2499 [Verbose] > │ num_complex_Complex<float> = method13(v421)                                  │

00:02:14 #2500 [Verbose] > │                                             let v423 : string = "v422.re"    │

00:02:14 #2501 [Verbose] > │                                             let v424 : float =               │

00:02:14 #2502 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v423                                  │

00:02:14 #2503 [Verbose] > │                                             let v425 : bool = v424 <= 1.0    │

00:02:14 #2504 [Verbose] > │                                             let v562 :                       │

00:02:14 #2505 [Verbose] > │ num_complex_Complex<float> =                                                 │

00:02:14 #2506 [Verbose] > │                                                 if v425 then                 │

00:02:14 #2507 [Verbose] > │                                                     let v426 : float =       │

00:02:14 #2508 [Verbose] > │ method35()                                                                   │

00:02:14 #2509 [Verbose] > │                                                     let v427 : float =       │

00:02:14 #2510 [Verbose] > │ method3(v426)                                                                │

00:02:14 #2511 [Verbose] > │                                                     let v428 : float =       │

00:02:14 #2512 [Verbose] > │ method4()                                                                    │

00:02:14 #2513 [Verbose] > │                                                     let v429 : string =      │

00:02:14 #2514 [Verbose] > │ "num_complex::Complex::new(v427, v428)"                                      │

00:02:14 #2515 [Verbose] > │                                                     let v430 :               │

00:02:14 #2516 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v429     │

00:02:14 #2517 [Verbose] > │                                                     v430                     │

00:02:14 #2518 [Verbose] > │                                                 else                         │

00:02:14 #2519 [Verbose] > │                                                     let v431 :               │

00:02:14 #2520 [Verbose] > │ num_complex_Complex<float> = method34(v421)                                  │

00:02:14 #2521 [Verbose] > │                                                     let v432 : string =      │

00:02:14 #2522 [Verbose] > │ "println!(\"zeta / count: {:?} / s: {:?}\", 4, v431)"                        │

00:02:14 #2523 [Verbose] > │                                                                              │

00:02:14 #2524 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v432                                  │

00:02:14 #2525 [Verbose] > │                                                     let v433 :               │

00:02:14 #2526 [Verbose] > │ num_complex_Complex<float> = method13(v431)                                  │

00:02:14 #2527 [Verbose] > │                                                     let v434 : string =      │

00:02:14 #2528 [Verbose] > │ "v433.re"                                                                    │

00:02:14 #2529 [Verbose] > │                                                     let v435 : float =       │

00:02:14 #2530 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v434                                  │

00:02:14 #2531 [Verbose] > │                                                     let v436 : bool = v435 > │

00:02:14 #2532 [Verbose] > │ 1.0                                                                          │

00:02:14 #2533 [Verbose] > │                                                     if v436 then             │

00:02:14 #2534 [Verbose] > │                                                         let v437 : float =   │

00:02:14 #2535 [Verbose] > │ method35()                                                                   │

00:02:14 #2536 [Verbose] > │                                                         let v438 : float =   │

00:02:14 #2537 [Verbose] > │ method3(v437)                                                                │

00:02:14 #2538 [Verbose] > │                                                         let v439 : float =   │

00:02:14 #2539 [Verbose] > │ method4()                                                                    │

00:02:14 #2540 [Verbose] > │                                                         let v440 : string =  │

00:02:14 #2541 [Verbose] > │ "num_complex::Complex::new(v438, v439)"                                      │

00:02:14 #2542 [Verbose] > │                                                         let v441 :           │

00:02:14 #2543 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v440     │

00:02:14 #2544 [Verbose] > │                                                         let v442 : (int32 [  │

00:02:14 #2545 [Verbose] > │ ]) = Array.zeroCreate<int32> (10000)                                         │

00:02:14 #2546 [Verbose] > │                                                         let v443 : Mut0 =    │

00:02:14 #2547 [Verbose] > │ {l0 = 0} : Mut0                                                              │

00:02:14 #2548 [Verbose] > │                                                         while method36(v443) │

00:02:14 #2549 [Verbose] > │ do                                                                           │

00:02:14 #2550 [Verbose] > │                                                             let v445 : int32 │

00:02:14 #2551 [Verbose] > │ = v443.l0                                                                    │

00:02:14 #2552 [Verbose] > │                                                             v442.[int v445]  │

00:02:14 #2553 [Verbose] > │ <- v445                                                                      │

00:02:14 #2554 [Verbose] > │                                                             let v446 : int32 │

00:02:14 #2555 [Verbose] > │ = v445 + 1                                                                   │

00:02:14 #2556 [Verbose] > │                                                             v443.l0 <- v446  │

00:02:14 #2557 [Verbose] > │                                                             ()               │

00:02:14 #2558 [Verbose] > │                                                         let v447 : int32 =   │

00:02:14 #2559 [Verbose] > │ v442.Length                                                                  │

00:02:14 #2560 [Verbose] > │                                                         let v448 : Mut2 =    │

00:02:14 #2561 [Verbose] > │ {l0 = 0; l1 = v441} : Mut2                                                   │

00:02:14 #2562 [Verbose] > │                                                         while method37(v447, │

00:02:14 #2563 [Verbose] > │ v448) do                                                                     │

00:02:14 #2564 [Verbose] > │                                                             let v450 : int32 │

00:02:14 #2565 [Verbose] > │ = v448.l0                                                                    │

00:02:14 #2566 [Verbose] > │                                                             let v451 :       │

00:02:14 #2567 [Verbose] > │ num_complex_Complex<float> = v448.l1                                         │

00:02:14 #2568 [Verbose] > │                                                             let v452 : int32 │

00:02:14 #2569 [Verbose] > │ = v442.[int v450]                                                            │

00:02:14 #2570 [Verbose] > │                                                             let v453 : float │

00:02:14 #2571 [Verbose] > │ = method38()                                                                 │

00:02:14 #2572 [Verbose] > │                                                             let v454 : float │

00:02:14 #2573 [Verbose] > │ = method3(v453)                                                              │

00:02:14 #2574 [Verbose] > │                                                             let v455 : float │

00:02:14 #2575 [Verbose] > │ = method4()                                                                  │

00:02:14 #2576 [Verbose] > │                                                             let v456 :       │

00:02:14 #2577 [Verbose] > │ string = "num_complex::Complex::new(v454, v455)"                             │

00:02:14 #2578 [Verbose] > │                                                             let v457 :       │

00:02:14 #2579 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v456     │

00:02:14 #2580 [Verbose] > │                                                             let v458 : float │

00:02:14 #2581 [Verbose] > │ = float v452                                                                 │

00:02:14 #2582 [Verbose] > │                                                             let v459 : float │

00:02:14 #2583 [Verbose] > │ = method31(v458)                                                             │

00:02:14 #2584 [Verbose] > │                                                             let v460 : float │

00:02:14 #2585 [Verbose] > │ = method3(v459)                                                              │

00:02:14 #2586 [Verbose] > │                                                             let v461 : float │

00:02:14 #2587 [Verbose] > │ = method4()                                                                  │

00:02:14 #2588 [Verbose] > │                                                             let v462 :       │

00:02:14 #2589 [Verbose] > │ string = "num_complex::Complex::new(v460, v461)"                             │

00:02:14 #2590 [Verbose] > │                                                             let v463 :       │

00:02:14 #2591 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v462     │

00:02:14 #2592 [Verbose] > │                                                             let v464 :       │

00:02:14 #2593 [Verbose] > │ num_complex_Complex<float> = method39(v463)                                  │

00:02:14 #2594 [Verbose] > │                                                             let v465 :       │

00:02:14 #2595 [Verbose] > │ num_complex_Complex<float> = method40(v431)                                  │

00:02:14 #2596 [Verbose] > │                                                             let v466 :       │

00:02:14 #2597 [Verbose] > │ string = "num_complex::Complex::powc(v464, v465)"                            │

00:02:14 #2598 [Verbose] > │                                                             let v467 :       │

00:02:14 #2599 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v466     │

00:02:14 #2600 [Verbose] > │                                                             let v468 :       │

00:02:14 #2601 [Verbose] > │ string = "v457 / v467"                                                       │

00:02:14 #2602 [Verbose] > │                                                             let v469 :       │

00:02:14 #2603 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v468     │

00:02:14 #2604 [Verbose] > │                                                             let v470 :       │

00:02:14 #2605 [Verbose] > │ string = "v451 + v469"                                                       │

00:02:14 #2606 [Verbose] > │                                                             let v471 :       │

00:02:14 #2607 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v470     │

00:02:14 #2608 [Verbose] > │                                                             let v472 : int32 │

00:02:14 #2609 [Verbose] > │ = v450 + 1                                                                   │

00:02:14 #2610 [Verbose] > │                                                             v448.l0 <- v472  │

00:02:14 #2611 [Verbose] > │                                                             v448.l1 <- v471  │

00:02:14 #2612 [Verbose] > │                                                             ()               │

00:02:14 #2613 [Verbose] > │                                                         let v473 :           │

00:02:14 #2614 [Verbose] > │ num_complex_Complex<float> = v448.l1                                         │

00:02:14 #2615 [Verbose] > │                                                         v473                 │

00:02:14 #2616 [Verbose] > │                                                     else                     │

00:02:14 #2617 [Verbose] > │                                                         let v474 : float =   │

00:02:14 #2618 [Verbose] > │ method38()                                                                   │

00:02:14 #2619 [Verbose] > │                                                         let v475 : float =   │

00:02:14 #2620 [Verbose] > │ method3(v474)                                                                │

00:02:14 #2621 [Verbose] > │                                                         let v476 : float =   │

00:02:14 #2622 [Verbose] > │ method4()                                                                    │

00:02:14 #2623 [Verbose] > │                                                         let v477 : string =  │

00:02:14 #2624 [Verbose] > │ "num_complex::Complex::new(v475, v476)"                                      │

00:02:14 #2625 [Verbose] > │                                                         let v478 :           │

00:02:14 #2626 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v477     │

00:02:14 #2627 [Verbose] > │                                                         let v479 : string =  │

00:02:14 #2628 [Verbose] > │ "v478 - v431"                                                                │

00:02:14 #2629 [Verbose] > │                                                         let v480 :           │

00:02:14 #2630 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v479     │

00:02:14 #2631 [Verbose] > │                                                         let v481 : string =  │

00:02:14 #2632 [Verbose] > │ $"        s = mpmath.gamma(s)"                                               │

00:02:14 #2633 [Verbose] > │                                                         let v482 :           │

00:02:14 #2634 [Verbose] > │ num_complex_Complex<float> = method8(v480)                                   │

00:02:14 #2635 [Verbose] > │                                                         let v483 :           │

00:02:14 #2636 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v481,   │

00:02:14 #2637 [Verbose] > │ v482)                                                                        │

00:02:14 #2638 [Verbose] > │                                                         let v484 : string =  │

00:02:14 #2639 [Verbose] > │ "v483.ok()"                                                                  │

00:02:14 #2640 [Verbose] > │                                                         let v485 :           │

00:02:14 #2641 [Verbose] > │ num_complex_Complex<float> option = Fable.Core.RustInterop.emitRustExpr ()   │

00:02:14 #2642 [Verbose] > │ v484                                                                         │

00:02:14 #2643 [Verbose] > │                                                         let v486 : US0 =     │

00:02:14 #2644 [Verbose] > │ US0_0                                                                        │

00:02:14 #2645 [Verbose] > │                                                         let v487 : US0 =     │

00:02:14 #2646 [Verbose] > │ v485 |> Option.map v57 |> Option.defaultValue v486                           │

00:02:14 #2647 [Verbose] > │                                                         let v488 : string =  │

00:02:14 #2648 [Verbose] > │ "f64::NAN"                                                                   │

00:02:14 #2649 [Verbose] > │                                                         let v489 : float =   │

00:02:14 #2650 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v488                                  │

00:02:14 #2651 [Verbose] > │                                                         let v490 : string =  │

00:02:14 #2652 [Verbose] > │ "f64::NAN"                                                                   │

00:02:14 #2653 [Verbose] > │                                                         let v491 : float =   │

00:02:14 #2654 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v490                                  │

00:02:14 #2655 [Verbose] > │                                                         let v492 : float =   │

00:02:14 #2656 [Verbose] > │ method31(v489)                                                               │

00:02:14 #2657 [Verbose] > │                                                         let v493 : float =   │

00:02:14 #2658 [Verbose] > │ method3(v492)                                                                │

00:02:14 #2659 [Verbose] > │                                                         let v494 : float =   │

00:02:14 #2660 [Verbose] > │ method32(v491)                                                               │

00:02:14 #2661 [Verbose] > │                                                         let v495 : string =  │

00:02:14 #2662 [Verbose] > │ "num_complex::Complex::new(v493, v494)"                                      │

00:02:14 #2663 [Verbose] > │                                                         let v496 :           │

00:02:14 #2664 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v495     │

00:02:14 #2665 [Verbose] > │                                                         let v499 :           │

00:02:14 #2666 [Verbose] > │ num_complex_Complex<float> =                                                 │

00:02:14 #2667 [Verbose] > │                                                             match v487 with  │

00:02:14 #2668 [Verbose] > │                                                             | US0_0 -> (*    │

00:02:14 #2669 [Verbose] > │ None *)                                                                      │

00:02:14 #2670 [Verbose] > │                                                                 v496         │

00:02:14 #2671 [Verbose] > │                                                             | US0_1(v497) -> │

00:02:14 #2672 [Verbose] > │ (* Some *)                                                                   │

00:02:14 #2673 [Verbose] > │                                                                 v497         │

00:02:14 #2674 [Verbose] > │                                                         let v500 : float =   │

00:02:14 #2675 [Verbose] > │ method42()                                                                   │

00:02:14 #2676 [Verbose] > │                                                         let v501 : float =   │

00:02:14 #2677 [Verbose] > │ method3(v500)                                                                │

00:02:14 #2678 [Verbose] > │                                                         let v502 : float =   │

00:02:14 #2679 [Verbose] > │ method4()                                                                    │

00:02:14 #2680 [Verbose] > │                                                         let v503 : string =  │

00:02:14 #2681 [Verbose] > │ "num_complex::Complex::new(v501, v502)"                                      │

00:02:14 #2682 [Verbose] > │                                                         let v504 :           │

00:02:14 #2683 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v503     │

00:02:14 #2684 [Verbose] > │                                                         let v505 : string =  │

00:02:14 #2685 [Verbose] > │ "v504 * v431"                                                                │

00:02:14 #2686 [Verbose] > │                                                         let v506 :           │

00:02:14 #2687 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v505     │

00:02:14 #2688 [Verbose] > │                                                         let v507 : float =   │

00:02:14 #2689 [Verbose] > │ method2()                                                                    │

00:02:14 #2690 [Verbose] > │                                                         let v508 : float =   │

00:02:14 #2691 [Verbose] > │ method3(v507)                                                                │

00:02:14 #2692 [Verbose] > │                                                         let v509 : float =   │

00:02:14 #2693 [Verbose] > │ method4()                                                                    │

00:02:14 #2694 [Verbose] > │                                                         let v510 : string =  │

00:02:14 #2695 [Verbose] > │ "num_complex::Complex::new(v508, v509)"                                      │

00:02:14 #2696 [Verbose] > │                                                         let v511 :           │

00:02:14 #2697 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v510     │

00:02:14 #2698 [Verbose] > │                                                         let v512 : string =  │

00:02:14 #2699 [Verbose] > │ "v506 / v511"                                                                │

00:02:14 #2700 [Verbose] > │                                                         let v513 :           │

00:02:14 #2701 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v512     │

00:02:14 #2702 [Verbose] > │                                                         let v514 : string =  │

00:02:14 #2703 [Verbose] > │ "v513.sin()"                                                                 │

00:02:14 #2704 [Verbose] > │                                                         let v515 :           │

00:02:14 #2705 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v514     │

00:02:14 #2706 [Verbose] > │                                                         let v516 :           │

00:02:14 #2707 [Verbose] > │ num_complex_Complex<float> = method13(v431)                                  │

00:02:14 #2708 [Verbose] > │                                                         let v517 : string =  │

00:02:14 #2709 [Verbose] > │ "v516.re"                                                                    │

00:02:14 #2710 [Verbose] > │                                                         let v518 : float =   │

00:02:14 #2711 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v517                                  │

00:02:14 #2712 [Verbose] > │                                                         let v519 : float =   │

00:02:14 #2713 [Verbose] > │ 1.0 - v518                                                                   │

00:02:14 #2714 [Verbose] > │                                                         let v520 :           │

00:02:14 #2715 [Verbose] > │ num_complex_Complex<float> = method14(v431)                                  │

00:02:14 #2716 [Verbose] > │                                                         let v521 : string =  │

00:02:14 #2717 [Verbose] > │ "v520.im"                                                                    │

00:02:14 #2718 [Verbose] > │                                                         let v522 : float =   │

00:02:14 #2719 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v521                                  │

00:02:14 #2720 [Verbose] > │                                                         let v523 : float =   │

00:02:14 #2721 [Verbose] > │ -v522                                                                        │

00:02:14 #2722 [Verbose] > │                                                         let v524 : float =   │

00:02:14 #2723 [Verbose] > │ method31(v519)                                                               │

00:02:14 #2724 [Verbose] > │                                                         let v525 : float =   │

00:02:14 #2725 [Verbose] > │ method3(v524)                                                                │

00:02:14 #2726 [Verbose] > │                                                         let v526 : float =   │

00:02:14 #2727 [Verbose] > │ method32(v523)                                                               │

00:02:14 #2728 [Verbose] > │                                                         let v527 : string =  │

00:02:14 #2729 [Verbose] > │ "num_complex::Complex::new(v525, v526)"                                      │

00:02:14 #2730 [Verbose] > │                                                         let v528 :           │

00:02:14 #2731 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v527     │

00:02:14 #2732 [Verbose] > │                                                         let v529 :           │

00:02:14 #2733 [Verbose] > │ num_complex_Complex<float> = method13(v528)                                  │

00:02:14 #2734 [Verbose] > │                                                         let v530 : string =  │

00:02:14 #2735 [Verbose] > │ "v529.re"                                                                    │

00:02:14 #2736 [Verbose] > │                                                         let v531 : float =   │

00:02:14 #2737 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v530                                  │

00:02:14 #2738 [Verbose] > │                                                         let v532 : bool =    │

00:02:14 #2739 [Verbose] > │ v531 <= 1.0                                                                  │

00:02:14 #2740 [Verbose] > │                                                         let v538 :           │

00:02:14 #2741 [Verbose] > │ num_complex_Complex<float> =                                                 │

00:02:14 #2742 [Verbose] > │                                                             if v532 then     │

00:02:14 #2743 [Verbose] > │                                                                 let v533 :   │

00:02:14 #2744 [Verbose] > │ float = method35()                                                           │

00:02:14 #2745 [Verbose] > │                                                                 let v534 :   │

00:02:14 #2746 [Verbose] > │ float = method3(v533)                                                        │

00:02:14 #2747 [Verbose] > │                                                                 let v535 :   │

00:02:14 #2748 [Verbose] > │ float = method4()                                                            │

00:02:14 #2749 [Verbose] > │                                                                 let v536 :   │

00:02:14 #2750 [Verbose] > │ string = "num_complex::Complex::new(v534, v535)"                             │

00:02:14 #2751 [Verbose] > │                                                                 let v537 :   │

00:02:14 #2752 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v536     │

00:02:14 #2753 [Verbose] > │                                                                 v537         │

00:02:14 #2754 [Verbose] > │                                                             else             │

00:02:14 #2755 [Verbose] > │                                                                 v528         │

00:02:14 #2756 [Verbose] > │                                                         let v539 : float =   │

00:02:14 #2757 [Verbose] > │ method2()                                                                    │

00:02:14 #2758 [Verbose] > │                                                         let v540 : float =   │

00:02:14 #2759 [Verbose] > │ method3(v539)                                                                │

00:02:14 #2760 [Verbose] > │                                                         let v541 : float =   │

00:02:14 #2761 [Verbose] > │ method4()                                                                    │

00:02:14 #2762 [Verbose] > │                                                         let v542 : string =  │

00:02:14 #2763 [Verbose] > │ "num_complex::Complex::new(v540, v541)"                                      │

00:02:14 #2764 [Verbose] > │                                                         let v543 :           │

00:02:14 #2765 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v542     │

00:02:14 #2766 [Verbose] > │                                                         let v544 : float =   │

00:02:14 #2767 [Verbose] > │ method42()                                                                   │

00:02:14 #2768 [Verbose] > │                                                         let v545 : float =   │

00:02:14 #2769 [Verbose] > │ method3(v544)                                                                │

00:02:14 #2770 [Verbose] > │                                                         let v546 : float =   │

00:02:14 #2771 [Verbose] > │ method4()                                                                    │

00:02:14 #2772 [Verbose] > │                                                         let v547 : string =  │

00:02:14 #2773 [Verbose] > │ "num_complex::Complex::new(v545, v546)"                                      │

00:02:14 #2774 [Verbose] > │                                                         let v548 :           │

00:02:14 #2775 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v547     │

00:02:14 #2776 [Verbose] > │                                                         let v549 :           │

00:02:14 #2777 [Verbose] > │ num_complex_Complex<float> = method39(v548)                                  │

00:02:14 #2778 [Verbose] > │                                                         let v550 :           │

00:02:14 #2779 [Verbose] > │ num_complex_Complex<float> = method40(v431)                                  │

00:02:14 #2780 [Verbose] > │                                                         let v551 : string =  │

00:02:14 #2781 [Verbose] > │ "num_complex::Complex::powc(v549, v550)"                                     │

00:02:14 #2782 [Verbose] > │                                                         let v552 :           │

00:02:14 #2783 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v551     │

00:02:14 #2784 [Verbose] > │                                                         let v553 : string =  │

00:02:14 #2785 [Verbose] > │ "v543 * v552"                                                                │

00:02:14 #2786 [Verbose] > │                                                         let v554 :           │

00:02:14 #2787 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v553     │

00:02:14 #2788 [Verbose] > │                                                         let v555 : string =  │

00:02:14 #2789 [Verbose] > │ "v554 * v515"                                                                │

00:02:14 #2790 [Verbose] > │                                                         let v556 :           │

00:02:14 #2791 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v555     │

00:02:14 #2792 [Verbose] > │                                                         let v557 : string =  │

00:02:14 #2793 [Verbose] > │ "v556 * v499"                                                                │

00:02:14 #2794 [Verbose] > │                                                         let v558 :           │

00:02:14 #2795 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v557     │

00:02:14 #2796 [Verbose] > │                                                         let v559 : string =  │

00:02:14 #2797 [Verbose] > │ "v558 * v538"                                                                │

00:02:14 #2798 [Verbose] > │                                                         let v560 :           │

00:02:14 #2799 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v559     │

00:02:14 #2800 [Verbose] > │                                                         v560                 │

00:02:14 #2801 [Verbose] > │                                             let v563 : float = method2()     │

00:02:14 #2802 [Verbose] > │                                             let v564 : float = method3(v563) │

00:02:14 #2803 [Verbose] > │                                             let v565 : float = method4()     │

00:02:14 #2804 [Verbose] > │                                             let v566 : string =              │

00:02:14 #2805 [Verbose] > │ "num_complex::Complex::new(v564, v565)"                                      │

00:02:14 #2806 [Verbose] > │                                             let v567 :                       │

00:02:14 #2807 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v566     │

00:02:14 #2808 [Verbose] > │                                             let v568 : float = method42()    │

00:02:14 #2809 [Verbose] > │                                             let v569 : float = method3(v568) │

00:02:14 #2810 [Verbose] > │                                             let v570 : float = method4()     │

00:02:14 #2811 [Verbose] > │                                             let v571 : string =              │

00:02:14 #2812 [Verbose] > │ "num_complex::Complex::new(v569, v570)"                                      │

00:02:14 #2813 [Verbose] > │                                             let v572 :                       │

00:02:14 #2814 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v571     │

00:02:14 #2815 [Verbose] > │                                             let v573 :                       │

00:02:14 #2816 [Verbose] > │ num_complex_Complex<float> = method39(v572)                                  │

00:02:14 #2817 [Verbose] > │                                             let v574 :                       │

00:02:14 #2818 [Verbose] > │ num_complex_Complex<float> = method40(v324)                                  │

00:02:14 #2819 [Verbose] > │                                             let v575 : string =              │

00:02:14 #2820 [Verbose] > │ "num_complex::Complex::powc(v573, v574)"                                     │

00:02:14 #2821 [Verbose] > │                                             let v576 :                       │

00:02:14 #2822 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v575     │

00:02:14 #2823 [Verbose] > │                                             let v577 : string = "v567 *      │

00:02:14 #2824 [Verbose] > │ v576"                                                                        │

00:02:14 #2825 [Verbose] > │                                             let v578 :                       │

00:02:14 #2826 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v577     │

00:02:14 #2827 [Verbose] > │                                             let v579 : string = "v578 *      │

00:02:14 #2828 [Verbose] > │ v408"                                                                        │

00:02:14 #2829 [Verbose] > │                                             let v580 :                       │

00:02:14 #2830 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v579     │

00:02:14 #2831 [Verbose] > │                                             let v581 : string = "v580 *      │

00:02:14 #2832 [Verbose] > │ v392"                                                                        │

00:02:14 #2833 [Verbose] > │                                             let v582 :                       │

00:02:14 #2834 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v581     │

00:02:14 #2835 [Verbose] > │                                             let v583 : string = "v582 *      │

00:02:14 #2836 [Verbose] > │ v562"                                                                        │

00:02:14 #2837 [Verbose] > │                                             let v584 :                       │

00:02:14 #2838 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v583     │

00:02:14 #2839 [Verbose] > │                                             v584                             │

00:02:14 #2840 [Verbose] > │                                 let v587 : float = method2()                 │

00:02:14 #2841 [Verbose] > │                                 let v588 : float = method3(v587)             │

00:02:14 #2842 [Verbose] > │                                 let v589 : float = method4()                 │

00:02:14 #2843 [Verbose] > │                                 let v590 : string =                          │

00:02:14 #2844 [Verbose] > │ "num_complex::Complex::new(v588, v589)"                                      │

00:02:14 #2845 [Verbose] > │                                 let v591 : num_complex_Complex<float> =      │

00:02:14 #2846 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v590                                  │

00:02:14 #2847 [Verbose] > │                                 let v592 : float = method42()                │

00:02:14 #2848 [Verbose] > │                                 let v593 : float = method3(v592)             │

00:02:14 #2849 [Verbose] > │                                 let v594 : float = method4()                 │

00:02:14 #2850 [Verbose] > │                                 let v595 : string =                          │

00:02:14 #2851 [Verbose] > │ "num_complex::Complex::new(v593, v594)"                                      │

00:02:14 #2852 [Verbose] > │                                 let v596 : num_complex_Complex<float> =      │

00:02:14 #2853 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v595                                  │

00:02:14 #2854 [Verbose] > │                                 let v597 : num_complex_Complex<float> =      │

00:02:14 #2855 [Verbose] > │ method39(v596)                                                               │

00:02:14 #2856 [Verbose] > │                                 let v598 : num_complex_Complex<float> =      │

00:02:14 #2857 [Verbose] > │ method40(v217)                                                               │

00:02:14 #2858 [Verbose] > │                                 let v599 : string =                          │

00:02:14 #2859 [Verbose] > │ "num_complex::Complex::powc(v597, v598)"                                     │

00:02:14 #2860 [Verbose] > │                                 let v600 : num_complex_Complex<float> =      │

00:02:14 #2861 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v599                                  │

00:02:14 #2862 [Verbose] > │                                 let v601 : string = "v591 * v600"            │

00:02:14 #2863 [Verbose] > │                                 let v602 : num_complex_Complex<float> =      │

00:02:14 #2864 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v601                                  │

00:02:14 #2865 [Verbose] > │                                 let v603 : string = "v602 * v301"            │

00:02:14 #2866 [Verbose] > │                                 let v604 : num_complex_Complex<float> =      │

00:02:14 #2867 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v603                                  │

00:02:14 #2868 [Verbose] > │                                 let v605 : string = "v604 * v285"            │

00:02:14 #2869 [Verbose] > │                                 let v606 : num_complex_Complex<float> =      │

00:02:14 #2870 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v605                                  │

00:02:14 #2871 [Verbose] > │                                 let v607 : string = "v606 * v586"            │

00:02:14 #2872 [Verbose] > │                                 let v608 : num_complex_Complex<float> =      │

00:02:14 #2873 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v607                                  │

00:02:14 #2874 [Verbose] > │                                 v608                                         │

00:02:14 #2875 [Verbose] > │                     let v611 : float = method2()                             │

00:02:14 #2876 [Verbose] > │                     let v612 : float = method3(v611)                         │

00:02:14 #2877 [Verbose] > │                     let v613 : float = method4()                             │

00:02:14 #2878 [Verbose] > │                     let v614 : string = "num_complex::Complex::new(v612,     │

00:02:14 #2879 [Verbose] > │ v613)"                                                                       │

00:02:14 #2880 [Verbose] > │                     let v615 : num_complex_Complex<float> =                  │

00:02:14 #2881 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v614                                  │

00:02:14 #2882 [Verbose] > │                     let v616 : float = method42()                            │

00:02:14 #2883 [Verbose] > │                     let v617 : float = method3(v616)                         │

00:02:14 #2884 [Verbose] > │                     let v618 : float = method4()                             │

00:02:14 #2885 [Verbose] > │                     let v619 : string = "num_complex::Complex::new(v617,     │

00:02:14 #2886 [Verbose] > │ v618)"                                                                       │

00:02:14 #2887 [Verbose] > │                     let v620 : num_complex_Complex<float> =                  │

00:02:14 #2888 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v619                                  │

00:02:14 #2889 [Verbose] > │                     let v621 : num_complex_Complex<float> = method39(v620)   │

00:02:14 #2890 [Verbose] > │                     let v622 : num_complex_Complex<float> = method40(v110)   │

00:02:14 #2891 [Verbose] > │                     let v623 : string = "num_complex::Complex::powc(v621,    │

00:02:14 #2892 [Verbose] > │ v622)"                                                                       │

00:02:14 #2893 [Verbose] > │                     let v624 : num_complex_Complex<float> =                  │

00:02:14 #2894 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v623                                  │

00:02:14 #2895 [Verbose] > │                     let v625 : string = "v615 * v624"                        │

00:02:14 #2896 [Verbose] > │                     let v626 : num_complex_Complex<float> =                  │

00:02:14 #2897 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v625                                  │

00:02:14 #2898 [Verbose] > │                     let v627 : string = "v626 * v194"                        │

00:02:14 #2899 [Verbose] > │                     let v628 : num_complex_Complex<float> =                  │

00:02:14 #2900 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v627                                  │

00:02:14 #2901 [Verbose] > │                     let v629 : string = "v628 * v178"                        │

00:02:14 #2902 [Verbose] > │                     let v630 : num_complex_Complex<float> =                  │

00:02:14 #2903 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v629                                  │

00:02:14 #2904 [Verbose] > │                     let v631 : string = "v630 * v610"                        │

00:02:14 #2905 [Verbose] > │                     let v632 : num_complex_Complex<float> =                  │

00:02:14 #2906 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v631                                  │

00:02:14 #2907 [Verbose] > │                     v632                                                     │

00:02:14 #2908 [Verbose] > │         let v635 : float = method2()                                         │

00:02:14 #2909 [Verbose] > │         let v636 : float = method3(v635)                                     │

00:02:14 #2910 [Verbose] > │         let v637 : float = method4()                                         │

00:02:14 #2911 [Verbose] > │         let v638 : string = "num_complex::Complex::new(v636, v637)"          │

00:02:14 #2912 [Verbose] > │         let v639 : num_complex_Complex<float> =                              │

00:02:14 #2913 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v638                                  │

00:02:14 #2914 [Verbose] > │         let v640 : float = method42()                                        │

00:02:14 #2915 [Verbose] > │         let v641 : float = method3(v640)                                     │

00:02:14 #2916 [Verbose] > │         let v642 : float = method4()                                         │

00:02:14 #2917 [Verbose] > │         let v643 : string = "num_complex::Complex::new(v641, v642)"          │

00:02:14 #2918 [Verbose] > │         let v644 : num_complex_Complex<float> =                              │

00:02:14 #2919 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v643                                  │

00:02:14 #2920 [Verbose] > │         let v645 : num_complex_Complex<float> = method39(v644)               │

00:02:14 #2921 [Verbose] > │         let v646 : num_complex_Complex<float> = method40(v2)                 │

00:02:14 #2922 [Verbose] > │         let v647 : string = "num_complex::Complex::powc(v645, v646)"         │

00:02:14 #2923 [Verbose] > │         let v648 : num_complex_Complex<float> =                              │

00:02:14 #2924 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v647                                  │

00:02:14 #2925 [Verbose] > │         let v649 : string = "v639 * v648"                                    │

00:02:14 #2926 [Verbose] > │         let v650 : num_complex_Complex<float> =                              │

00:02:14 #2927 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v649                                  │

00:02:14 #2928 [Verbose] > │         let v651 : string = "v650 * v87"                                     │

00:02:14 #2929 [Verbose] > │         let v652 : num_complex_Complex<float> =                              │

00:02:14 #2930 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v651                                  │

00:02:14 #2931 [Verbose] > │         let v653 : string = "v652 * v71"                                     │

00:02:14 #2932 [Verbose] > │         let v654 : num_complex_Complex<float> =                              │

00:02:14 #2933 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v653                                  │

00:02:14 #2934 [Verbose] > │         let v655 : string = "v654 * v634"                                    │

00:02:14 #2935 [Verbose] > │         let v656 : num_complex_Complex<float> =                              │

00:02:14 #2936 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v655                                  │

00:02:14 #2937 [Verbose] > │         v656                                                                 │

00:02:14 #2938 [Verbose] > │ and method43 (v0 : bool) : bool =                                            │

00:02:14 #2939 [Verbose] > │     v0                                                                       │

00:02:14 #2940 [Verbose] > │ and method1 (v0 : pyo3_Python) : unit =                                      │

00:02:14 #2941 [Verbose] > │     let v1 : float = method2()                                               │

00:02:14 #2942 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #2943 [Verbose] > │     let v3 : float = method4()                                               │

00:02:14 #2944 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #2945 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #2946 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #2947 [Verbose] > │     let v6 : float = method5()                                               │

00:02:14 #2948 [Verbose] > │     let v7 : float = method3(v6)                                             │

00:02:14 #2949 [Verbose] > │     let v8 : float = method4()                                               │

00:02:14 #2950 [Verbose] > │     let v9 : string = "num_complex::Complex::new(v7, v8)"                    │

00:02:14 #2951 [Verbose] > │     let v10 : num_complex_Complex<float> =                                   │

00:02:14 #2952 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9                                    │

00:02:14 #2953 [Verbose] > │     let v11 : (struct (num_complex_Complex<float> * float) []) = [|struct    │

00:02:14 #2954 [Verbose] > │ (v5, 1.6449340668482264); struct (v10, -0.08333333333333333)|]               │

00:02:14 #2955 [Verbose] > │     let v12 : (struct (num_complex_Complex<float> * float) []) =             │

00:02:14 #2956 [Verbose] > │ method6(v11)                                                                 │

00:02:14 #2957 [Verbose] > │     let v13 : int32 = v12.Length                                             │

00:02:14 #2958 [Verbose] > │     let v14 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:14 #2959 [Verbose] > │     while method7(v13, v14) do                                               │

00:02:14 #2960 [Verbose] > │         let v16 : int32 = v14.l0                                             │

00:02:14 #2961 [Verbose] > │         let struct (v17 : num_complex_Complex<float>, v18 : float) = v12.[   │

00:02:14 #2962 [Verbose] > │ int v16]                                                                     │

00:02:14 #2963 [Verbose] > │         let v19 : string = $"        s = mpmath.zeta(s)"                     │

00:02:14 #2964 [Verbose] > │         let v20 : num_complex_Complex<float> = method8(v17)                  │

00:02:14 #2965 [Verbose] > │         let v21 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #2966 [Verbose] > │ method9(v0, v19, v20)                                                        │

00:02:14 #2967 [Verbose] > │         let v22 : num_complex_Complex<float> = method33(v0, v17)             │

00:02:14 #2968 [Verbose] > │         let v23 : string = "v21.ok()"                                        │

00:02:14 #2969 [Verbose] > │         let v24 : num_complex_Complex<float> option =                        │

00:02:14 #2970 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v23                                   │

00:02:14 #2971 [Verbose] > │         let v25 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #2972 [Verbose] > │         let v26 : US0 = US0_0                                                │

00:02:14 #2973 [Verbose] > │         let v27 : US0 = v24 |> Option.map v25 |> Option.defaultValue v26     │

00:02:14 #2974 [Verbose] > │         let v28 : string = "f64::NAN"                                        │

00:02:14 #2975 [Verbose] > │         let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28         │

00:02:14 #2976 [Verbose] > │         let v30 : string = "f64::NAN"                                        │

00:02:14 #2977 [Verbose] > │         let v31 : float = Fable.Core.RustInterop.emitRustExpr () v30         │

00:02:14 #2978 [Verbose] > │         let v32 : float = method31(v29)                                      │

00:02:14 #2979 [Verbose] > │         let v33 : float = method3(v32)                                       │

00:02:14 #2980 [Verbose] > │         let v34 : float = method32(v31)                                      │

00:02:14 #2981 [Verbose] > │         let v35 : string = "num_complex::Complex::new(v33, v34)"             │

00:02:14 #2982 [Verbose] > │         let v36 : num_complex_Complex<float> =                               │

00:02:14 #2983 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v35                                   │

00:02:14 #2984 [Verbose] > │         let v39 : num_complex_Complex<float> =                               │

00:02:14 #2985 [Verbose] > │             match v27 with                                                   │

00:02:14 #2986 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #2987 [Verbose] > │                 v36                                                          │

00:02:14 #2988 [Verbose] > │             | US0_1(v37) -> (* Some *)                                       │

00:02:14 #2989 [Verbose] > │                 v37                                                          │

00:02:14 #2990 [Verbose] > │         let v40 : num_complex_Complex<float> = method14(v39)                 │

00:02:14 #2991 [Verbose] > │         let v41 : string = "v40.im"                                          │

00:02:14 #2992 [Verbose] > │         let v42 : float = Fable.Core.RustInterop.emitRustExpr () v41         │

00:02:14 #2993 [Verbose] > │         let v43 : string = $"%A{v42}"                                        │

00:02:14 #2994 [Verbose] > │         System.Console.WriteLine v43                                         │

00:02:14 #2995 [Verbose] > │         let v44 : bool = v42 = 0.0                                           │

00:02:14 #2996 [Verbose] > │         let v46 : bool =                                                     │

00:02:14 #2997 [Verbose] > │             if v44 then                                                      │

00:02:14 #2998 [Verbose] > │                 true                                                         │

00:02:14 #2999 [Verbose] > │             else                                                             │

00:02:14 #3000 [Verbose] > │                 method43(v44)                                                │

00:02:14 #3001 [Verbose] > │         let v47 : string = $"__expect / actual: %A{v42} / expected: %A{0.0}" │

00:02:14 #3002 [Verbose] > │         let v48 : bool = v46 = false                                         │

00:02:14 #3003 [Verbose] > │         if v48 then                                                          │

00:02:14 #3004 [Verbose] > │             failwith<unit> v47                                               │

00:02:14 #3005 [Verbose] > │         let v49 : num_complex_Complex<float> = method13(v39)                 │

00:02:14 #3006 [Verbose] > │         let v50 : string = "v49.re"                                          │

00:02:14 #3007 [Verbose] > │         let v51 : float = Fable.Core.RustInterop.emitRustExpr () v50         │

00:02:14 #3008 [Verbose] > │         let v52 : float = v51 - v18                                          │

00:02:14 #3009 [Verbose] > │         let v53 : float =  -v52                                              │

00:02:14 #3010 [Verbose] > │         let v54 : bool = v52 >= v53                                          │

00:02:14 #3011 [Verbose] > │         let v55 : float =                                                    │

00:02:14 #3012 [Verbose] > │             if v54 then                                                      │

00:02:14 #3013 [Verbose] > │                 v52                                                          │

00:02:14 #3014 [Verbose] > │             else                                                             │

00:02:14 #3015 [Verbose] > │                 v53                                                          │

00:02:14 #3016 [Verbose] > │         let v56 : string = $"%A{v55}"                                        │

00:02:14 #3017 [Verbose] > │         System.Console.WriteLine v56                                         │

00:02:14 #3018 [Verbose] > │         let v57 : bool = v55 < 0.0001                                        │

00:02:14 #3019 [Verbose] > │         let v59 : bool =                                                     │

00:02:14 #3020 [Verbose] > │             if v57 then                                                      │

00:02:14 #3021 [Verbose] > │                 true                                                         │

00:02:14 #3022 [Verbose] > │             else                                                             │

00:02:14 #3023 [Verbose] > │                 method43(v57)                                                │

00:02:14 #3024 [Verbose] > │         let v60 : string = $"__expect / actual: %A{v55} / expected:          │

00:02:14 #3025 [Verbose] > │ %A{0.0001}"                                                                  │

00:02:14 #3026 [Verbose] > │         let v61 : bool = v59 = false                                         │

00:02:14 #3027 [Verbose] > │         if v61 then                                                          │

00:02:14 #3028 [Verbose] > │             failwith<unit> v60                                               │

00:02:14 #3029 [Verbose] > │         let v62 : int32 = v16 + 1                                            │

00:02:14 #3030 [Verbose] > │         v14.l0 <- v62                                                        │

00:02:14 #3031 [Verbose] > │         ()                                                                   │

00:02:14 #3032 [Verbose] > │     ()                                                                       │

00:02:14 #3033 [Verbose] > │ and method44 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> =    │

00:02:14 #3034 [Verbose] > │     v0                                                                       │

00:02:14 #3035 [Verbose] > │ and method45 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> =    │

00:02:14 #3036 [Verbose] > │     v0                                                                       │

00:02:14 #3037 [Verbose] > │ and method0 () : unit =                                                      │

00:02:14 #3038 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3039 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3040 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3041 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3042 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3043 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3044 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3045 [Verbose] > │     method1(v3)                                                              │

00:02:14 #3046 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3047 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3048 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3049 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3050 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3051 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3052 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3053 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3054 [Verbose] > │ () v8                                                                        │

00:02:14 #3055 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3056 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3057 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3058 [Verbose] > │     ()                                                                       │

00:02:14 #3059 [Verbose] > │ and method48 () : float =                                                    │

00:02:14 #3060 [Verbose] > │     -2.0                                                                     │

00:02:14 #3061 [Verbose] > │ and method47 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3062 [Verbose] > │     let v1 : float = method2()                                               │

00:02:14 #3063 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #3064 [Verbose] > │     let v3 : float = method48()                                              │

00:02:14 #3065 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #3066 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #3067 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #3068 [Verbose] > │     let v6 : string = $"        s = mpmath.zeta(s)"                          │

00:02:14 #3069 [Verbose] > │     let v7 : num_complex_Complex<float> = method8(v5)                        │

00:02:14 #3070 [Verbose] > │     let v8 : Result<num_complex_Complex<float>, std_string_String> =         │

00:02:14 #3071 [Verbose] > │ method9(v0, v6, v7)                                                          │

00:02:14 #3072 [Verbose] > │     let v9 : num_complex_Complex<float> = method33(v0, v5)                   │

00:02:14 #3073 [Verbose] > │     let v10 : string = "v8.ok()"                                             │

00:02:14 #3074 [Verbose] > │     let v11 : num_complex_Complex<float> option =                            │

00:02:14 #3075 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10                                   │

00:02:14 #3076 [Verbose] > │     let v12 : (num_complex_Complex<float> -> US0) = closure5()               │

00:02:14 #3077 [Verbose] > │     let v13 : US0 = US0_0                                                    │

00:02:14 #3078 [Verbose] > │     let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13         │

00:02:14 #3079 [Verbose] > │     let v15 : string = "f64::NAN"                                            │

00:02:14 #3080 [Verbose] > │     let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15             │

00:02:14 #3081 [Verbose] > │     let v17 : string = "f64::NAN"                                            │

00:02:14 #3082 [Verbose] > │     let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17             │

00:02:14 #3083 [Verbose] > │     let v19 : float = method31(v16)                                          │

00:02:14 #3084 [Verbose] > │     let v20 : float = method3(v19)                                           │

00:02:14 #3085 [Verbose] > │     let v21 : float = method32(v18)                                          │

00:02:14 #3086 [Verbose] > │     let v22 : string = "num_complex::Complex::new(v20, v21)"                 │

00:02:14 #3087 [Verbose] > │     let v23 : num_complex_Complex<float> =                                   │

00:02:14 #3088 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22                                   │

00:02:14 #3089 [Verbose] > │     let v26 : num_complex_Complex<float> =                                   │

00:02:14 #3090 [Verbose] > │         match v14 with                                                       │

00:02:14 #3091 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:14 #3092 [Verbose] > │             v23                                                              │

00:02:14 #3093 [Verbose] > │         | US0_1(v24) -> (* Some *)                                           │

00:02:14 #3094 [Verbose] > │             v24                                                              │

00:02:14 #3095 [Verbose] > │     let v27 : num_complex_Complex<float> = method13(v26)                     │

00:02:14 #3096 [Verbose] > │     let v28 : string = "v27.re"                                              │

00:02:14 #3097 [Verbose] > │     let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28             │

00:02:14 #3098 [Verbose] > │     let v30 : float = v29 - 0.8673                                           │

00:02:14 #3099 [Verbose] > │     let v31 : float =  -v30                                                  │

00:02:14 #3100 [Verbose] > │     let v32 : bool = v30 >= v31                                              │

00:02:14 #3101 [Verbose] > │     let v33 : float =                                                        │

00:02:14 #3102 [Verbose] > │         if v32 then                                                          │

00:02:14 #3103 [Verbose] > │             v30                                                              │

00:02:14 #3104 [Verbose] > │         else                                                                 │

00:02:14 #3105 [Verbose] > │             v31                                                              │

00:02:14 #3106 [Verbose] > │     let v34 : string = $"%A{v33}"                                            │

00:02:14 #3107 [Verbose] > │     System.Console.WriteLine v34                                             │

00:02:14 #3108 [Verbose] > │     let v35 : bool = v33 < 0.001                                             │

00:02:14 #3109 [Verbose] > │     let v37 : bool =                                                         │

00:02:14 #3110 [Verbose] > │         if v35 then                                                          │

00:02:14 #3111 [Verbose] > │             true                                                             │

00:02:14 #3112 [Verbose] > │         else                                                                 │

00:02:14 #3113 [Verbose] > │             method43(v35)                                                    │

00:02:14 #3114 [Verbose] > │     let v38 : string = $"__expect / actual: %A{v33} / expected: %A{0.001}"   │

00:02:14 #3115 [Verbose] > │     let v39 : bool = v37 = false                                             │

00:02:14 #3116 [Verbose] > │     if v39 then                                                              │

00:02:14 #3117 [Verbose] > │         failwith<unit> v38                                                   │

00:02:14 #3118 [Verbose] > │     let v40 : num_complex_Complex<float> = method14(v26)                     │

00:02:14 #3119 [Verbose] > │     let v41 : string = "v40.im"                                              │

00:02:14 #3120 [Verbose] > │     let v42 : float = Fable.Core.RustInterop.emitRustExpr () v41             │

00:02:14 #3121 [Verbose] > │     let v43 : float = v42 - 0.275                                            │

00:02:14 #3122 [Verbose] > │     let v44 : float =  -v43                                                  │

00:02:14 #3123 [Verbose] > │     let v45 : bool = v43 >= v44                                              │

00:02:14 #3124 [Verbose] > │     let v46 : float =                                                        │

00:02:14 #3125 [Verbose] > │         if v45 then                                                          │

00:02:14 #3126 [Verbose] > │             v43                                                              │

00:02:14 #3127 [Verbose] > │         else                                                                 │

00:02:14 #3128 [Verbose] > │             v44                                                              │

00:02:14 #3129 [Verbose] > │     let v47 : string = $"%A{v46}"                                            │

00:02:14 #3130 [Verbose] > │     System.Console.WriteLine v47                                             │

00:02:14 #3131 [Verbose] > │     let v48 : bool = v46 < 0.001                                             │

00:02:14 #3132 [Verbose] > │     let v50 : bool =                                                         │

00:02:14 #3133 [Verbose] > │         if v48 then                                                          │

00:02:14 #3134 [Verbose] > │             true                                                             │

00:02:14 #3135 [Verbose] > │         else                                                                 │

00:02:14 #3136 [Verbose] > │             method43(v48)                                                    │

00:02:14 #3137 [Verbose] > │     let v51 : string = $"__expect / actual: %A{v46} / expected: %A{0.001}"   │

00:02:14 #3138 [Verbose] > │     let v52 : bool = v50 = false                                             │

00:02:14 #3139 [Verbose] > │     if v52 then                                                              │

00:02:14 #3140 [Verbose] > │         failwith<unit> v51                                                   │

00:02:14 #3141 [Verbose] > │ and method46 () : unit =                                                     │

00:02:14 #3142 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3143 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3144 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3145 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3146 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3147 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3148 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3149 [Verbose] > │     method47(v3)                                                             │

00:02:14 #3150 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3151 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3152 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3153 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3154 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3155 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3156 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3157 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3158 [Verbose] > │ () v8                                                                        │

00:02:14 #3159 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3160 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3161 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3162 [Verbose] > │     ()                                                                       │

00:02:14 #3163 [Verbose] > │ and method51 () : UH0 =                                                      │

00:02:14 #3164 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:02:14 #3165 [Verbose] > │     let v1 : UH0 = UH0_0(-40.0, v0)                                          │

00:02:14 #3166 [Verbose] > │     let v2 : UH0 = UH0_0(-38.0, v1)                                          │

00:02:14 #3167 [Verbose] > │     let v3 : UH0 = UH0_0(-36.0, v2)                                          │

00:02:14 #3168 [Verbose] > │     let v4 : UH0 = UH0_0(-34.0, v3)                                          │

00:02:14 #3169 [Verbose] > │     let v5 : UH0 = UH0_0(-32.0, v4)                                          │

00:02:14 #3170 [Verbose] > │     let v6 : UH0 = UH0_0(-30.0, v5)                                          │

00:02:14 #3171 [Verbose] > │     let v7 : UH0 = UH0_0(-28.0, v6)                                          │

00:02:14 #3172 [Verbose] > │     let v8 : UH0 = UH0_0(-26.0, v7)                                          │

00:02:14 #3173 [Verbose] > │     let v9 : UH0 = UH0_0(-24.0, v8)                                          │

00:02:14 #3174 [Verbose] > │     let v10 : UH0 = UH0_0(-22.0, v9)                                         │

00:02:14 #3175 [Verbose] > │     let v11 : UH0 = UH0_0(-20.0, v10)                                        │

00:02:14 #3176 [Verbose] > │     let v12 : UH0 = UH0_0(-18.0, v11)                                        │

00:02:14 #3177 [Verbose] > │     let v13 : UH0 = UH0_0(-16.0, v12)                                        │

00:02:14 #3178 [Verbose] > │     let v14 : UH0 = UH0_0(-14.0, v13)                                        │

00:02:14 #3179 [Verbose] > │     let v15 : UH0 = UH0_0(-12.0, v14)                                        │

00:02:14 #3180 [Verbose] > │     let v16 : UH0 = UH0_0(-10.0, v15)                                        │

00:02:14 #3181 [Verbose] > │     let v17 : UH0 = UH0_0(-8.0, v16)                                         │

00:02:14 #3182 [Verbose] > │     let v18 : UH0 = UH0_0(-6.0, v17)                                         │

00:02:14 #3183 [Verbose] > │     let v19 : UH0 = UH0_0(-4.0, v18)                                         │

00:02:14 #3184 [Verbose] > │     UH0_0(-2.0, v19)                                                         │

00:02:14 #3185 [Verbose] > │ and method52 (v0 : pyo3_Python, v1 : UH0) : unit =                           │

00:02:14 #3186 [Verbose] > │     match v1 with                                                            │

00:02:14 #3187 [Verbose] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:02:14 #3188 [Verbose] > │         let v4 : float = method31(v2)                                        │

00:02:14 #3189 [Verbose] > │         let v5 : float = method3(v4)                                         │

00:02:14 #3190 [Verbose] > │         let v6 : float = method4()                                           │

00:02:14 #3191 [Verbose] > │         let v7 : string = "num_complex::Complex::new(v5, v6)"                │

00:02:14 #3192 [Verbose] > │         let v8 : num_complex_Complex<float> =                                │

00:02:14 #3193 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7                                    │

00:02:14 #3194 [Verbose] > │         let v9 : string = $"        s = mpmath.zeta(s)"                      │

00:02:14 #3195 [Verbose] > │         let v10 : num_complex_Complex<float> = method8(v8)                   │

00:02:14 #3196 [Verbose] > │         let v11 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #3197 [Verbose] > │ method9(v0, v9, v10)                                                         │

00:02:14 #3198 [Verbose] > │         let v12 : num_complex_Complex<float> = method33(v0, v8)              │

00:02:14 #3199 [Verbose] > │         let v13 : string = "v11.ok()"                                        │

00:02:14 #3200 [Verbose] > │         let v14 : num_complex_Complex<float> option =                        │

00:02:14 #3201 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13                                   │

00:02:14 #3202 [Verbose] > │         let v15 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #3203 [Verbose] > │         let v16 : US0 = US0_0                                                │

00:02:14 #3204 [Verbose] > │         let v17 : US0 = v14 |> Option.map v15 |> Option.defaultValue v16     │

00:02:14 #3205 [Verbose] > │         let v18 : string = "f64::NAN"                                        │

00:02:14 #3206 [Verbose] > │         let v19 : float = Fable.Core.RustInterop.emitRustExpr () v18         │

00:02:14 #3207 [Verbose] > │         let v20 : string = "f64::NAN"                                        │

00:02:14 #3208 [Verbose] > │         let v21 : float = Fable.Core.RustInterop.emitRustExpr () v20         │

00:02:14 #3209 [Verbose] > │         let v22 : float = method31(v19)                                      │

00:02:14 #3210 [Verbose] > │         let v23 : float = method3(v22)                                       │

00:02:14 #3211 [Verbose] > │         let v24 : float = method32(v21)                                      │

00:02:14 #3212 [Verbose] > │         let v25 : string = "num_complex::Complex::new(v23, v24)"             │

00:02:14 #3213 [Verbose] > │         let v26 : num_complex_Complex<float> =                               │

00:02:14 #3214 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v25                                   │

00:02:14 #3215 [Verbose] > │         let v29 : num_complex_Complex<float> =                               │

00:02:14 #3216 [Verbose] > │             match v17 with                                                   │

00:02:14 #3217 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #3218 [Verbose] > │                 v26                                                          │

00:02:14 #3219 [Verbose] > │             | US0_1(v27) -> (* Some *)                                       │

00:02:14 #3220 [Verbose] > │                 v27                                                          │

00:02:14 #3221 [Verbose] > │         let v30 : num_complex_Complex<float> = method13(v29)                 │

00:02:14 #3222 [Verbose] > │         let v31 : string = "v30.re"                                          │

00:02:14 #3223 [Verbose] > │         let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31         │

00:02:14 #3224 [Verbose] > │         let v33 : string = $"%A{v32}"                                        │

00:02:14 #3225 [Verbose] > │         System.Console.WriteLine v33                                         │

00:02:14 #3226 [Verbose] > │         let v34 : bool = v32 = 0.0                                           │

00:02:14 #3227 [Verbose] > │         let v36 : bool =                                                     │

00:02:14 #3228 [Verbose] > │             if v34 then                                                      │

00:02:14 #3229 [Verbose] > │                 true                                                         │

00:02:14 #3230 [Verbose] > │             else                                                             │

00:02:14 #3231 [Verbose] > │                 method43(v34)                                                │

00:02:14 #3232 [Verbose] > │         let v37 : string = $"__expect / actual: %A{v32} / expected: %A{0.0}" │

00:02:14 #3233 [Verbose] > │         let v38 : bool = v36 = false                                         │

00:02:14 #3234 [Verbose] > │         if v38 then                                                          │

00:02:14 #3235 [Verbose] > │             failwith<unit> v37                                               │

00:02:14 #3236 [Verbose] > │         let v39 : num_complex_Complex<float> = method14(v29)                 │

00:02:14 #3237 [Verbose] > │         let v40 : string = "v39.im"                                          │

00:02:14 #3238 [Verbose] > │         let v41 : float = Fable.Core.RustInterop.emitRustExpr () v40         │

00:02:14 #3239 [Verbose] > │         let v42 : string = $"%A{v41}"                                        │

00:02:14 #3240 [Verbose] > │         System.Console.WriteLine v42                                         │

00:02:14 #3241 [Verbose] > │         let v43 : bool = v41 = 0.0                                           │

00:02:14 #3242 [Verbose] > │         let v45 : bool =                                                     │

00:02:14 #3243 [Verbose] > │             if v43 then                                                      │

00:02:14 #3244 [Verbose] > │                 true                                                         │

00:02:14 #3245 [Verbose] > │             else                                                             │

00:02:14 #3246 [Verbose] > │                 method43(v43)                                                │

00:02:14 #3247 [Verbose] > │         let v46 : string = $"__expect / actual: %A{v41} / expected: %A{0.0}" │

00:02:14 #3248 [Verbose] > │         let v47 : bool = v45 = false                                         │

00:02:14 #3249 [Verbose] > │         if v47 then                                                          │

00:02:14 #3250 [Verbose] > │             failwith<unit> v46                                               │

00:02:14 #3251 [Verbose] > │         method52(v0, v3)                                                     │

00:02:14 #3252 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:02:14 #3253 [Verbose] > │         ()                                                                   │

00:02:14 #3254 [Verbose] > │ and method50 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3255 [Verbose] > │     let v1 : UH0 = method51()                                                │

00:02:14 #3256 [Verbose] > │     method52(v0, v1)                                                         │

00:02:14 #3257 [Verbose] > │ and method49 () : unit =                                                     │

00:02:14 #3258 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3259 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3260 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3261 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3262 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3263 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3264 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3265 [Verbose] > │     method50(v3)                                                             │

00:02:14 #3266 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3267 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3268 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3269 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3270 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3271 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3272 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3273 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3274 [Verbose] > │ () v8                                                                        │

00:02:14 #3275 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3276 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3277 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3278 [Verbose] > │     ()                                                                       │

00:02:14 #3279 [Verbose] > │ and method55 () : float =                                                    │

00:02:14 #3280 [Verbose] > │     0.5                                                                      │

00:02:14 #3281 [Verbose] > │ and method56 () : float =                                                    │

00:02:14 #3282 [Verbose] > │     14.134725                                                                │

00:02:14 #3283 [Verbose] > │ and method57 () : float =                                                    │

00:02:14 #3284 [Verbose] > │     21.02204                                                                 │

00:02:14 #3285 [Verbose] > │ and method58 () : float =                                                    │

00:02:14 #3286 [Verbose] > │     25.010857                                                                │

00:02:14 #3287 [Verbose] > │ and method59 () : float =                                                    │

00:02:14 #3288 [Verbose] > │     30.424876                                                                │

00:02:14 #3289 [Verbose] > │ and method60 () : float =                                                    │

00:02:14 #3290 [Verbose] > │     32.935062                                                                │

00:02:14 #3291 [Verbose] > │ and method61 () : float =                                                    │

00:02:14 #3292 [Verbose] > │     37.586178                                                                │

00:02:14 #3293 [Verbose] > │ and method62 (v0 : (num_complex_Complex<float> [])) :                        │

00:02:14 #3294 [Verbose] > │ (num_complex_Complex<float> []) =                                            │

00:02:14 #3295 [Verbose] > │     v0                                                                       │

00:02:14 #3296 [Verbose] > │ and method54 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3297 [Verbose] > │     let v1 : float = method55()                                              │

00:02:14 #3298 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #3299 [Verbose] > │     let v3 : float = method56()                                              │

00:02:14 #3300 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #3301 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #3302 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #3303 [Verbose] > │     let v6 : float = method55()                                              │

00:02:14 #3304 [Verbose] > │     let v7 : float = method3(v6)                                             │

00:02:14 #3305 [Verbose] > │     let v8 : float = method57()                                              │

00:02:14 #3306 [Verbose] > │     let v9 : string = "num_complex::Complex::new(v7, v8)"                    │

00:02:14 #3307 [Verbose] > │     let v10 : num_complex_Complex<float> =                                   │

00:02:14 #3308 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9                                    │

00:02:14 #3309 [Verbose] > │     let v11 : float = method55()                                             │

00:02:14 #3310 [Verbose] > │     let v12 : float = method3(v11)                                           │

00:02:14 #3311 [Verbose] > │     let v13 : float = method58()                                             │

00:02:14 #3312 [Verbose] > │     let v14 : string = "num_complex::Complex::new(v12, v13)"                 │

00:02:14 #3313 [Verbose] > │     let v15 : num_complex_Complex<float> =                                   │

00:02:14 #3314 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14                                   │

00:02:14 #3315 [Verbose] > │     let v16 : float = method55()                                             │

00:02:14 #3316 [Verbose] > │     let v17 : float = method3(v16)                                           │

00:02:14 #3317 [Verbose] > │     let v18 : float = method59()                                             │

00:02:14 #3318 [Verbose] > │     let v19 : string = "num_complex::Complex::new(v17, v18)"                 │

00:02:14 #3319 [Verbose] > │     let v20 : num_complex_Complex<float> =                                   │

00:02:14 #3320 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19                                   │

00:02:14 #3321 [Verbose] > │     let v21 : float = method55()                                             │

00:02:14 #3322 [Verbose] > │     let v22 : float = method3(v21)                                           │

00:02:14 #3323 [Verbose] > │     let v23 : float = method60()                                             │

00:02:14 #3324 [Verbose] > │     let v24 : string = "num_complex::Complex::new(v22, v23)"                 │

00:02:14 #3325 [Verbose] > │     let v25 : num_complex_Complex<float> =                                   │

00:02:14 #3326 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v24                                   │

00:02:14 #3327 [Verbose] > │     let v26 : float = method55()                                             │

00:02:14 #3328 [Verbose] > │     let v27 : float = method3(v26)                                           │

00:02:14 #3329 [Verbose] > │     let v28 : float = method61()                                             │

00:02:14 #3330 [Verbose] > │     let v29 : string = "num_complex::Complex::new(v27, v28)"                 │

00:02:14 #3331 [Verbose] > │     let v30 : num_complex_Complex<float> =                                   │

00:02:14 #3332 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v29                                   │

00:02:14 #3333 [Verbose] > │     let v31 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20; v25;    │

00:02:14 #3334 [Verbose] > │ v30|]                                                                        │

00:02:14 #3335 [Verbose] > │     let v32 : (num_complex_Complex<float> []) = method62(v31)                │

00:02:14 #3336 [Verbose] > │     let v33 : int32 = v32.Length                                             │

00:02:14 #3337 [Verbose] > │     let v34 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:14 #3338 [Verbose] > │     while method7(v33, v34) do                                               │

00:02:14 #3339 [Verbose] > │         let v36 : int32 = v34.l0                                             │

00:02:14 #3340 [Verbose] > │         let v37 : num_complex_Complex<float> = v32.[int v36]                 │

00:02:14 #3341 [Verbose] > │         let v38 : string = $"        s = mpmath.zeta(s)"                     │

00:02:14 #3342 [Verbose] > │         let v39 : num_complex_Complex<float> = method8(v37)                  │

00:02:14 #3343 [Verbose] > │         let v40 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #3344 [Verbose] > │ method9(v0, v38, v39)                                                        │

00:02:14 #3345 [Verbose] > │         let v41 : num_complex_Complex<float> = method33(v0, v37)             │

00:02:14 #3346 [Verbose] > │         let v42 : string = "v40.ok()"                                        │

00:02:14 #3347 [Verbose] > │         let v43 : num_complex_Complex<float> option =                        │

00:02:14 #3348 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42                                   │

00:02:14 #3349 [Verbose] > │         let v44 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #3350 [Verbose] > │         let v45 : US0 = US0_0                                                │

00:02:14 #3351 [Verbose] > │         let v46 : US0 = v43 |> Option.map v44 |> Option.defaultValue v45     │

00:02:14 #3352 [Verbose] > │         let v47 : string = "f64::NAN"                                        │

00:02:14 #3353 [Verbose] > │         let v48 : float = Fable.Core.RustInterop.emitRustExpr () v47         │

00:02:14 #3354 [Verbose] > │         let v49 : string = "f64::NAN"                                        │

00:02:14 #3355 [Verbose] > │         let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49         │

00:02:14 #3356 [Verbose] > │         let v51 : float = method31(v48)                                      │

00:02:14 #3357 [Verbose] > │         let v52 : float = method3(v51)                                       │

00:02:14 #3358 [Verbose] > │         let v53 : float = method32(v50)                                      │

00:02:14 #3359 [Verbose] > │         let v54 : string = "num_complex::Complex::new(v52, v53)"             │

00:02:14 #3360 [Verbose] > │         let v55 : num_complex_Complex<float> =                               │

00:02:14 #3361 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54                                   │

00:02:14 #3362 [Verbose] > │         let v58 : num_complex_Complex<float> =                               │

00:02:14 #3363 [Verbose] > │             match v46 with                                                   │

00:02:14 #3364 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #3365 [Verbose] > │                 v55                                                          │

00:02:14 #3366 [Verbose] > │             | US0_1(v56) -> (* Some *)                                       │

00:02:14 #3367 [Verbose] > │                 v56                                                          │

00:02:14 #3368 [Verbose] > │         let v59 : num_complex_Complex<float> = method13(v58)                 │

00:02:14 #3369 [Verbose] > │         let v60 : string = "v59.re"                                          │

00:02:14 #3370 [Verbose] > │         let v61 : float = Fable.Core.RustInterop.emitRustExpr () v60         │

00:02:14 #3371 [Verbose] > │         let v62 : float =  -v61                                              │

00:02:14 #3372 [Verbose] > │         let v63 : bool = v61 >= v62                                          │

00:02:14 #3373 [Verbose] > │         let v64 : float =                                                    │

00:02:14 #3374 [Verbose] > │             if v63 then                                                      │

00:02:14 #3375 [Verbose] > │                 v61                                                          │

00:02:14 #3376 [Verbose] > │             else                                                             │

00:02:14 #3377 [Verbose] > │                 v62                                                          │

00:02:14 #3378 [Verbose] > │         let v65 : string = $"%A{v64}"                                        │

00:02:14 #3379 [Verbose] > │         System.Console.WriteLine v65                                         │

00:02:14 #3380 [Verbose] > │         let v66 : bool = v64 < 0.0001                                        │

00:02:14 #3381 [Verbose] > │         let v68 : bool =                                                     │

00:02:14 #3382 [Verbose] > │             if v66 then                                                      │

00:02:14 #3383 [Verbose] > │                 true                                                         │

00:02:14 #3384 [Verbose] > │             else                                                             │

00:02:14 #3385 [Verbose] > │                 method43(v66)                                                │

00:02:14 #3386 [Verbose] > │         let v69 : string = $"__expect / actual: %A{v64} / expected:          │

00:02:14 #3387 [Verbose] > │ %A{0.0001}"                                                                  │

00:02:14 #3388 [Verbose] > │         let v70 : bool = v68 = false                                         │

00:02:14 #3389 [Verbose] > │         if v70 then                                                          │

00:02:14 #3390 [Verbose] > │             failwith<unit> v69                                               │

00:02:14 #3391 [Verbose] > │         let v71 : num_complex_Complex<float> = method14(v58)                 │

00:02:14 #3392 [Verbose] > │         let v72 : string = "v71.im"                                          │

00:02:14 #3393 [Verbose] > │         let v73 : float = Fable.Core.RustInterop.emitRustExpr () v72         │

00:02:14 #3394 [Verbose] > │         let v74 : float =  -v73                                              │

00:02:14 #3395 [Verbose] > │         let v75 : bool = v73 >= v74                                          │

00:02:14 #3396 [Verbose] > │         let v76 : float =                                                    │

00:02:14 #3397 [Verbose] > │             if v75 then                                                      │

00:02:14 #3398 [Verbose] > │                 v73                                                          │

00:02:14 #3399 [Verbose] > │             else                                                             │

00:02:14 #3400 [Verbose] > │                 v74                                                          │

00:02:14 #3401 [Verbose] > │         let v77 : string = $"%A{v76}"                                        │

00:02:14 #3402 [Verbose] > │         System.Console.WriteLine v77                                         │

00:02:14 #3403 [Verbose] > │         let v78 : bool = v76 < 0.0001                                        │

00:02:14 #3404 [Verbose] > │         let v80 : bool =                                                     │

00:02:14 #3405 [Verbose] > │             if v78 then                                                      │

00:02:14 #3406 [Verbose] > │                 true                                                         │

00:02:14 #3407 [Verbose] > │             else                                                             │

00:02:14 #3408 [Verbose] > │                 method43(v78)                                                │

00:02:14 #3409 [Verbose] > │         let v81 : string = $"__expect / actual: %A{v76} / expected:          │

00:02:14 #3410 [Verbose] > │ %A{0.0001}"                                                                  │

00:02:14 #3411 [Verbose] > │         let v82 : bool = v80 = false                                         │

00:02:14 #3412 [Verbose] > │         if v82 then                                                          │

00:02:14 #3413 [Verbose] > │             failwith<unit> v81                                               │

00:02:14 #3414 [Verbose] > │         let v83 : int32 = v36 + 1                                            │

00:02:14 #3415 [Verbose] > │         v34.l0 <- v83                                                        │

00:02:14 #3416 [Verbose] > │         ()                                                                   │

00:02:14 #3417 [Verbose] > │     ()                                                                       │

00:02:14 #3418 [Verbose] > │ and method53 () : unit =                                                     │

00:02:14 #3419 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3420 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3421 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3422 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3423 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3424 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3425 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3426 [Verbose] > │     method54(v3)                                                             │

00:02:14 #3427 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3428 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3429 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3430 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3431 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3432 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3433 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3434 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3435 [Verbose] > │ () v8                                                                        │

00:02:14 #3436 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3437 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3438 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3439 [Verbose] > │     ()                                                                       │

00:02:14 #3440 [Verbose] > │ and method65 (v0 : (float [])) : (float []) =                                │

00:02:14 #3441 [Verbose] > │     v0                                                                       │

00:02:14 #3442 [Verbose] > │ and method64 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3443 [Verbose] > │     let v1 : (float []) = [|2.0; 3.0; 4.0; 5.0; 10.0; 20.0; 50.0|]           │

00:02:14 #3444 [Verbose] > │     let v2 : (float []) = method65(v1)                                       │

00:02:14 #3445 [Verbose] > │     let v3 : int32 = v2.Length                                               │

00:02:14 #3446 [Verbose] > │     let v4 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:14 #3447 [Verbose] > │     while method7(v3, v4) do                                                 │

00:02:14 #3448 [Verbose] > │         let v6 : int32 = v4.l0                                               │

00:02:14 #3449 [Verbose] > │         let v7 : float = v2.[int v6]                                         │

00:02:14 #3450 [Verbose] > │         let v8 : float = method31(v7)                                        │

00:02:14 #3451 [Verbose] > │         let v9 : float = method3(v8)                                         │

00:02:14 #3452 [Verbose] > │         let v10 : float = method4()                                          │

00:02:14 #3453 [Verbose] > │         let v11 : string = "num_complex::Complex::new(v9, v10)"              │

00:02:14 #3454 [Verbose] > │         let v12 : num_complex_Complex<float> =                               │

00:02:14 #3455 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11                                   │

00:02:14 #3456 [Verbose] > │         let v13 : string = $"        s = mpmath.zeta(s)"                     │

00:02:14 #3457 [Verbose] > │         let v14 : num_complex_Complex<float> = method8(v12)                  │

00:02:14 #3458 [Verbose] > │         let v15 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #3459 [Verbose] > │ method9(v0, v13, v14)                                                        │

00:02:14 #3460 [Verbose] > │         let v16 : num_complex_Complex<float> = method33(v0, v12)             │

00:02:14 #3461 [Verbose] > │         let v17 : string = "v15.ok()"                                        │

00:02:14 #3462 [Verbose] > │         let v18 : num_complex_Complex<float> option =                        │

00:02:14 #3463 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v17                                   │

00:02:14 #3464 [Verbose] > │         let v19 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #3465 [Verbose] > │         let v20 : US0 = US0_0                                                │

00:02:14 #3466 [Verbose] > │         let v21 : US0 = v18 |> Option.map v19 |> Option.defaultValue v20     │

00:02:14 #3467 [Verbose] > │         let v22 : string = "f64::NAN"                                        │

00:02:14 #3468 [Verbose] > │         let v23 : float = Fable.Core.RustInterop.emitRustExpr () v22         │

00:02:14 #3469 [Verbose] > │         let v24 : string = "f64::NAN"                                        │

00:02:14 #3470 [Verbose] > │         let v25 : float = Fable.Core.RustInterop.emitRustExpr () v24         │

00:02:14 #3471 [Verbose] > │         let v26 : float = method31(v23)                                      │

00:02:14 #3472 [Verbose] > │         let v27 : float = method3(v26)                                       │

00:02:14 #3473 [Verbose] > │         let v28 : float = method32(v25)                                      │

00:02:14 #3474 [Verbose] > │         let v29 : string = "num_complex::Complex::new(v27, v28)"             │

00:02:14 #3475 [Verbose] > │         let v30 : num_complex_Complex<float> =                               │

00:02:14 #3476 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v29                                   │

00:02:14 #3477 [Verbose] > │         let v33 : num_complex_Complex<float> =                               │

00:02:14 #3478 [Verbose] > │             match v21 with                                                   │

00:02:14 #3479 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #3480 [Verbose] > │                 v30                                                          │

00:02:14 #3481 [Verbose] > │             | US0_1(v31) -> (* Some *)                                       │

00:02:14 #3482 [Verbose] > │                 v31                                                          │

00:02:14 #3483 [Verbose] > │         let v34 : num_complex_Complex<float> = method13(v33)                 │

00:02:14 #3484 [Verbose] > │         let v35 : string = "v34.re"                                          │

00:02:14 #3485 [Verbose] > │         let v36 : float = Fable.Core.RustInterop.emitRustExpr () v35         │

00:02:14 #3486 [Verbose] > │         let v37 : string = $"%A{v36}"                                        │

00:02:14 #3487 [Verbose] > │         System.Console.WriteLine v37                                         │

00:02:14 #3488 [Verbose] > │         let v38 : bool = v36 > 0.0                                           │

00:02:14 #3489 [Verbose] > │         let v40 : bool =                                                     │

00:02:14 #3490 [Verbose] > │             if v38 then                                                      │

00:02:14 #3491 [Verbose] > │                 true                                                         │

00:02:14 #3492 [Verbose] > │             else                                                             │

00:02:14 #3493 [Verbose] > │                 method43(v38)                                                │

00:02:14 #3494 [Verbose] > │         let v41 : string = $"__expect / actual: %A{v36} / expected: %A{0.0}" │

00:02:14 #3495 [Verbose] > │         let v42 : bool = v40 = false                                         │

00:02:14 #3496 [Verbose] > │         if v42 then                                                          │

00:02:14 #3497 [Verbose] > │             failwith<unit> v41                                               │

00:02:14 #3498 [Verbose] > │         let v43 : num_complex_Complex<float> = method14(v33)                 │

00:02:14 #3499 [Verbose] > │         let v44 : string = "v43.im"                                          │

00:02:14 #3500 [Verbose] > │         let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44         │

00:02:14 #3501 [Verbose] > │         let v46 : string = $"%A{v45}"                                        │

00:02:14 #3502 [Verbose] > │         System.Console.WriteLine v46                                         │

00:02:14 #3503 [Verbose] > │         let v47 : bool = v45 = 0.0                                           │

00:02:14 #3504 [Verbose] > │         let v49 : bool =                                                     │

00:02:14 #3505 [Verbose] > │             if v47 then                                                      │

00:02:14 #3506 [Verbose] > │                 true                                                         │

00:02:14 #3507 [Verbose] > │             else                                                             │

00:02:14 #3508 [Verbose] > │                 method43(v47)                                                │

00:02:14 #3509 [Verbose] > │         let v50 : string = $"__expect / actual: %A{v45} / expected: %A{0.0}" │

00:02:14 #3510 [Verbose] > │         let v51 : bool = v49 = false                                         │

00:02:14 #3511 [Verbose] > │         if v51 then                                                          │

00:02:14 #3512 [Verbose] > │             failwith<unit> v50                                               │

00:02:14 #3513 [Verbose] > │         let v52 : int32 = v6 + 1                                             │

00:02:14 #3514 [Verbose] > │         v4.l0 <- v52                                                         │

00:02:14 #3515 [Verbose] > │         ()                                                                   │

00:02:14 #3516 [Verbose] > │     ()                                                                       │

00:02:14 #3517 [Verbose] > │ and method63 () : unit =                                                     │

00:02:14 #3518 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3519 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3520 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3521 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3522 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3523 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3524 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3525 [Verbose] > │     method64(v3)                                                             │

00:02:14 #3526 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3527 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3528 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3529 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3530 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3531 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3532 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3533 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3534 [Verbose] > │ () v8                                                                        │

00:02:14 #3535 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3536 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3537 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3538 [Verbose] > │     ()                                                                       │

00:02:14 #3539 [Verbose] > │ and method67 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3540 [Verbose] > │     let v1 : float = method38()                                              │

00:02:14 #3541 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #3542 [Verbose] > │     let v3 : float = method4()                                               │

00:02:14 #3543 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #3544 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #3545 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #3546 [Verbose] > │     let v6 : string = $"        s = mpmath.zeta(s)"                          │

00:02:14 #3547 [Verbose] > │     let v7 : num_complex_Complex<float> = method8(v5)                        │

00:02:14 #3548 [Verbose] > │     let v8 : Result<num_complex_Complex<float>, std_string_String> =         │

00:02:14 #3549 [Verbose] > │ method9(v0, v6, v7)                                                          │

00:02:14 #3550 [Verbose] > │     let v9 : num_complex_Complex<float> = method33(v0, v5)                   │

00:02:14 #3551 [Verbose] > │     let v10 : string = "v8.ok()"                                             │

00:02:14 #3552 [Verbose] > │     let v11 : num_complex_Complex<float> option =                            │

00:02:14 #3553 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10                                   │

00:02:14 #3554 [Verbose] > │     let v12 : (num_complex_Complex<float> -> US0) = closure5()               │

00:02:14 #3555 [Verbose] > │     let v13 : US0 = US0_0                                                    │

00:02:14 #3556 [Verbose] > │     let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13         │

00:02:14 #3557 [Verbose] > │     let v15 : string = "f64::NAN"                                            │

00:02:14 #3558 [Verbose] > │     let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15             │

00:02:14 #3559 [Verbose] > │     let v17 : string = "f64::NAN"                                            │

00:02:14 #3560 [Verbose] > │     let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17             │

00:02:14 #3561 [Verbose] > │     let v19 : float = method31(v16)                                          │

00:02:14 #3562 [Verbose] > │     let v20 : float = method3(v19)                                           │

00:02:14 #3563 [Verbose] > │     let v21 : float = method32(v18)                                          │

00:02:14 #3564 [Verbose] > │     let v22 : string = "num_complex::Complex::new(v20, v21)"                 │

00:02:14 #3565 [Verbose] > │     let v23 : num_complex_Complex<float> =                                   │

00:02:14 #3566 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22                                   │

00:02:14 #3567 [Verbose] > │     let v26 : num_complex_Complex<float> =                                   │

00:02:14 #3568 [Verbose] > │         match v14 with                                                       │

00:02:14 #3569 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:14 #3570 [Verbose] > │             v23                                                              │

00:02:14 #3571 [Verbose] > │         | US0_1(v24) -> (* Some *)                                           │

00:02:14 #3572 [Verbose] > │             v24                                                              │

00:02:14 #3573 [Verbose] > │     let v27 : num_complex_Complex<float> = method13(v26)                     │

00:02:14 #3574 [Verbose] > │     let v28 : string = "v27.re"                                              │

00:02:14 #3575 [Verbose] > │     let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28             │

00:02:14 #3576 [Verbose] > │     let v30 : string = $"%A{v29}"                                            │

00:02:14 #3577 [Verbose] > │     System.Console.WriteLine v30                                             │

00:02:14 #3578 [Verbose] > │     let v31 : bool = v29 = infinity                                          │

00:02:14 #3579 [Verbose] > │     let v33 : bool =                                                         │

00:02:14 #3580 [Verbose] > │         if v31 then                                                          │

00:02:14 #3581 [Verbose] > │             true                                                             │

00:02:14 #3582 [Verbose] > │         else                                                                 │

00:02:14 #3583 [Verbose] > │             method43(v31)                                                    │

00:02:14 #3584 [Verbose] > │     let v34 : string = $"__expect / actual: %A{v29} / expected:              │

00:02:14 #3585 [Verbose] > │ %A{infinity}"                                                                │

00:02:14 #3586 [Verbose] > │     let v35 : bool = v33 = false                                             │

00:02:14 #3587 [Verbose] > │     if v35 then                                                              │

00:02:14 #3588 [Verbose] > │         failwith<unit> v34                                                   │

00:02:14 #3589 [Verbose] > │     let v36 : num_complex_Complex<float> = method14(v26)                     │

00:02:14 #3590 [Verbose] > │     let v37 : string = "v36.im"                                              │

00:02:14 #3591 [Verbose] > │     let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37             │

00:02:14 #3592 [Verbose] > │     let v39 : string = $"%A{v38}"                                            │

00:02:14 #3593 [Verbose] > │     System.Console.WriteLine v39                                             │

00:02:14 #3594 [Verbose] > │     let v40 : bool = v38 = 0.0                                               │

00:02:14 #3595 [Verbose] > │     let v42 : bool =                                                         │

00:02:14 #3596 [Verbose] > │         if v40 then                                                          │

00:02:14 #3597 [Verbose] > │             true                                                             │

00:02:14 #3598 [Verbose] > │         else                                                                 │

00:02:14 #3599 [Verbose] > │             method43(v40)                                                    │

00:02:14 #3600 [Verbose] > │     let v43 : string = $"__expect / actual: %A{v38} / expected: %A{0.0}"     │

00:02:14 #3601 [Verbose] > │     let v44 : bool = v42 = false                                             │

00:02:14 #3602 [Verbose] > │     if v44 then                                                              │

00:02:14 #3603 [Verbose] > │         failwith<unit> v43                                                   │

00:02:14 #3604 [Verbose] > │ and method66 () : unit =                                                     │

00:02:14 #3605 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3606 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3607 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3608 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3609 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3610 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3611 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3612 [Verbose] > │     method67(v3)                                                             │

00:02:14 #3613 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3614 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3615 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3616 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3617 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3618 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3619 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3620 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3621 [Verbose] > │ () v8                                                                        │

00:02:14 #3622 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3623 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3624 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3625 [Verbose] > │     ()                                                                       │

00:02:14 #3626 [Verbose] > │ and method70 () : float =                                                    │

00:02:14 #3627 [Verbose] > │     10.0                                                                     │

00:02:14 #3628 [Verbose] > │ and method69 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3629 [Verbose] > │     let v1 : float = method2()                                               │

00:02:14 #3630 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #3631 [Verbose] > │     let v3 : float = method70()                                              │

00:02:14 #3632 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #3633 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #3634 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #3635 [Verbose] > │     let v6 : string = $"        s = mpmath.zeta(s)"                          │

00:02:14 #3636 [Verbose] > │     let v7 : num_complex_Complex<float> = method8(v5)                        │

00:02:14 #3637 [Verbose] > │     let v8 : Result<num_complex_Complex<float>, std_string_String> =         │

00:02:14 #3638 [Verbose] > │ method9(v0, v6, v7)                                                          │

00:02:14 #3639 [Verbose] > │     let v9 : num_complex_Complex<float> = method33(v0, v5)                   │

00:02:14 #3640 [Verbose] > │     let v10 : string = "v8.ok()"                                             │

00:02:14 #3641 [Verbose] > │     let v11 : num_complex_Complex<float> option =                            │

00:02:14 #3642 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10                                   │

00:02:14 #3643 [Verbose] > │     let v12 : (num_complex_Complex<float> -> US0) = closure5()               │

00:02:14 #3644 [Verbose] > │     let v13 : US0 = US0_0                                                    │

00:02:14 #3645 [Verbose] > │     let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13         │

00:02:14 #3646 [Verbose] > │     let v15 : string = "f64::NAN"                                            │

00:02:14 #3647 [Verbose] > │     let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15             │

00:02:14 #3648 [Verbose] > │     let v17 : string = "f64::NAN"                                            │

00:02:14 #3649 [Verbose] > │     let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17             │

00:02:14 #3650 [Verbose] > │     let v19 : float = method31(v16)                                          │

00:02:14 #3651 [Verbose] > │     let v20 : float = method3(v19)                                           │

00:02:14 #3652 [Verbose] > │     let v21 : float = method32(v18)                                          │

00:02:14 #3653 [Verbose] > │     let v22 : string = "num_complex::Complex::new(v20, v21)"                 │

00:02:14 #3654 [Verbose] > │     let v23 : num_complex_Complex<float> =                                   │

00:02:14 #3655 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22                                   │

00:02:14 #3656 [Verbose] > │     let v26 : num_complex_Complex<float> =                                   │

00:02:14 #3657 [Verbose] > │         match v14 with                                                       │

00:02:14 #3658 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:14 #3659 [Verbose] > │             v23                                                              │

00:02:14 #3660 [Verbose] > │         | US0_1(v24) -> (* Some *)                                           │

00:02:14 #3661 [Verbose] > │             v24                                                              │

00:02:14 #3662 [Verbose] > │     let v27 : num_complex_Complex<float> = method13(v5)                      │

00:02:14 #3663 [Verbose] > │     let v28 : string = "v27.re"                                              │

00:02:14 #3664 [Verbose] > │     let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28             │

00:02:14 #3665 [Verbose] > │     let v30 : num_complex_Complex<float> = method14(v5)                      │

00:02:14 #3666 [Verbose] > │     let v31 : string = "v30.im"                                              │

00:02:14 #3667 [Verbose] > │     let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31             │

00:02:14 #3668 [Verbose] > │     let v33 : float =  -v32                                                  │

00:02:14 #3669 [Verbose] > │     let v34 : float = method31(v29)                                          │

00:02:14 #3670 [Verbose] > │     let v35 : float = method3(v34)                                           │

00:02:14 #3671 [Verbose] > │     let v36 : float = method32(v33)                                          │

00:02:14 #3672 [Verbose] > │     let v37 : string = "num_complex::Complex::new(v35, v36)"                 │

00:02:14 #3673 [Verbose] > │     let v38 : num_complex_Complex<float> =                                   │

00:02:14 #3674 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37                                   │

00:02:14 #3675 [Verbose] > │     let v39 : string = $"        s = mpmath.zeta(s)"                         │

00:02:14 #3676 [Verbose] > │     let v40 : num_complex_Complex<float> = method8(v38)                      │

00:02:14 #3677 [Verbose] > │     let v41 : Result<num_complex_Complex<float>, std_string_String> =        │

00:02:14 #3678 [Verbose] > │ method9(v0, v39, v40)                                                        │

00:02:14 #3679 [Verbose] > │     let v42 : num_complex_Complex<float> = method33(v0, v38)                 │

00:02:14 #3680 [Verbose] > │     let v43 : string = "v41.ok()"                                            │

00:02:14 #3681 [Verbose] > │     let v44 : num_complex_Complex<float> option =                            │

00:02:14 #3682 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v43                                   │

00:02:14 #3683 [Verbose] > │     let v45 : US0 = US0_0                                                    │

00:02:14 #3684 [Verbose] > │     let v46 : US0 = v44 |> Option.map v12 |> Option.defaultValue v45         │

00:02:14 #3685 [Verbose] > │     let v47 : string = "f64::NAN"                                            │

00:02:14 #3686 [Verbose] > │     let v48 : float = Fable.Core.RustInterop.emitRustExpr () v47             │

00:02:14 #3687 [Verbose] > │     let v49 : string = "f64::NAN"                                            │

00:02:14 #3688 [Verbose] > │     let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49             │

00:02:14 #3689 [Verbose] > │     let v51 : float = method31(v48)                                          │

00:02:14 #3690 [Verbose] > │     let v52 : float = method3(v51)                                           │

00:02:14 #3691 [Verbose] > │     let v53 : float = method32(v50)                                          │

00:02:14 #3692 [Verbose] > │     let v54 : string = "num_complex::Complex::new(v52, v53)"                 │

00:02:14 #3693 [Verbose] > │     let v55 : num_complex_Complex<float> =                                   │

00:02:14 #3694 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54                                   │

00:02:14 #3695 [Verbose] > │     let v58 : num_complex_Complex<float> =                                   │

00:02:14 #3696 [Verbose] > │         match v46 with                                                       │

00:02:14 #3697 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:14 #3698 [Verbose] > │             v55                                                              │

00:02:14 #3699 [Verbose] > │         | US0_1(v56) -> (* Some *)                                           │

00:02:14 #3700 [Verbose] > │             v56                                                              │

00:02:14 #3701 [Verbose] > │     let v59 : string = "v58.conj()"                                          │

00:02:14 #3702 [Verbose] > │     let v60 : num_complex_Complex<float> =                                   │

00:02:14 #3703 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v59                                   │

00:02:14 #3704 [Verbose] > │     let v61 : num_complex_Complex<float> = method13(v26)                     │

00:02:14 #3705 [Verbose] > │     let v62 : string = "v61.re"                                              │

00:02:14 #3706 [Verbose] > │     let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62             │

00:02:14 #3707 [Verbose] > │     let v64 : num_complex_Complex<float> = method13(v60)                     │

00:02:14 #3708 [Verbose] > │     let v65 : string = "v64.re"                                              │

00:02:14 #3709 [Verbose] > │     let v66 : float = Fable.Core.RustInterop.emitRustExpr () v65             │

00:02:14 #3710 [Verbose] > │     let v67 : string = $"%A{v63}"                                            │

00:02:14 #3711 [Verbose] > │     System.Console.WriteLine v67                                             │

00:02:14 #3712 [Verbose] > │     let v68 : bool = v63 = v66                                               │

00:02:14 #3713 [Verbose] > │     let v70 : bool =                                                         │

00:02:14 #3714 [Verbose] > │         if v68 then                                                          │

00:02:14 #3715 [Verbose] > │             true                                                             │

00:02:14 #3716 [Verbose] > │         else                                                                 │

00:02:14 #3717 [Verbose] > │             method43(v68)                                                    │

00:02:14 #3718 [Verbose] > │     let v71 : string = $"__expect / actual: %A{v63} / expected: %A{v66}"     │

00:02:14 #3719 [Verbose] > │     let v72 : bool = v70 = false                                             │

00:02:14 #3720 [Verbose] > │     if v72 then                                                              │

00:02:14 #3721 [Verbose] > │         failwith<unit> v71                                                   │

00:02:14 #3722 [Verbose] > │     let v73 : num_complex_Complex<float> = method14(v26)                     │

00:02:14 #3723 [Verbose] > │     let v74 : string = "v73.im"                                              │

00:02:14 #3724 [Verbose] > │     let v75 : float = Fable.Core.RustInterop.emitRustExpr () v74             │

00:02:14 #3725 [Verbose] > │     let v76 : num_complex_Complex<float> = method14(v60)                     │

00:02:14 #3726 [Verbose] > │     let v77 : string = "v76.im"                                              │

00:02:14 #3727 [Verbose] > │     let v78 : float = Fable.Core.RustInterop.emitRustExpr () v77             │

00:02:14 #3728 [Verbose] > │     let v79 : string = $"%A{v75}"                                            │

00:02:14 #3729 [Verbose] > │     System.Console.WriteLine v79                                             │

00:02:14 #3730 [Verbose] > │     let v80 : bool = v75 = v78                                               │

00:02:14 #3731 [Verbose] > │     let v82 : bool =                                                         │

00:02:14 #3732 [Verbose] > │         if v80 then                                                          │

00:02:14 #3733 [Verbose] > │             true                                                             │

00:02:14 #3734 [Verbose] > │         else                                                                 │

00:02:14 #3735 [Verbose] > │             method43(v80)                                                    │

00:02:14 #3736 [Verbose] > │     let v83 : string = $"__expect / actual: %A{v75} / expected: %A{v78}"     │

00:02:14 #3737 [Verbose] > │     let v84 : bool = v82 = false                                             │

00:02:14 #3738 [Verbose] > │     if v84 then                                                              │

00:02:14 #3739 [Verbose] > │         failwith<unit> v83                                                   │

00:02:14 #3740 [Verbose] > │ and method68 () : unit =                                                     │

00:02:14 #3741 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3742 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3743 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3744 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3745 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3746 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3747 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3748 [Verbose] > │     method69(v3)                                                             │

00:02:14 #3749 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3750 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3751 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3752 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3753 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3754 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3755 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3756 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3757 [Verbose] > │ () v8                                                                        │

00:02:14 #3758 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3759 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3760 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3761 [Verbose] > │     ()                                                                       │

00:02:14 #3762 [Verbose] > │ and method73 () : float =                                                    │

00:02:14 #3763 [Verbose] > │     0.01                                                                     │

00:02:14 #3764 [Verbose] > │ and method74 () : float =                                                    │

00:02:14 #3765 [Verbose] > │     0.01                                                                     │

00:02:14 #3766 [Verbose] > │ and method72 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3767 [Verbose] > │     let v1 : float = method73()                                              │

00:02:14 #3768 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #3769 [Verbose] > │     let v3 : float = method74()                                              │

00:02:14 #3770 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #3771 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #3772 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #3773 [Verbose] > │     let v6 : string = $"        s = mpmath.zeta(s)"                          │

00:02:14 #3774 [Verbose] > │     let v7 : num_complex_Complex<float> = method8(v5)                        │

00:02:14 #3775 [Verbose] > │     let v8 : Result<num_complex_Complex<float>, std_string_String> =         │

00:02:14 #3776 [Verbose] > │ method9(v0, v6, v7)                                                          │

00:02:14 #3777 [Verbose] > │     let v9 : num_complex_Complex<float> = method33(v0, v5)                   │

00:02:14 #3778 [Verbose] > │     let v10 : string = "v8.ok()"                                             │

00:02:14 #3779 [Verbose] > │     let v11 : num_complex_Complex<float> option =                            │

00:02:14 #3780 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10                                   │

00:02:14 #3781 [Verbose] > │     let v12 : (num_complex_Complex<float> -> US0) = closure5()               │

00:02:14 #3782 [Verbose] > │     let v13 : US0 = US0_0                                                    │

00:02:14 #3783 [Verbose] > │     let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13         │

00:02:14 #3784 [Verbose] > │     let v15 : string = "f64::NAN"                                            │

00:02:14 #3785 [Verbose] > │     let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15             │

00:02:14 #3786 [Verbose] > │     let v17 : string = "f64::NAN"                                            │

00:02:14 #3787 [Verbose] > │     let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17             │

00:02:14 #3788 [Verbose] > │     let v19 : float = method31(v16)                                          │

00:02:14 #3789 [Verbose] > │     let v20 : float = method3(v19)                                           │

00:02:14 #3790 [Verbose] > │     let v21 : float = method32(v18)                                          │

00:02:14 #3791 [Verbose] > │     let v22 : string = "num_complex::Complex::new(v20, v21)"                 │

00:02:14 #3792 [Verbose] > │     let v23 : num_complex_Complex<float> =                                   │

00:02:14 #3793 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22                                   │

00:02:14 #3794 [Verbose] > │     let v26 : num_complex_Complex<float> =                                   │

00:02:14 #3795 [Verbose] > │         match v14 with                                                       │

00:02:14 #3796 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:02:14 #3797 [Verbose] > │             v23                                                              │

00:02:14 #3798 [Verbose] > │         | US0_1(v24) -> (* Some *)                                           │

00:02:14 #3799 [Verbose] > │             v24                                                              │

00:02:14 #3800 [Verbose] > │     let v27 : num_complex_Complex<float> = method13(v26)                     │

00:02:14 #3801 [Verbose] > │     let v28 : string = "v27.re"                                              │

00:02:14 #3802 [Verbose] > │     let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28             │

00:02:14 #3803 [Verbose] > │     let v30 : string = $"%A{v29}"                                            │

00:02:14 #3804 [Verbose] > │     System.Console.WriteLine v30                                             │

00:02:14 #3805 [Verbose] > │     let v31 : bool = v29 < infinity                                          │

00:02:14 #3806 [Verbose] > │     let v33 : bool =                                                         │

00:02:14 #3807 [Verbose] > │         if v31 then                                                          │

00:02:14 #3808 [Verbose] > │             true                                                             │

00:02:14 #3809 [Verbose] > │         else                                                                 │

00:02:14 #3810 [Verbose] > │             method43(v31)                                                    │

00:02:14 #3811 [Verbose] > │     let v34 : string = $"__expect / actual: %A{v29} / expected:              │

00:02:14 #3812 [Verbose] > │ %A{infinity}"                                                                │

00:02:14 #3813 [Verbose] > │     let v35 : bool = v33 = false                                             │

00:02:14 #3814 [Verbose] > │     if v35 then                                                              │

00:02:14 #3815 [Verbose] > │         failwith<unit> v34                                                   │

00:02:14 #3816 [Verbose] > │     let v36 : num_complex_Complex<float> = method14(v26)                     │

00:02:14 #3817 [Verbose] > │     let v37 : string = "v36.im"                                              │

00:02:14 #3818 [Verbose] > │     let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37             │

00:02:14 #3819 [Verbose] > │     let v39 : string = $"%A{v38}"                                            │

00:02:14 #3820 [Verbose] > │     System.Console.WriteLine v39                                             │

00:02:14 #3821 [Verbose] > │     let v40 : bool = v38 < infinity                                          │

00:02:14 #3822 [Verbose] > │     let v42 : bool =                                                         │

00:02:14 #3823 [Verbose] > │         if v40 then                                                          │

00:02:14 #3824 [Verbose] > │             true                                                             │

00:02:14 #3825 [Verbose] > │         else                                                                 │

00:02:14 #3826 [Verbose] > │             method43(v40)                                                    │

00:02:14 #3827 [Verbose] > │     let v43 : string = $"__expect / actual: %A{v38} / expected:              │

00:02:14 #3828 [Verbose] > │ %A{infinity}"                                                                │

00:02:14 #3829 [Verbose] > │     let v44 : bool = v42 = false                                             │

00:02:14 #3830 [Verbose] > │     if v44 then                                                              │

00:02:14 #3831 [Verbose] > │         failwith<unit> v43                                                   │

00:02:14 #3832 [Verbose] > │ and method71 () : unit =                                                     │

00:02:14 #3833 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3834 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3835 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3836 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3837 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3838 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3839 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3840 [Verbose] > │     method72(v3)                                                             │

00:02:14 #3841 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3842 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3843 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3844 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3845 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3846 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3847 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3848 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3849 [Verbose] > │ () v8                                                                        │

00:02:14 #3850 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3851 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3852 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3853 [Verbose] > │     ()                                                                       │

00:02:14 #3854 [Verbose] > │ and method77 () : (float []) =                                               │

00:02:14 #3855 [Verbose] > │     let v0 : (float []) = [|10.0; 20.0; 30.0; 40.0; 50.0; 60.0; 70.0; 80.0;  │

00:02:14 #3856 [Verbose] > │ 90.0; 100.0|]                                                                │

00:02:14 #3857 [Verbose] > │     let v1 : (float []) = method65(v0)                                       │

00:02:14 #3858 [Verbose] > │     v1                                                                       │

00:02:14 #3859 [Verbose] > │ and method78 (v0 : bool) : bool =                                            │

00:02:14 #3860 [Verbose] > │     let v1 : bool = v0 = false                                               │

00:02:14 #3861 [Verbose] > │     v1                                                                       │

00:02:14 #3862 [Verbose] > │ and method76 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3863 [Verbose] > │     let v1 : (float []) = method77()                                         │

00:02:14 #3864 [Verbose] > │     let v2 : int32 = v1.Length                                               │

00:02:14 #3865 [Verbose] > │     let v3 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:14 #3866 [Verbose] > │     while method7(v2, v3) do                                                 │

00:02:14 #3867 [Verbose] > │         let v5 : int32 = v3.l0                                               │

00:02:14 #3868 [Verbose] > │         let v6 : float = v1.[int v5]                                         │

00:02:14 #3869 [Verbose] > │         let v7 : float = method35()                                          │

00:02:14 #3870 [Verbose] > │         let v8 : float = method3(v7)                                         │

00:02:14 #3871 [Verbose] > │         let v9 : float = method32(v6)                                        │

00:02:14 #3872 [Verbose] > │         let v10 : string = "num_complex::Complex::new(v8, v9)"               │

00:02:14 #3873 [Verbose] > │         let v11 : num_complex_Complex<float> =                               │

00:02:14 #3874 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10                                   │

00:02:14 #3875 [Verbose] > │         let v12 : string = $"        s = mpmath.zeta(s)"                     │

00:02:14 #3876 [Verbose] > │         let v13 : num_complex_Complex<float> = method8(v11)                  │

00:02:14 #3877 [Verbose] > │         let v14 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #3878 [Verbose] > │ method9(v0, v12, v13)                                                        │

00:02:14 #3879 [Verbose] > │         let v15 : num_complex_Complex<float> = method33(v0, v11)             │

00:02:14 #3880 [Verbose] > │         let v16 : string = "v14.ok()"                                        │

00:02:14 #3881 [Verbose] > │         let v17 : num_complex_Complex<float> option =                        │

00:02:14 #3882 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v16                                   │

00:02:14 #3883 [Verbose] > │         let v18 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #3884 [Verbose] > │         let v19 : US0 = US0_0                                                │

00:02:14 #3885 [Verbose] > │         let v20 : US0 = v17 |> Option.map v18 |> Option.defaultValue v19     │

00:02:14 #3886 [Verbose] > │         let v21 : string = "f64::NAN"                                        │

00:02:14 #3887 [Verbose] > │         let v22 : float = Fable.Core.RustInterop.emitRustExpr () v21         │

00:02:14 #3888 [Verbose] > │         let v23 : string = "f64::NAN"                                        │

00:02:14 #3889 [Verbose] > │         let v24 : float = Fable.Core.RustInterop.emitRustExpr () v23         │

00:02:14 #3890 [Verbose] > │         let v25 : float = method31(v22)                                      │

00:02:14 #3891 [Verbose] > │         let v26 : float = method3(v25)                                       │

00:02:14 #3892 [Verbose] > │         let v27 : float = method32(v24)                                      │

00:02:14 #3893 [Verbose] > │         let v28 : string = "num_complex::Complex::new(v26, v27)"             │

00:02:14 #3894 [Verbose] > │         let v29 : num_complex_Complex<float> =                               │

00:02:14 #3895 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v28                                   │

00:02:14 #3896 [Verbose] > │         let v32 : num_complex_Complex<float> =                               │

00:02:14 #3897 [Verbose] > │             match v20 with                                                   │

00:02:14 #3898 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #3899 [Verbose] > │                 v29                                                          │

00:02:14 #3900 [Verbose] > │             | US0_1(v30) -> (* Some *)                                       │

00:02:14 #3901 [Verbose] > │                 v30                                                          │

00:02:14 #3902 [Verbose] > │         let v33 : num_complex_Complex<float> = method13(v32)                 │

00:02:14 #3903 [Verbose] > │         let v34 : string = "v33.re"                                          │

00:02:14 #3904 [Verbose] > │         let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34         │

00:02:14 #3905 [Verbose] > │         let v36 : string = $"%A{v35}"                                        │

00:02:14 #3906 [Verbose] > │         System.Console.WriteLine v36                                         │

00:02:14 #3907 [Verbose] > │         let v37 : bool = v35 = 0.0                                           │

00:02:14 #3908 [Verbose] > │         let v38 : bool = method78(v37)                                       │

00:02:14 #3909 [Verbose] > │         let v40 : bool =                                                     │

00:02:14 #3910 [Verbose] > │             if v38 then                                                      │

00:02:14 #3911 [Verbose] > │                 true                                                         │

00:02:14 #3912 [Verbose] > │             else                                                             │

00:02:14 #3913 [Verbose] > │                 method43(v38)                                                │

00:02:14 #3914 [Verbose] > │         let v41 : string = $"__expect / actual: %A{v35} / expected: %A{0.0}" │

00:02:14 #3915 [Verbose] > │         let v42 : bool = v40 = false                                         │

00:02:14 #3916 [Verbose] > │         if v42 then                                                          │

00:02:14 #3917 [Verbose] > │             failwith<unit> v41                                               │

00:02:14 #3918 [Verbose] > │         let v43 : num_complex_Complex<float> = method14(v32)                 │

00:02:14 #3919 [Verbose] > │         let v44 : string = "v43.im"                                          │

00:02:14 #3920 [Verbose] > │         let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44         │

00:02:14 #3921 [Verbose] > │         let v46 : string = $"%A{v45}"                                        │

00:02:14 #3922 [Verbose] > │         System.Console.WriteLine v46                                         │

00:02:14 #3923 [Verbose] > │         let v47 : bool = v45 = 0.0                                           │

00:02:14 #3924 [Verbose] > │         let v48 : bool = method78(v47)                                       │

00:02:14 #3925 [Verbose] > │         let v50 : bool =                                                     │

00:02:14 #3926 [Verbose] > │             if v48 then                                                      │

00:02:14 #3927 [Verbose] > │                 true                                                         │

00:02:14 #3928 [Verbose] > │             else                                                             │

00:02:14 #3929 [Verbose] > │                 method43(v48)                                                │

00:02:14 #3930 [Verbose] > │         let v51 : string = $"__expect / actual: %A{v45} / expected: %A{0.0}" │

00:02:14 #3931 [Verbose] > │         let v52 : bool = v50 = false                                         │

00:02:14 #3932 [Verbose] > │         if v52 then                                                          │

00:02:14 #3933 [Verbose] > │             failwith<unit> v51                                               │

00:02:14 #3934 [Verbose] > │         let v53 : int32 = v5 + 1                                             │

00:02:14 #3935 [Verbose] > │         v3.l0 <- v53                                                         │

00:02:14 #3936 [Verbose] > │         ()                                                                   │

00:02:14 #3937 [Verbose] > │     ()                                                                       │

00:02:14 #3938 [Verbose] > │ and method75 () : unit =                                                     │

00:02:14 #3939 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:14 #3940 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:14 #3941 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:14 #3942 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:14 #3943 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:14 #3944 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:14 #3945 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:14 #3946 [Verbose] > │     method76(v3)                                                             │

00:02:14 #3947 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:14 #3948 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:14 #3949 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:14 #3950 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:14 #3951 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:14 #3952 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:14 #3953 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:14 #3954 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:14 #3955 [Verbose] > │ () v8                                                                        │

00:02:14 #3956 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:14 #3957 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:14 #3958 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:14 #3959 [Verbose] > │     ()                                                                       │

00:02:14 #3960 [Verbose] > │ and method81 () : float =                                                    │

00:02:14 #3961 [Verbose] > │     0.75                                                                     │

00:02:14 #3962 [Verbose] > │ and method82 () : float =                                                    │

00:02:14 #3963 [Verbose] > │     20.5                                                                     │

00:02:14 #3964 [Verbose] > │ and method83 () : float =                                                    │

00:02:14 #3965 [Verbose] > │     1.25                                                                     │

00:02:14 #3966 [Verbose] > │ and method84 () : float =                                                    │

00:02:14 #3967 [Verbose] > │     30.1                                                                     │

00:02:14 #3968 [Verbose] > │ and method85 () : float =                                                    │

00:02:14 #3969 [Verbose] > │     0.25                                                                     │

00:02:14 #3970 [Verbose] > │ and method86 () : float =                                                    │

00:02:14 #3971 [Verbose] > │     40.0                                                                     │

00:02:14 #3972 [Verbose] > │ and method87 () : float =                                                    │

00:02:14 #3973 [Verbose] > │     50.0                                                                     │

00:02:14 #3974 [Verbose] > │ and method80 (v0 : pyo3_Python) : unit =                                     │

00:02:14 #3975 [Verbose] > │     let v1 : float = method55()                                              │

00:02:14 #3976 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:14 #3977 [Verbose] > │     let v3 : float = method56()                                              │

00:02:14 #3978 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:14 #3979 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:14 #3980 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:14 #3981 [Verbose] > │     let v6 : float = method81()                                              │

00:02:14 #3982 [Verbose] > │     let v7 : float = method3(v6)                                             │

00:02:14 #3983 [Verbose] > │     let v8 : float = method82()                                              │

00:02:14 #3984 [Verbose] > │     let v9 : string = "num_complex::Complex::new(v7, v8)"                    │

00:02:14 #3985 [Verbose] > │     let v10 : num_complex_Complex<float> =                                   │

00:02:14 #3986 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9                                    │

00:02:14 #3987 [Verbose] > │     let v11 : float = method83()                                             │

00:02:14 #3988 [Verbose] > │     let v12 : float = method3(v11)                                           │

00:02:14 #3989 [Verbose] > │     let v13 : float = method84()                                             │

00:02:14 #3990 [Verbose] > │     let v14 : string = "num_complex::Complex::new(v12, v13)"                 │

00:02:14 #3991 [Verbose] > │     let v15 : num_complex_Complex<float> =                                   │

00:02:14 #3992 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14                                   │

00:02:14 #3993 [Verbose] > │     let v16 : float = method85()                                             │

00:02:14 #3994 [Verbose] > │     let v17 : float = method3(v16)                                           │

00:02:14 #3995 [Verbose] > │     let v18 : float = method86()                                             │

00:02:14 #3996 [Verbose] > │     let v19 : string = "num_complex::Complex::new(v17, v18)"                 │

00:02:14 #3997 [Verbose] > │     let v20 : num_complex_Complex<float> =                                   │

00:02:14 #3998 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19                                   │

00:02:14 #3999 [Verbose] > │     let v21 : float = method38()                                             │

00:02:14 #4000 [Verbose] > │     let v22 : float = method3(v21)                                           │

00:02:14 #4001 [Verbose] > │     let v23 : float = method87()                                             │

00:02:14 #4002 [Verbose] > │     let v24 : string = "num_complex::Complex::new(v22, v23)"                 │

00:02:14 #4003 [Verbose] > │     let v25 : num_complex_Complex<float> =                                   │

00:02:14 #4004 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v24                                   │

00:02:14 #4005 [Verbose] > │     let v26 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20; v25|]   │

00:02:14 #4006 [Verbose] > │     let v27 : (num_complex_Complex<float> []) = method62(v26)                │

00:02:14 #4007 [Verbose] > │     let v28 : int32 = v27.Length                                             │

00:02:14 #4008 [Verbose] > │     let v29 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:14 #4009 [Verbose] > │     while method7(v28, v29) do                                               │

00:02:14 #4010 [Verbose] > │         let v31 : int32 = v29.l0                                             │

00:02:14 #4011 [Verbose] > │         let v32 : num_complex_Complex<float> = v27.[int v31]                 │

00:02:14 #4012 [Verbose] > │         let v33 : string = $"        s = mpmath.zeta(s)"                     │

00:02:14 #4013 [Verbose] > │         let v34 : num_complex_Complex<float> = method8(v32)                  │

00:02:14 #4014 [Verbose] > │         let v35 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:14 #4015 [Verbose] > │ method9(v0, v33, v34)                                                        │

00:02:14 #4016 [Verbose] > │         let v36 : num_complex_Complex<float> = method33(v0, v32)             │

00:02:14 #4017 [Verbose] > │         let v37 : string = "v35.ok()"                                        │

00:02:14 #4018 [Verbose] > │         let v38 : num_complex_Complex<float> option =                        │

00:02:14 #4019 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37                                   │

00:02:14 #4020 [Verbose] > │         let v39 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:14 #4021 [Verbose] > │         let v40 : US0 = US0_0                                                │

00:02:14 #4022 [Verbose] > │         let v41 : US0 = v38 |> Option.map v39 |> Option.defaultValue v40     │

00:02:14 #4023 [Verbose] > │         let v42 : string = "f64::NAN"                                        │

00:02:14 #4024 [Verbose] > │         let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42         │

00:02:14 #4025 [Verbose] > │         let v44 : string = "f64::NAN"                                        │

00:02:14 #4026 [Verbose] > │         let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44         │

00:02:14 #4027 [Verbose] > │         let v46 : float = method31(v43)                                      │

00:02:14 #4028 [Verbose] > │         let v47 : float = method3(v46)                                       │

00:02:14 #4029 [Verbose] > │         let v48 : float = method32(v45)                                      │

00:02:14 #4030 [Verbose] > │         let v49 : string = "num_complex::Complex::new(v47, v48)"             │

00:02:14 #4031 [Verbose] > │         let v50 : num_complex_Complex<float> =                               │

00:02:14 #4032 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v49                                   │

00:02:14 #4033 [Verbose] > │         let v53 : num_complex_Complex<float> =                               │

00:02:14 #4034 [Verbose] > │             match v41 with                                                   │

00:02:14 #4035 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:14 #4036 [Verbose] > │                 v50                                                          │

00:02:14 #4037 [Verbose] > │             | US0_1(v51) -> (* Some *)                                       │

00:02:14 #4038 [Verbose] > │                 v51                                                          │

00:02:14 #4039 [Verbose] > │         let v54 : num_complex_Complex<float> = method13(v53)                 │

00:02:14 #4040 [Verbose] > │         let v55 : string = "v54.re"                                          │

00:02:14 #4041 [Verbose] > │         let v56 : float = Fable.Core.RustInterop.emitRustExpr () v55         │

00:02:14 #4042 [Verbose] > │         let v57 : string = $"%A{v56}"                                        │

00:02:14 #4043 [Verbose] > │         System.Console.WriteLine v57                                         │

00:02:14 #4044 [Verbose] > │         let v58 : bool = v56 = 0.0                                           │

00:02:14 #4045 [Verbose] > │         let v59 : bool = method78(v58)                                       │

00:02:14 #4046 [Verbose] > │         let v61 : bool =                                                     │

00:02:14 #4047 [Verbose] > │             if v59 then                                                      │

00:02:14 #4048 [Verbose] > │                 true                                                         │

00:02:14 #4049 [Verbose] > │             else                                                             │

00:02:14 #4050 [Verbose] > │                 method43(v59)                                                │

00:02:14 #4051 [Verbose] > │         let v62 : string = $"__expect / actual: %A{v56} / expected: %A{0.0}" │

00:02:14 #4052 [Verbose] > │         let v63 : bool = v61 = false                                         │

00:02:14 #4053 [Verbose] > │         if v63 then                                                          │

00:02:14 #4054 [Verbose] > │             failwith<unit> v62                                               │

00:02:14 #4055 [Verbose] > │         let v64 : num_complex_Complex<float> = method14(v53)                 │

00:02:15 #4056 [Verbose] > │         let v65 : string = "v64.im"                                          │

00:02:15 #4057 [Verbose] > │         let v66 : float = Fable.Core.RustInterop.emitRustExpr () v65         │

00:02:15 #4058 [Verbose] > │         let v67 : string = $"%A{v66}"                                        │

00:02:15 #4059 [Verbose] > │         System.Console.WriteLine v67                                         │

00:02:15 #4060 [Verbose] > │         let v68 : bool = v66 = 0.0                                           │

00:02:15 #4061 [Verbose] > │         let v69 : bool = method78(v68)                                       │

00:02:15 #4062 [Verbose] > │         let v71 : bool =                                                     │

00:02:15 #4063 [Verbose] > │             if v69 then                                                      │

00:02:15 #4064 [Verbose] > │                 true                                                         │

00:02:15 #4065 [Verbose] > │             else                                                             │

00:02:15 #4066 [Verbose] > │                 method43(v69)                                                │

00:02:15 #4067 [Verbose] > │         let v72 : string = $"__expect / actual: %A{v66} / expected: %A{0.0}" │

00:02:15 #4068 [Verbose] > │         let v73 : bool = v71 = false                                         │

00:02:15 #4069 [Verbose] > │         if v73 then                                                          │

00:02:15 #4070 [Verbose] > │             failwith<unit> v72                                               │

00:02:15 #4071 [Verbose] > │         let v74 : int32 = v31 + 1                                            │

00:02:15 #4072 [Verbose] > │         v29.l0 <- v74                                                        │

00:02:15 #4073 [Verbose] > │         ()                                                                   │

00:02:15 #4074 [Verbose] > │     ()                                                                       │

00:02:15 #4075 [Verbose] > │ and method79 () : unit =                                                     │

00:02:15 #4076 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:15 #4077 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:15 #4078 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:15 #4079 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:15 #4080 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:15 #4081 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:15 #4082 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:15 #4083 [Verbose] > │     method80(v3)                                                             │

00:02:15 #4084 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:15 #4085 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:15 #4086 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:15 #4087 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:15 #4088 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:15 #4089 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:15 #4090 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:15 #4091 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:15 #4092 [Verbose] > │ () v8                                                                        │

00:02:15 #4093 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:15 #4094 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:15 #4095 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:15 #4096 [Verbose] > │     ()                                                                       │

00:02:15 #4097 [Verbose] > │ and method90 () : float =                                                    │

00:02:15 #4098 [Verbose] > │     3.0                                                                      │

00:02:15 #4099 [Verbose] > │ and method91 () : float =                                                    │

00:02:15 #4100 [Verbose] > │     4.0                                                                      │

00:02:15 #4101 [Verbose] > │ and method92 () : float =                                                    │

00:02:15 #4102 [Verbose] > │     2.5                                                                      │

00:02:15 #4103 [Verbose] > │ and method93 () : float =                                                    │

00:02:15 #4104 [Verbose] > │     -3.5                                                                     │

00:02:15 #4105 [Verbose] > │ and method94 () : float =                                                    │

00:02:15 #4106 [Verbose] > │     1.5                                                                      │

00:02:15 #4107 [Verbose] > │ and method95 () : float =                                                    │

00:02:15 #4108 [Verbose] > │     2.5                                                                      │

00:02:15 #4109 [Verbose] > │ and method89 (v0 : pyo3_Python) : unit =                                     │

00:02:15 #4110 [Verbose] > │     let v1 : float = method90()                                              │

00:02:15 #4111 [Verbose] > │     let v2 : float = method3(v1)                                             │

00:02:15 #4112 [Verbose] > │     let v3 : float = method91()                                              │

00:02:15 #4113 [Verbose] > │     let v4 : string = "num_complex::Complex::new(v2, v3)"                    │

00:02:15 #4114 [Verbose] > │     let v5 : num_complex_Complex<float> =                                    │

00:02:15 #4115 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4                                    │

00:02:15 #4116 [Verbose] > │     let v6 : float = method92()                                              │

00:02:15 #4117 [Verbose] > │     let v7 : float = method3(v6)                                             │

00:02:15 #4118 [Verbose] > │     let v8 : float = method93()                                              │

00:02:15 #4119 [Verbose] > │     let v9 : string = "num_complex::Complex::new(v7, v8)"                    │

00:02:15 #4120 [Verbose] > │     let v10 : num_complex_Complex<float> =                                   │

00:02:15 #4121 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9                                    │

00:02:15 #4122 [Verbose] > │     let v11 : float = method94()                                             │

00:02:15 #4123 [Verbose] > │     let v12 : float = method3(v11)                                           │

00:02:15 #4124 [Verbose] > │     let v13 : float = method95()                                             │

00:02:15 #4125 [Verbose] > │     let v14 : string = "num_complex::Complex::new(v12, v13)"                 │

00:02:15 #4126 [Verbose] > │     let v15 : num_complex_Complex<float> =                                   │

00:02:15 #4127 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14                                   │

00:02:15 #4128 [Verbose] > │     let v16 : float = method55()                                             │

00:02:15 #4129 [Verbose] > │     let v17 : float = method3(v16)                                           │

00:02:15 #4130 [Verbose] > │     let v18 : float = method56()                                             │

00:02:15 #4131 [Verbose] > │     let v19 : string = "num_complex::Complex::new(v17, v18)"                 │

00:02:15 #4132 [Verbose] > │     let v20 : num_complex_Complex<float> =                                   │

00:02:15 #4133 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19                                   │

00:02:15 #4134 [Verbose] > │     let v21 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20|]        │

00:02:15 #4135 [Verbose] > │     let v22 : (num_complex_Complex<float> []) = method62(v21)                │

00:02:15 #4136 [Verbose] > │     let v23 : int32 = v22.Length                                             │

00:02:15 #4137 [Verbose] > │     let v24 : Mut0 = {l0 = 0} : Mut0                                         │

00:02:15 #4138 [Verbose] > │     while method7(v23, v24) do                                               │

00:02:15 #4139 [Verbose] > │         let v26 : int32 = v24.l0                                             │

00:02:15 #4140 [Verbose] > │         let v27 : num_complex_Complex<float> = v22.[int v26]                 │

00:02:15 #4141 [Verbose] > │         let v28 : string = $"        s = mpmath.zeta(s)"                     │

00:02:15 #4142 [Verbose] > │         let v29 : num_complex_Complex<float> = method8(v27)                  │

00:02:15 #4143 [Verbose] > │         let v30 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:15 #4144 [Verbose] > │ method9(v0, v28, v29)                                                        │

00:02:15 #4145 [Verbose] > │         let v31 : num_complex_Complex<float> = method33(v0, v27)             │

00:02:15 #4146 [Verbose] > │         let v32 : string = "v30.ok()"                                        │

00:02:15 #4147 [Verbose] > │         let v33 : num_complex_Complex<float> option =                        │

00:02:15 #4148 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v32                                   │

00:02:15 #4149 [Verbose] > │         let v34 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:15 #4150 [Verbose] > │         let v35 : US0 = US0_0                                                │

00:02:15 #4151 [Verbose] > │         let v36 : US0 = v33 |> Option.map v34 |> Option.defaultValue v35     │

00:02:15 #4152 [Verbose] > │         let v37 : string = "f64::NAN"                                        │

00:02:15 #4153 [Verbose] > │         let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37         │

00:02:15 #4154 [Verbose] > │         let v39 : string = "f64::NAN"                                        │

00:02:15 #4155 [Verbose] > │         let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39         │

00:02:15 #4156 [Verbose] > │         let v41 : float = method31(v38)                                      │

00:02:15 #4157 [Verbose] > │         let v42 : float = method3(v41)                                       │

00:02:15 #4158 [Verbose] > │         let v43 : float = method32(v40)                                      │

00:02:15 #4159 [Verbose] > │         let v44 : string = "num_complex::Complex::new(v42, v43)"             │

00:02:15 #4160 [Verbose] > │         let v45 : num_complex_Complex<float> =                               │

00:02:15 #4161 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v44                                   │

00:02:15 #4162 [Verbose] > │         let v48 : num_complex_Complex<float> =                               │

00:02:15 #4163 [Verbose] > │             match v36 with                                                   │

00:02:15 #4164 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:15 #4165 [Verbose] > │                 v45                                                          │

00:02:15 #4166 [Verbose] > │             | US0_1(v46) -> (* Some *)                                       │

00:02:15 #4167 [Verbose] > │                 v46                                                          │

00:02:15 #4168 [Verbose] > │         let v49 : float = method2()                                          │

00:02:15 #4169 [Verbose] > │         let v50 : float = method3(v49)                                       │

00:02:15 #4170 [Verbose] > │         let v51 : float = method4()                                          │

00:02:15 #4171 [Verbose] > │         let v52 : string = "num_complex::Complex::new(v50, v51)"             │

00:02:15 #4172 [Verbose] > │         let v53 : num_complex_Complex<float> =                               │

00:02:15 #4173 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v52                                   │

00:02:15 #4174 [Verbose] > │         let v54 : num_complex_Complex<float> = method39(v53)                 │

00:02:15 #4175 [Verbose] > │         let v55 : num_complex_Complex<float> = method40(v27)                 │

00:02:15 #4176 [Verbose] > │         let v56 : string = "num_complex::Complex::powc(v54, v55)"            │

00:02:15 #4177 [Verbose] > │         let v57 : num_complex_Complex<float> =                               │

00:02:15 #4178 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v56                                   │

00:02:15 #4179 [Verbose] > │         let v58 : float = method42()                                         │

00:02:15 #4180 [Verbose] > │         let v59 : float = method3(v58)                                       │

00:02:15 #4181 [Verbose] > │         let v60 : float = method4()                                          │

00:02:15 #4182 [Verbose] > │         let v61 : string = "num_complex::Complex::new(v59, v60)"             │

00:02:15 #4183 [Verbose] > │         let v62 : num_complex_Complex<float> =                               │

00:02:15 #4184 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v61                                   │

00:02:15 #4185 [Verbose] > │         let v63 : float = method38()                                         │

00:02:15 #4186 [Verbose] > │         let v64 : float = method3(v63)                                       │

00:02:15 #4187 [Verbose] > │         let v65 : float = method4()                                          │

00:02:15 #4188 [Verbose] > │         let v66 : string = "num_complex::Complex::new(v64, v65)"             │

00:02:15 #4189 [Verbose] > │         let v67 : num_complex_Complex<float> =                               │

00:02:15 #4190 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v66                                   │

00:02:15 #4191 [Verbose] > │         let v68 : string = "v27 - v67"                                       │

00:02:15 #4192 [Verbose] > │         let v69 : num_complex_Complex<float> =                               │

00:02:15 #4193 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v68                                   │

00:02:15 #4194 [Verbose] > │         let v70 : num_complex_Complex<float> = method39(v62)                 │

00:02:15 #4195 [Verbose] > │         let v71 : num_complex_Complex<float> = method40(v69)                 │

00:02:15 #4196 [Verbose] > │         let v72 : string = "num_complex::Complex::powc(v70, v71)"            │

00:02:15 #4197 [Verbose] > │         let v73 : num_complex_Complex<float> =                               │

00:02:15 #4198 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72                                   │

00:02:15 #4199 [Verbose] > │         let v74 : string = "v57 * v73"                                       │

00:02:15 #4200 [Verbose] > │         let v75 : num_complex_Complex<float> =                               │

00:02:15 #4201 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74                                   │

00:02:15 #4202 [Verbose] > │         let v76 : float = method42()                                         │

00:02:15 #4203 [Verbose] > │         let v77 : float = method3(v76)                                       │

00:02:15 #4204 [Verbose] > │         let v78 : float = method4()                                          │

00:02:15 #4205 [Verbose] > │         let v79 : string = "num_complex::Complex::new(v77, v78)"             │

00:02:15 #4206 [Verbose] > │         let v80 : num_complex_Complex<float> =                               │

00:02:15 #4207 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v79                                   │

00:02:15 #4208 [Verbose] > │         let v81 : string = "v80 * v27"                                       │

00:02:15 #4209 [Verbose] > │         let v82 : num_complex_Complex<float> =                               │

00:02:15 #4210 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v81                                   │

00:02:15 #4211 [Verbose] > │         let v83 : float = method2()                                          │

00:02:15 #4212 [Verbose] > │         let v84 : float = method3(v83)                                       │

00:02:15 #4213 [Verbose] > │         let v85 : float = method4()                                          │

00:02:15 #4214 [Verbose] > │         let v86 : string = "num_complex::Complex::new(v84, v85)"             │

00:02:15 #4215 [Verbose] > │         let v87 : num_complex_Complex<float> =                               │

00:02:15 #4216 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86                                   │

00:02:15 #4217 [Verbose] > │         let v88 : string = "v82 / v87"                                       │

00:02:15 #4218 [Verbose] > │         let v89 : num_complex_Complex<float> =                               │

00:02:15 #4219 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v88                                   │

00:02:15 #4220 [Verbose] > │         let v90 : string = "v89.sin()"                                       │

00:02:15 #4221 [Verbose] > │         let v91 : num_complex_Complex<float> =                               │

00:02:15 #4222 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v90                                   │

00:02:15 #4223 [Verbose] > │         let v92 : string = "v75 * v91"                                       │

00:02:15 #4224 [Verbose] > │         let v93 : num_complex_Complex<float> =                               │

00:02:15 #4225 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v92                                   │

00:02:15 #4226 [Verbose] > │         let v94 : float = method38()                                         │

00:02:15 #4227 [Verbose] > │         let v95 : float = method3(v94)                                       │

00:02:15 #4228 [Verbose] > │         let v96 : float = method4()                                          │

00:02:15 #4229 [Verbose] > │         let v97 : string = "num_complex::Complex::new(v95, v96)"             │

00:02:15 #4230 [Verbose] > │         let v98 : num_complex_Complex<float> =                               │

00:02:15 #4231 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v97                                   │

00:02:15 #4232 [Verbose] > │         let v99 : string = "v98 - v27"                                       │

00:02:15 #4233 [Verbose] > │         let v100 : num_complex_Complex<float> =                              │

00:02:15 #4234 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99                                   │

00:02:15 #4235 [Verbose] > │         let v101 : string = $"        s = mpmath.gamma(s)"                   │

00:02:15 #4236 [Verbose] > │         let v102 : num_complex_Complex<float> = method8(v100)                │

00:02:15 #4237 [Verbose] > │         let v103 : Result<num_complex_Complex<float>, std_string_String> =   │

00:02:15 #4238 [Verbose] > │ method41(v0, v101, v102)                                                     │

00:02:15 #4239 [Verbose] > │         let v104 : string = "v103.ok()"                                      │

00:02:15 #4240 [Verbose] > │         let v105 : num_complex_Complex<float> option =                       │

00:02:15 #4241 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v104                                  │

00:02:15 #4242 [Verbose] > │         let v106 : US0 = US0_0                                               │

00:02:15 #4243 [Verbose] > │         let v107 : US0 = v105 |> Option.map v34 |> Option.defaultValue v106  │

00:02:15 #4244 [Verbose] > │         let v108 : string = "f64::NAN"                                       │

00:02:15 #4245 [Verbose] > │         let v109 : float = Fable.Core.RustInterop.emitRustExpr () v108       │

00:02:15 #4246 [Verbose] > │         let v110 : string = "f64::NAN"                                       │

00:02:15 #4247 [Verbose] > │         let v111 : float = Fable.Core.RustInterop.emitRustExpr () v110       │

00:02:15 #4248 [Verbose] > │         let v112 : float = method31(v109)                                    │

00:02:15 #4249 [Verbose] > │         let v113 : float = method3(v112)                                     │

00:02:15 #4250 [Verbose] > │         let v114 : float = method32(v111)                                    │

00:02:15 #4251 [Verbose] > │         let v115 : string = "num_complex::Complex::new(v113, v114)"          │

00:02:15 #4252 [Verbose] > │         let v116 : num_complex_Complex<float> =                              │

00:02:15 #4253 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v115                                  │

00:02:15 #4254 [Verbose] > │         let v119 : num_complex_Complex<float> =                              │

00:02:15 #4255 [Verbose] > │             match v107 with                                                  │

00:02:15 #4256 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:15 #4257 [Verbose] > │                 v116                                                         │

00:02:15 #4258 [Verbose] > │             | US0_1(v117) -> (* Some *)                                      │

00:02:15 #4259 [Verbose] > │                 v117                                                         │

00:02:15 #4260 [Verbose] > │         let v120 : string = "v93 * v119"                                     │

00:02:15 #4261 [Verbose] > │         let v121 : num_complex_Complex<float> =                              │

00:02:15 #4262 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v120                                  │

00:02:15 #4263 [Verbose] > │         let v122 : num_complex_Complex<float> = method13(v27)                │

00:02:15 #4264 [Verbose] > │         let v123 : string = "v122.re"                                        │

00:02:15 #4265 [Verbose] > │         let v124 : float = Fable.Core.RustInterop.emitRustExpr () v123       │

00:02:15 #4266 [Verbose] > │         let v125 : float = 1.0 - v124                                        │

00:02:15 #4267 [Verbose] > │         let v126 : num_complex_Complex<float> = method14(v27)                │

00:02:15 #4268 [Verbose] > │         let v127 : string = "v126.im"                                        │

00:02:15 #4269 [Verbose] > │         let v128 : float = Fable.Core.RustInterop.emitRustExpr () v127       │

00:02:15 #4270 [Verbose] > │         let v129 : float =  -v128                                            │

00:02:15 #4271 [Verbose] > │         let v130 : float = method31(v125)                                    │

00:02:15 #4272 [Verbose] > │         let v131 : float = method3(v130)                                     │

00:02:15 #4273 [Verbose] > │         let v132 : float = method32(v129)                                    │

00:02:15 #4274 [Verbose] > │         let v133 : string = "num_complex::Complex::new(v131, v132)"          │

00:02:15 #4275 [Verbose] > │         let v134 : num_complex_Complex<float> =                              │

00:02:15 #4276 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v133                                  │

00:02:15 #4277 [Verbose] > │         let v135 : string = $"        s = mpmath.zeta(s)"                    │

00:02:15 #4278 [Verbose] > │         let v136 : num_complex_Complex<float> = method8(v134)                │

00:02:15 #4279 [Verbose] > │         let v137 : Result<num_complex_Complex<float>, std_string_String> =   │

00:02:15 #4280 [Verbose] > │ method9(v0, v135, v136)                                                      │

00:02:15 #4281 [Verbose] > │         let v138 : num_complex_Complex<float> = method33(v0, v134)           │

00:02:15 #4282 [Verbose] > │         let v139 : string = "v137.ok()"                                      │

00:02:15 #4283 [Verbose] > │         let v140 : num_complex_Complex<float> option =                       │

00:02:15 #4284 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v139                                  │

00:02:15 #4285 [Verbose] > │         let v141 : US0 = US0_0                                               │

00:02:15 #4286 [Verbose] > │         let v142 : US0 = v140 |> Option.map v34 |> Option.defaultValue v141  │

00:02:15 #4287 [Verbose] > │         let v143 : string = "f64::NAN"                                       │

00:02:15 #4288 [Verbose] > │         let v144 : float = Fable.Core.RustInterop.emitRustExpr () v143       │

00:02:15 #4289 [Verbose] > │         let v145 : string = "f64::NAN"                                       │

00:02:15 #4290 [Verbose] > │         let v146 : float = Fable.Core.RustInterop.emitRustExpr () v145       │

00:02:15 #4291 [Verbose] > │         let v147 : float = method31(v144)                                    │

00:02:15 #4292 [Verbose] > │         let v148 : float = method3(v147)                                     │

00:02:15 #4293 [Verbose] > │         let v149 : float = method32(v146)                                    │

00:02:15 #4294 [Verbose] > │         let v150 : string = "num_complex::Complex::new(v148, v149)"          │

00:02:15 #4295 [Verbose] > │         let v151 : num_complex_Complex<float> =                              │

00:02:15 #4296 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v150                                  │

00:02:15 #4297 [Verbose] > │         let v154 : num_complex_Complex<float> =                              │

00:02:15 #4298 [Verbose] > │             match v142 with                                                  │

00:02:15 #4299 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:15 #4300 [Verbose] > │                 v151                                                         │

00:02:15 #4301 [Verbose] > │             | US0_1(v152) -> (* Some *)                                      │

00:02:15 #4302 [Verbose] > │                 v152                                                         │

00:02:15 #4303 [Verbose] > │         let v155 : string = "v121 * v154"                                    │

00:02:15 #4304 [Verbose] > │         let v156 : num_complex_Complex<float> =                              │

00:02:15 #4305 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v155                                  │

00:02:15 #4306 [Verbose] > │         let v157 : num_complex_Complex<float> = method13(v48)                │

00:02:15 #4307 [Verbose] > │         let v158 : string = "v157.re"                                        │

00:02:15 #4308 [Verbose] > │         let v159 : float = Fable.Core.RustInterop.emitRustExpr () v158       │

00:02:15 #4309 [Verbose] > │         let v160 : num_complex_Complex<float> = method13(v156)               │

00:02:15 #4310 [Verbose] > │         let v161 : string = "v160.re"                                        │

00:02:15 #4311 [Verbose] > │         let v162 : float = Fable.Core.RustInterop.emitRustExpr () v161       │

00:02:15 #4312 [Verbose] > │         let v163 : float = v159 - v162                                       │

00:02:15 #4313 [Verbose] > │         let v164 : float =  -v163                                            │

00:02:15 #4314 [Verbose] > │         let v165 : bool = v163 >= v164                                       │

00:02:15 #4315 [Verbose] > │         let v166 : float =                                                   │

00:02:15 #4316 [Verbose] > │             if v165 then                                                     │

00:02:15 #4317 [Verbose] > │                 v163                                                         │

00:02:15 #4318 [Verbose] > │             else                                                             │

00:02:15 #4319 [Verbose] > │                 v164                                                         │

00:02:15 #4320 [Verbose] > │         let v167 : string = $"%A{v166}"                                      │

00:02:15 #4321 [Verbose] > │         System.Console.WriteLine v167                                        │

00:02:15 #4322 [Verbose] > │         let v168 : bool = v166 < 0.0001                                      │

00:02:15 #4323 [Verbose] > │         let v170 : bool =                                                    │

00:02:15 #4324 [Verbose] > │             if v168 then                                                     │

00:02:15 #4325 [Verbose] > │                 true                                                         │

00:02:15 #4326 [Verbose] > │             else                                                             │

00:02:15 #4327 [Verbose] > │                 method43(v168)                                               │

00:02:15 #4328 [Verbose] > │         let v171 : string = $"__expect / actual: %A{v166} / expected:        │

00:02:15 #4329 [Verbose] > │ %A{0.0001}"                                                                  │

00:02:15 #4330 [Verbose] > │         let v172 : bool = v170 = false                                       │

00:02:15 #4331 [Verbose] > │         if v172 then                                                         │

00:02:15 #4332 [Verbose] > │             failwith<unit> v171                                              │

00:02:15 #4333 [Verbose] > │         let v173 : num_complex_Complex<float> = method14(v48)                │

00:02:15 #4334 [Verbose] > │         let v174 : string = "v173.im"                                        │

00:02:15 #4335 [Verbose] > │         let v175 : float = Fable.Core.RustInterop.emitRustExpr () v174       │

00:02:15 #4336 [Verbose] > │         let v176 : num_complex_Complex<float> = method14(v156)               │

00:02:15 #4337 [Verbose] > │         let v177 : string = "v176.im"                                        │

00:02:15 #4338 [Verbose] > │         let v178 : float = Fable.Core.RustInterop.emitRustExpr () v177       │

00:02:15 #4339 [Verbose] > │         let v179 : float = v175 - v178                                       │

00:02:15 #4340 [Verbose] > │         let v180 : float =  -v179                                            │

00:02:15 #4341 [Verbose] > │         let v181 : bool = v179 >= v180                                       │

00:02:15 #4342 [Verbose] > │         let v182 : float =                                                   │

00:02:15 #4343 [Verbose] > │             if v181 then                                                     │

00:02:15 #4344 [Verbose] > │                 v179                                                         │

00:02:15 #4345 [Verbose] > │             else                                                             │

00:02:15 #4346 [Verbose] > │                 v180                                                         │

00:02:15 #4347 [Verbose] > │         let v183 : string = $"%A{v182}"                                      │

00:02:15 #4348 [Verbose] > │         System.Console.WriteLine v183                                        │

00:02:15 #4349 [Verbose] > │         let v184 : bool = v182 < 0.0001                                      │

00:02:15 #4350 [Verbose] > │         let v186 : bool =                                                    │

00:02:15 #4351 [Verbose] > │             if v184 then                                                     │

00:02:15 #4352 [Verbose] > │                 true                                                         │

00:02:15 #4353 [Verbose] > │             else                                                             │

00:02:15 #4354 [Verbose] > │                 method43(v184)                                               │

00:02:15 #4355 [Verbose] > │         let v187 : string = $"__expect / actual: %A{v182} / expected:        │

00:02:15 #4356 [Verbose] > │ %A{0.0001}"                                                                  │

00:02:15 #4357 [Verbose] > │         let v188 : bool = v186 = false                                       │

00:02:15 #4358 [Verbose] > │         if v188 then                                                         │

00:02:15 #4359 [Verbose] > │             failwith<unit> v187                                              │

00:02:15 #4360 [Verbose] > │         let v189 : int32 = v26 + 1                                           │

00:02:15 #4361 [Verbose] > │         v24.l0 <- v189                                                       │

00:02:15 #4362 [Verbose] > │         ()                                                                   │

00:02:15 #4363 [Verbose] > │     ()                                                                       │

00:02:15 #4364 [Verbose] > │ and method88 () : unit =                                                     │

00:02:15 #4365 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:15 #4366 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:15 #4367 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:15 #4368 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:15 #4369 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:15 #4370 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:15 #4371 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:15 #4372 [Verbose] > │     method89(v3)                                                             │

00:02:15 #4373 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:15 #4374 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:15 #4375 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:15 #4376 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:15 #4377 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:15 #4378 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:15 #4379 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:15 #4380 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:15 #4381 [Verbose] > │ () v8                                                                        │

00:02:15 #4382 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:15 #4383 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:15 #4384 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:15 #4385 [Verbose] > │     ()                                                                       │

00:02:15 #4386 [Verbose] > │ and method98 (v0 : int32, v1 : Mut3) : bool =                                │

00:02:15 #4387 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:02:15 #4388 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:02:15 #4389 [Verbose] > │     v3                                                                       │

00:02:15 #4390 [Verbose] > │ and method97 (v0 : pyo3_Python) : unit =                                     │

00:02:15 #4391 [Verbose] > │     let v1 : (float []) = [|2.0; 2.5; 3.0; 3.5; 4.0; 4.5; 5.0|]              │

00:02:15 #4392 [Verbose] > │     let v2 : (float []) = method65(v1)                                       │

00:02:15 #4393 [Verbose] > │     let v3 : (float []) = [|2.0; 3.0; 5.0; 7.0; 11.0; 13.0; 17.0; 19.0;      │

00:02:15 #4394 [Verbose] > │ 23.0; 29.0; 31.0; 37.0; 41.0; 43.0; 47.0; 53.0; 59.0; 61.0; 67.0; 71.0|]     │

00:02:15 #4395 [Verbose] > │     let v4 : (float []) = method65(v3)                                       │

00:02:15 #4396 [Verbose] > │     let v5 : int32 = v2.Length                                               │

00:02:15 #4397 [Verbose] > │     let v6 : Mut0 = {l0 = 0} : Mut0                                          │

00:02:15 #4398 [Verbose] > │     while method7(v5, v6) do                                                 │

00:02:15 #4399 [Verbose] > │         let v8 : int32 = v6.l0                                               │

00:02:15 #4400 [Verbose] > │         let v9 : float = v2.[int v8]                                         │

00:02:15 #4401 [Verbose] > │         let v10 : float = method31(v9)                                       │

00:02:15 #4402 [Verbose] > │         let v11 : float = method3(v10)                                       │

00:02:15 #4403 [Verbose] > │         let v12 : float = method4()                                          │

00:02:15 #4404 [Verbose] > │         let v13 : string = "num_complex::Complex::new(v11, v12)"             │

00:02:15 #4405 [Verbose] > │         let v14 : num_complex_Complex<float> =                               │

00:02:15 #4406 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13                                   │

00:02:15 #4407 [Verbose] > │         let v15 : int32 = v4.Length                                          │

00:02:15 #4408 [Verbose] > │         let v16 : Mut3 = {l0 = 0; l1 = 1.0} : Mut3                           │

00:02:15 #4409 [Verbose] > │         while method98(v15, v16) do                                          │

00:02:15 #4410 [Verbose] > │             let v18 : int32 = v16.l0                                         │

00:02:15 #4411 [Verbose] > │             let v19 : float = v16.l1                                         │

00:02:15 #4412 [Verbose] > │             let v20 : float = v4.[int v18]                                   │

00:02:15 #4413 [Verbose] > │             let v21 : float =  -v9                                           │

00:02:15 #4414 [Verbose] > │             let v22 : float = v20 ** v21                                     │

00:02:15 #4415 [Verbose] > │             let v23 : float = 1.0 - v22                                      │

00:02:15 #4416 [Verbose] > │             let v24 : float = v19 / v23                                      │

00:02:15 #4417 [Verbose] > │             let v25 : int32 = v18 + 1                                        │

00:02:15 #4418 [Verbose] > │             v16.l0 <- v25                                                    │

00:02:15 #4419 [Verbose] > │             v16.l1 <- v24                                                    │

00:02:15 #4420 [Verbose] > │             ()                                                               │

00:02:15 #4421 [Verbose] > │         let v26 : float = v16.l1                                             │

00:02:15 #4422 [Verbose] > │         let v27 : string = $"        s = mpmath.zeta(s)"                     │

00:02:15 #4423 [Verbose] > │         let v28 : num_complex_Complex<float> = method8(v14)                  │

00:02:15 #4424 [Verbose] > │         let v29 : Result<num_complex_Complex<float>, std_string_String> =    │

00:02:15 #4425 [Verbose] > │ method9(v0, v27, v28)                                                        │

00:02:15 #4426 [Verbose] > │         let v30 : num_complex_Complex<float> = method33(v0, v14)             │

00:02:15 #4427 [Verbose] > │         let v31 : string = "v29.ok()"                                        │

00:02:15 #4428 [Verbose] > │         let v32 : num_complex_Complex<float> option =                        │

00:02:15 #4429 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v31                                   │

00:02:15 #4430 [Verbose] > │         let v33 : (num_complex_Complex<float> -> US0) = closure5()           │

00:02:15 #4431 [Verbose] > │         let v34 : US0 = US0_0                                                │

00:02:15 #4432 [Verbose] > │         let v35 : US0 = v32 |> Option.map v33 |> Option.defaultValue v34     │

00:02:15 #4433 [Verbose] > │         let v36 : string = "f64::NAN"                                        │

00:02:15 #4434 [Verbose] > │         let v37 : float = Fable.Core.RustInterop.emitRustExpr () v36         │

00:02:15 #4435 [Verbose] > │         let v38 : string = "f64::NAN"                                        │

00:02:15 #4436 [Verbose] > │         let v39 : float = Fable.Core.RustInterop.emitRustExpr () v38         │

00:02:15 #4437 [Verbose] > │         let v40 : float = method31(v37)                                      │

00:02:15 #4438 [Verbose] > │         let v41 : float = method3(v40)                                       │

00:02:15 #4439 [Verbose] > │         let v42 : float = method32(v39)                                      │

00:02:15 #4440 [Verbose] > │         let v43 : string = "num_complex::Complex::new(v41, v42)"             │

00:02:15 #4441 [Verbose] > │         let v44 : num_complex_Complex<float> =                               │

00:02:15 #4442 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v43                                   │

00:02:15 #4443 [Verbose] > │         let v47 : num_complex_Complex<float> =                               │

00:02:15 #4444 [Verbose] > │             match v35 with                                                   │

00:02:15 #4445 [Verbose] > │             | US0_0 -> (* None *)                                            │

00:02:15 #4446 [Verbose] > │                 v44                                                          │

00:02:15 #4447 [Verbose] > │             | US0_1(v45) -> (* Some *)                                       │

00:02:15 #4448 [Verbose] > │                 v45                                                          │

00:02:15 #4449 [Verbose] > │         let v48 : num_complex_Complex<float> = method13(v47)                 │

00:02:15 #4450 [Verbose] > │         let v49 : string = "v48.re"                                          │

00:02:15 #4451 [Verbose] > │         let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49         │

00:02:15 #4452 [Verbose] > │         let v51 : float = v50 - v26                                          │

00:02:15 #4453 [Verbose] > │         let v52 : float =  -v51                                              │

00:02:15 #4454 [Verbose] > │         let v53 : bool = v51 >= v52                                          │

00:02:15 #4455 [Verbose] > │         let v54 : float =                                                    │

00:02:15 #4456 [Verbose] > │             if v53 then                                                      │

00:02:15 #4457 [Verbose] > │                 v51                                                          │

00:02:15 #4458 [Verbose] > │             else                                                             │

00:02:15 #4459 [Verbose] > │                 v52                                                          │

00:02:15 #4460 [Verbose] > │         let v55 : string = $"%A{v54}"                                        │

00:02:15 #4461 [Verbose] > │         System.Console.WriteLine v55                                         │

00:02:15 #4462 [Verbose] > │         let v56 : bool = v54 < 0.01                                          │

00:02:15 #4463 [Verbose] > │         let v58 : bool =                                                     │

00:02:15 #4464 [Verbose] > │             if v56 then                                                      │

00:02:15 #4465 [Verbose] > │                 true                                                         │

00:02:15 #4466 [Verbose] > │             else                                                             │

00:02:15 #4467 [Verbose] > │                 method43(v56)                                                │

00:02:15 #4468 [Verbose] > │         let v59 : string = $"__expect / actual: %A{v54} / expected:          │

00:02:15 #4469 [Verbose] > │ %A{0.01}"                                                                    │

00:02:15 #4470 [Verbose] > │         let v60 : bool = v58 = false                                         │

00:02:15 #4471 [Verbose] > │         if v60 then                                                          │

00:02:15 #4472 [Verbose] > │             failwith<unit> v59                                               │

00:02:15 #4473 [Verbose] > │         let v61 : num_complex_Complex<float> = method14(v47)                 │

00:02:15 #4474 [Verbose] > │         let v62 : string = "v61.im"                                          │

00:02:15 #4475 [Verbose] > │         let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62         │

00:02:15 #4476 [Verbose] > │         let v64 : string = $"%A{v63}"                                        │

00:02:15 #4477 [Verbose] > │         System.Console.WriteLine v64                                         │

00:02:15 #4478 [Verbose] > │         let v65 : bool = v63 < 0.01                                          │

00:02:15 #4479 [Verbose] > │         let v67 : bool =                                                     │

00:02:15 #4480 [Verbose] > │             if v65 then                                                      │

00:02:15 #4481 [Verbose] > │                 true                                                         │

00:02:15 #4482 [Verbose] > │             else                                                             │

00:02:15 #4483 [Verbose] > │                 method43(v65)                                                │

00:02:15 #4484 [Verbose] > │         let v68 : string = $"__expect / actual: %A{v63} / expected:          │

00:02:15 #4485 [Verbose] > │ %A{0.01}"                                                                    │

00:02:15 #4486 [Verbose] > │         let v69 : bool = v67 = false                                         │

00:02:15 #4487 [Verbose] > │         if v69 then                                                          │

00:02:15 #4488 [Verbose] > │             failwith<unit> v68                                               │

00:02:15 #4489 [Verbose] > │         let v70 : int32 = v8 + 1                                             │

00:02:15 #4490 [Verbose] > │         v6.l0 <- v70                                                         │

00:02:15 #4491 [Verbose] > │         ()                                                                   │

00:02:15 #4492 [Verbose] > │     ()                                                                       │

00:02:15 #4493 [Verbose] > │ and method96 () : unit =                                                     │

00:02:15 #4494 [Verbose] > │     let v0 : string = "pyo3::prepare_freethreaded_python()"                  │

00:02:15 #4495 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:15 #4496 [Verbose] > │     let v1 : string = "let __result = pyo3::Python::with_gil(|py| ->         │

00:02:15 #4497 [Verbose] > │ pyo3::PyResult<()> { //"                                                     │

00:02:15 #4498 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:15 #4499 [Verbose] > │     let v2 : string = "py"                                                   │

00:02:15 #4500 [Verbose] > │     let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2         │

00:02:15 #4501 [Verbose] > │     method97(v3)                                                             │

00:02:15 #4502 [Verbose] > │     let v4 : Result<unit, pyo3_PyErr> = Ok ()                                │

00:02:15 #4503 [Verbose] > │     let v5 : Result<unit, pyo3_PyErr> = method44(v4)                         │

00:02:15 #4504 [Verbose] > │     let v6 : string = "v5 }})"                                               │

00:02:15 #4505 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:15 #4506 [Verbose] > │     let v7 : string = "{ //"                                                 │

00:02:15 #4507 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:15 #4508 [Verbose] > │     let v8 : string = "__result"                                             │

00:02:15 #4509 [Verbose] > │     let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr  │

00:02:15 #4510 [Verbose] > │ () v8                                                                        │

00:02:15 #4511 [Verbose] > │     let v10 : Result<unit, pyo3_PyErr> = method45(v9)                        │

00:02:15 #4512 [Verbose] > │     let v11 : string = "v10.unwrap()"                                        │

00:02:15 #4513 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:15 #4514 [Verbose] > │     ()                                                                       │

00:02:15 #4515 [Verbose] > │ and closure0 () () : unit =                                                  │

00:02:15 #4516 [Verbose] > │     let v0 : string = "}//"                                                  │

00:02:15 #4517 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v0                                │

00:02:15 #4518 [Verbose] > │     let v1 : string = "#[test] fn test_zeta_at_known_values_() { //"         │

00:02:15 #4519 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v1                                │

00:02:15 #4520 [Verbose] > │     method0()                                                                │

00:02:15 #4521 [Verbose] > │     let v2 : string = "} #[test] fn test_zeta_at_2_minus2() { //"            │

00:02:15 #4522 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v2                                │

00:02:15 #4523 [Verbose] > │     method46()                                                               │

00:02:15 #4524 [Verbose] > │     let v3 : string = "} #[test] fn test_trivial_zero_at_negative_even___()  │

00:02:15 #4525 [Verbose] > │ { //"                                                                        │

00:02:15 #4526 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v3                                │

00:02:15 #4527 [Verbose] > │     method49()                                                               │

00:02:15 #4528 [Verbose] > │     let v4 : string = "} #[test] fn test_non_trivial_zero___() { //"         │

00:02:15 #4529 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v4                                │

00:02:15 #4530 [Verbose] > │     method53()                                                               │

00:02:15 #4531 [Verbose] > │     let v5 : string = "} #[test] fn test_real_part_greater_than_one___() {   │

00:02:15 #4532 [Verbose] > │ //"                                                                          │

00:02:15 #4533 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v5                                │

00:02:15 #4534 [Verbose] > │     method63()                                                               │

00:02:15 #4535 [Verbose] > │     let v6 : string = "} #[test] fn test_zeta_at_1___() { //"                │

00:02:15 #4536 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v6                                │

00:02:15 #4537 [Verbose] > │     method66()                                                               │

00:02:15 #4538 [Verbose] > │     let v7 : string = "} #[test] fn test_symmetry_across_real_axis___() {    │

00:02:15 #4539 [Verbose] > │ //"                                                                          │

00:02:15 #4540 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v7                                │

00:02:15 #4541 [Verbose] > │     method68()                                                               │

00:02:15 #4542 [Verbose] > │     let v8 : string = "} #[test] fn test_behavior_near_origin___() { //"     │

00:02:15 #4543 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v8                                │

00:02:15 #4544 [Verbose] > │     method71()                                                               │

00:02:15 #4545 [Verbose] > │     let v9 : string = "} #[test] fn test_imaginary_axis() { //"              │

00:02:15 #4546 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v9                                │

00:02:15 #4547 [Verbose] > │     method75()                                                               │

00:02:15 #4548 [Verbose] > │     let v10 : string = "} #[test] fn test_critical_strip() { //"             │

00:02:15 #4549 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v10                               │

00:02:15 #4550 [Verbose] > │     method79()                                                               │

00:02:15 #4551 [Verbose] > │     let v11 : string = "} #[test] fn                                         │

00:02:15 #4552 [Verbose] > │ test_reflection_formula_for_specific_value() { //"                           │

00:02:15 #4553 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v11                               │

00:02:15 #4554 [Verbose] > │     method88()                                                               │

00:02:15 #4555 [Verbose] > │     let v12 : string = "} #[test] fn test_euler_product_formula() { //"      │

00:02:15 #4556 [Verbose] > │     Fable.Core.RustInterop.emitRustExpr () v12                               │

00:02:15 #4557 [Verbose] > │     method96()                                                               │

00:02:15 #4558 [Verbose] > │ and closure6 () (v0 : (string [])) : int32 =                                 │

00:02:15 #4559 [Verbose] > │     let v1 : string = $"value: {1}"                                          │

00:02:15 #4560 [Verbose] > │     System.Console.WriteLine v1                                              │

00:02:15 #4561 [Verbose] > │     0                                                                        │

00:02:15 #4562 [Verbose] > │ let v0 : (unit -> unit) = closure0()                                         │

00:02:15 #4563 [Verbose] > │ let tests () = v0 ()                                                         │

00:02:15 #4564 [Verbose] > │ let v1 : ((string []) -> int32) = closure6()                                 │

00:02:15 #4565 [Verbose] > │ let main args = v1 args                                                      │

00:02:15 #4566 [Verbose] > │ ()                                                                           │

00:02:15 #4567 [Verbose] > │                                                                              │

00:02:15 #4568 [Verbose] > │                                                                              │

00:02:15 #4569 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:02:17 #4570 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html

00:02:17 #4571 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:02:17 #4572 [Verbose] >   validate(nb)

00:02:18 #4573 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:02:18 #4574 [Verbose] >   return _pygments_highlight(

00:02:19 #4575 [Verbose] > [NbConvertApp] Writing 7437215 bytes to math.dib.html

00:02:20 #4576 [Debug] executeAsync / exitCode: 0 / output.Length: 333791

00:02:20 #4577 [Debug] main / executeCommand / exitCode: 0

00:02:22 #4578 [Debug] runWithTimeoutAsync / timeout: 2000

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib

00:00:00 #2 [Debug] parseDibCode / output: Spi / file: math.dib

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@429-61> }

00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\math

00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805

00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805

00:00:01 #11 [Debug] runWithTimeoutAsync / timeout: 60

00:00:01 #12 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #13 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:01 #14 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # math\n\nopen testing\nopen rust_operators\n\ninl types () =\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022num_complex::Complex\u003C$0\u003E\\\u0022)\u003E] type num_complex_Complex\u003C\u0027T\u003E = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::types::PyModule\\\u0022)\u003E] type pyo3_types_PyModule = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Bound\u003C$0\u003E\\\u0022)\u003E] type pyo3_Bound\u003C\u0027T\u003E = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Python\\\u0022)\u003E] type pyo3_Python = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyAny\\\u0022)\u003E] type pyo3_PyAny = class end\u0022\n    global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyErr\\\u0022)\u003E] type pyo3_PyErr = class end\u0022\n\ninl types () =\n    rust.types ()\n    sm\u0027.types ()\n    types ()\n\n// // ## complex\n\nnominal complex t = $\u0022num_complex_Complex\u003C\u0060t\u003E\u0022\nnominal bound t = $\u0022pyo3_Bound\u003C\u0060t\u003E\u0022\nnominal python = $\u0022pyo3_Python\u0022\nnominal pymodule = $\u0022pyo3_types_PyModule\u0022\nnominal pyany = $\u0022pyo3_PyAny\u0022\nnominal pyerr = $\u0022pyo3_PyErr\u0022\n\ninl complex forall t. ((re : t), (im : t)) : complex t =\n    inl re = join re\n    inl re = join re\n    inl im = join im\n    !\\($\u0027\u0022num_complex::Complex::new(!re, !im)\u0022\u0027)\n\n// // ## complex_sin\n\ninl re forall t. (c : complex t) : t =\n    inl c = join c\n    !\\($\u0027\u0022!c.re\u0022\u0027)\n\ninl im forall t. (c : complex t) : t =\n    inl c = join c\n    !\\($\u0027\u0022!c.im\u0022\u0027)\n\ninl complex_unbox forall t. (c : complex t) =\n    re c, im c\n\ninl (~.^) c = complex c\n\ninl complex_eq forall t. (a : complex t) (b : complex t) : bool =\n    !\\($\u0027\u0022!a == !b\u0022\u0027)\n\ninl (.=) a b = complex_eq a b\n\ninstance equable complex t = complex_eq\n\ninl complex_add forall t. (a : complex t) (b : complex t) : complex t =\n    !\\($\u0027\u0022!a \u002B !b\u0022\u0027)\n\ninl (.\u002B) a b = complex_add a b\n\ninl complex_sub forall t. (a : complex t) (b : complex t) : complex t =\n    !\\($\u0027\u0022!a - !b\u0022\u0027)\n\ninl (.-) a b = complex_sub a b\n\ninl complex_mult forall t. (a : complex t) (b : complex t) : complex t =\n    !\\($\u0027\u0022!a * !b\u0022\u0027)\n\ninl (.*) a b = complex_mult a b\n\ninl complex_div forall t. (a : complex t) (b : complex t) : complex t =\n    !\\($\u0027\u0022!a / !b\u0022\u0027)\n\ninl (./) a b = complex_div a b\n\ninl powc forall t. (s : complex t) (c : complex t) : complex t =\n    inl c = join c\n    inl s = join s\n    !\\($\u0027\u0022num_complex::Complex::powc(!c, !s)\u0022\u0027)\n\ninl (.**) a b = powc b a\n\ninl complex_sin forall t. (c : complex t) : complex t =\n    !\\($\u0027\u0022!c.sin()\u0022\u0027)\n\ninl conj forall t. (c : complex t) : complex t =\n    !\\($\u0027\u0022!c.conj()\u0022\u0027)\n\n// // ## zeta\n\ninl zeta log (gamma : complex f64 -\u003E complex f64) (s : complex f64) : complex f64 =\n    inl rec zeta count gamma s =\n        inl s = join s\n        if log then\n            !\\($\u0027\u0022println\\!(\\\\\\\u0022zeta / count: {:?} / s: {:?}\\\\\\\u0022, !count, !s)\u0022\u0027)\n        if re s \u003E 1 then\n            (.^(0, 0), (am.init 10000i32 id : a i32 _))\n            ||\u003E am.fold fun acc n =\u003E\n                acc .\u002B (.^(1, 0) ./ (.^(f64 n, 0) .** s))\n        else\n            inl gamma_term = gamma (.^(1, 0) .- s)\n            inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |\u003E complex_sin\n            inl one_minus_s = .^(1 - re s, -(im s))\n            inl mirror_term =\n                if re one_minus_s \u003C= 1\n                then .^(0, 0)\n                else\n                    if count \u003C= 3\n                    then zeta (count \u002B 1) gamma one_minus_s\n                    else one_minus_s\n            inl reflection_formula =\n                .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .* mirror_term\n            reflection_formula\n    join zeta 0i32 gamma s\n\n// // ## eval\n\ninl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =\n    inl py = join py\n    inl code = code |\u003E sm\u0027.as_str\n    !\\($\u0027\u0022pyo3::types::PyModule::from_code_bound(!py, !code, \\\\\u0022\\\\\u0022, \\\\\u0022\\\\\u0022)\u0022\u0027)\n    |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl use_pyanymethods () =\n    global \u0022Fable.Core.RustInterop.emitRustExpr () \\\u0022);\\nuse pyo3::prelude::PyAnyMethods;\\n//\\\u0022\u0022\n\ninl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =\n    inl attr = attr |\u003E sm\u0027.as_str\n    inl module = join module\n    use_pyanymethods ()\n    !\\($\u0027\u0022!module.getattr(!attr)\u0022\u0027)\n    |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =\n    inl args = join args\n    inl module = join module\n    !\\($\u0027\u0022pyo3::prelude::PyAnyMethods::call(\u0026!module, ((*!args).0, *(*!args).1), None)\u0022\u0027)\n    |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl extract forall t. (result : bound pyany) : _ t _ =\n    inl result = join result\n    use_pyanymethods ()\n    !\\($\u0027\u0022!result.extract()\u0022\u0027)\n    |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm\u0027.std_string =\n    inl code =\n        code\n        |\u003E module_from_code py\n        |\u003E resultm.unwrap\u0027\n    inl fn =\n        code\n        |\u003E getattr \u0022fn\u0022\n        |\u003E resultm.unwrap\u0027\n\n    fn\n    |\u003E call args\n    |\u003E resultm.try\u0027\n    |\u003E extract\n    |\u003E resultm.try\u0027\n    |\u003E complex\n    |\u003E Ok\n    |\u003E resultm.box\n\ninl call1_ log py s code =\n    inl code = join (a code : _ i32 _) |\u003E sm\u0027.concat_array_trailing \u0022\\n\u0022\n    \n    inl s = new_pair (re s) (im s)\n    inl args = new_pair log s\n\n    eval py code args\n\ninl call1_ log name py s line =\n    inl s = join s\n    join\n        ;[\n            $\u0027$\u0022import sys\u0022\u0027\n            $\u0027$\u0022import traceback\u0022\u0027\n            $\u0027$\u0022import re\u0022\u0027\n            $\u0027$\u0022count = 0\u0022\u0027\n            $\u0027$\u0022memory_address_pattern = re.compile(r\\\u0027 at 0x[0-9a-fA-F]\u002B\\\u0027)\u0022\u0027\n            $\u0027$\u0022def trace_calls(frame, event, arg):\u0022\u0027\n            $\u0027$\u0022    global count\u0022\u0027\n            $\u0027$\u0022    count \u002B= 1\u0022\u0027\n            $\u0027$\u0022    if count \u003C 200:\u0022\u0027\n            $\u0027$\u0022        try:\u0022\u0027\n            $\u0027$\u0022            args = {{ k: v for k, v in frame.f_locals.items() if frame.f_code.co_name \\!= \\\u0027make_mpc\\\u0027 and k not in [\\\u0027ctx\\\u0027] and not callable(v) }}\u0022\u0027\n            $\u0027$\u0022            args_str = \\\u0027, \\\u0027.join([ f\\\\\\\u0022{{k}}={{re.sub(memory_address_pattern, \\\u0027 at 0x\u003C?\u003E\\\u0027, repr(v))}}\\\\\\\u0022 for k, v in args.items() ])\u0022\u0027\n            $\u0027$\u0022            print(f\\\\\\\u0022{{event}}({!name}) / f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}} / f_code.co_filename: {{frame.f_code.co_filename.split(\\\u0027site-packages\\\u0027)[-1]}} / f_back.f_lineno: {{ \\\u0027\\\u0027 if frame.f_back is None else frame.f_back.f_lineno }} / f_back.f_code.co_filename: {{ \\\u0027\\\u0027 if frame.f_back is None else frame.f_back.f_code.co_filename.split(\\\u0027site-packages\\\u0027)[-1] }} / arg: {{re.sub(memory_address_pattern, \\\u0027 at 0x\u003C?\u003E\\\u0027, repr(arg))}}\\\\\\\u0022, flush=True)\u0022\u0027\n            $\u0027$\u0022        except ValueError as e:\u0022\u0027\n            $\u0027$\u0022            print(f\\\u0027{!name} / e: {{e}}\\\u0027, flush=True)\u0022\u0027\n            $\u0027$\u0022        return trace_calls\u0022\u0027\n            $\u0027$\u0022import mpmath\u0022\u0027\n            $\u0027$\u0022def fn(log, s):\u0022\u0027\n            $\u0027$\u0022    global count\u0022\u0027\n            $\u0027$\u0022    if log:\u0022\u0027\n            $\u0027$\u0022        print(f\\\u0027{!name} / s: {{s}} / count: {{count}}\\\u0027, flush=True)\u0022\u0027\n            $\u0027$\u0022    s = complex(*s)\u0022\u0027\n            $\u0027$\u0022    try:\u0022\u0027\n            $\u0027$\u0022        if log: sys.settrace(trace_calls)\u0022\u0027\n            line\n            $\u0027$\u0022        if log:\u0022\u0027\n            $\u0027$\u0022            sys.settrace(None)\u0022\u0027\n            $\u0027$\u0022            print(f\\\u0027{!name} / result: {{s}} / count: {{count}}\\\u0027, flush=True)\u0022\u0027\n            $\u0027$\u0022    except ValueError as e:\u0022\u0027\n            $\u0027$\u0022        if s.real == 1:\u0022\u0027\n            $\u0027$\u0022            s = complex(float(\\\u0027inf\\\u0027), 0)\u0022\u0027\n            $\u0027$\u0022    return (s.real, s.imag)\u0022\u0027\n        ]\n        |\u003E call1_ log py s\n\ninl gamma_ log py s =\n    call1_ log \u0022gamma_\u0022 py s $\u0027$\u0022        s = mpmath.gamma(s)\u0022\u0027\n\ninl zeta_ log py s =\n    call1_ log \u0022zeta_\u0022 py s $\u0027$\u0022        s = mpmath.zeta(s)\u0022\u0027\n\n// // ## run_test\n\ninl run_test log closure_fix (fn : (complex f64 -\u003E complex f64) * (complex f64 -\u003E complex f64) -\u003E ()) =\n    inl fn_ (py : python) : resultm.result\u0027 () pyerr =\n        inl nan () =\n            !\\($\u0027\u0022f64::NAN\u0022\u0027)\n        inl gamma__ = fun (s : complex f64) =\u003E\n            inl result = gamma_ log py s\n            if log then\n                inl s = join s\n                !\\($\u0027\u0022println\\!(\\\\\\\u0022gamma__ / s: {:?} / result: {:?}\\\\\\\u0022, !s, !result)\u0022\u0027)\n            result |\u003E resultm.ok\u0027 |\u003E optionm\u0027.unbox |\u003E optionm\u0027.default_value .^(nan (), nan ())\n        inl zeta__ = fun (s : complex f64) =\u003E\n            inl result = zeta_ log py s\n\n            inl z = zeta true gamma__ s\n\n            if log then\n                inl s = join s\n                !\\($\u0027\u0022println\\!(\\\\\\\u0022zeta__ / s: {:?} / result: {:?} / z: {:?}\\\\\\\u0022, !s, !result, !z)\u0022\u0027)\n\n    //             re result - re x |\u003E abs\n    //             |\u003E _assert_lt 0.001\n\n    //             im result - im x |\u003E abs\n    //             |\u003E _assert_lt 0.001\n\n            result |\u003E resultm.ok\u0027 |\u003E optionm\u0027.unbox |\u003E optionm\u0027.default_value .^(nan (), nan ())\n        join fn (zeta__, gamma__)\n\n        Ok ()\n        |\u003E resultm.box\n    \n    join\n        !\\($\u0027\u0022pyo3::prepare_freethreaded_python()\u0022\u0027) : ()\n\n        !\\($\u0027\u0022let __result = pyo3::Python::with_gil(|py| -\u003E pyo3::PyResult\u003C()\u003E { //\u0022\u0027)\n\n        let x\u0027 = fn_ (!\\($\u0027\u0022py\u0022\u0027) : python)\n        inl x\u0027 = join x\u0027\n        \n        inl closure_fix = 2u8, 1u8\n        x\u0027 |\u003E rust.fix_closure closure_fix\n\n        (!\\($\u0027\u0022__result\u0022\u0027) : _ () pyerr)\n        |\u003E resultm.unwrap\u0027\n\n// // ## test_zeta_at_known_values_\n\ninl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    ;[\n        .^(2, 0), pi ** 2 / 6\n        .^(-1, 0), -1 / 12\n    ]\n    |\u003E fun x =\u003E a x : _ i32 _\n    |\u003E am.iter fun s, e =\u003E\n        inl result = zeta s\n\n        result |\u003E im |\u003E _assert_eq 0\n        re result - e |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_zeta_at_2_minus2\n\ninl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n    inl s = .^(2, -2)\n    inl result = zeta s\n\n    (re result - 0.8673) |\u003E abs |\u003E _assert_lt 0.001\n    (im result - 0.2750) |\u003E abs |\u003E _assert_lt 0.001\n\n// // ## test_trivial_zero_at_negative_even___\n\ninl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun zeta, gamma =\u003E\n    (join listm\u0027.init_series -2f64 -40 -2)\n    |\u003E listm.iter fun n =\u003E\n        inl s = .^(n, 0)\n        inl result = zeta s\n\n        result |\u003E re |\u003E _assert_eq 0\n        result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_non_trivial_zero___\n\ninl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    ;[\n        .^(0.5, 14.134725)\n        .^(0.5, 21.022040)\n        .^(0.5, 25.010857)\n        .^(0.5, 30.424876)\n        .^(0.5, 32.935062)\n        .^(0.5, 37.586178)\n    ]\n    |\u003E fun x =\u003E a x : _ i32 _\n    |\u003E am.iter fun x =\u003E\n            inl result = zeta x\n            result |\u003E re |\u003E abs |\u003E _assert_lt 0.0001\n            result |\u003E im |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_real_part_greater_than_one___\n\ninl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    inl points = ;[2; 3; 4; 5; 10; 20; 50]\n    (a points : _ i32 _)\n    |\u003E am.iter fun point =\u003E\n        inl s = .^(point, 0)\n        inl result = zeta s\n        result |\u003E re |\u003E _assert_gt 0\n        result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_zeta_at_1___\n\ninl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n    inl s = .^(1, 0)\n    inl result = zeta s\n    result |\u003E re |\u003E _assert_eq limit.max\n    result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_symmetry_across_real_axis___\n\ninl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta, gamma =\u003E\n    inl s = .^(2, 10)\n    inl result_positive_im = zeta s\n    inl result_negative_im = zeta .^(re s, -(im s))\n    inl conj = result_negative_im |\u003E conj\n    result_positive_im |\u003E re |\u003E _assert_eq (conj |\u003E re)\n    result_positive_im |\u003E im |\u003E _assert_eq (conj |\u003E im)\n\n// // ## test_behavior_near_origin___\n\ninl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n    inl s = .^(0.01, 0.01)\n    inl result = zeta s\n    result |\u003E re |\u003E _assert_lt limit.max\n    result |\u003E im |\u003E _assert_lt limit.max\n\n// // ## test_imaginary_axis\n\ninl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    (join a ;[10; 20; 30; 40; 50; 60; 70; 80; 90; 100] : _ i32 _)\n    |\u003E am.iter fun s =\u003E\n        inl s = .^(0, s)\n        inl result = zeta s\n        result |\u003E re |\u003E _assert_ne 0\n        result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_critical_strip\n\ninl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    ;[\n        .^(0.5, 14.134725)\n        .^(0.75, 20.5)\n        .^(1.25, 30.1)\n        .^(0.25, 40.0)\n        .^(1.0, 50.0)\n    ]\n    |\u003E fun x =\u003E a x : _ i32 _\n    |\u003E am.iter fun s =\u003E\n        inl result = zeta s\n        result |\u003E re |\u003E _assert_ne 0\n        result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_reflection_formula_for_specific_value\n\ninl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    ;[\n        .^(3, 4)\n        .^(2.5, -3.5)\n        .^(1.5, 2.5)\n        .^(0.5, 14.134725)\n    ]\n    |\u003E fun x =\u003E a x : _ i32 _\n    |\u003E am.iter fun s =\u003E\n        inl lhs = zeta s\n        inl reflection_coefficient =\n            (.^(2, 0) .** s)\n            .* (.^(pi, 0) .** (s .- .^(1, 0)))\n            .* (.^(pi, 0) .* s ./ .^(2, 0) |\u003E complex_sin)\n            .* gamma (.^(1, 0) .- s)\n\n        inl one_minus_s = .^(1 - re s, -(im s))\n        inl rhs = reflection_coefficient .* zeta one_minus_s\n\n        re lhs - re rhs |\u003E abs |\u003E _assert_lt 0.0001\n        im lhs - im rhs |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_euler_product_formula\n\ninl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n    inl s_values = ;[2; 2.5; 3; 3.5; 4; 4.5; 5]\n    inl primes = ;[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53; 59; 61; 67; 71]\n    (a s_values : _ i32 _)\n    |\u003E am.iter fun s_re =\u003E\n        inl s = .^(s_re, 0)\n        inl product =\n            (1, (a primes : _ i32 _))\n            ||\u003E am.fold fun acc x =\u003E\n                acc * 1 / (1 - x ** -s_re)\n\n        inl result = zeta s\n        re result - product |\u003E abs |\u003E _assert_lt 0.01\n        result |\u003E im |\u003E _assert_lt 0.01\n\n// // ## graph\n\n// // ## tests\n\ninl tests () =\n    !\\($\u0027\u0022}//\u0022\u0027) : ()\n\n    !\\($\u0027\u0022#[test] fn test_zeta_at_known_values_() { //\u0022\u0027) : ()\n    test_zeta_at_known_values_ false\n    !\\($\u0027\u0022} #[test] fn test_zeta_at_2_minus2() { //\u0022\u0027) : ()\n    test_zeta_at_2_minus2 false\n    !\\($\u0027\u0022} #[test] fn test_trivial_zero_at_negative_even___() { //\u0022\u0027) : ()\n    test_trivial_zero_at_negative_even___ false\n    !\\($\u0027\u0022} #[test] fn test_non_trivial_zero___() { //\u0022\u0027) : ()\n    test_non_trivial_zero___ false\n    !\\($\u0027\u0022} #[test] fn test_real_part_greater_than_one___() { //\u0022\u0027) : ()\n    test_real_part_greater_than_one___ false\n    !\\($\u0027\u0022} #[test] fn test_zeta_at_1___() { //\u0022\u0027) : ()\n    test_zeta_at_1___ false\n    !\\($\u0027\u0022} #[test] fn test_symmetry_across_real_axis___() { //\u0022\u0027) : ()\n    test_symmetry_across_real_axis___ false\n    !\\($\u0027\u0022} #[test] fn test_behavior_near_origin___() { //\u0022\u0027) : ()\n    test_behavior_near_origin___ false\n    !\\($\u0027\u0022} #[test] fn test_imaginary_axis() { //\u0022\u0027) : ()\n    test_imaginary_axis false\n    !\\($\u0027\u0022} #[test] fn test_critical_strip() { //\u0022\u0027) : ()\n    test_critical_strip false\n    !\\($\u0027\u0022} #[test] fn test_reflection_formula_for_specific_value() { //\u0022\u0027) : ()\n    test_reflection_formula_for_specific_value false\n    !\\($\u0027\u0022} #[test] fn test_euler_product_formula() { //\u0022\u0027) : ()\n    test_euler_product_formula false\n\n// // rust=\n\ninl main (_args : array_base string) =\n    inl value = 1i32\n    console.write_line ($\u0022$\\\u0022value: {!value}\\\u0022\u0022 : string)\n    0i32\n\ninl main () =\n    types ()\n    $\u0022let tests () = !tests ()\u0022 : ()\n    $\u0022let main args = !main args\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result.Length:

00:00:01 #15 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result.Length:

00:00:02 #16 [Verbose] > Building c:\home\git\polyglot\lib\math\math.spi

00:00:02 #17 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:03 #18 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: [] / typeErrorCount: 0

00:00:03 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class end

[<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = class end

[<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end

[<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end

[<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end

[<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end

[<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = class end

[<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = class end

[<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end

[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]... / errors: [] / typeErrorCount: 0

00:00:03 #20 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite

00:00:05 #21 [Debug] runWithTimeoutAsync / timeout: 2000

00:00:00 #1 [Debug] persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/date_time.fsx; ... ] / name: math / code.Length: 141585

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\target\polyglot\builder\math"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:01 #5 [Verbose] >   Determining projects to restore...

00:00:01 #6 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj (in 359 ms).

00:00:01 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj]

00:00:06 #8 [Verbose] >   math -> C:\home\git\polyglot\target\polyglot\builder\math\bin\Release\net9.0\linux-x64\math.dll

00:00:08 #9 [Verbose] >   math -> C:\home\git\polyglot\lib\math\dist\

00:00:08 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 664

00:00:08 #11 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\target\polyglot\builder\math"

  CancellationToken = None

  OnLine = None }

00:00:08 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:09 #13 [Verbose] >   Determining projects to restore...

00:00:10 #14 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj (in 363 ms).

00:00:10 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj]

00:00:15 #16 [Verbose] >   math -> C:\home\git\polyglot\target\polyglot\builder\math\bin\Release\net9.0\win-x64\math.dll

00:00:22 #17 [Verbose] >   math -> C:\home\git\polyglot\lib\math\dist\

00:00:22 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 662

Fable 4.14.0: F# to Rust compiler (status: alpha)



Thanks to the contributor! @fbehrens

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing ..\..\target\polyglot\builder\math\math.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (7 source files) parsed in 183ms



Started Fable compilation...



Fable compilation finished in 4219ms



.\..\spiral\file_system.fsx(58,0): (58,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

.\..\spiral\common.fsx(95,0): (95,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

.\..\spiral\date_time.fsx(81,0): (81,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

.\..\spiral\sm.fsx(237,0): (237,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

.\..\..\target\polyglot\builder\math\math.fs(35,0): (37,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

   Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)

    Finished `release` profile [optimized] target(s) in 19.14s

     Running unittests math.rs (C:\home\git\polyglot\target\release\deps\math-21a4b5403c432aea.exe)



running 12 tests

test module_b7a9935b::Math::test_behavior_near_origin___ ... ok

test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok

test module_b7a9935b::Math::test_zeta_at_1___ ... ok

test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok

test module_b7a9935b::Math::test_non_trivial_zero___ ... ok

test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok

test module_b7a9935b::Math::test_imaginary_axis ... ok

test module_b7a9935b::Math::test_euler_product_formula ... ok

test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok

test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok

test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok

test module_b7a9935b::Math::test_critical_strip ... ok



test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.49s



In [ ]:
{ . "$ScriptDir/../apps/scheduler/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@429-61> }

00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\scheduler

00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805

00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500

00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805

00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Tasks.dib -Retries 3""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #12 [Verbose] >

00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #15 [Verbose] > │ ## Tasks (Polyglot)                                                          │

00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #17 [Verbose] >

00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #19 [Verbose] > // // test

00:00:04 #20 [Verbose] >

00:00:04 #21 [Verbose] > open testing

00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0142-5897-9708-91cfdcdb604e\main.spi

00:00:09 #23 [Verbose] >

00:00:09 #24 [Verbose] > ╭─[ 5.99s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #25 [Verbose] > │ ()                                                                           │

00:00:09 #26 [Verbose] > │                                                                              │

00:00:09 #27 [Verbose] > │                                                                              │

00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #29 [Verbose] >

00:00:10 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #31 [Verbose] > inl types () =

00:00:10 #32 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]

00:00:10 #33 [Verbose] > type std_string_String = class end"

00:00:10 #34 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =

00:00:10 #35 [Verbose] > class end"

00:00:10 #36 [Verbose] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class

00:00:10 #37 [Verbose] > end"

00:00:10 #38 [Verbose] >

00:00:10 #39 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =

00:00:10 #40 [Verbose] >     real

00:00:10 #41 [Verbose] >         $"Fable.Core.RustInterop.emitRustExpr !args !code" : t

00:00:10 #42 [Verbose] >

00:00:10 #43 [Verbose] >

00:00:10 #44 [Verbose] > nominal std_string = $"std_string_String"

00:00:10 #45 [Verbose] > nominal ref' t = $"Ref<`t>"

00:00:10 #46 [Verbose] > nominal str = $"Str"

00:00:10 #47 [Verbose] >

00:00:10 #48 [Verbose] > inl format_debug forall t. (x : t) : std_string =

00:00:10 #49 [Verbose] >     real

00:00:10 #50 [Verbose] >         emit_expr `t `std_string x "format!(\"{:?}\", $0)"

00:00:10 #51 [Verbose] >

00:00:10 #52 [Verbose] > inl format_pretty forall t. (x : t) : std_string =

00:00:10 #53 [Verbose] >     real

00:00:10 #54 [Verbose] >         emit_expr `t `std_string x "format!(\"{:#?}\", $0)"

00:00:10 #55 [Verbose] >

00:00:10 #56 [Verbose] > inl to_std_string (str : ref' str) : std_string =

00:00:10 #57 [Verbose] >     // inl str = join str

00:00:10 #58 [Verbose] >     // // emit_expr () $"\"!str.to_string()\""

00:00:10 #59 [Verbose] >     // // emit_expr () $"\"alloc::string::to_string(!str)\""

00:00:10 #60 [Verbose] >     // emit_expr str "($0).to_string()"

00:00:10 #61 [Verbose] >     emit_expr str $"\"String::from(core::ops::Deref::deref($0))\""

00:00:10 #62 [Verbose] >     // emit_expr str $"\"String::from(*$0)\""

00:00:10 #63 [Verbose] >     // emit_expr () $"\"String::from(!str)\""

00:00:10 #64 [Verbose] >

00:00:10 #65 [Verbose] > inl format forall t. (x : t) : std_string =

00:00:10 #66 [Verbose] >     real

00:00:10 #67 [Verbose] >         inl result : std_string =

00:00:10 #68 [Verbose] >             typecase t with

00:00:10 #69 [Verbose] >             | string => to_std_string x

00:00:10 #70 [Verbose] >             | std_string => x

00:00:10 #71 [Verbose] >             | _ => format_pretty `t x

00:00:10 #72 [Verbose] >         result

00:00:10 #73 [Verbose] >

00:00:10 #74 [Verbose] > inl raw_string_literal (s : string) : ref' str =

00:00:10 #75 [Verbose] >     emit_expr () $"\"r#\\\"\" + !s + \"\\\"#\""

00:00:10 #76 [Verbose] >

00:00:10 #77 [Verbose] > inl (~#) (s : string) : ref' str =

00:00:10 #78 [Verbose] >     raw_string_literal s

00:00:10 #79 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0143-0264-6440-65665ea2fbb1\main.spi

00:00:10 #80 [Verbose] >

00:00:10 #81 [Verbose] > ╭─[ 287.22ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #82 [Verbose] > │ ()                                                                           │

00:00:10 #83 [Verbose] > │                                                                              │

00:00:10 #84 [Verbose] > │                                                                              │

00:00:10 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #86 [Verbose] >

00:00:10 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #88 [Verbose] > nominal task_name = string

00:00:10 #89 [Verbose] >

00:00:10 #90 [Verbose] > union manual_scheduling =

00:00:10 #91 [Verbose] >     | WithSuggestion

00:00:10 #92 [Verbose] >     | WithoutSuggestion

00:00:10 #93 [Verbose] >

00:00:10 #94 [Verbose] > union recurrency_offset =

00:00:10 #95 [Verbose] >     | Days : i32

00:00:10 #96 [Verbose] >     | Weeks : i32

00:00:10 #97 [Verbose] >     | Months : i32

00:00:10 #98 [Verbose] >

00:00:10 #99 [Verbose] > union day_of_week =

00:00:10 #100 [Verbose] >     | Sunday

00:00:10 #101 [Verbose] >     | Monday

00:00:10 #102 [Verbose] >     | Tuesday

00:00:10 #103 [Verbose] >     | Wednesday

00:00:10 #104 [Verbose] >     | Thursday

00:00:10 #105 [Verbose] >     | Friday

00:00:10 #106 [Verbose] >     | Saturday

00:00:10 #107 [Verbose] >

00:00:10 #108 [Verbose] > union month =

00:00:10 #109 [Verbose] >     | January

00:00:10 #110 [Verbose] >     | February

00:00:10 #111 [Verbose] >     | March

00:00:10 #112 [Verbose] >     | April

00:00:10 #113 [Verbose] >     | May

00:00:10 #114 [Verbose] >     | June

00:00:10 #115 [Verbose] >     | July

00:00:10 #116 [Verbose] >     | August

00:00:10 #117 [Verbose] >     | September

00:00:10 #118 [Verbose] >     | October

00:00:10 #119 [Verbose] >     | November

00:00:10 #120 [Verbose] >     | December

00:00:10 #121 [Verbose] >

00:00:10 #122 [Verbose] > nominal day = i32

00:00:10 #123 [Verbose] > nominal year = i32

00:00:10 #124 [Verbose] >

00:00:10 #125 [Verbose] > union fixed_recurrency =

00:00:10 #126 [Verbose] >     | Weekly : day_of_week

00:00:10 #127 [Verbose] >     | Monthly : day

00:00:10 #128 [Verbose] >     | Yearly : day * month

00:00:10 #129 [Verbose] >

00:00:10 #130 [Verbose] > union recurrency =

00:00:10 #131 [Verbose] >     | Offset : recurrency_offset

00:00:10 #132 [Verbose] >     | Fixed : list fixed_recurrency

00:00:10 #133 [Verbose] >

00:00:10 #134 [Verbose] > union scheduling =

00:00:10 #135 [Verbose] >     | Manual : manual_scheduling

00:00:10 #136 [Verbose] >     | Recurrent : recurrency

00:00:10 #137 [Verbose] >

00:00:10 #138 [Verbose] > type task =

00:00:10 #139 [Verbose] >     {

00:00:10 #140 [Verbose] >         name : task_name

00:00:10 #141 [Verbose] >         scheduling : scheduling

00:00:10 #142 [Verbose] >     }

00:00:10 #143 [Verbose] >

00:00:10 #144 [Verbose] > type date =

00:00:10 #145 [Verbose] >     {

00:00:10 #146 [Verbose] >         year : year

00:00:10 #147 [Verbose] >         month : month

00:00:10 #148 [Verbose] >         day : day

00:00:10 #149 [Verbose] >     }

00:00:10 #150 [Verbose] >

00:00:10 #151 [Verbose] > union status =

00:00:10 #152 [Verbose] >     | Postponed : option ()

00:00:10 #153 [Verbose] >

00:00:10 #154 [Verbose] > type event =

00:00:10 #155 [Verbose] >     {

00:00:10 #156 [Verbose] >         date : date

00:00:10 #157 [Verbose] >         status : status

00:00:10 #158 [Verbose] >     }

00:00:10 #159 [Verbose] >

00:00:10 #160 [Verbose] > type task_template =

00:00:10 #161 [Verbose] >     {

00:00:10 #162 [Verbose] >         task : task

00:00:10 #163 [Verbose] >         events : list event

00:00:10 #164 [Verbose] >     }

00:00:10 #165 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0143-0292-9270-97f232257a36\main.spi

00:00:10 #166 [Verbose] >

00:00:10 #167 [Verbose] > ╭─[ 260.02ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #168 [Verbose] > │ ()                                                                           │

00:00:10 #169 [Verbose] > │                                                                              │

00:00:10 #170 [Verbose] > │                                                                              │

00:00:10 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #172 [Verbose] >

00:00:10 #173 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #174 [Verbose] > // // test

00:00:10 #175 [Verbose] > // // rust=

00:00:10 #176 [Verbose] >

00:00:10 #177 [Verbose] > types ()

00:00:10 #178 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0143-0318-1891-191340c30563\main.spi

00:00:15 #179 [Verbose] >

00:00:15 #180 [Verbose] > ╭─[ 4.80s - return value ]─────────────────────────────────────────────────────╮

00:00:15 #181 [Verbose] > │ .rs output:                                                                  │

00:00:15 #182 [Verbose] > │                                                                              │

00:00:15 #183 [Verbose] > │                                                                              │

00:00:15 #184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #185 [Verbose] >

00:00:15 #186 [Verbose] > ╭─[ 4.82s - stdout ]───────────────────────────────────────────────────────────╮

00:00:15 #187 [Verbose] > │                                                                              │

00:00:15 #188 [Verbose] > │ .fsx:                                                                        │

00:00:15 #189 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:00:15 #190 [Verbose] > │ std_string_String = class end                                                │

00:00:15 #191 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:00:15 #192 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:00:15 #193 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:15 #194 [Verbose] > │     ()                                                                       │

00:00:15 #195 [Verbose] > │ method0()                                                                    │

00:00:15 #196 [Verbose] > │                                                                              │

00:00:15 #197 [Verbose] > │                                                                              │

00:00:15 #198 [Verbose] > │ .rs:                                                                         │

00:00:15 #199 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:00:15 #200 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:00:15 #201 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:00:15 #202 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:15 #203 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:00:15 #204 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:00:15 #205 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:00:15 #206 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:00:15 #207 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:00:15 #208 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:00:15 #209 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:00:15 #210 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:00:15 #211 [Verbose] > │         use super::*;                                                        │

00:00:15 #212 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:00:15 #213 [Verbose] > │         pub fn method0() { (); }                                             │

00:00:15 #214 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:00:15 #215 [Verbose] > │     }                                                                        │

00:00:15 #216 [Verbose] > │ }                                                                            │

00:00:15 #217 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:00:15 #218 [Verbose] > │                                                                              │

00:00:15 #219 [Verbose] > │                                                                              │

00:00:15 #220 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #221 [Verbose] >

00:00:15 #222 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #223 [Verbose] > // // test

00:00:15 #224 [Verbose] > // // rust=

00:00:15 #225 [Verbose] >

00:00:15 #226 [Verbose] > inl get_tasks () : list task_template =

00:00:15 #227 [Verbose] >     [[

00:00:15 #228 [Verbose] >         {

00:00:15 #229 [Verbose] >             task =

00:00:15 #230 [Verbose] >                 {

00:00:15 #231 [Verbose] >                     name = task_name "01"

00:00:15 #232 [Verbose] >                     scheduling = Manual WithSuggestion

00:00:15 #233 [Verbose] >                 }

00:00:15 #234 [Verbose] >             events = [[]]

00:00:15 #235 [Verbose] >         }

00:00:15 #236 [Verbose] >         {

00:00:15 #237 [Verbose] >             task =

00:00:15 #238 [Verbose] >                 {

00:00:15 #239 [Verbose] >                     name = task_name "02"

00:00:15 #240 [Verbose] >                     scheduling = Manual WithSuggestion

00:00:15 #241 [Verbose] >                 }

00:00:15 #242 [Verbose] >             events = [[]]

00:00:15 #243 [Verbose] >         }

00:00:15 #244 [Verbose] >         {

00:00:15 #245 [Verbose] >             task =

00:00:15 #246 [Verbose] >                 {

00:00:15 #247 [Verbose] >                     name = task_name "03"

00:00:15 #248 [Verbose] >                     scheduling = Manual WithSuggestion

00:00:15 #249 [Verbose] >                 }

00:00:15 #250 [Verbose] >             events = [[]]

00:00:15 #251 [Verbose] >         }

00:00:15 #252 [Verbose] >     ]]

00:00:15 #253 [Verbose] >

00:00:15 #254 [Verbose] > types ()

00:00:15 #255 [Verbose] > get_tasks () |> format_pretty |> console.write_line

00:00:15 #256 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0143-0802-0269-0c1412c4263e\main.spi

00:00:20 #257 [Verbose] >

00:00:20 #258 [Verbose] > ╭─[ 5.23s - return value ]─────────────────────────────────────────────────────╮

00:00:20 #259 [Verbose] > │ .rs output:                                                                  │

00:00:20 #260 [Verbose] > │ UH2_0(                                                                       │

00:00:20 #261 [Verbose] > │     UH0_1,                                                                   │

00:00:20 #262 [Verbose] > │     "01",                                                                    │

00:00:20 #263 [Verbose] > │     US4_0(                                                                   │

00:00:20 #264 [Verbose] > │         US3_0,                                                               │

00:00:20 #265 [Verbose] > │     ),                                                                       │

00:00:20 #266 [Verbose] > │     UH2_0(                                                                   │

00:00:20 #267 [Verbose] > │         UH0_1,                                                               │

00:00:20 #268 [Verbose] > │         "02",                                                                │

00:00:20 #269 [Verbose] > │         US4_0(                                                               │

00:00:20 #270 [Verbose] > │             US3_0,                                                           │

00:00:20 #271 [Verbose] > │         ),                                                                   │

00:00:20 #272 [Verbose] > │         UH2_0(                                                               │

00:00:20 #273 [Verbose] > │             UH0_1,                                                           │

00:00:20 #274 [Verbose] > │             "03",                                                            │

00:00:20 #275 [Verbose] > │             US4_0(                                                           │

00:00:20 #276 [Verbose] > │                 US3_0,                                                       │

00:00:20 #277 [Verbose] > │             ),                                                               │

00:00:20 #278 [Verbose] > │             UH2_1,                                                           │

00:00:20 #279 [Verbose] > │         ),                                                                   │

00:00:20 #280 [Verbose] > │     ),                                                                       │

00:00:20 #281 [Verbose] > │ )                                                                            │

00:00:20 #282 [Verbose] > │                                                                              │

00:00:20 #283 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #284 [Verbose] >

00:00:20 #285 [Verbose] > ╭─[ 5.25s - stdout ]───────────────────────────────────────────────────────────╮

00:00:20 #286 [Verbose] > │                                                                              │

00:00:20 #287 [Verbose] > │ .fsx:                                                                        │

00:00:20 #288 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:00:20 #289 [Verbose] > │ std_string_String = class end                                                │

00:00:20 #290 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:00:20 #291 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:00:20 #292 [Verbose] > │ type [<Struct>] US0 =                                                        │

00:00:20 #293 [Verbose] > │     | US0_0                                                                  │

00:00:20 #294 [Verbose] > │     | US0_1                                                                  │

00:00:20 #295 [Verbose] > │     | US0_2                                                                  │

00:00:20 #296 [Verbose] > │     | US0_3                                                                  │

00:00:20 #297 [Verbose] > │     | US0_4                                                                  │

00:00:20 #298 [Verbose] > │     | US0_5                                                                  │

00:00:20 #299 [Verbose] > │     | US0_6                                                                  │

00:00:20 #300 [Verbose] > │     | US0_7                                                                  │

00:00:20 #301 [Verbose] > │     | US0_8                                                                  │

00:00:20 #302 [Verbose] > │     | US0_9                                                                  │

00:00:20 #303 [Verbose] > │     | US0_10                                                                 │

00:00:20 #304 [Verbose] > │     | US0_11                                                                 │

00:00:20 #305 [Verbose] > │ and [<Struct>] US2 =                                                         │

00:00:20 #306 [Verbose] > │     | US2_0                                                                  │

00:00:20 #307 [Verbose] > │     | US2_1                                                                  │

00:00:20 #308 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:00:20 #309 [Verbose] > │     | US1_0 of f0_0 : US2                                                    │

00:00:20 #310 [Verbose] > │ and UH0 =                                                                    │

00:00:20 #311 [Verbose] > │     | UH0_0 of int32 * US0 * int32 * US1 * UH0                               │

00:00:20 #312 [Verbose] > │     | UH0_1                                                                  │

00:00:20 #313 [Verbose] > │ and [<Struct>] US3 =                                                         │

00:00:20 #314 [Verbose] > │     | US3_0                                                                  │

00:00:20 #315 [Verbose] > │     | US3_1                                                                  │

00:00:20 #316 [Verbose] > │ and [<Struct>] US7 =                                                         │

00:00:20 #317 [Verbose] > │     | US7_0                                                                  │

00:00:20 #318 [Verbose] > │     | US7_1                                                                  │

00:00:20 #319 [Verbose] > │     | US7_2                                                                  │

00:00:20 #320 [Verbose] > │     | US7_3                                                                  │

00:00:20 #321 [Verbose] > │     | US7_4                                                                  │

00:00:20 #322 [Verbose] > │     | US7_5                                                                  │

00:00:20 #323 [Verbose] > │     | US7_6                                                                  │

00:00:20 #324 [Verbose] > │ and [<Struct>] US6 =                                                         │

00:00:20 #325 [Verbose] > │     | US6_0 of f0_0 : int32                                                  │

00:00:20 #326 [Verbose] > │     | US6_1 of f1_0 : US7                                                    │

00:00:20 #327 [Verbose] > │     | US6_2 of f2_0 : int32 * f2_1 : US0                                     │

00:00:20 #328 [Verbose] > │ and UH1 =                                                                    │

00:00:20 #329 [Verbose] > │     | UH1_0 of US6 * UH1                                                     │

00:00:20 #330 [Verbose] > │     | UH1_1                                                                  │

00:00:20 #331 [Verbose] > │ and [<Struct>] US8 =                                                         │

00:00:20 #332 [Verbose] > │     | US8_0 of f0_0 : int32                                                  │

00:00:20 #333 [Verbose] > │     | US8_1 of f1_0 : int32                                                  │

00:00:20 #334 [Verbose] > │     | US8_2 of f2_0 : int32                                                  │

00:00:20 #335 [Verbose] > │ and [<Struct>] US5 =                                                         │

00:00:20 #336 [Verbose] > │     | US5_0 of f0_0 : UH1                                                    │

00:00:20 #337 [Verbose] > │     | US5_1 of f1_0 : US8                                                    │

00:00:20 #338 [Verbose] > │ and [<Struct>] US4 =                                                         │

00:00:20 #339 [Verbose] > │     | US4_0 of f0_0 : US3                                                    │

00:00:20 #340 [Verbose] > │     | US4_1 of f1_0 : US5                                                    │

00:00:20 #341 [Verbose] > │ and UH2 =                                                                    │

00:00:20 #342 [Verbose] > │     | UH2_0 of UH0 * string * US4 * UH2                                      │

00:00:20 #343 [Verbose] > │     | UH2_1                                                                  │

00:00:20 #344 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:20 #345 [Verbose] > │     let v0 : UH0 = UH0_1                                                     │

00:00:20 #346 [Verbose] > │     let v1 : string = "01"                                                   │

00:00:20 #347 [Verbose] > │     let v2 : US3 = US3_0                                                     │

00:00:20 #348 [Verbose] > │     let v3 : US4 = US4_0(v2)                                                 │

00:00:20 #349 [Verbose] > │     let v4 : UH0 = UH0_1                                                     │

00:00:20 #350 [Verbose] > │     let v5 : string = "02"                                                   │

00:00:20 #351 [Verbose] > │     let v6 : US3 = US3_0                                                     │

00:00:20 #352 [Verbose] > │     let v7 : US4 = US4_0(v6)                                                 │

00:00:20 #353 [Verbose] > │     let v8 : UH0 = UH0_1                                                     │

00:00:20 #354 [Verbose] > │     let v9 : string = "03"                                                   │

00:00:20 #355 [Verbose] > │     let v10 : US3 = US3_0                                                    │

00:00:20 #356 [Verbose] > │     let v11 : US4 = US4_0(v10)                                               │

00:00:20 #357 [Verbose] > │     let v12 : UH2 = UH2_1                                                    │

00:00:20 #358 [Verbose] > │     let v13 : UH2 = UH2_0(v8, v9, v11, v12)                                  │

00:00:20 #359 [Verbose] > │     let v14 : UH2 = UH2_0(v4, v5, v7, v13)                                   │

00:00:20 #360 [Verbose] > │     let v15 : UH2 = UH2_0(v0, v1, v3, v14)                                   │

00:00:20 #361 [Verbose] > │     let v16 : string = "format!(\"{:#?}\", $0)"                              │

00:00:20 #362 [Verbose] > │     let v17 : std_string_String = Fable.Core.RustInterop.emitRustExpr v15    │

00:00:20 #363 [Verbose] > │ v16                                                                          │

00:00:20 #364 [Verbose] > │     System.Console.WriteLine v17                                             │

00:00:20 #365 [Verbose] > │     ()                                                                       │

00:00:20 #366 [Verbose] > │ method0()                                                                    │

00:00:20 #367 [Verbose] > │                                                                              │

00:00:20 #368 [Verbose] > │                                                                              │

00:00:20 #369 [Verbose] > │ .rs:                                                                         │

00:00:20 #370 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:00:20 #371 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:00:20 #372 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:00:20 #373 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:20 #374 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:00:20 #375 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:00:20 #376 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:00:20 #377 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:00:20 #378 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:00:20 #379 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:00:20 #380 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:00:20 #381 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:00:20 #382 [Verbose] > │         use super::*;                                                        │

00:00:20 #383 [Verbose] > │         use fable_library_rust::Native_::LrcPtr;                             │

00:00:20 #384 [Verbose] > │         use fable_library_rust::Native_::MutCell;                            │

00:00:20 #385 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:00:20 #386 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:00:20 #387 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:00:20 #388 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #389 [Verbose] > │         pub enum US0 {                                                       │

00:00:20 #390 [Verbose] > │             US0_0,                                                           │

00:00:20 #391 [Verbose] > │             US0_1,                                                           │

00:00:20 #392 [Verbose] > │             US0_2,                                                           │

00:00:20 #393 [Verbose] > │             US0_3,                                                           │

00:00:20 #394 [Verbose] > │             US0_4,                                                           │

00:00:20 #395 [Verbose] > │             US0_5,                                                           │

00:00:20 #396 [Verbose] > │             US0_6,                                                           │

00:00:20 #397 [Verbose] > │             US0_7,                                                           │

00:00:20 #398 [Verbose] > │             US0_8,                                                           │

00:00:20 #399 [Verbose] > │             US0_9,                                                           │

00:00:20 #400 [Verbose] > │             US0_10,                                                          │

00:00:20 #401 [Verbose] > │             US0_11,                                                          │

00:00:20 #402 [Verbose] > │         }                                                                    │

00:00:20 #403 [Verbose] > │         impl Spiral_eval::US0 {                                              │

00:00:20 #404 [Verbose] > │             pub fn get_IsUS0_0(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #405 [Verbose] > │ ())                                                                          │

00:00:20 #406 [Verbose] > │              -> bool {                                                       │

00:00:20 #407 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #408 [Verbose] > │             }                                                                │

00:00:20 #409 [Verbose] > │             pub fn get_IsUS0_1(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #410 [Verbose] > │ ())                                                                          │

00:00:20 #411 [Verbose] > │              -> bool {                                                       │

00:00:20 #412 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #413 [Verbose] > │             }                                                                │

00:00:20 #414 [Verbose] > │             pub fn get_IsUS0_2(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #415 [Verbose] > │ ())                                                                          │

00:00:20 #416 [Verbose] > │              -> bool {                                                       │

00:00:20 #417 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #418 [Verbose] > │             }                                                                │

00:00:20 #419 [Verbose] > │             pub fn get_IsUS0_3(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #420 [Verbose] > │ ())                                                                          │

00:00:20 #421 [Verbose] > │              -> bool {                                                       │

00:00:20 #422 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #423 [Verbose] > │             }                                                                │

00:00:20 #424 [Verbose] > │             pub fn get_IsUS0_4(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #425 [Verbose] > │ ())                                                                          │

00:00:20 #426 [Verbose] > │              -> bool {                                                       │

00:00:20 #427 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #428 [Verbose] > │             }                                                                │

00:00:20 #429 [Verbose] > │             pub fn get_IsUS0_5(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #430 [Verbose] > │ ())                                                                          │

00:00:20 #431 [Verbose] > │              -> bool {                                                       │

00:00:20 #432 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #433 [Verbose] > │             }                                                                │

00:00:20 #434 [Verbose] > │             pub fn get_IsUS0_6(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #435 [Verbose] > │ ())                                                                          │

00:00:20 #436 [Verbose] > │              -> bool {                                                       │

00:00:20 #437 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #438 [Verbose] > │             }                                                                │

00:00:20 #439 [Verbose] > │             pub fn get_IsUS0_7(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #440 [Verbose] > │ ())                                                                          │

00:00:20 #441 [Verbose] > │              -> bool {                                                       │

00:00:20 #442 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #443 [Verbose] > │             }                                                                │

00:00:20 #444 [Verbose] > │             pub fn get_IsUS0_8(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #445 [Verbose] > │ ())                                                                          │

00:00:20 #446 [Verbose] > │              -> bool {                                                       │

00:00:20 #447 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #448 [Verbose] > │             }                                                                │

00:00:20 #449 [Verbose] > │             pub fn get_IsUS0_9(this_: &MutCell<Spiral_eval::US0>, unitArg:   │

00:00:20 #450 [Verbose] > │ ())                                                                          │

00:00:20 #451 [Verbose] > │              -> bool {                                                       │

00:00:20 #452 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #453 [Verbose] > │             }                                                                │

00:00:20 #454 [Verbose] > │             pub fn get_IsUS0_10(this_: &MutCell<Spiral_eval::US0>,           │

00:00:20 #455 [Verbose] > │                                 unitArg: ()) -> bool {                       │

00:00:20 #456 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #457 [Verbose] > │             }                                                                │

00:00:20 #458 [Verbose] > │             pub fn get_IsUS0_11(this_: &MutCell<Spiral_eval::US0>,           │

00:00:20 #459 [Verbose] > │                                 unitArg: ()) -> bool {                       │

00:00:20 #460 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #461 [Verbose] > │             }                                                                │

00:00:20 #462 [Verbose] > │         }                                                                    │

00:00:20 #463 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US0 {                       │

00:00:20 #464 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #465 [Verbose] > │ {                                                                            │

00:00:20 #466 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #467 [Verbose] > │             }                                                                │

00:00:20 #468 [Verbose] > │         }                                                                    │

00:00:20 #469 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #470 [Verbose] > │         pub enum US2 { US2_0, US2_1, }                                       │

00:00:20 #471 [Verbose] > │         impl Spiral_eval::US2 {                                              │

00:00:20 #472 [Verbose] > │             pub fn get_IsUS2_0(this_: &MutCell<Spiral_eval::US2>, unitArg:   │

00:00:20 #473 [Verbose] > │ ())                                                                          │

00:00:20 #474 [Verbose] > │              -> bool {                                                       │

00:00:20 #475 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #476 [Verbose] > │             }                                                                │

00:00:20 #477 [Verbose] > │             pub fn get_IsUS2_1(this_: &MutCell<Spiral_eval::US2>, unitArg:   │

00:00:20 #478 [Verbose] > │ ())                                                                          │

00:00:20 #479 [Verbose] > │              -> bool {                                                       │

00:00:20 #480 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #481 [Verbose] > │             }                                                                │

00:00:20 #482 [Verbose] > │         }                                                                    │

00:00:20 #483 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US2 {                       │

00:00:20 #484 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #485 [Verbose] > │ {                                                                            │

00:00:20 #486 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #487 [Verbose] > │             }                                                                │

00:00:20 #488 [Verbose] > │         }                                                                    │

00:00:20 #489 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #490 [Verbose] > │         pub enum US1 { US1_0(Spiral_eval::US2), }                            │

00:00:20 #491 [Verbose] > │         impl Spiral_eval::US1 {                                              │

00:00:20 #492 [Verbose] > │             pub fn get_IsUS1_0(this_: &MutCell<Spiral_eval::US1>, unitArg:   │

00:00:20 #493 [Verbose] > │ ())                                                                          │

00:00:20 #494 [Verbose] > │              -> bool {                                                       │

00:00:20 #495 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #496 [Verbose] > │             }                                                                │

00:00:20 #497 [Verbose] > │         }                                                                    │

00:00:20 #498 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US1 {                       │

00:00:20 #499 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #500 [Verbose] > │ {                                                                            │

00:00:20 #501 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #502 [Verbose] > │             }                                                                │

00:00:20 #503 [Verbose] > │         }                                                                    │

00:00:20 #504 [Verbose] > │         #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)]            │

00:00:20 #505 [Verbose] > │         pub enum UH0 {                                                       │

00:00:20 #506 [Verbose] > │             UH0_0(i32, Spiral_eval::US0, i32, Spiral_eval::US1,              │

00:00:20 #507 [Verbose] > │                   LrcPtr<Spiral_eval::UH0>),                                 │

00:00:20 #508 [Verbose] > │             UH0_1,                                                           │

00:00:20 #509 [Verbose] > │         }                                                                    │

00:00:20 #510 [Verbose] > │         impl Spiral_eval::UH0 {                                              │

00:00:20 #511 [Verbose] > │             pub fn get_IsUH0_0(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │

00:00:20 #512 [Verbose] > │              -> bool {                                                       │

00:00:20 #513 [Verbose] > │                 if let Spiral_eval::UH0::UH0_0(this__0_0, this__0_1,         │

00:00:20 #514 [Verbose] > │                                                this__0_2, this__0_3,         │

00:00:20 #515 [Verbose] > │                                                this__0_4) = this_.as_ref() { │

00:00:20 #516 [Verbose] > │                     true                                                     │

00:00:20 #517 [Verbose] > │                 } else { false }                                             │

00:00:20 #518 [Verbose] > │             }                                                                │

00:00:20 #519 [Verbose] > │             pub fn get_IsUH0_1(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │

00:00:20 #520 [Verbose] > │              -> bool {                                                       │

00:00:20 #521 [Verbose] > │                 if let Spiral_eval::UH0::UH0_1 = this_.as_ref() {            │

00:00:20 #522 [Verbose] > │                     true                                                     │

00:00:20 #523 [Verbose] > │                 } else { false }                                             │

00:00:20 #524 [Verbose] > │             }                                                                │

00:00:20 #525 [Verbose] > │         }                                                                    │

00:00:20 #526 [Verbose] > │         impl core::fmt::Display for Spiral_eval::UH0 {                       │

00:00:20 #527 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #528 [Verbose] > │ {                                                                            │

00:00:20 #529 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #530 [Verbose] > │             }                                                                │

00:00:20 #531 [Verbose] > │         }                                                                    │

00:00:20 #532 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #533 [Verbose] > │         pub enum US3 { US3_0, US3_1, }                                       │

00:00:20 #534 [Verbose] > │         impl Spiral_eval::US3 {                                              │

00:00:20 #535 [Verbose] > │             pub fn get_IsUS3_0(this_: &MutCell<Spiral_eval::US3>, unitArg:   │

00:00:20 #536 [Verbose] > │ ())                                                                          │

00:00:20 #537 [Verbose] > │              -> bool {                                                       │

00:00:20 #538 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #539 [Verbose] > │             }                                                                │

00:00:20 #540 [Verbose] > │             pub fn get_IsUS3_1(this_: &MutCell<Spiral_eval::US3>, unitArg:   │

00:00:20 #541 [Verbose] > │ ())                                                                          │

00:00:20 #542 [Verbose] > │              -> bool {                                                       │

00:00:20 #543 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #544 [Verbose] > │             }                                                                │

00:00:20 #545 [Verbose] > │         }                                                                    │

00:00:20 #546 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US3 {                       │

00:00:20 #547 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #548 [Verbose] > │ {                                                                            │

00:00:20 #549 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #550 [Verbose] > │             }                                                                │

00:00:20 #551 [Verbose] > │         }                                                                    │

00:00:20 #552 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #553 [Verbose] > │         pub enum US7 { US7_0, US7_1, US7_2, US7_3, US7_4, US7_5, US7_6, }    │

00:00:20 #554 [Verbose] > │         impl Spiral_eval::US7 {                                              │

00:00:20 #555 [Verbose] > │             pub fn get_IsUS7_0(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #556 [Verbose] > │ ())                                                                          │

00:00:20 #557 [Verbose] > │              -> bool {                                                       │

00:00:20 #558 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #559 [Verbose] > │             }                                                                │

00:00:20 #560 [Verbose] > │             pub fn get_IsUS7_1(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #561 [Verbose] > │ ())                                                                          │

00:00:20 #562 [Verbose] > │              -> bool {                                                       │

00:00:20 #563 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #564 [Verbose] > │             }                                                                │

00:00:20 #565 [Verbose] > │             pub fn get_IsUS7_2(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #566 [Verbose] > │ ())                                                                          │

00:00:20 #567 [Verbose] > │              -> bool {                                                       │

00:00:20 #568 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #569 [Verbose] > │             }                                                                │

00:00:20 #570 [Verbose] > │             pub fn get_IsUS7_3(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #571 [Verbose] > │ ())                                                                          │

00:00:20 #572 [Verbose] > │              -> bool {                                                       │

00:00:20 #573 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #574 [Verbose] > │             }                                                                │

00:00:20 #575 [Verbose] > │             pub fn get_IsUS7_4(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #576 [Verbose] > │ ())                                                                          │

00:00:20 #577 [Verbose] > │              -> bool {                                                       │

00:00:20 #578 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #579 [Verbose] > │             }                                                                │

00:00:20 #580 [Verbose] > │             pub fn get_IsUS7_5(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #581 [Verbose] > │ ())                                                                          │

00:00:20 #582 [Verbose] > │              -> bool {                                                       │

00:00:20 #583 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #584 [Verbose] > │             }                                                                │

00:00:20 #585 [Verbose] > │             pub fn get_IsUS7_6(this_: &MutCell<Spiral_eval::US7>, unitArg:   │

00:00:20 #586 [Verbose] > │ ())                                                                          │

00:00:20 #587 [Verbose] > │              -> bool {                                                       │

00:00:20 #588 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #589 [Verbose] > │             }                                                                │

00:00:20 #590 [Verbose] > │         }                                                                    │

00:00:20 #591 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US7 {                       │

00:00:20 #592 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #593 [Verbose] > │ {                                                                            │

00:00:20 #594 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #595 [Verbose] > │             }                                                                │

00:00:20 #596 [Verbose] > │         }                                                                    │

00:00:20 #597 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #598 [Verbose] > │         pub enum US6 {                                                       │

00:00:20 #599 [Verbose] > │             US6_0(i32),                                                      │

00:00:20 #600 [Verbose] > │             US6_1(Spiral_eval::US7),                                         │

00:00:20 #601 [Verbose] > │             US6_2(i32, Spiral_eval::US0),                                    │

00:00:20 #602 [Verbose] > │         }                                                                    │

00:00:20 #603 [Verbose] > │         impl Spiral_eval::US6 {                                              │

00:00:20 #604 [Verbose] > │             pub fn get_IsUS6_0(this_: &MutCell<Spiral_eval::US6>, unitArg:   │

00:00:20 #605 [Verbose] > │ ())                                                                          │

00:00:20 #606 [Verbose] > │              -> bool {                                                       │

00:00:20 #607 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #608 [Verbose] > │             }                                                                │

00:00:20 #609 [Verbose] > │             pub fn get_IsUS6_1(this_: &MutCell<Spiral_eval::US6>, unitArg:   │

00:00:20 #610 [Verbose] > │ ())                                                                          │

00:00:20 #611 [Verbose] > │              -> bool {                                                       │

00:00:20 #612 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #613 [Verbose] > │             }                                                                │

00:00:20 #614 [Verbose] > │             pub fn get_IsUS6_2(this_: &MutCell<Spiral_eval::US6>, unitArg:   │

00:00:20 #615 [Verbose] > │ ())                                                                          │

00:00:20 #616 [Verbose] > │              -> bool {                                                       │

00:00:20 #617 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #618 [Verbose] > │             }                                                                │

00:00:20 #619 [Verbose] > │         }                                                                    │

00:00:20 #620 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US6 {                       │

00:00:20 #621 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #622 [Verbose] > │ {                                                                            │

00:00:20 #623 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #624 [Verbose] > │             }                                                                │

00:00:20 #625 [Verbose] > │         }                                                                    │

00:00:20 #626 [Verbose] > │         #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)]            │

00:00:20 #627 [Verbose] > │         pub enum UH1 {                                                       │

00:00:20 #628 [Verbose] > │             UH1_0(Spiral_eval::US6, LrcPtr<Spiral_eval::UH1>),               │

00:00:20 #629 [Verbose] > │             UH1_1,                                                           │

00:00:20 #630 [Verbose] > │         }                                                                    │

00:00:20 #631 [Verbose] > │         impl Spiral_eval::UH1 {                                              │

00:00:20 #632 [Verbose] > │             pub fn get_IsUH1_0(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │

00:00:20 #633 [Verbose] > │              -> bool {                                                       │

00:00:20 #634 [Verbose] > │                 if let Spiral_eval::UH1::UH1_0(this__0_0, this__0_1) =       │

00:00:20 #635 [Verbose] > │                        this_.as_ref() {                                      │

00:00:20 #636 [Verbose] > │                     true                                                     │

00:00:20 #637 [Verbose] > │                 } else { false }                                             │

00:00:20 #638 [Verbose] > │             }                                                                │

00:00:20 #639 [Verbose] > │             pub fn get_IsUH1_1(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │

00:00:20 #640 [Verbose] > │              -> bool {                                                       │

00:00:20 #641 [Verbose] > │                 if let Spiral_eval::UH1::UH1_1 = this_.as_ref() {            │

00:00:20 #642 [Verbose] > │                     true                                                     │

00:00:20 #643 [Verbose] > │                 } else { false }                                             │

00:00:20 #644 [Verbose] > │             }                                                                │

00:00:20 #645 [Verbose] > │         }                                                                    │

00:00:20 #646 [Verbose] > │         impl core::fmt::Display for Spiral_eval::UH1 {                       │

00:00:20 #647 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #648 [Verbose] > │ {                                                                            │

00:00:20 #649 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #650 [Verbose] > │             }                                                                │

00:00:20 #651 [Verbose] > │         }                                                                    │

00:00:20 #652 [Verbose] > │         #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)]      │

00:00:20 #653 [Verbose] > │         pub enum US8 { US8_0(i32), US8_1(i32), US8_2(i32), }                 │

00:00:20 #654 [Verbose] > │         impl Spiral_eval::US8 {                                              │

00:00:20 #655 [Verbose] > │             pub fn get_IsUS8_0(this_: &MutCell<Spiral_eval::US8>, unitArg:   │

00:00:20 #656 [Verbose] > │ ())                                                                          │

00:00:20 #657 [Verbose] > │              -> bool {                                                       │

00:00:20 #658 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #659 [Verbose] > │             }                                                                │

00:00:20 #660 [Verbose] > │             pub fn get_IsUS8_1(this_: &MutCell<Spiral_eval::US8>, unitArg:   │

00:00:20 #661 [Verbose] > │ ())                                                                          │

00:00:20 #662 [Verbose] > │              -> bool {                                                       │

00:00:20 #663 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #664 [Verbose] > │             }                                                                │

00:00:20 #665 [Verbose] > │             pub fn get_IsUS8_2(this_: &MutCell<Spiral_eval::US8>, unitArg:   │

00:00:20 #666 [Verbose] > │ ())                                                                          │

00:00:20 #667 [Verbose] > │              -> bool {                                                       │

00:00:20 #668 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #669 [Verbose] > │             }                                                                │

00:00:20 #670 [Verbose] > │         }                                                                    │

00:00:20 #671 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US8 {                       │

00:00:20 #672 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #673 [Verbose] > │ {                                                                            │

00:00:20 #674 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #675 [Verbose] > │             }                                                                │

00:00:20 #676 [Verbose] > │         }                                                                    │

00:00:20 #677 [Verbose] > │         #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)]            │

00:00:20 #678 [Verbose] > │         pub enum US5 {                                                       │

00:00:20 #679 [Verbose] > │             US5_0(LrcPtr<Spiral_eval::UH1>),                                 │

00:00:20 #680 [Verbose] > │             US5_1(Spiral_eval::US8),                                         │

00:00:20 #681 [Verbose] > │         }                                                                    │

00:00:20 #682 [Verbose] > │         impl Spiral_eval::US5 {                                              │

00:00:20 #683 [Verbose] > │             pub fn get_IsUS5_0(this_: &MutCell<Spiral_eval::US5>, unitArg:   │

00:00:20 #684 [Verbose] > │ ())                                                                          │

00:00:20 #685 [Verbose] > │              -> bool {                                                       │

00:00:20 #686 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #687 [Verbose] > │             }                                                                │

00:00:20 #688 [Verbose] > │             pub fn get_IsUS5_1(this_: &MutCell<Spiral_eval::US5>, unitArg:   │

00:00:20 #689 [Verbose] > │ ())                                                                          │

00:00:20 #690 [Verbose] > │              -> bool {                                                       │

00:00:20 #691 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #692 [Verbose] > │             }                                                                │

00:00:20 #693 [Verbose] > │         }                                                                    │

00:00:20 #694 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US5 {                       │

00:00:20 #695 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #696 [Verbose] > │ {                                                                            │

00:00:20 #697 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #698 [Verbose] > │             }                                                                │

00:00:20 #699 [Verbose] > │         }                                                                    │

00:00:20 #700 [Verbose] > │         #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)]            │

00:00:20 #701 [Verbose] > │         pub enum US4 { US4_0(Spiral_eval::US3), US4_1(Spiral_eval::US5), }   │

00:00:20 #702 [Verbose] > │         impl Spiral_eval::US4 {                                              │

00:00:20 #703 [Verbose] > │             pub fn get_IsUS4_0(this_: &MutCell<Spiral_eval::US4>, unitArg:   │

00:00:20 #704 [Verbose] > │ ())                                                                          │

00:00:20 #705 [Verbose] > │              -> bool {                                                       │

00:00:20 #706 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #707 [Verbose] > │             }                                                                │

00:00:20 #708 [Verbose] > │             pub fn get_IsUS4_1(this_: &MutCell<Spiral_eval::US4>, unitArg:   │

00:00:20 #709 [Verbose] > │ ())                                                                          │

00:00:20 #710 [Verbose] > │              -> bool {                                                       │

00:00:20 #711 [Verbose] > │                 if unreachable!() { true } else { false }                    │

00:00:20 #712 [Verbose] > │             }                                                                │

00:00:20 #713 [Verbose] > │         }                                                                    │

00:00:20 #714 [Verbose] > │         impl core::fmt::Display for Spiral_eval::US4 {                       │

00:00:20 #715 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #716 [Verbose] > │ {                                                                            │

00:00:20 #717 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #718 [Verbose] > │             }                                                                │

00:00:20 #719 [Verbose] > │         }                                                                    │

00:00:20 #720 [Verbose] > │         #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)]            │

00:00:20 #721 [Verbose] > │         pub enum UH2 {                                                       │

00:00:20 #722 [Verbose] > │             UH2_0(LrcPtr<Spiral_eval::UH0>, string, Spiral_eval::US4,        │

00:00:20 #723 [Verbose] > │                   LrcPtr<Spiral_eval::UH2>),                                 │

00:00:20 #724 [Verbose] > │             UH2_1,                                                           │

00:00:20 #725 [Verbose] > │         }                                                                    │

00:00:20 #726 [Verbose] > │         impl Spiral_eval::UH2 {                                              │

00:00:20 #727 [Verbose] > │             pub fn get_IsUH2_0(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │

00:00:20 #728 [Verbose] > │              -> bool {                                                       │

00:00:20 #729 [Verbose] > │                 if let Spiral_eval::UH2::UH2_0(this__0_0, this__0_1,         │

00:00:20 #730 [Verbose] > │                                                this__0_2, this__0_3) =       │

00:00:20 #731 [Verbose] > │                        this_.as_ref() {                                      │

00:00:20 #732 [Verbose] > │                     true                                                     │

00:00:20 #733 [Verbose] > │                 } else { false }                                             │

00:00:20 #734 [Verbose] > │             }                                                                │

00:00:20 #735 [Verbose] > │             pub fn get_IsUH2_1(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │

00:00:20 #736 [Verbose] > │              -> bool {                                                       │

00:00:20 #737 [Verbose] > │                 if let Spiral_eval::UH2::UH2_1 = this_.as_ref() {            │

00:00:20 #738 [Verbose] > │                     true                                                     │

00:00:20 #739 [Verbose] > │                 } else { false }                                             │

00:00:20 #740 [Verbose] > │             }                                                                │

00:00:20 #741 [Verbose] > │         }                                                                    │

00:00:20 #742 [Verbose] > │         impl core::fmt::Display for Spiral_eval::UH2 {                       │

00:00:20 #743 [Verbose] > │             fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │

00:00:20 #744 [Verbose] > │ {                                                                            │

00:00:20 #745 [Verbose] > │                 write!(f, "{}", core::any::type_name::<Self>())              │

00:00:20 #746 [Verbose] > │             }                                                                │

00:00:20 #747 [Verbose] > │         }                                                                    │

00:00:20 #748 [Verbose] > │         pub fn method0() {                                                   │

00:00:20 #749 [Verbose] > │             let v17: std::string::String =                                   │

00:00:20 #750 [Verbose] > │                 format!("{:#?}",                                             │

00:00:20 #751 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1),    │

00:00:20 #752 [Verbose] > │                                                                              │

00:00:20 #753 [Verbose] > │ string("01"),                                                                │

00:00:20 #754 [Verbose] > │                                                                              │

00:00:20 #755 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0),                            │

00:00:20 #756 [Verbose] > │                                                                              │

00:00:20 #757 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1),    │

00:00:20 #758 [Verbose] > │                                                                              │

00:00:20 #759 [Verbose] > │ string("02"),                                                                │

00:00:20 #760 [Verbose] > │                                                                              │

00:00:20 #761 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0),                            │

00:00:20 #762 [Verbose] > │                                                                              │

00:00:20 #763 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1),    │

00:00:20 #764 [Verbose] > │                                                                              │

00:00:20 #765 [Verbose] > │ string("03"),                                                                │

00:00:20 #766 [Verbose] > │                                                                              │

00:00:20 #767 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0),                            │

00:00:20 #768 [Verbose] > │                                                                              │

00:00:20 #769 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_1))))))));                                 │

00:00:20 #770 [Verbose] > │             printfn!("{0}", v17);                                            │

00:00:20 #771 [Verbose] > │             ()                                                               │

00:00:20 #772 [Verbose] > │         }                                                                    │

00:00:20 #773 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:00:20 #774 [Verbose] > │     }                                                                        │

00:00:20 #775 [Verbose] > │ }                                                                            │

00:00:20 #776 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:00:20 #777 [Verbose] > │                                                                              │

00:00:20 #778 [Verbose] > │                                                                              │

00:00:20 #779 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #780 [Verbose] >

00:00:20 #781 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:20 #782 [Verbose] > // // test

00:00:20 #783 [Verbose] > // // rust=

00:00:20 #784 [Verbose] >

00:00:20 #785 [Verbose] > get_tasks ()

00:00:20 #786 [Verbose] > |> listm'.try_item 0i32

00:00:20 #787 [Verbose] > |> fun (Some task) => task.task.name

00:00:20 #788 [Verbose] > |> _assert_eq (task_name "01")

00:00:20 #789 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0143-1345-4557-4f809f71b411\main.spi

00:00:25 #790 [Verbose] >

00:00:25 #791 [Verbose] > ╭─[ 5.08s - return value ]─────────────────────────────────────────────────────╮

00:00:25 #792 [Verbose] > │ .rs output:                                                                  │

00:00:25 #793 [Verbose] > │ "01"                                                                         │

00:00:25 #794 [Verbose] > │                                                                              │

00:00:25 #795 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #796 [Verbose] >

00:00:25 #797 [Verbose] > ╭─[ 5.08s - stdout ]───────────────────────────────────────────────────────────╮

00:00:25 #798 [Verbose] > │                                                                              │

00:00:25 #799 [Verbose] > │ .fsx:                                                                        │

00:00:25 #800 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:25 #801 [Verbose] > │     let v0 : string = "01"                                                   │

00:00:25 #802 [Verbose] > │     let v1 : string = $"%A{v0}"                                              │

00:00:25 #803 [Verbose] > │     System.Console.WriteLine v1                                              │

00:00:25 #804 [Verbose] > │     let v2 : string = $"__expect / actual: %A{v0} / expected: %A{v0}"        │

00:00:25 #805 [Verbose] > │     ()                                                                       │

00:00:25 #806 [Verbose] > │ method0()                                                                    │

00:00:25 #807 [Verbose] > │                                                                              │

00:00:25 #808 [Verbose] > │                                                                              │

00:00:25 #809 [Verbose] > │ .rs:                                                                         │

00:00:25 #810 [Verbose] > │ #![allow(dead_code,)]                                                        │

00:00:25 #811 [Verbose] > │ #![allow(non_camel_case_types,)]                                             │

00:00:25 #812 [Verbose] > │ #![allow(non_snake_case,)]                                                   │

00:00:25 #813 [Verbose] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:25 #814 [Verbose] > │ #![allow(unreachable_code,)]                                                 │

00:00:25 #815 [Verbose] > │ #![allow(unused_attributes,)]                                                │

00:00:25 #816 [Verbose] > │ #![allow(unused_imports,)]                                                   │

00:00:25 #817 [Verbose] > │ #![allow(unused_macros,)]                                                    │

00:00:25 #818 [Verbose] > │ #![allow(unused_parens,)]                                                    │

00:00:25 #819 [Verbose] > │ #![allow(unused_variables,)]                                                 │

00:00:25 #820 [Verbose] > │ mod module_ccfa04bf {                                                        │

00:00:25 #821 [Verbose] > │     pub mod Spiral_eval {                                                    │

00:00:25 #822 [Verbose] > │         use super::*;                                                        │

00:00:25 #823 [Verbose] > │         use fable_library_rust::Native_::on_startup;                         │

00:00:25 #824 [Verbose] > │         use fable_library_rust::String_::printfn;                            │

00:00:25 #825 [Verbose] > │         use fable_library_rust::String_::sprintf;                            │

00:00:25 #826 [Verbose] > │         use fable_library_rust::String_::string;                             │

00:00:25 #827 [Verbose] > │         pub fn method0() {                                                   │

00:00:25 #828 [Verbose] > │             let v1: string = sprintf!("{:?}", string("01"));                 │

00:00:25 #829 [Verbose] > │             printfn!("{0}", v1);                                             │

00:00:25 #830 [Verbose] > │             {                                                                │

00:00:25 #831 [Verbose] > │                 let v2: string =                                             │

00:00:25 #832 [Verbose] > │                     sprintf!("__expect / actual: {:?} / expected: {:?}",     │

00:00:25 #833 [Verbose] > │                              string("01"), string("01"));                    │

00:00:25 #834 [Verbose] > │                 ()                                                           │

00:00:25 #835 [Verbose] > │             }                                                                │

00:00:25 #836 [Verbose] > │         }                                                                    │

00:00:25 #837 [Verbose] > │         on_startup!(Spiral_eval::method0());                                 │

00:00:25 #838 [Verbose] > │     }                                                                        │

00:00:25 #839 [Verbose] > │ }                                                                            │

00:00:25 #840 [Verbose] > │ pub use module_ccfa04bf::*;                                                  │

00:00:25 #841 [Verbose] > │                                                                              │

00:00:25 #842 [Verbose] > │                                                                              │

00:00:25 #843 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #844 [Verbose] >

00:00:25 #845 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:25 #846 [Verbose] > // // test

00:00:25 #847 [Verbose] >

00:00:25 #848 [Verbose] > ()

00:00:26 #849 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0143-1854-5479-57effde7a8e5\main.spi

00:00:26 #850 [Verbose] >

00:00:26 #851 [Verbose] > ╭─[ 539.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #852 [Verbose] > │ let rec method0 () : unit =                                                  │

00:00:26 #853 [Verbose] > │     ()                                                                       │

00:00:26 #854 [Verbose] > │ method0()                                                                    │

00:00:26 #855 [Verbose] > │                                                                              │

00:00:26 #856 [Verbose] > │                                                                              │

00:00:26 #857 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #858 [Verbose] > [NbConvertApp] Converting notebook Tasks.dib.ipynb to html

00:00:28 #859 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:28 #860 [Verbose] >   validate(nb)

00:00:28 #861 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:28 #862 [Verbose] >   return _pygments_highlight(

00:00:29 #863 [Verbose] > [NbConvertApp] Writing 313974 bytes to Tasks.dib.html

00:00:30 #864 [Debug] executeAsync / exitCode: 0 / output.Length: 56712

00:00:30 #865 [Debug] main / executeCommand / exitCode: 0

00:00:32 #866 [Debug] runWithTimeoutAsync / timeout: 2000

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: Tasks.dib

00:00:00 #2 [Debug] parseDibCode / output: Spi / file: Tasks.dib

In [ ]:
{ . "$ScriptDir/../apps/chat/build.ps1" } | Invoke-Block
    Finished `release` profile [optimized] target(s) in 3.39s

    Finished `release` profile [optimized] target(s) in 24.26s

     Running `/mnt/c/home/git/polyglot/target/release/chat_contract_tests`

Updated the logging layer according to `log_config.json`





new: ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5283254206938,

    },

    transaction: ExecutionOutcome {

        transaction_hash: DFzGyK82hpVsei9JQPu9xVJcnohDsSs621tFLy2ma2gh,

        block_hash: 7PppPwbmmhkMCr9CBStRz1yGVy3WofsQQGuakDPb5jrB,

        logs: [],

        receipt_ids: [

            9RjETNvnYgHw7b3DHxgMugYWtR3yZidHG4GzCj6Kojsc,

        ],

        gas_burnt: NearGas {

            inner: 2427927707802,

        },

        tokens_burnt: NearToken {

            inner: 242792770780200000000,

        },

        executor_id: AccountId(

            "dev-20240330054414-11503900106659",

        ),

        status: SuccessReceiptId(9RjETNvnYgHw7b3DHxgMugYWtR3yZidHG4GzCj6Kojsc),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 9RjETNvnYgHw7b3DHxgMugYWtR3yZidHG4GzCj6Kojsc,

            block_hash: 7PppPwbmmhkMCr9CBStRz1yGVy3WofsQQGuakDPb5jrB,

            logs: [],

            receipt_ids: [

                8URgimLmzezXRdoW1J4a9hqrssdNaCAT6ngnqt14aUFx,

            ],

            gas_burnt: NearGas {

                inner: 2632143936636,

            },

            tokens_burnt: NearToken {

                inner: 263214393663600000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 8URgimLmzezXRdoW1J4a9hqrssdNaCAT6ngnqt14aUFx,

            block_hash: EcGTC9F2CiPsQBKUfceTfibYq4ujBp2TrEQQSQyri1s8,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.0035292138102345836

outcome (success: true):

  outcome_gas_burnt_usd: 0.001621855708811736

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.0017582721496728479

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





claim_alias(contract, ''): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5288100939772,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 4NusiBxMiUpV4wyjxpu68Ri1pM4fxsFhb38SuwJJnoqE,

        block_hash: DDsUhU3Byb1wrgRzimHKvdvYNLmDXreaSdigvHgjdTQR,

        logs: [],

        receipt_ids: [

            Drkiqt2rvCxcDHStizo5RLa27Qtk3YwvRBrf7bNyVoDp,

        ],

        gas_burnt: NearGas {

            inner: 2427972426482,

        },

        tokens_burnt: NearToken {

            inner: 242797242648200000000,

        },

        executor_id: AccountId(

            "dev-20240330054414-11503900106659",

        ),

        status: SuccessReceiptId(Drkiqt2rvCxcDHStizo5RLa27Qtk3YwvRBrf7bNyVoDp),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: Drkiqt2rvCxcDHStizo5RLa27Qtk3YwvRBrf7bNyVoDp,

            block_hash: DDsUhU3Byb1wrgRzimHKvdvYNLmDXreaSdigvHgjdTQR,

            logs: [

                "claim_alias / alias: \"\" / account_id: AccountId(\n    \"dev-20240330054414-11503900106659\",\n) / timestamp: 1711777456688753272",

            ],

            receipt_ids: [

                AVkrdqh5ACgAiaDciJMebWM7AuxUHJpRHLjxXkWhUcwQ,

            ],

            gas_burnt: NearGas {

                inner: 2636945950790,

            },

            tokens_burnt: NearToken {

                inner: 263694595079000000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),

        },

        ExecutionOutcome {

            transaction_hash: AVkrdqh5ACgAiaDciJMebWM7AuxUHJpRHLjxXkWhUcwQ,

            block_hash: DxgbgJKJAtWTmPT5GAJkZnJ6xsBDqBGGjYzvmBfzStGE,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

    ],

    status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),

}

total_gas_burnt_usd: 0.003532451427767696

outcome (success: true):

  outcome_gas_burnt_usd: 0.001621885580889976

  outcome_tokens_burnt_usd: 0.0

outcome (success: false):

  outcome_gas_burnt_usd: 0.0017614798951277198

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





dev_create_account(account1): Account {

    id: AccountId(

        "dev-20240330054417-18854445675106",

    ),

}





generate_cid_borsh(account1): ViewResultDetails {

    result: [

        59,

        0,

        0,

        0,

        98,

        97,

        102,

        107,

        114,

        101,

        105,

        104,

        100,

        119,

        100,

        99,

        101,

        102,

        103,

        104,

        52,

        100,

        113,

        107,

        106,

        118,

        54,

        55,

        117,

        122,

        99,

        109,

        119,

        55,

        111,

        106,

        101,

        101,

        54,

        120,

        101,

        100,

        122,

        100,

        101,

        116,

        111,

        106,

        117,

        122,

        106,

        101,

        118,

        116,

        101,

        110,

        120,

        113,

        117,

        118,

        121,

        107,

        117,

    ],

    logs: [],

}





claim_alias(account1, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5709876948985,

    },

    transaction: ExecutionOutcome {

        transaction_hash: HkDJg8zjZP1YhRmth8YkRfKomvbGuRkQQSEBMxVaFfTw,

        block_hash: 2UN2mYzsaxRsNUWczx8e7o328ZzpdBmQgfiknqxCcT7Q,

        logs: [],

        receipt_ids: [

            4iuoVn7kDnHomHLxuMmVKrAeuo2b3NS2zcoWTYtrFQYs,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: NearToken {

            inner: 242798584208600000000,

        },

        executor_id: AccountId(

            "dev-20240330054417-18854445675106",

        ),

        status: SuccessReceiptId(4iuoVn7kDnHomHLxuMmVKrAeuo2b3NS2zcoWTYtrFQYs),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 4iuoVn7kDnHomHLxuMmVKrAeuo2b3NS2zcoWTYtrFQYs,

            block_hash: CMVWzpNA7L12UQGEruthfSX7KtXmV6iRNeysMcK6WhNK,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240330054417-18854445675106\",\n) / timestamp: 1711777458923400027",

            ],

            receipt_ids: [

                YrU63iAAW23PjazuuhkjwkykbyoBtcMRNQjnnHSrFTG,

            ],

            gas_burnt: NearGas {

                inner: 3058708544399,

            },

            tokens_burnt: NearToken {

                inner: 305870854439900000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: YrU63iAAW23PjazuuhkjwkykbyoBtcMRNQjnnHSrFTG,

            block_hash: HXKnFhCLdtQ5NuK64DJpjzW9LyStNTKPuy4ig3Tmt23p,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054417-18854445675106",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.00381419780192198

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.002043217307658532

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





claim_alias(account1, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5534221289926,

    },

    transaction: ExecutionOutcome {

        transaction_hash: ELr9xUGoU6cXtcMFxm5t9zHP8DUjoeH9AmBkxQbvmGmQ,

        block_hash: 9Qdvn4CRRJ3VJHjQsUWsHHFRUS7VtmR3TQHbcJULYatS,

        logs: [],

        receipt_ids: [

            HLEdnXm7CNwh2Q1JyrS9gqAQQ4VvYsrnud7oBjYvofio,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: NearToken {

            inner: 242798584208600000000,

        },

        executor_id: AccountId(

            "dev-20240330054417-18854445675106",

        ),

        status: SuccessReceiptId(HLEdnXm7CNwh2Q1JyrS9gqAQQ4VvYsrnud7oBjYvofio),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: HLEdnXm7CNwh2Q1JyrS9gqAQQ4VvYsrnud7oBjYvofio,

            block_hash: 9x8Utcb2WyDXXdzy5JaLTPdBf5Z3onugKJqCyh7bNAJo,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240330054417-18854445675106\",\n) / timestamp: 1711777459935203172",

                "Alias already claimed",

            ],

            receipt_ids: [

                7Ghs4Erk29rvBrG2dH4qbpXV2GsYzKYsAVhvR7Ab5dzw,

            ],

            gas_burnt: NearGas {

                inner: 2883052885340,

            },

            tokens_burnt: NearToken {

                inner: 288305288534000000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 7Ghs4Erk29rvBrG2dH4qbpXV2GsYzKYsAVhvR7Ab5dzw,

            block_hash: F43mrvXMQgX8kChFDSM7V1xvp8VoSM7zQDXwbkfweRup,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054417-18854445675106",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.003696859821670568

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00192587932740712

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account1): Some(

    (

        "alias1",

        (

            1711777458923400027,

            0,

        ),

    ),

)





get_alias_map(account1, alias1): Some(

    {

        AccountId(

            "dev-20240330054417-18854445675106",

        ): (

            1711777458923400027,

            0,

        ),

    },

)





dev_create_account(account2): Account {

    id: AccountId(

        "dev-20240330054420-15796065146753",

    ),

}





claim_alias(alias2): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5797226728615,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 2YtFmHKYrxK1bMkVpjXgykUDJfgCPoq2CnLQf93GBr6m,

        block_hash: 9uAX1PXTCrG1nQcdMyK3WJZ4qktXuB7oRFgG8jjZpaMi,

        logs: [],

        receipt_ids: [

            86r4D1puN175rbzrHT1hkgPuQeUaeZ9zAvy74nDzfaPk,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: NearToken {

            inner: 242798584208600000000,

        },

        executor_id: AccountId(

            "dev-20240330054420-15796065146753",

        ),

        status: SuccessReceiptId(86r4D1puN175rbzrHT1hkgPuQeUaeZ9zAvy74nDzfaPk),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 86r4D1puN175rbzrHT1hkgPuQeUaeZ9zAvy74nDzfaPk,

            block_hash: 8r8dcTvd4M5tdKosXxywyHWZvD97aSV4iRX3S6v4isQJ,

            logs: [

                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20240330054420-15796065146753\",\n) / timestamp: 1711777461958547364",

            ],

            receipt_ids: [

                CkYdSSeXN47vR1ycYY8y7zaTf6YQRTNyhqqbExGJ84sE,

            ],

            gas_burnt: NearGas {

                inner: 3146058324029,

            },

            tokens_burnt: NearToken {

                inner: 314605832402900000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: CkYdSSeXN47vR1ycYY8y7zaTf6YQRTNyhqqbExGJ84sE,

            block_hash: AAWhnHJK4LuCkRQguT9dykYJKP68Q34XbBCsEpBM72AW,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054420-15796065146753",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.0038725474547148197

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.002101566960451372

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account2): Some(

    (

        "alias2",

        (

            1711777461958547364,

            0,

        ),

    ),

)





get_alias_map_borsh(alias2): Some(

    {

        AccountId(

            "dev-20240330054420-15796065146753",

        ): (

            1711777461958547364,

            0,

        ),

    },

)





claim_alias(account2, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6101258996626,

    },

    transaction: ExecutionOutcome {

        transaction_hash: BVYJG6poUh25Y3BwBqvwbs56swPHpmo1rvXrR4oj7iyL,

        block_hash: 5yLf2omq8FJTmdBtazfMGpXWG7nZ2qwmdZxXfXVS5rCX,

        logs: [],

        receipt_ids: [

            HBJ6HP7Ng6PZYGdNf9NYpsfGPpwDhtq23iTDqNXaSjJb,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: NearToken {

            inner: 242798584208600000000,

        },

        executor_id: AccountId(

            "dev-20240330054420-15796065146753",

        ),

        status: SuccessReceiptId(HBJ6HP7Ng6PZYGdNf9NYpsfGPpwDhtq23iTDqNXaSjJb),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: HBJ6HP7Ng6PZYGdNf9NYpsfGPpwDhtq23iTDqNXaSjJb,

            block_hash: 9dBVnYeKn19KYNsvtcDKZM8oyXiW53Bf8atkT7rBTBpr,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240330054420-15796065146753\",\n) / timestamp: 1711777462970699837",

            ],

            receipt_ids: [

                EEr8SPjBxkALuTrhNSfg4w5x7inZAuf3mAp2Ynq9qhct,

            ],

            gas_burnt: NearGas {

                inner: 3450090592040,

            },

            tokens_burnt: NearToken {

                inner: 345009059204000000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: EEr8SPjBxkALuTrhNSfg4w5x7inZAuf3mAp2Ynq9qhct,

            block_hash: DXhLWrAgwppDaKRjPJtyWccX3kEUES7p79SwUankzpMc,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054420-15796065146753",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004075641009746168

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00230466051548272

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account2): Some(

    (

        "alias1",

        (

            1711777462970699837,

            1,

        ),

    ),

)





get_alias_map(account2, alias1): Some(

    {

        AccountId(

            "dev-20240330054417-18854445675106",

        ): (

            1711777458923400027,

            0,

        ),

        AccountId(

            "dev-20240330054420-15796065146753",

        ): (

            1711777462970699837,

            1,

        ),

    },

)





get_alias_map(account2, alias2): Some(

    {},

)





claim_alias(account1, alias2): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6095953043182,

    },

    transaction: ExecutionOutcome {

        transaction_hash: kfVMHFD6WX4p9eYgTYenASEPUNv5QgA1gHqqjFgAhyp,

        block_hash: CZZ6raYD7DHUhuTAuMMgnQABzvt1YBXQHCosJEfkZutT,

        logs: [],

        receipt_ids: [

            F6z19vxVgn1MNvCti97Dw5q1i7yAfLPovGdNxYCqoKxt,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: NearToken {

            inner: 242798584208600000000,

        },

        executor_id: AccountId(

            "dev-20240330054417-18854445675106",

        ),

        status: SuccessReceiptId(F6z19vxVgn1MNvCti97Dw5q1i7yAfLPovGdNxYCqoKxt),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: F6z19vxVgn1MNvCti97Dw5q1i7yAfLPovGdNxYCqoKxt,

            block_hash: 7kyrKeRrrFcvpxmTqpJqN7kSZYHrSYXFX4a46MMqDQ9P,

            logs: [

                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20240330054417-18854445675106\",\n) / timestamp: 1711777463984070611",

            ],

            receipt_ids: [

                AN7fjrBtaf9akWbRvD9T28BxDg1dcRfxfHevDRRrgan1,

            ],

            gas_burnt: NearGas {

                inner: 3444784638596,

            },

            tokens_burnt: NearToken {

                inner: 344478463859600000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: AN7fjrBtaf9akWbRvD9T28BxDg1dcRfxfHevDRRrgan1,

            block_hash: Au52UxFQSN3h6cx5gztTW2yGo92D8hmDxopmC3Cq8CNr,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054417-18854445675106",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004072096632845575

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.0023011161385821277

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account1): Some(

    (

        "alias2",

        (

            1711777463984070611,

            0,

        ),

    ),

)





get_alias_map(account1, alias2): Some(

    {

        AccountId(

            "dev-20240330054417-18854445675106",

        ): (

            1711777463984070611,

            0,

        ),

    },

)





get_alias_map(account1, alias1): Some(

    {

        AccountId(

            "dev-20240330054420-15796065146753",

        ): (

            1711777462970699837,

            1,

        ),

    },

)





claim_alias(account1, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6101282033794,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 66vr7435PJoMntwCrzYXQnUgNyaW3BRvvVdk7ALgFxA,

        block_hash: 81aEzf1MEKRNRwMybBS1rpXJxvmMtJtB4QtcUkEPaFui,

        logs: [],

        receipt_ids: [

            HofGTb4JzXLZ9oyDETPhJt7m3yExNDeSFZbLBzhVm3B8,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: NearToken {

            inner: 242798584208600000000,

        },

        executor_id: AccountId(

            "dev-20240330054417-18854445675106",

        ),

        status: SuccessReceiptId(HofGTb4JzXLZ9oyDETPhJt7m3yExNDeSFZbLBzhVm3B8),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: HofGTb4JzXLZ9oyDETPhJt7m3yExNDeSFZbLBzhVm3B8,

            block_hash: 5ytj3yU76Ruj9uNchp6mKMjAdu3kRqsmykWe5vY2pcck,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240330054417-18854445675106\",\n) / timestamp: 1711777465198794059",

            ],

            receipt_ids: [

                DaENPYo4WkR8NxP7kJ2nRXzTfQyMVcPP4zYTb31NoZiX,

            ],

            gas_burnt: NearGas {

                inner: 3450113629208,

            },

            tokens_burnt: NearToken {

                inner: 345011362920800000000,

            },

            executor_id: AccountId(

                "dev-20240330054414-11503900106659",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: DaENPYo4WkR8NxP7kJ2nRXzTfQyMVcPP4zYTb31NoZiX,

            block_hash: GQ8AfS8XfDfSUN4BPyMjPeobd4rsomKpWJMn7qXbDWrB,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: NearToken {

                inner: 0,

            },

            executor_id: AccountId(

                "dev-20240330054417-18854445675106",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004075656398574392

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.002304675904310944

  outcome_tokens_burnt_usd: 0.0

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account1): Some(

    (

        "alias1",

        (

            1711777465198794059,

            1,

        ),

    ),

)





get_alias_map(account1, alias1): Some(

    {

        AccountId(

            "dev-20240330054420-15796065146753",

        ): (

            1711777462970699837,

            0,

        ),

        AccountId(

            "dev-20240330054417-18854445675106",

        ): (

            1711777465198794059,

            1,

        ),

    },

)





get_alias_map(account1, alias2): Some(

    {},

)

In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/extension/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped

Already up to date



Done in 1.9s

[INFO]: 🎯  Checking for the Wasm target...

[INFO]: 🌀  Compiling to Wasm...

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.59s

[INFO]: ⬇️  Installing wasm-bindgen...

[INFO]: origin crate has no LICENSE

[INFO]: ✨   Done in 5.20s

[INFO]: 📦   Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg.

▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta]



    pkg/spiral_temp_extension.js:1486:57:

      1486 │ ...put = new URL('spiral_temp_extension_bg.wasm', import.meta.url);

           ╵                                                   ~~~~~~~~~~~



  You need to set the output format to "esm" for "import.meta" to work correctly.



1 warning



  dist\spiral_temp_extension_bg-JFLX6GEP.wasm   4.5mb ⚠️

  dist\devtools.js                             29.0kb

  dist\content_script.js                       26.9kb

  dist\service_worker.js                        2.2kb



⚡ Done in 116ms



> polyglot@ test:e2e C:\home\git\polyglot\apps\spiral\temp\extension

> playwright test



[WebServer] (node:21560) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

(Use `node --trace-deprecation ...` to show where the warning was created)





Running 3 tests using 3 workers



[1/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen

[2/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost

[3/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension

  3 passed (26.0s)



To open last HTML report run:



  pnpm exec playwright show-report



In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/test/build.ps1" } | Invoke-Block

── pwsh ────────────────────────────────────────────────────────────────────────

. ../../../../scripts/nbs_header.ps1

. ../../../../scripts/core.ps1



── pwsh ────────────────────────────────────────────────────────────────────────

{ . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) 

--execute-command "pwsh -c `"../../../../scripts/invoke-dib.ps1 test.dib`"" } | 

Invoke-Block -Retries 5



╭─[ 21.20s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60                        │

│ 00:00:00 #2 [Debug] executeAsync / options: { Command =                      │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:main@429-61> }                                          │

│ 00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral\temp\test      │

│ 00:00:00 #4 [Verbose] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to:          │

│ http://localhost:13805                                                       │

│ 00:00:01 #6 [Debug] runWithTimeoutAsync / timeout: 500                       │

│ 00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0             │

│ 00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} /           │

│ result.Length:                                                               │

│ 00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port:      │

│ 13805 / retry: 0                                                             │

│ 00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c            │

│ "../../../../scripts/invoke-dib.ps1 test.dib""                               │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = None }                                                            │

│ 00:00:03 #12 [Verbose] >                                                     │

│ 00:00:04 #13 [Verbose] > ── markdown                                         │

│ ────────────────────────────────────────────────────────────────────         │

│ 00:00:04 #14 [Verbose] >                                                     │

│ ╭─────────────────────────────────────────────────────────────────────────── │

│ ───╮                                                                         │

│ 00:00:04 #15 [Verbose] > │ # test (Polyglot)                                 │

│ │                                                                            │

│ 00:00:04 #16 [Verbose] >                                                     │

│ ╰─────────────────────────────────────────────────────────────────────────── │

│ ───╯                                                                         │

│ 00:00:04 #17 [Verbose] >                                                     │

│ 00:00:04 #18 [Verbose] > ── spiral                                           │

│ ──────────────────────────────────────────────────────────────────────       │

│ 00:00:04 #19 [Verbose] > // // test                                          │

│ 00:00:04 #20 [Verbose] >                                                     │

│ 00:00:04 #21 [Verbose] > open testing                                        │

│ 00:00:07 #22 [Verbose] > Building                                            │

│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0145-1275-7511-7e7f8 │

│ c946583\main.spi                                                             │

│ 00:00:10 #23 [Verbose] >                                                     │

│ 00:00:10 #24 [Verbose] > ╭─[ 5.95s - stdout                                  │

│ ]───────────────────────────────────────────────────────────╮                │

│ 00:00:10 #25 [Verbose] > │ ()                                                │

│ │                                                                            │

│ 00:00:10 #26 [Verbose] > │                                                   │

│                                                                              │

│ │                                                                            │

│ 00:00:10 #27 [Verbose] > │                                                   │

│                                                                              │

│ │                                                                            │

│ 00:00:10 #28 [Verbose] >                                                     │

│ ╰─────────────────────────────────────────────────────────────────────────── │

│ ───╯                                                                         │

│ 00:00:10 #29 [Verbose] >                                                     │

│ 00:00:10 #30 [Verbose] > ── spiral                                           │

│ ──────────────────────────────────────────────────────────────────────       │

│ 00:00:10 #31 [Verbose] > nominal i = ()                                      │

│ 00:00:10 #32 [Verbose] > nominal e = ()                                      │

│ 00:00:10 #33 [Verbose] > nominal s = ()                                      │

│ 00:00:10 #34 [Verbose] > nominal n = ()                                      │

│ 00:00:10 #35 [Verbose] > nominal t = ()                                      │

│ 00:00:10 #36 [Verbose] > nominal f = ()                                      │

│ 00:00:10 #37 [Verbose] > nominal j = ()                                      │

│ 00:00:10 #38 [Verbose] > nominal p = ()                                      │

│ 00:00:10 #39 [Verbose] >                                                     │

│ 00:00:10 #40 [Verbose] > union sensing =                                     │

│ 00:00:10 #41 [Verbose] >     | Si : s * i                                    │

│ 00:00:10 #42 [Verbose] >     | Se : s * e                                    │

│ 00:00:10 #43 [Verbose] >                                                     │

│ 00:00:10 #44 [Verbose] > union intuition =                                   │

│ 00:00:10 #45 [Verbose] >     | Ni : n * i                                    │

│ 00:00:10 #46 [Verbose] >     | Ne : n * e                                    │

│ 00:00:10 #47 [Verbose] >                                                     │

│ 00:00:10 #48 [Verbose] > union thinking =                                    │

│ 00:00:10 #49 [Verbose] >     | Ti : t * i                                    │

│ 00:00:10 #50 [Verbose] >     | Te : t * e                                    │

│ 00:00:10 #51 [Verbose] >                                                     │

│ 00:00:10 #52 [Verbose] > union feeling =                                     │

│ 00:00:10 #53 [Verbose] >     | Fi : f * i                                    │

│ 00:00:10 #54 [Verbose] >     | Fe : f * e                                    │

│ 00:00:10 #55 [Verbose] >                                                     │

│ 00:00:10 #56 [Verbose] > union function_stack =                              │

│ 00:00:10 #57 [Verbose] >     | FS : sensing * intuition * thinking * feeling │

│ 00:00:10 #58 [Verbose] >                                                     │

│ 00:00:10 #59 [Verbose] > union personality_type =                            │

│ 00:00:10 #60 [Verbose] >     | ISTJ : i * s * t * j * function_stack         │

│ 00:00:10 #61 [Verbose] >     | ISFJ : i * s * f * j * function_stack         │

│ 00:00:10 #62 [Verbose] >     | INFJ : i * n * f * j * function_stack         │

│ 00:00:10 #63 [Verbose] >     | INTJ : i * n * t * j * function_stack         │

│ 00:00:10 #64 [Verbose] >     | ISTP : i * s * t * p * function_stack         │

│ 00:00:10 #65 [Verbose] >     | ISFP : i * s * f * p * function_stack         │

│ 00:00:10 #66 [Verbose] >     | INFP : i * n * f * p * function_stack         │

│ 00:00:10 #67 [Verbose] >     | INTP : i * n * t * p * function_stack         │

│ 00:00:10 #68 [Verbose] >     | ESTP : e * s * t * p * function_stack         │

│ 00:00:10 #69 [Verbose] >     | ESFP : e * s * f * p * function_stack         │

│ 00:00:10 #70 [Verbose] >     | ENFP : e * n * f * p * function_stack         │

│ 00:00:10 #71 [Verbose] >     | ENTP : e * n * t * p * function_stack         │

│ 00:00:10 #72 [Verbose] >     | ESTJ : e * s * t * j * function_stack         │

│ 00:00:10 #73 [Verbose] >     | ESFJ : e * s * f * j * function_stack         │

│ 00:00:10 #74 [Verbose] >     | ENFJ : e * n * f * j * function_stack         │

│ 00:00:10 #75 [Verbose] >     | ENTJ : e * n * t * j * function_stack         │

│ 00:00:10 #76 [Verbose] >                                                     │

│ 00:00:10 #77 [Verbose] >                                                     │

│ 00:00:10 #78 [Verbose] > inl main () =                                       │

│ 00:00:10 #79 [Verbose] >     inl istj_stack = FS ((Si (s, i)), Ne (n, e),    │

│ (Te (t, e)), (Fi (f, i)))                                                    │

│ 00:00:10 #80 [Verbose] >     inl istj_personality = ISTJ (i, s, t, j,        │

│ istj_stack)                                                                  │

│ 00:00:10 #81 [Verbose] >     // inl isfj_stack = FS ((Si (s, i)), Ne (n, e), │

│ (Fe (f, e)), (Ti (t, i)))                                                    │

│ 00:00:10 #82 [Verbose] >     // inl isfj_personality = ISFJ (i, s, f, j,     │

│ isfj_stack)                                                                  │

│ 00:00:10 #83 [Verbose] >                                                     │

│ 00:00:10 #84 [Verbose] >     ;[[                                             │

│ 00:00:10 #85 [Verbose] >         istj_personality                            │

│ 00:00:10 #86 [Verbose] >     ]]                                              │

│ 00:00:10 #87 [Verbose] >     |> fun x => $'$"%A{!x}"' : string               │

│ 00:00:10 #88 [Verbose] >     |> console.write_line                           │

│ 00:00:10 #89 [Verbose] >                                                     │

│ 00:00:10 #90 [Verbose] > inl main () =                                       │

│ 00:00:10 #91 [Verbose] >     $"!main ()" : ()                                │

│ 00:00:10 #92 [Verbose] > Building                                            │

│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0145-1629-2902-2b42b │

│ f60d51b\main.spi                                                             │

│ 00:00:11 #93 [Verbose] >                                                     │

│ 00:00:11 #94 [Verbose] > ╭─[ 1.78s - stdout                                  │

│ ]───────────────────────────────────────────────────────────╮                │

│ 00:00:11 #95 [Verbose] > │ type [<Struct>] US0 =                             │

│ │                                                                            │

│ 00:00:11 #96 [Verbose] > │     | US0_0                                       │

│ │                                                                            │

│ 00:00:11 #97 [Verbose] > │     | US0_1                                       │

│ │                                                                            │

│ 00:00:11 #98 [Verbose] > │ and [<Struct>] US1 =                              │

│ │                                                                            │

│ 00:00:11 #99 [Verbose] > │     | US1_0                                       │

│ │                                                                            │

│ 00:00:11 #100 [Verbose] > │     | US1_1                                      │

│ │                                                                            │

│ 00:00:11 #101 [Verbose] > │ and [<Struct>] US2 =                             │

│ │                                                                            │

│ 00:00:11 #102 [Verbose] > │     | US2_0                                      │

│ │                                                                            │

│ 00:00:11 #103 [Verbose] > │     | US2_1                                      │

│ │                                                                            │

│ 00:00:11 #104 [Verbose] > │ and [<Struct>] US3 =                             │

│ │                                                                            │

│ 00:00:11 #105 [Verbose] > │     | US3_0                                      │

│ │                                                                            │

│ 00:00:11 #106 [Verbose] > │     | US3_1                                      │

│ │                                                                            │

│ 00:00:11 #107 [Verbose] > │ and [<Struct>] US4 =                             │

│ │                                                                            │

│ 00:00:11 #108 [Verbose] > │     | US4_0 of f0_0 : US0 * f0_1 : US1 * f0_2 :  │

│ US2 * f0_3 : US3             │                                               │

│ 00:00:11 #109 [Verbose] > │ and [<Struct>] US5 =                             │

│ │                                                                            │

│ 00:00:11 #110 [Verbose] > │     | US5_0 of f0_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #111 [Verbose] > │     | US5_1 of f1_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #112 [Verbose] > │     | US5_2 of f2_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #113 [Verbose] > │     | US5_3 of f3_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #114 [Verbose] > │     | US5_4 of f4_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #115 [Verbose] > │     | US5_5 of f5_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #116 [Verbose] > │     | US5_6 of f6_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #117 [Verbose] > │     | US5_7 of f7_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #118 [Verbose] > │     | US5_8 of f8_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #119 [Verbose] > │     | US5_9 of f9_0 : US4                        │

│ │                                                                            │

│ 00:00:11 #120 [Verbose] > │     | US5_10 of f10_0 : US4                      │

│ │                                                                            │

│ 00:00:11 #121 [Verbose] > │     | US5_11 of f11_0 : US4                      │

│ │                                                                            │

│ 00:00:11 #122 [Verbose] > │     | US5_12 of f12_0 : US4                      │

│ │                                                                            │

│ 00:00:11 #123 [Verbose] > │     | US5_13 of f13_0 : US4                      │

│ │                                                                            │

│ 00:00:11 #124 [Verbose] > │     | US5_14 of f14_0 : US4                      │

│ │                                                                            │

│ 00:00:11 #125 [Verbose] > │     | US5_15 of f15_0 : US4                      │

│ │                                                                            │

│ 00:00:11 #126 [Verbose] > │ let rec method0 (v0 : (US5 [])) : (US5 []) =     │

│ │                                                                            │

│ 00:00:11 #127 [Verbose] > │     v0                                           │

│ │                                                                            │

│ 00:00:11 #128 [Verbose] > │ and closure0 () () : unit =                      │

│ │                                                                            │

│ 00:00:11 #129 [Verbose] > │     let v0 : US0 = US0_1                         │

│ │                                                                            │

│ 00:00:11 #130 [Verbose] > │     let v1 : US1 = US1_0                         │

│ │                                                                            │

│ 00:00:11 #131 [Verbose] > │     let v2 : US2 = US2_0                         │

│ │                                                                            │

│ 00:00:11 #132 [Verbose] > │     let v3 : US3 = US3_1                         │

│ │                                                                            │

│ 00:00:11 #133 [Verbose] > │     let v4 : US4 = US4_0(v0, v1, v2, v3)         │

│ │                                                                            │

│ 00:00:11 #134 [Verbose] > │     let v5 : US5 = US5_14(v4)                    │

│ │                                                                            │

│ 00:00:11 #135 [Verbose] > │     let v6 : (US5 []) = [|v5|]                   │

│ │                                                                            │

│ 00:00:11 #136 [Verbose] > │     let v7 : (US5 []) = method0(v6)              │

│ │                                                                            │

│ 00:00:11 #137 [Verbose] > │     let v8 : string = $"%A{v7}"                  │

│ │                                                                            │

│ 00:00:11 #138 [Verbose] > │     System.Console.WriteLine v8                  │

│ │                                                                            │

│ 00:00:11 #139 [Verbose] > │     ()                                           │

│ │                                                                            │

│ 00:00:11 #140 [Verbose] > │ let v0 : (unit -> unit) = closure0()             │

│ │                                                                            │

│ 00:00:11 #141 [Verbose] > │ v0 ()                                            │

│ │                                                                            │

│ 00:00:11 #142 [Verbose] > │ ()                                               │

│ │                                                                            │

│ 00:00:11 #143 [Verbose] > │                                                  │

│                                                                              │

│ │                                                                            │

│ 00:00:11 #144 [Verbose] > │ [|US5_14 (US4_0 (US0_1, US1_0, US2_0, US3_1))|]  │

│ │                                                                            │

│ 00:00:11 #145 [Verbose] > │                                                  │

│                                                                              │

│ │                                                                            │

│ 00:00:11 #146 [Verbose] >                                                    │

│ ╰─────────────────────────────────────────────────────────────────────────── │

│ ───╯                                                                         │

│ 00:00:11 #147 [Verbose] >                                                    │

│ 00:00:11 #148 [Verbose] > ── fsharp                                          │

│ ──────────────────────────────────────────────────────────────────────       │

│ 00:00:11 #149 [Verbose] > type PhonologicalFeature =                         │

│ 00:00:11 #150 [Verbose] >     | VowelFeature of                              │

│ 00:00:11 #151 [Verbose] >         height: Height                             │

│ 00:00:11 #152 [Verbose] >         * backness: Backness                       │

│ 00:00:11 #153 [Verbose] >         * roundedness: Roundedness                 │

│ 00:00:11 #154 [Verbose] >         * tone: Option<Tone>                       │

│ 00:00:11 #155 [Verbose] >         * stress: Option<Stress>                   │

│ 00:00:11 #156 [Verbose] >         * length: Option<Length>                   │

│ 00:00:11 #157 [Verbose] >     | ConsonantFeature of                          │

│ 00:00:11 #158 [Verbose] >         place: PlaceOfArticulation                 │

│ 00:00:11 #159 [Verbose] >         * manner: MannerOfArticulation             │

│ 00:00:11 #160 [Verbose] >         * voicing: Voicing                         │

│ 00:00:11 #161 [Verbose] >         * length: Option<Length>                   │

│ 00:00:11 #162 [Verbose] >     | VowelHarmonyFeature                          │

│ 00:00:11 #163 [Verbose] >     | PitchAccentFeature                           │

│ 00:00:11 #164 [Verbose] >                                                    │

│ 00:00:11 #165 [Verbose] > and Stress = Primary | Secondary                   │

│ 00:00:11 #166 [Verbose] > and Length = Long | Short | HalfLong               │

│ 00:00:11 #167 [Verbose] >                                                    │

│ 00:00:11 #168 [Verbose] > and Height =                                       │

│ 00:00:11 #169 [Verbose] >     | High | NearHigh | HighMid                    │

│ 00:00:11 #170 [Verbose] >     | Mid | LowMid | NearLow                       │

│ 00:00:11 #171 [Verbose] >     | Low                                          │

│ 00:00:11 #172 [Verbose] >                                                    │

│ 00:00:11 #173 [Verbose] > and Backness = Front | Central | Back              │

│ 00:00:11 #174 [Verbose] >                                                    │

│ 00:00:11 #175 [Verbose] > and Roundedness = Rounded | Unrounded              │

│ 00:00:11 #176 [Verbose] >                                                    │

│ 00:00:11 #177 [Verbose] > and PlaceOfArticulation =                          │

│ 00:00:11 #178 [Verbose] >     | Bilabial | Labiodental | Dental              │

│ 00:00:11 #179 [Verbose] >     | Alveolar | Postalveolar | Retroflex          │

│ 00:00:11 #180 [Verbose] >     | Palatal | Velar | Uvular                     │

│ 00:00:11 #181 [Verbose] >     | Pharyngeal | Epiglottal | Glottal            │

│ 00:00:11 #182 [Verbose] >                                                    │

│ 00:00:11 #183 [Verbose] > and MannerOfArticulation =                         │

│ 00:00:11 #184 [Verbose] >     | Plosive | Nasal | Trill                      │

│ 00:00:11 #185 [Verbose] >     | TapOrFlap | Fricative | LateralFricative     │

│ 00:00:11 #186 [Verbose] >     | Approximant | LateralApproximant             │

│ 00:00:11 #187 [Verbose] >                                                    │

│ 00:00:11 #188 [Verbose] > and Voicing = Voiced | Voiceless                   │

│ 00:00:11 #189 [Verbose] >                                                    │

│ 00:00:11 #190 [Verbose] > and SecondaryArticulation =                        │

│ 00:00:11 #191 [Verbose] >     | Labialization | Palatalization |             │

│ Velarization                                                                 │

│ 00:00:11 #192 [Verbose] >     | Pharyngealization | Aspiration               │

│ 00:00:11 #193 [Verbose] >                                                    │

│ 00:00:11 #194 [Verbose] > and Tone =                                         │

│ 00:00:11 #195 [Verbose] >     | LevelTone of int                             │

│ 00:00:11 #196 [Verbose] >     | ContourTone of int list                      │

│ 00:00:11 #197 [Verbose] >                                                    │

│ 00:00:11 #198 [Verbose] > and MorphologicalFeature =                         │

│ 00:00:11 #199 [Verbose] >     | RootFeature of string                        │

│ 00:00:11 #200 [Verbose] >     | AffixFeature of AffixType * string           │

│ 00:00:11 #201 [Verbose] >     | IncorporationFeature of string *             │

│ MorphologicalFeature                                                         │

│ 00:00:11 #202 [Verbose] >     | NonConcatenativePattern of string * string   │

│ 00:00:11 #203 [Verbose] >     | AgglutinativeAffixFeature of                 │

│ AgglutinativeAffixType * string                                              │

│ 00:00:11 #204 [Verbose] >     | HonorificFeature of HonorificType * string   │

│ 00:00:11 #205 [Verbose] >                                                    │

│ 00:00:11 #206 [Verbose] > and AgglutinativeAffixType = Suffix | Prefix       │

│ 00:00:11 #207 [Verbose] >                                                    │

│ 00:00:11 #208 [Verbose] > and HonorificType = VerbHonorific | NounHonorific  │

│ 00:00:11 #209 [Verbose] >                                                    │

│ 00:00:11 #210 [Verbose] > and AffixType =                                    │

│ 00:00:11 #211 [Verbose] >     | Prefix | Suffix | Infix                      │

│ 00:00:11 #212 [Verbose] >     | Circumfix                                    │

│ 00:00:11 #213 [Verbose] >                                                    │

│ 00:00:11 #214 [Verbose] > type SyntacticFeature =                            │

│ 00:00:11 #215 [Verbose] >     | WordFeature of MorphologicalFeature list *   │

│ LexicalCategory                                                              │

│ 00:00:11 #216 [Verbose] >     | PhraseFeature of PhraseType *                │

│ SyntacticFeature list                                                        │

│ 00:00:11 #217 [Verbose] >     | GrammaticalRelation of                       │

│ GrammaticalRelationType * SyntacticFeature list                              │

│ 00:00:11 #218 [Verbose] >     | SOVOrderFeature                              │

│ 00:00:11 #219 [Verbose] >     | TopicCommentFeature                          │

│ 00:00:11 #220 [Verbose] >                                                    │

│ 00:00:11 #221 [Verbose] > and GrammaticalRelationType =                      │

│ 00:00:11 #222 [Verbose] >     | Ergative | Absolutive | Nominative           │

│ 00:00:11 #223 [Verbose] >     | Accusative                                   │

│ 00:00:11 #224 [Verbose] >                                                    │

│ 00:00:11 #225 [Verbose] > and LexicalCategory =                              │

│ 00:00:11 #226 [Verbose] >     | Noun | Verb | Adjective                      │

│ 00:00:11 #227 [Verbose] >     | Adverb | Pronoun | Preposition               │

│ 00:00:11 #228 [Verbose] >     | Conjunction | Determiner | Interjection      │

│ 00:00:11 #229 [Verbose] >                                                    │

│ 00:00:11 #230 [Verbose] > and PhraseType =                                   │

│ 00:00:11 #231 [Verbose] >     | NP | VP | AP                                 │

│ 00:00:11 #232 [Verbose] >     | PP | CP                                      │

│ 00:00:11 #233 [Verbose] >                                                    │

│ 00:00:11 #234 [Verbose] > and SemanticFeature =                              │

│ 00:00:11 #235 [Verbose] >     | Meaning of string                            │

│ 00:00:11 #236 [Verbose] >     | SemanticRole of SemanticRoleType *           │

│ SemanticFeature                                                              │

│ 00:00:11 #237 [Verbose] >                                                    │

│ 00:00:11 #238 [Verbose] > and SemanticRoleType =                             │

│ 00:00:11 #239 [Verbose] >     | Agent | Patient | Instrument                 │

│ 00:00:11 #240 [Verbose] >     | Location | Time | Cause                      │

│ 00:00:11 #241 [Verbose] >                                                    │

│ 00:00:11 #242 [Verbose] > and PragmaticFeature =                             │

│ 00:00:11 #243 [Verbose] >     | UseContext of string                         │

│ 00:00:11 #244 [Verbose] >     | PolitenessLevel of Politeness                │

│ 00:00:11 #245 [Verbose] >     | SpeechAct of SpeechActType                   │

│ 00:00:11 #246 [Verbose] >     | SpeechLevel of SpeechLevelType               │

│ 00:00:11 #247 [Verbose] >                                                    │

│ 00:00:11 #248 [Verbose] > and Politeness = Formal | Informal | Neutral       │

│ 00:00:11 #249 [Verbose] >                                                    │

│ 00:00:11 #250 [Verbose] > and SpeechActType =                                │

│ 00:00:11 #251 [Verbose] >     | Assertive | Directive | Commissive           │

│ 00:00:11 #252 [Verbose] >     | Expressive | Declarative                     │

│ 00:00:11 #253 [Verbose] >                                                    │

│ 00:00:11 #254 [Verbose] > and SpeechLevelType =                              │

│ 00:00:11 #255 [Verbose] >     | FormalHigh | FormalLow | InformalHigh        │

│ 00:00:11 #256 [Verbose] >     | InformalLow | Neutral                        │

│ 00:00:11 #257 [Verbose] >                                                    │

│ 00:00:11 #258 [Verbose] > type LinguisticFeature =                           │

│ 00:00:11 #259 [Verbose] >     | Phonological of PhonologicalFeature          │

│ 00:00:11 #260 [Verbose] >     | Morphological of MorphologicalFeature        │

│ 00:00:11 #261 [Verbose] >     | Syntactic of SyntacticFeature                │

│ 00:00:11 #262 [Verbose] >     | Semantic of SemanticFeature                  │

│ 00:00:11 #263 [Verbose] >     | Pragmatic of PragmaticFeature                │

│ 00:00:11 #264 [Verbose] >                                                    │

│ 00:00:11 #265 [Verbose] > type LanguageConstruct =                           │

│ 00:00:11 #266 [Verbose] >     | LanguageElement of LinguisticFeature         │

│ 00:00:11 #267 [Verbose] >     | LanguageStructure of LanguageConstruct list  │

│ 00:00:11 #268 [Verbose] >     | TranslationElement of TranslationFeature     │

│ 00:00:11 #269 [Verbose] >                                                    │

│ 00:00:11 #270 [Verbose] > and TranslationFeature =                           │

│ 00:00:11 #271 [Verbose] >     | LinkedPhonological of PhonologicalFeature *  │

│ PhonologicalFeature                                                          │

│ 00:00:11 #272 [Verbose] >     | LinkedMorphological of MorphologicalFeature  │

│ * MorphologicalFeature                                                       │

│ 00:00:11 #273 [Verbose] >     | LinkedSyntactic of SyntacticFeature *        │

│ SyntacticFeature                                                             │

│ 00:00:11 #274 [Verbose] >     | LinkedSemantic of SemanticFeature *          │

│ SemanticFeature                                                              │

│ 00:00:11 #275 [Verbose] >                                                    │

│ 00:00:11 #276 [Verbose] > type Discourse = DiscourseUnit of                  │

│ LanguageConstruct list                                                       │

│ 00:00:11 #277 [Verbose] >                                                    │

│ 00:00:11 #278 [Verbose] > type LanguageModel =                               │

│ 00:00:11 #279 [Verbose] >     | Model of discourse: Discourse                │

│ 00:00:11 #280 [Verbose] >                                                    │

│ 00:00:11 #281 [Verbose] > ── fsharp - import                                 │

│ ─────────────────────────────────────────────────────────────                │

│ 00:00:11 #282 [Verbose] > #r                                                 │

│ 00:00:11 #283 [Verbose] >                                                    │

│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │

│ ft.A                                                                         │

│ 00:00:11 #284 [Verbose] > spNetCore.Html.Abstractions.dll"                   │

│ 00:00:11 #285 [Verbose] > #r                                                 │

│ 00:00:11 #286 [Verbose] >                                                    │

│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │

│ ft.D                                                                         │

│ 00:00:11 #287 [Verbose] > otNet.Interactive.dll"                             │

│ 00:00:11 #288 [Verbose] > #r                                                 │

│ 00:00:11 #289 [Verbose] >                                                    │

│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │

│ ft.D                                                                         │

│ 00:00:11 #290 [Verbose] > otNet.Interactive.FSharp.dll"                      │

│ 00:00:11 #291 [Verbose] > #r                                                 │

│ 00:00:11 #292 [Verbose] >                                                    │

│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │

│ ft.D                                                                         │

│ 00:00:11 #293 [Verbose] > otNet.Interactive.Formatting.dll"                  │

│ 00:00:11 #294 [Verbose] > open System                                        │

│ 00:00:11 #295 [Verbose] > open System.IO                                     │

│ 00:00:11 #296 [Verbose] > open System.Text                                   │

│ 00:00:11 #297 [Verbose] > open Microsoft.DotNet.Interactive.Formatting       │

│ 00:00:13 #298 [Verbose] >                                                    │

│ 00:00:13 #299 [Verbose] > ── fsharp - import                                 │

│ ─────────────────────────────────────────────────────────────                │

│ 00:00:13 #300 [Verbose] > #r                                                 │

│ 00:00:13 #301 [Verbose] >                                                    │

│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │

│ ft.D                                                                         │

│ 00:00:13 #302 [Verbose] > otNet.Interactive.FSharp.dll"                      │

│ 00:00:13 #303 [Verbose] > open                                               │

│ Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers                      │

│ 00:00:13 #304 [Verbose] > #r                                                 │

│ 00:00:13 #305 [Verbose] >                                                    │

│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │

│ ft.D                                                                         │

│ 00:00:13 #306 [Verbose] > otNet.Interactive.dll"                             │

│ 00:00:13 #307 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel      │

│ 00:00:13 #308 [Verbose] >                                                    │

│ 00:00:13 #309 [Verbose] > ── fsharp - import                                 │

│ ─────────────────────────────────────────────────────────────                │

│ 00:00:13 #310 [Verbose] > type PhonologicalFeature =                         │

│ 00:00:13 #311 [Verbose] >     | VowelFeature of                              │

│ 00:00:13 #312 [Verbose] >         height: Height                             │

│ 00:00:13 #313 [Verbose] >         * backness: Backness                       │

│ 00:00:13 #314 [Verbose] >         * roundedness: Roundedness                 │

│ 00:00:13 #315 [Verbose] >         * tone: Option<Tone>                       │

│ 00:00:13 #316 [Verbose] >         * stress: Option<Stress>                   │

│ 00:00:13 #317 [Verbose] >         * length: Option<Length>                   │

│ 00:00:13 #318 [Verbose] >     | ConsonantFeature of                          │

│ 00:00:13 #319 [Verbose] >         place: PlaceOfArticulation                 │

│ 00:00:13 #320 [Verbose] >         * manner: MannerOfArticulation             │

│ 00:00:13 #321 [Verbose] >         * voicing: Voicing                         │

│ 00:00:13 #322 [Verbose] >         * length: Option<Length>                   │

│ 00:00:13 #323 [Verbose] >     | VowelHarmonyFeature                          │

│ 00:00:13 #324 [Verbose] >     | PitchAccentFeature                           │

│ 00:00:13 #325 [Verbose] >                                                    │

│ 00:00:13 #326 [Verbose] > and Stress = Primary | Secondary                   │

│ 00:00:13 #327 [Verbose] > and Length = Long | Short | HalfLong               │

│ 00:00:13 #328 [Verbose] >                                                    │

│ 00:00:13 #329 [Verbose] > and Height =                                       │

│ 00:00:13 #330 [Verbose] >     | High | NearHigh | HighMid                    │

│ 00:00:13 #331 [Verbose] >     | Mid | LowMid | NearLow                       │

│ 00:00:13 #332 [Verbose] >     | Low                                          │

│ 00:00:13 #333 [Verbose] >                                                    │

│ 00:00:13 #334 [Verbose] > and Backness = Front | Central | Back              │

│ 00:00:13 #335 [Verbose] >                                                    │

│ 00:00:13 #336 [Verbose] > and Roundedness = Rounded | Unrounded              │

│ 00:00:13 #337 [Verbose] >                                                    │

│ 00:00:13 #338 [Verbose] > and PlaceOfArticulation =                          │

│ 00:00:13 #339 [Verbose] >     | Bilabial | Labiodental | Dental              │

│ 00:00:13 #340 [Verbose] >     | Alv...                                       │

│ 00:00:14 #341 [Verbose] >                                                    │

│ 00:00:14 #342 [Verbose] > ── fsharp                                          │

│ ──────────────────────────────────────────────────────────────────────       │

│ 00:00:14 #343 [Verbose] > let testEnglish =                                  │

│ 00:00:14 #344 [Verbose] >     Model(                                         │

│ 00:00:14 #345 [Verbose] >         DiscourseUnit [[                           │

│ 00:00:14 #346 [Verbose] >             LanguageElement (Phonological          │

│ (ConsonantFeature (Alveolar, Nasal,                                          │

│ 00:00:14 #347 [Verbose] > Voiced, Some(HalfLong))));                         │

│ 00:00:14 #348 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (High, Front, Unrounded,                                       │

│ 00:00:14 #349 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short))));  │

│ 00:00:14 #350 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (Low, Front, Unrounded,                                        │

│ 00:00:14 #351 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │

│ 00:00:14 #352 [Verbose] >             LanguageElement (Phonological          │

│ (ConsonantFeature (Velar, Plosive,                                           │

│ 00:00:14 #353 [Verbose] > Voiceless, Some(HalfLong))));                      │

│ 00:00:14 #354 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "I"));                                                          │

│ 00:00:14 #355 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "see"));                                                        │

│ 00:00:14 #356 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "a"));                                                          │

│ 00:00:14 #357 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "cat"));                                                        │

│ 00:00:14 #358 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (NP, [[WordFeature                                            │

│ 00:00:14 #359 [Verbose] > ([[RootFeature "I"]], Pronoun)]])));               │

│ 00:00:14 #360 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (VP, [[WordFeature                                            │

│ 00:00:14 #361 [Verbose] > ([[RootFeature "see"]], Verb)]])));                │

│ 00:00:14 #362 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (NP, [[WordFeature                                            │

│ 00:00:14 #363 [Verbose] > ([[RootFeature "a"; RootFeature "cat"]],           │

│ Noun)]])));                                                                  │

│ 00:00:14 #364 [Verbose] >             LanguageElement (Semantic (Meaning     │

│ "Perception act of a feline by                                               │

│ 00:00:14 #365 [Verbose] > the speaker"));                                    │

│ 00:00:14 #366 [Verbose] >             LanguageElement (Pragmatic (UseContext │

│ "Statement of an action being                                                │

│ 00:00:14 #367 [Verbose] > observed"))                                        │

│ 00:00:14 #368 [Verbose] >         ]]                                         │

│ 00:00:14 #369 [Verbose] >     )                                              │

│ 00:00:14 #370 [Verbose] >                                                    │

│ 00:00:14 #371 [Verbose] > let testPortuguese =                               │

│ 00:00:14 #372 [Verbose] >     Model(                                         │

│ 00:00:14 #373 [Verbose] >         DiscourseUnit [[                           │

│ 00:00:14 #374 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (High, Front, Unrounded,                                       │

│ 00:00:14 #375 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short))));  │

│ 00:00:14 #376 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (Low, Front, Unrounded,                                        │

│ 00:00:14 #377 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │

│ 00:00:14 #378 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (Mid, Back, Rounded,                                           │

│ 00:00:14 #379 [Verbose] > Some(LevelTone 3), Some(Primary), Some(Short))));  │

│ 00:00:14 #380 [Verbose] >             LanguageElement (Phonological          │

│ (ConsonantFeature (Velar, Plosive,                                           │

│ 00:00:14 #381 [Verbose] > Voiceless, Some(HalfLong))));                      │

│ 00:00:14 #382 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "Eu"));                                                         │

│ 00:00:14 #383 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "ver" |> ignore;                                                │

│ 00:00:14 #384 [Verbose] > AffixFeature (Suffix, "o")));                      │

│ 00:00:14 #385 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "um"));                                                         │

│ 00:00:14 #386 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "gato"));                                                       │

│ 00:00:14 #387 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (NP, [[WordFeature                                            │

│ 00:00:14 #388 [Verbose] > ([[RootFeature "Eu"]], Pronoun)]])));              │

│ 00:00:14 #389 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (VP, [[WordFeature                                            │

│ 00:00:14 #390 [Verbose] > ([[RootFeature "vejo"]], Verb)]])));               │

│ 00:00:14 #391 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (NP, [[WordFeature                                            │

│ 00:00:14 #392 [Verbose] > ([[RootFeature "um"; RootFeature "gato"]],         │

│ Noun)]])));                                                                  │

│ 00:00:14 #393 [Verbose] >             LanguageElement (Semantic (Meaning     │

│ "Ação de percepção de um felino                                              │

│ 00:00:14 #394 [Verbose] > pelo falante"));                                   │

│ 00:00:14 #395 [Verbose] >             LanguageElement (Pragmatic (UseContext │

│ "Declaração de uma ação sendo                                                │

│ 00:00:14 #396 [Verbose] > observada"))                                       │

│ 00:00:14 #397 [Verbose] >         ]]                                         │

│ 00:00:14 #398 [Verbose] >     )                                              │

│ 00:00:14 #399 [Verbose] >                                                    │

│ 00:00:14 #400 [Verbose] > let testKorean =                                   │

│ 00:00:14 #401 [Verbose] >     Model(                                         │

│ 00:00:14 #402 [Verbose] >         DiscourseUnit [[                           │

│ 00:00:14 #403 [Verbose] >             LanguageElement (Phonological          │

│ (ConsonantFeature (Alveolar, Nasal,                                          │

│ 00:00:14 #404 [Verbose] > Voiced, Some(Short))));                            │

│ 00:00:14 #405 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (High, Back, Rounded,                                          │

│ 00:00:14 #406 [Verbose] > None, None, Some(Short))));                        │

│ 00:00:14 #407 [Verbose] >             LanguageElement (Phonological          │

│ (VowelFeature (Mid, Front, Unrounded,                                        │

│ 00:00:14 #408 [Verbose] > None, None, Some(Long))));                         │

│ 00:00:14 #409 [Verbose] >             LanguageElement (Phonological          │

│ (ConsonantFeature (Bilabial, Plosive,                                        │

│ 00:00:14 #410 [Verbose] > Voiceless, Some(Short))));                         │

│ 00:00:14 #411 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "나"));                                                         │

│ 00:00:14 #412 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "보다"));                                                       │

│ 00:00:14 #413 [Verbose] >             LanguageElement (Morphological         │

│ (AffixFeature (Suffix, "아")));                                              │

│ 00:00:14 #414 [Verbose] >             LanguageElement (Morphological         │

│ (RootFeature "고양이"));                                                     │

│ 00:00:14 #415 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (NP, [[WordFeature                                            │

│ 00:00:14 #416 [Verbose] > ([[RootFeature "나"]], Pronoun)]])));              │

│ 00:00:14 #417 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (VP, [[WordFeature                                            │

│ 00:00:14 #418 [Verbose] > ([[RootFeature "보다"; AffixFeature (Suffix,       │

│ "아")]], Verb)]])));                                                         │

│ 00:00:14 #419 [Verbose] >             LanguageElement (Syntactic             │

│ (PhraseFeature (NP, [[WordFeature                                            │

│ 00:00:14 #420 [Verbose] > ([[RootFeature "고양이"]], Noun)]])));             │

│ 00:00:14 #421 [Verbose] >             LanguageElement (Semantic (Meaning     │

│ "화자에 의한 고양이의 관찰                                                   │

│ 00:00:14 #422 [Verbose] > 행위"));                                           │

│ 00:00:14 #423 [Verbose] >             LanguageElement (Pragmatic (UseContext │

│ "관찰되고 있는 행동의 진술"))                                                │

│ 00:00:14 #424 [Verbose] >         ]]                                         │

│ 00:00:14 #425 [Verbose] >     )                                              │

│ 00:00:14 #426 [Verbose] >                                                    │

│ 00:00:14 #427 [Verbose] > ── markdown                                        │

│ ────────────────────────────────────────────────────────────────────         │

│ 00:00:14 #428 [Verbose] >                                                    │

│ ╭─────────────────────────────────────────────────────────────────────────── │

│ ───╮                                                                         │

│ 00:00:14 #429 [Verbose] > │ ## main                                          │

│ │                                                                            │

│ 00:00:14 #430 [Verbose] >                                                    │

│ ╰─────────────────────────────────────────────────────────────────────────── │

│ ───╯                                                                         │

│ 00:00:14 #431 [Verbose] >                                                    │

│ 00:00:14 #432 [Verbose] > ── spiral                                          │

│ ──────────────────────────────────────────────────────────────────────       │

│ 00:00:14 #433 [Verbose] > inl main (_args : array_base string) =             │

│ 00:00:14 #434 [Verbose] >     0i32                                           │

│ 00:00:14 #435 [Verbose] >                                                    │

│ 00:00:14 #436 [Verbose] > inl main () =                                      │

│ 00:00:14 #437 [Verbose] >     $"let main args = !main args" : ()             │

│ 00:00:14 #438 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0145-2047-4700-4846d │

│ 2d00cc3\main.spi                                                             │

│ 00:00:14 #439 [Verbose] >                                                    │

│ 00:00:14 #440 [Verbose] > ╭─[ 299.64ms - stdout                              │

│ ]────────────────────────────────────────────────────────╮                   │

│ 00:00:14 #441 [Verbose] > │ let rec closure0 () (v0 : (string [])) : int32 = │

│ │                                                                            │

│ 00:00:14 #442 [Verbose] > │     0                                            │

│ │                                                                            │

│ 00:00:14 #443 [Verbose] > │ let v0 : ((string []) -> int32) = closure0()     │

│ │                                                                            │

│ 00:00:14 #444 [Verbose] > │ let main args = v0 args                          │

│ │                                                                            │

│ 00:00:14 #445 [Verbose] > │ ()                                               │

│ │                                                                            │

│ 00:00:14 #446 [Verbose] > │                                                  │

│                                                                              │

│ │                                                                            │

│ 00:00:14 #447 [Verbose] > │                                                  │

│                                                                              │

│ │                                                                            │

│ 00:00:14 #448 [Verbose] >                                                    │

│ ╰─────────────────────────────────────────────────────────────────────────── │

│ ───╯                                                                         │

│ 00:00:14 #449 [Verbose] >                                                    │

│ 00:00:14 #450 [Verbose] > ── spiral                                          │

│ ──────────────────────────────────────────────────────────────────────       │

│ 00:00:14 #451 [Verbose] > inl app () =                                       │

│ 00:00:14 #452 [Verbose] >     "test" |> console.write_line                   │

│ 00:00:14 #453 [Verbose] >     0i32                                           │

│ 00:00:14 #454 [Verbose] >                                                    │

│ 00:00:14 #455 [Verbose] > inl main () =                                      │

│ 00:00:14 #456 [Verbose] >     print_static "<test>"                          │

│ 00:00:14 #457 [Verbose] >                                                    │

│ 00:00:14 #458 [Verbose] >     app                                            │

│ 00:00:14 #459 [Verbose] >     |> dyn                                         │

│ 00:00:14 #460 [Verbose] >     |> ignore                                      │

│ 00:00:14 #461 [Verbose] >                                                    │

│ 00:00:14 #462 [Verbose] >     print_static "</test>"                         │

│ 00:00:14 #463 [Verbose] > Building                                           │

│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0145-2077-7718-7cea1 │

│ b3e0aee\main.spi                                                             │

│ 00:00:14 #464 [Verbose] > <test>                                             │

│ 00:00:14 #465 [Verbose] > </test>                                            │

│ 00:00:14 #466 [Verbose] >                                                    │

│ 00:00:14 #467 [Verbose] > ╭─[ 273.45ms - stdout                              │

│ ]────────────────────────────────────────────────────────╮                   │

│ 00:00:14 #468 [Verbose] > │ let rec closure0 () () : int32 =                 │

│ │                                                                            │

│ 00:00:14 #469 [Verbose] > │     let v0 : string = "test"                     │

│ │                                                                            │

│ 00:00:14 #470 [Verbose] > │     System.Console.WriteLine v0                  │

│ │                                                                            │

│ 00:00:14 #471 [Verbose] > │     0                                            │

│ │                                                                            │

│ 00:00:14 #472 [Verbose] > │ let v0 : (unit -> int32) = closure0()            │

│ │                                                                            │

│ 00:00:14 #473 [Verbose] > │ ()                                               │

│ │                                                                            │

│ 00:00:14 #474 [Verbose] > │                                                  │

│                                                                              │

│ │                                                                            │

│ 00:00:14 #475 [Verbose] > │                                                  │

│                                                                              │

│ │                                                                            │

│ 00:00:14 #476 [Verbose] >                                                    │

│ ╰─────────────────────────────────────────────────────────────────────────── │

│ ───╯                                                                         │

│ 00:00:16 #477 [Verbose] > [NbConvertApp] Converting notebook test.dib.ipynb  │

│ to html                                                                      │

│ 00:00:16 #478 [Verbose] >                                                    │

│ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__ │

│ .py:93: MissingIDFieldWarning: Code cell is missing an id field, this will   │

│ become a hard error in future nbformat versions. You may want to use         │

│ `normalize()` on your notebooks before validations (available since nbformat │

│ 5.1.4). Previous versions of nbformat are fixing this issue transparently,   │

│ and will stop doing so in the future.                                        │

│ 00:00:16 #479 [Verbose] >   validate(nb)                                     │

│ 00:00:17 #480 [Verbose] >                                                    │

│ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters │

│ \highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on   │

│ Python 3                                                                     │

│ 00:00:17 #481 [Verbose] >   return _pygments_highlight(                      │

│ 00:00:17 #482 [Verbose] > [NbConvertApp] Writing 321590 bytes to             │

│ test.dib.html                                                                │

│ 00:00:18 #483 [Debug] executeAsync / exitCode: 0 / output.Length: 19479      │

│ 00:00:18 #484 [Debug] main / executeCommand / exitCode: 0                    │

│ 00:00:20 #485 [Debug] runWithTimeoutAsync / timeout: 2000                    │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

{ . ../../../../apps/parser/dist/DibParser$(GetExecutableSuffix) test.dib spi } 

| Invoke-Block



╭─[ 480.36ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] writeDibCode / output: Spi / path: test.dib              │

│ 00:00:00 #2 [Debug] parseDibCode / output: Spi / file: test.dib              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

{ . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) --build-file 

test.spi test.fsx --timeout 10000 } | Invoke-Block



╭─[ 6.51s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60                        │

│ 00:00:00 #2 [Debug] executeAsync / options: { Command =                      │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │

│ 13805 --default-int i32 --default-float f64"                                 │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:main@429-61> }                                          │

│ 00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral\temp\test      │

│ 00:00:00 #4 [Verbose] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to:          │

│ http://localhost:13805                                                       │

│ 00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500                       │

│ 00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0             │

│ 00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} /           │

│ result.Length:                                                               │

│ 00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port:      │

│ 13805 / retry: 0                                                             │

│ 00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805             │

│ 00:00:01 #11 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:01 #12 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #13 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #14 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"// // # test (Polyglot)\n\nnominal i = ()\nnominal e │

│ = ()\nnominal s = ()\nnominal n = ()\nnominal t = ()\nnominal f =            │

│ ()\nnominal j = ()\nnominal p = ()\n\nunion sensing =\n    | Si : s * i\n    │

│ | Se : s * e\n\nunion intuition =\n    | Ni : n * i\n    | Ne : n *          │

│ e\n\nunion thinking =\n    | Ti : t * i\n    | Te : t * e\n\nunion feeling   │

│ =\n    | Fi : f * i\n    | Fe : f * e\n\nunion function_stack =\n    | FS :  │

│ sensing * intuition * thinking * feeling\n\nunion personality_type =\n    |  │

│ ISTJ : i * s * t * j * function_stack\n    | ISFJ : i * s * f * j *          │

│ function_stack\n    | INFJ : i * n * f * j * function_stack\n    | INTJ : i  │

│ * n * t * j * function_stack\n    | ISTP : i * s * t * p * function_stack\n  │

│ | ISFP : i * s * f * p * function_stack\n    | INFP : i * n * f * p *        │

│ function_stack\n    | INTP : i * n * t * p * function_stack\n    | ESTP : e  │

│ * s * t * p * function_stack\n    | ESFP : e * s * f * p * function_stack\n  │

│ | ENFP : e * n * f * p * function_stack\n    | ENTP : e * n * t * p *        │

│ function_stack\n    | ESTJ : e * s * t * j * function_stack\n    | ESFJ : e  │

│ * s * f * j * function_stack\n    | ENFJ : e * n * f * j * function_stack\n  │

│ | ENTJ : e * n * t * j * function_stack\n\n\ninl main () =\n    inl          │

│ istj_stack = FS ((Si (s, i)), Ne (n, e), (Te (t, e)), (Fi (f, i)))\n    inl  │

│ istj_personality = ISTJ (i, s, t, j, istj_stack)\n    // inl isfj_stack = FS │

│ ((Si (s, i)), Ne (n, e), (Fe (f, e)), (Ti (t, i)))\n    // inl               │

│ isfj_personality = ISFJ (i, s, f, j, isfj_stack)\n\n    ;[\n                 │

│ istj_personality\n    ]\n    |\u003E fun x =\u003E                           │

│ $\u0027$\u0022%A{!x}\u0022\u0027 : string\n    |\u003E                       │

│ console.write_line\n\ninl main () =\n    $\u0022!main ()\u0022 : ()\n\n// // │

│ ## main\n\ninl main (_args : array_base string) =\n    0i32\n\ninl main ()   │

│ =\n    $\u0022let main args = !main args\u0022 : ()\n\ninl app () =\n        │

│ \u0022test\u0022 |\u003E console.write_line\n    0i32\n\ninl main () =\n     │

│ print_static \u0022\u003Ctest\u003E\u0022\n\n    app\n    |\u003E dyn\n      │

│ |\u003E ignore\n\n    print_static                                           │

│ \u0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polyglot/apps/sp │

│ iral/temp/test/test.spi"}} / result.Length:                                  │

│ 00:00:01 #15 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │

│ iral/temp/test/test.spi"}} / result.Length:                                  │

│ 00:00:02 #16 [Verbose] > Building                                            │

│ c:\home\git\polyglot\apps\spiral\temp\test\test.spi                          │

│ 00:00:02 #17 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:03 #18 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:03 #19 [Verbose] > <test>                                              │

│ 00:00:03 #20 [Verbose] > </test>                                             │

│ 00:00:03 #21 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec    │

│ closure0 () () : int32 =                                                     │

│     let v0 : string = "test"                                                 │

│     System.Console.WriteLine v0                                              │

│     0                                                                        │

│ let v0 : (unit -> int32) = closure0()                                        │

│ ()                                                                           │

│  / errors: [] / typeErrorCount: 0                                            │

│ 00:00:03 #22 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ 00:00:06 #23 [Debug] runWithTimeoutAsync / timeout: 2000                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

dotnet fable --optimize --lang rs --extension .rs



╭─[ 3.12s - stdout ]───────────────────────────────────────────────────────────╮

│ Fable 4.14.0: F# to Rust compiler (status: alpha)                            │

│                                                                              │

│ Thanks to the contributor! @davidtme                                         │

│ Stand with Ukraine! https://standwithukraine.com.ua/                         │

│                                                                              │

│ Parsing test.fsproj...                                                       │

│ Retrieving project options from cache, in case of issues run `dotnet fable   │

│ clean` or try `--noCache` option.                                            │

│ Project and references (1 source files) parsed in 194ms                      │

│                                                                              │

│ Started Fable compilation...                                                 │

│                                                                              │

│ Fable compilation finished in 1414ms                                         │

│                                                                              │

│ .\test.fsx(6,0): (6,2) warning FABLE: For Rust, support for F# static and    │

│ module do bindings is disabled by default. It can be enabled with the        │

│ 'static_do_bindings' feature. Use at your own risk!                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

(Get-Content test.rs) `

    -replace [[regex]]::Escape("),);"), "));" `

| Set-Content test.rs



── pwsh ────────────────────────────────────────────────────────────────────────

cargo fmt --



── pwsh ────────────────────────────────────────────────────────────────────────

cargo build --release



╭─[ 9.93s - stdout ]───────────────────────────────────────────────────────────╮

│    Compiling spiral_temp_test v0.0.1                                    │

│ (C:\home\git\polyglot\apps\spiral\temp\test)                               │

│ warning: the item `any` is imported redundantly                       │

│   --> apps\spiral\temp\test\./main.rs:11:27                           │

│    |                                                                  │

│ 11 | use proptest::arbitrary::{any, Arbitrary};                       │

│    |                           ^^^                                    │

│ 12 | use proptest::prelude::*;                                        │

│    |     -------------------- the item `any` is already imported here │

│    |                                                                  │

│    = note: `#[warn(unused_imports)]` on by default                    │

│                                                                       │

│ warning: the item `Arbitrary` is imported redundantly                 │

│   --> apps\spiral\temp\test\./main.rs:11:32                           │

│    |                                                                  │

│ 11 | use proptest::arbitrary::{any, Arbitrary};                       │

│    |                                ^^^^^^^^^                         │

│ 12 | use proptest::prelude::*;                                        │

│    |     -------------------- the item `Arbitrary` is already imported  │

│ here                                                                       │

│                                                                       │

│ warning: unused import: `info`                                        │

│    --> apps\spiral\temp\test\./main.rs:190:15                         │

│     |                                                                 │

│ 190 | use tracing::{info, Level};                                     │

│     |               ^^^^                                              │

│                                                                       │

│ warning: associated items `new`, `add_item`, and `remove_item` are      │

│ never used                                                                 │

│   --> apps\spiral\temp\test\./main.rs:46:8                            │

│    |                                                                  │

│ 45 | impl Cart {                                                      │

│    | --------- associated items in this implementation                │

│ 46 |     fn new() -> Cart {                                           │

│    |        ^^^                                                       │

│ ...                                                                   │

│ 50 |     fn add_item(&mut self, item: Item) {                         │

│    |        ^^^^^^^^                                                  │

│ ...                                                                   │

│ 56 |     fn remove_item(&mut self, item: &Item) {                     │

│    |        ^^^^^^^^^^^                                               │

│    |                                                                  │

│    = note: `#[warn(dead_code)]` on by default                         │

│                                                                       │

│ warning: function `parse_comment` is never used                       │

│    --> apps\spiral\temp\test\./main.rs:124:4                          │

│     |                                                                 │

│ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> {   │

│     |    ^^^^^^^^^^^^^                                                │

│                                                                       │

│ warning: function `parse_string` is never used                        │

│    --> apps\spiral\temp\test\./main.rs:130:4                          │

│     |                                                                 │

│ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> {    │

│     |    ^^^^^^^^^^^^                                                 │

│                                                                       │

│ warning: function `parse_identifier` is never used                    │

│    --> apps\spiral\temp\test\./main.rs:145:4                          │

│     |                                                                 │

│ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[  │

│ 0m                                                                           │

│     |    ^^^^^^^^^^^^^^^^                                             │

│                                                                       │

│ warning: function `parse_integer` is never used                       │

│    --> apps\spiral\temp\test\./main.rs:157:4                          │

│     |                                                                 │

│ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> {   │

│     |    ^^^^^^^^^^^^^                                                │

│                                                                       │

│ warning: function `parse_operator` is never used                      │

│    --> apps\spiral\temp\test\./main.rs:165:4                          │

│     |                                                                 │

│ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> {  │

│     |    ^^^^^^^^^^^^^^                                               │

│                                                                       │

│ warning: function `parse_token` is never used                         │

│    --> apps\spiral\temp\test\./main.rs:170:4                          │

│     |                                                                 │

│ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> {     │

│     |    ^^^^^^^^^^^                                                  │

│                                                                       │

│ warning: function `format_token` is never used                        │

│    --> apps\spiral\temp\test\./main.rs:180:4                          │

│     |                                                                 │

│ 180 | fn format_token(token: &SpiralToken) -> String {                │

│     |    ^^^^^^^^^^^^                                                 │

│                                                                       │

│ warning: function `parse_expression` is never used                    │

│    --> apps\spiral\temp\test\./main.rs:213:4                          │

│     |                                                                 │

│ 213 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[  │

│ 0m                                                                           │

│     |    ^^^^^^^^^^^^^^^^                                             │

│                                                                       │

│ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 12       │

│ warnings (run `cargo fix --bin "spiral_temp_test"` to apply 1 suggestion)  │

│     Finished `release` profile [optimized] target(s) in 9.71s         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

$env:RUST_LOG="info"

{ cargo test --release } | Invoke-Block



╭─[ 22.93s - stdout ]──────────────────────────────────────────────────────────╮

│    Compiling spiral_temp_test v0.0.1                                    │

│ (C:\home\git\polyglot\apps\spiral\temp\test)                               │

│ warning: the item `any` is imported redundantly                       │

│   --> apps\spiral\temp\test\./main.rs:11:27                           │

│    |                                                                  │

│ 11 | use proptest::arbitrary::{any, Arbitrary};                       │

│    |                           ^^^                                    │

│ 12 | use proptest::prelude::*;                                        │

│    |     -------------------- the item `any` is already imported here │

│    |                                                                  │

│    = note: `#[warn(unused_imports)]` on by default                    │

│                                                                       │

│ warning: the item `Arbitrary` is imported redundantly                 │

│   --> apps\spiral\temp\test\./main.rs:11:32                           │

│    |                                                                  │

│ 11 | use proptest::arbitrary::{any, Arbitrary};                       │

│    |                                ^^^^^^^^^                         │

│ 12 | use proptest::prelude::*;                                        │

│    |     -------------------- the item `Arbitrary` is already imported  │

│ here                                                                       │

│                                                                       │

│ warning: `spiral_temp_test` (bin "spiral_temp_test" test) generated 2   │

│ warnings                                                                   │

│     Finished `release` profile [optimized] target(s) in 22.48s        │

│      Running unittests main.rs                                          │

│ (C:\home\git\polyglot\target\release\deps\spiral_temp_test-916cb05049730b6a. │

│ exe)                                                                       │

│                                                                              │

│ running 3 tests                                                              │

│ test test_parse_number ... ok                                                │

│ 2024-03-30T05:46:10.400499Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.400591Z  INFO spiral_temp_test:         │

│ input=Identifier("hMYgDTT55v7vFK")                                           │

│ 2024-03-30T05:46:10.400693Z  INFO spiral_temp_test:         │

│ input=Comment("'=-*xy\\t&*>L%V")                                             │

│ 2024-03-30T05:46:10.400798Z  INFO spiral_temp_test:         │

│ input=Identifier("J9MNb6xCd73nKdKy82bzteZv")                                 │

│ 2024-03-30T05:46:10.400869Z  INFO spiral_temp_test:         │

│ input=Operator("*")                                                          │

│ 2024-03-30T05:46:10.400927Z  INFO spiral_temp_test:         │

│ input=Comment("\"o) tm?i<SH'?I!~b[-Nu/&")                                    │

│ 2024-03-30T05:46:10.400971Z  INFO spiral_temp_test:         │

│ input=Integer(-561896395246040903)                                           │

│ 2024-03-30T05:46:10.401033Z  INFO spiral_temp_test:         │

│ input=Comment("`inKK<L'tbY")                                                 │

│ 2024-03-30T05:46:10.401085Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.401117Z  INFO spiral_temp_test:         │

│ input=Identifier("y0sQHAwv9sY5Gku")                                          │

│ 2024-03-30T05:46:10.401176Z  INFO spiral_temp_test:         │

│ input=Identifier("IDoMf6L8q65Tu2vzZ2R920N3jCWthkrB")                         │

│ 2024-03-30T05:46:10.401231Z  INFO spiral_temp_test:         │

│ input=Comment("5A9g`/=`8#.=?.*p")                                            │

│ 2024-03-30T05:46:10.401273Z  INFO spiral_temp_test:         │

│ input=Integer(-2813168154112847017)                                          │

│ 2024-03-30T05:46:10.401328Z  INFO spiral_temp_test:         │

│ input=Comment("jMg~fn{h{kV")                                                 │

│ 2024-03-30T05:46:10.401377Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.401453Z  INFO spiral_temp_test:         │

│ input=Integer(7809173521221495155)                                           │

│ 2024-03-30T05:46:10.401490Z  INFO spiral_temp_test:         │

│ input=Integer(5588838078046433708)                                           │

│ 2024-03-30T05:46:10.401535Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.401585Z  INFO spiral_temp_test:         │

│ input=StringLiteral("Dn2$-yb")                                               │

│ 2024-03-30T05:46:10.401634Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.401675Z  INFO spiral_temp_test:         │

│ input=Integer(1491299837082800259)                                           │

│ 2024-03-30T05:46:10.401727Z  INFO spiral_temp_test:         │

│ input=StringLiteral("=Y&.!L6kOX")                                            │

│ 2024-03-30T05:46:10.401780Z  INFO spiral_temp_test:         │

│ input=StringLiteral("z]QM!:Q<h:n'")                                          │

│ 2024-03-30T05:46:10.401832Z  INFO spiral_temp_test:         │

│ input=StringLiteral("`Tm")                                                   │

│ 2024-03-30T05:46:10.401877Z  INFO spiral_temp_test:         │

│ input=Operator("+")                                                          │

│ 2024-03-30T05:46:10.401919Z  INFO spiral_temp_test:         │

│ input=Integer(5452486978147213232)                                           │

│ 2024-03-30T05:46:10.401963Z  INFO spiral_temp_test:         │

│ input=Integer(5555464894842441394)                                           │

│ 2024-03-30T05:46:10.402009Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.402069Z  INFO spiral_temp_test:         │

│ input=Identifier("GiBJkt8FTsY21NUE2rAiQi3ts")                                │

│ 2024-03-30T05:46:10.402116Z  INFO spiral_temp_test:         │

│ input=Identifier("SJs")                                                      │

│ 2024-03-30T05:46:10.402166Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.402214Z  INFO spiral_temp_test:         │

│ input=Integer(-897824108757946629)                                           │

│ 2024-03-30T05:46:10.402262Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.402307Z  INFO spiral_temp_test:         │

│ input=Integer(-652445343222828025)                                           │

│ 2024-03-30T05:46:10.402393Z  INFO spiral_temp_test:         │

│ input=Identifier("yzk3056")                                                  │

│ 2024-03-30T05:46:10.402435Z  INFO spiral_temp_test:         │

│ input=Integer(-49960381974732888)                                            │

│ 2024-03-30T05:46:10.402497Z  INFO spiral_temp_test:         │

│ input=Identifier("eh5F693W1nBVwH05btnDXPoO")                                 │

│ 2024-03-30T05:46:10.402546Z  INFO spiral_temp_test:         │

│ input=Comment("[<{$")                                                        │

│ 2024-03-30T05:46:10.402621Z  INFO spiral_temp_test:         │

│ input=Identifier("wsYZYwAXHaVkEzrdklmVI8PbuC4")                              │

│ 2024-03-30T05:46:10.402661Z  INFO spiral_temp_test:         │

│ input=Integer(-6575461256556396645)                                          │

│ 2024-03-30T05:46:10.402731Z  INFO spiral_temp_test:         │

│ input=StringLiteral("-b:%hUiD<=W`%Cje`i`/P*{?'&X`:9")                        │

│ 2024-03-30T05:46:10.402811Z  INFO spiral_temp_test:         │

│ input=Identifier("urS9APAap3Ifj2NGIgr6bYli451OR")                            │

│ 2024-03-30T05:46:10.402878Z  INFO spiral_temp_test:         │

│ input=Identifier("VvxzuZ0RvDj7u3pNOD9Cgp6n1P8y3D406")                        │

│ 2024-03-30T05:46:10.402927Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.402976Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.403033Z  INFO spiral_temp_test:         │

│ input=StringLiteral("?*3U4y!'/[?B`*h")                                       │

│ 2024-03-30T05:46:10.403083Z  INFO spiral_temp_test:         │

│ input=StringLiteral("<,*F_<_e{e")                                            │

│ 2024-03-30T05:46:10.403149Z  INFO spiral_temp_test:         │

│ input=Comment("F+1H=U\\\"}'G?L+r`6.zC/T..eNT=x*g")                           │

│ 2024-03-30T05:46:10.403223Z  INFO spiral_temp_test:         │

│ input=StringLiteral("SDUJW?oe~7y*F]^$'_?o.)&wi=*J")                          │

│ 2024-03-30T05:46:10.403291Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.403341Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.403387Z  INFO spiral_temp_test:         │

│ input=Integer(3746048075733451474)                                           │

│ 2024-03-30T05:46:10.403428Z  INFO spiral_temp_test:         │

│ input=Integer(8183219142557690832)                                           │

│ 2024-03-30T05:46:10.403484Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.403592Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.403653Z  INFO spiral_temp_test:         │

│ input=StringLiteral("{_XywL%<<a':0~#LmE}<x:c~")                              │

│ 2024-03-30T05:46:10.403700Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.403761Z  INFO spiral_temp_test:         │

│ input=StringLiteral("=tYQj)D2$k:&*1E'VsF2|@~5dYr?K<")                        │

│ 2024-03-30T05:46:10.403811Z  INFO spiral_temp_test:         │

│ input=Identifier("LLxQ500GGpFl935UPFxI7T")                                   │

│ 2024-03-30T05:46:10.403849Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.403907Z  INFO spiral_temp_test:         │

│ input=Comment("&\"?l\\t`")                                                   │

│ 2024-03-30T05:46:10.403957Z  INFO spiral_temp_test:         │

│ input=Identifier("sFrZng8Iv7K4JKmXwr7sf78")                                  │

│ 2024-03-30T05:46:10.404011Z  INFO spiral_temp_test:         │

│ input=Identifier("FIk9No9n6w5t9Wq8702e2s06WJIYfiUi")                         │

│ 2024-03-30T05:46:10.404059Z  INFO spiral_temp_test:         │

│ input=Identifier("e95QOLy13MIqlBiFP9")                                       │

│ 2024-03-30T05:46:10.404112Z  INFO spiral_temp_test:         │

│ input=Identifier("SU1KKBiK4oGGLmkcJJbB")                                     │

│ 2024-03-30T05:46:10.404162Z  INFO spiral_temp_test:         │

│ input=Identifier("K62Ioko3A98Qebe6b3BRq9hZnsjb")                             │

│ 2024-03-30T05:46:10.404208Z  INFO spiral_temp_test:         │

│ input=StringLiteral("?&5PlQ?o")                                              │

│ 2024-03-30T05:46:10.404243Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.404278Z  INFO spiral_temp_test:         │

│ input=StringLiteral(".")                                                     │

│ 2024-03-30T05:46:10.404328Z  INFO spiral_temp_test:         │

│ input=Comment("\\.y!=''mDU.K K'aWk1?$(b*?Wh=t$")                             │

│ 2024-03-30T05:46:10.404377Z  INFO spiral_temp_test:         │

│ input=StringLiteral("(?`%?}q{P&7b")                                          │

│ 2024-03-30T05:46:10.404422Z  INFO spiral_temp_test:         │

│ input=Comment("&aX,")                                                        │

│ 2024-03-30T05:46:10.404469Z  INFO spiral_temp_test:         │

│ input=Comment("%{'Y$Ch:8\"zG;")                                              │

│ 2024-03-30T05:46:10.404544Z  INFO spiral_temp_test:         │

│ input=Identifier("d1pwVE89Riy9Ann2A3sM4XO51jmy78wkl")                        │

│ 2024-03-30T05:46:10.404600Z  INFO spiral_temp_test:         │

│ input=Comment("H?{`uBYC\\vC'=/7")                                            │

│ 2024-03-30T05:46:10.404670Z  INFO spiral_temp_test:         │

│ input=StringLiteral("_g7?:];$ nf4?I?'")                                      │

│ 2024-03-30T05:46:10.404726Z  INFO spiral_temp_test:         │

│ input=Comment("rsA\"\"-:G){\"`cHy")                                          │

│ 2024-03-30T05:46:10.404793Z  INFO spiral_temp_test:         │

│ input=Comment("ojG%N(m5\"(r&?r/\"&z9%N](y.)U")                               │

│ 2024-03-30T05:46:10.404851Z  INFO spiral_temp_test:         │

│ input=Identifier("UI0pi2MujRJ3CKpFeJ68")                                     │

│ 2024-03-30T05:46:10.404901Z  INFO spiral_temp_test:         │

│ input=Comment("'N|eRP%")                                                     │

│ 2024-03-30T05:46:10.404946Z  INFO spiral_temp_test:         │

│ input=Integer(-5368526789500787531)                                          │

│ 2024-03-30T05:46:10.405035Z  INFO spiral_temp_test:         │

│ input=Comment("H?=j.\\!e,=~pAn*(%$'h>Hu {y8\\Jo")                            │

│ 2024-03-30T05:46:10.405096Z  INFO spiral_temp_test:         │

│ input=Identifier("XO6ws8Yn816XG7Dj44UACxfpHwO")                              │

│ 2024-03-30T05:46:10.405152Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.405277Z  INFO spiral_temp_test:         │

│ input=Comment("&\"{@Y\\,a$t:9P1vcSnHk*i'%}Jje")                              │

│ 2024-03-30T05:46:10.405346Z  INFO spiral_temp_test:         │

│ input=Comment("YGXS\"5o\"^$={1fU.p*. a%/J].&")                               │

│ 2024-03-30T05:46:10.405391Z  INFO spiral_temp_test:         │

│ input=Integer(7059456737780220797)                                           │

│ 2024-03-30T05:46:10.405443Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.405496Z  INFO spiral_temp_test:         │

│ input=Identifier("GFyye1MkB9")                                               │

│ 2024-03-30T05:46:10.405558Z  INFO spiral_temp_test:         │

│ input=Comment("{DF\"W")                                                      │

│ 2024-03-30T05:46:10.405610Z  INFO spiral_temp_test:         │

│ input=Integer(2482479205478770642)                                           │

│ 2024-03-30T05:46:10.405666Z  INFO spiral_temp_test:         │

│ input=Comment("/O?{?b:::!,)PadzAiWy/X?S:")                                   │

│ 2024-03-30T05:46:10.405710Z  INFO spiral_temp_test:         │

│ input=Integer(-8810742437689691681)                                          │

│ 2024-03-30T05:46:10.405768Z  INFO spiral_temp_test:         │

│ input=StringLiteral("+@g.)%&xIx=")                                           │

│ 2024-03-30T05:46:10.405828Z  INFO spiral_temp_test:         │

│ input=Identifier("bUNk6SHLPs78XDGie")                                        │

│ 2024-03-30T05:46:10.405894Z  INFO spiral_temp_test:         │

│ input=StringLiteral("(qQH(N)t=&~:QF")                                        │

│ 2024-03-30T05:46:10.405945Z  INFO spiral_temp_test:         │

│ input=Integer(-8084300095946776386)                                          │

│ 2024-03-30T05:46:10.406012Z  INFO spiral_temp_test:         │

│ input=StringLiteral("-`zVL$DX`;+s9:{o'%T")                                   │

│ 2024-03-30T05:46:10.406067Z  INFO spiral_temp_test:         │

│ input=StringLiteral("%$g;sw: TW")                                            │

│ 2024-03-30T05:46:10.406140Z  INFO spiral_temp_test:         │

│ input=StringLiteral("<=+&NdLt.*8mmHE>ht</.N%.>j/|")                          │

│ 2024-03-30T05:46:10.406205Z  INFO spiral_temp_test:         │

│ input=Comment("=`?CY&")                                                      │

│ 2024-03-30T05:46:10.406271Z  INFO spiral_temp_test:         │

│ input=Comment("wc^#z,.`%]|K?4CO{Y/^W='e")                                    │

│ 2024-03-30T05:46:10.406318Z  INFO spiral_temp_test:         │

│ input=Integer(2504418243801435801)                                           │

│ 2024-03-30T05:46:10.406397Z  INFO spiral_temp_test:         │

│ input=StringLiteral("Ab3.1ns[-s=.%h&7|:#u<]PXI7")                            │

│ 2024-03-30T05:46:10.406459Z  INFO spiral_temp_test:         │

│ input=Identifier("gg5WU9ypHXBx0o44Us")                                       │

│ 2024-03-30T05:46:10.406525Z  INFO spiral_temp_test:         │

│ input=StringLiteral(":~%Q%&mL`B5P??mh/|So&?faIN")                            │

│ 2024-03-30T05:46:10.406570Z  INFO spiral_temp_test:         │

│ input=Integer(-6145816609750027977)                                          │

│ 2024-03-30T05:46:10.406622Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.406669Z  INFO spiral_temp_test:         │

│ input=Integer(-4232876531764619394)                                          │

│ 2024-03-30T05:46:10.406749Z  INFO spiral_temp_test:         │

│ input=Comment(">$N:\\?+&-O69")                                               │

│ 2024-03-30T05:46:10.406799Z  INFO spiral_temp_test:         │

│ input=Identifier("jlUG6j0N")                                                 │

│ 2024-03-30T05:46:10.406851Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.406906Z  INFO spiral_temp_test:         │

│ input=Identifier("IEiE3")                                                    │

│ 2024-03-30T05:46:10.406968Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.407018Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.407073Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.407138Z  INFO spiral_temp_test:         │

│ input=StringLiteral("p_ZyG@rUx%?qA$#V]2,Yi,")                                │

│ 2024-03-30T05:46:10.407196Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.407253Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.407380Z  INFO spiral_temp_test:         │

│ input=StringLiteral("&'/_sAIS*>57=+v%yGGsz?K&.5=")                           │

│ 2024-03-30T05:46:10.407416Z  INFO spiral_temp_test:         │

│ input=Integer(-2293268734751246567)                                          │

│ 2024-03-30T05:46:10.407446Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.407519Z  INFO spiral_temp_test:         │

│ input=Comment("\\./C&*$D|{?99Q9TI?@'$\"{a\"1.xYY")                           │

│ 2024-03-30T05:46:10.407577Z  INFO spiral_temp_test:         │

│ input=Comment("=7v/:$")                                                      │

│ 2024-03-30T05:46:10.407655Z  INFO spiral_temp_test:         │

│ input=StringLiteral("$%|GDY7J`Dz-^G/*'=$HrG.n#j=:g")                         │

│ 2024-03-30T05:46:10.407719Z  INFO spiral_temp_test:         │

│ input=Identifier("MD29BVwkT3Mlyfrv1B4r04Mj")                                 │

│ 2024-03-30T05:46:10.407777Z  INFO spiral_temp_test:         │

│ input=StringLiteral("L'<h+W)H@=@_q]")                                        │

│ 2024-03-30T05:46:10.407831Z  INFO spiral_temp_test:         │

│ input=StringLiteral("AC.:gPW")                                               │

│ 2024-03-30T05:46:10.407908Z  INFO spiral_temp_test:         │

│ input=Identifier("oGVr2Co6528VoA482fG7ZaV0EVNz1YbN2")                        │

│ 2024-03-30T05:46:10.407958Z  INFO spiral_temp_test:         │

│ input=Integer(5600283108390625110)                                           │

│ 2024-03-30T05:46:10.408035Z  INFO spiral_temp_test:         │

│ input=Comment("+=`Q$\\[3<$.5*/t-Y/NT%<vM}DS")                                │

│ 2024-03-30T05:46:10.408089Z  INFO spiral_temp_test:         │

│ input=Integer(3872057242434032928)                                           │

│ 2024-03-30T05:46:10.408138Z  INFO spiral_temp_test:         │

│ input=Operator("*")                                                          │

│ 2024-03-30T05:46:10.408286Z  INFO spiral_temp_test:         │

│ input=Comment("YF<=kP%::%u:=A=e=Y")                                          │

│ 2024-03-30T05:46:10.408337Z  INFO spiral_temp_test:         │

│ input=Comment("~W8p7`kU`P'#NAXphk7g1]Yg.R:=-z")                              │

│ 2024-03-30T05:46:10.408388Z  INFO spiral_temp_test:         │

│ input=Integer(8873626877484428640)                                           │

│ 2024-03-30T05:46:10.408433Z  INFO spiral_temp_test:         │

│ input=Integer(7815345523709169028)                                           │

│ 2024-03-30T05:46:10.408478Z  INFO spiral_temp_test:         │

│ input=Integer(2948981684594628139)                                           │

│ 2024-03-30T05:46:10.408545Z  INFO spiral_temp_test:         │

│ input=StringLiteral(".J{dnUAp{|")                                            │

│ 2024-03-30T05:46:10.408602Z  INFO spiral_temp_test:         │

│ input=Integer(-5518154348422812955)                                          │

│ 2024-03-30T05:46:10.408656Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.408722Z  INFO spiral_temp_test:         │

│ input=Identifier("w3TnysP9dyfuZuUT0F")                                       │

│ 2024-03-30T05:46:10.408772Z  INFO spiral_temp_test:         │

│ input=Identifier("Vhr4jX")                                                   │

│ 2024-03-30T05:46:10.408824Z  INFO spiral_temp_test:         │

│ input=Integer(1839812335861948147)                                           │

│ 2024-03-30T05:46:10.408873Z  INFO spiral_temp_test:         │

│ input=Comment("k-l]^")                                                       │

│ 2024-03-30T05:46:10.408917Z  INFO spiral_temp_test:         │

│ input=Integer(3282580777268460428)                                           │

│ 2024-03-30T05:46:10.408973Z  INFO spiral_temp_test:         │

│ input=Identifier("mHHJeMpJD")                                                │

│ 2024-03-30T05:46:10.409032Z  INFO spiral_temp_test:         │

│ input=StringLiteral("?z#qCvb")                                               │

│ 2024-03-30T05:46:10.409104Z  INFO spiral_temp_test:         │

│ input=StringLiteral("'}&b%=a^`f|ujvN5aen?$2=.")                              │

│ 2024-03-30T05:46:10.409176Z  INFO spiral_temp_test:         │

│ input=StringLiteral("TO%+&e+&|`1M`|~QLhWSQ/*q/m'.pm")                        │

│ 2024-03-30T05:46:10.409227Z  INFO spiral_temp_test:         │

│ input=Integer(-1385892275887455926)                                          │

│ 2024-03-30T05:46:10.409298Z  INFO spiral_temp_test:         │

│ input=StringLiteral("/Y7M?$'J$=o")                                           │

│ 2024-03-30T05:46:10.409360Z  INFO spiral_temp_test:         │

│ input=Comment("/r.f\\E'/J'8.|O:s\"=STo0")                                    │

│ 2024-03-30T05:46:10.409418Z  INFO spiral_temp_test:         │

│ input=Integer(7314314031652137252)                                           │

│ 2024-03-30T05:46:10.409466Z  INFO spiral_temp_test:         │

│ input=Integer(-4902778607970001530)                                          │

│ 2024-03-30T05:46:10.409516Z  INFO spiral_temp_test:         │

│ input=Integer(1574382024035082243)                                           │

│ 2024-03-30T05:46:10.409567Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.409644Z  INFO spiral_temp_test:         │

│ input=Identifier("jwhjj7Z5ap8v2xQ")                                          │

│ 2024-03-30T05:46:10.409696Z  INFO spiral_temp_test:         │

│ input=Comment("<?")                                                          │

│ 2024-03-30T05:46:10.409738Z  INFO spiral_temp_test:         │

│ input=Integer(1921439486571235848)                                           │

│ 2024-03-30T05:46:10.409790Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.409839Z  INFO spiral_temp_test:         │

│ input=Integer(-3499334434843476559)                                          │

│ 2024-03-30T05:46:10.409892Z  INFO spiral_temp_test:         │

│ input=StringLiteral("[f`x")                                                  │

│ 2024-03-30T05:46:10.409960Z  INFO spiral_temp_test:         │

│ input=StringLiteral("a{'/`{AT=PAuC!?;5i@9")                                  │

│ 2024-03-30T05:46:10.410011Z  INFO spiral_temp_test:         │

│ input=Comment("w")                                                           │

│ 2024-03-30T05:46:10.410086Z  INFO spiral_temp_test:         │

│ input=Identifier("eaU75H9xzyZ24pLTWo1Wfp7I9V5Q9qgZw")                        │

│ 2024-03-30T05:46:10.410132Z  INFO spiral_temp_test:         │

│ input=Identifier("Z")                                                        │

│ 2024-03-30T05:46:10.410185Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.410259Z  INFO spiral_temp_test:         │

│ input=StringLiteral(" :>gS ]'+.5F#*'JZhM`Ux=r'T")                            │

│ 2024-03-30T05:46:10.410323Z  INFO spiral_temp_test:         │

│ input=Comment("}*#")                                                         │

│ 2024-03-30T05:46:10.410379Z  INFO spiral_temp_test:         │

│ input=Operator("+")                                                          │

│ 2024-03-30T05:46:10.410438Z  INFO spiral_temp_test:         │

│ input=StringLiteral("Y/{%Y{af>%")                                            │

│ 2024-03-30T05:46:10.410520Z  INFO spiral_temp_test:         │

│ input=Identifier("VuzOBiSbiav56CVFM3UyY142UknrNV8")                          │

│ 2024-03-30T05:46:10.410571Z  INFO spiral_temp_test:         │

│ input=Comment("")                                                            │

│ 2024-03-30T05:46:10.410619Z  INFO spiral_temp_test:         │

│ input=Integer(7571319414225272663)                                           │

│ 2024-03-30T05:46:10.410679Z  INFO spiral_temp_test:         │

│ input=Comment("&\"<Ot9Vh")                                                   │

│ 2024-03-30T05:46:10.410745Z  INFO spiral_temp_test:         │

│ input=Comment("Ro?{.6b`")                                                    │

│ 2024-03-30T05:46:10.410800Z  INFO spiral_temp_test:         │

│ input=Integer(4201430940992682064)                                           │

│ 2024-03-30T05:46:10.410839Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.410878Z  INFO spiral_temp_test:         │

│ input=Comment("b3@/.],`oxdi?v\"{G\\8*=cEM_G&Bw}")                            │

│ 2024-03-30T05:46:10.410905Z  INFO spiral_temp_test:         │

│ input=Comment("!")                                                           │

│ 2024-03-30T05:46:10.410928Z  INFO spiral_temp_test:         │

│ input=Integer(8132757714385390370)                                           │

│ 2024-03-30T05:46:10.410963Z  INFO spiral_temp_test:         │

│ input=StringLiteral("$J~S`N&.*42:d?^x6%/:~$oF|&XH<.")                        │

│ 2024-03-30T05:46:10.410995Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.411017Z  INFO spiral_temp_test:         │

│ input=Integer(217745490734758932)                                            │

│ 2024-03-30T05:46:10.411047Z  INFO spiral_temp_test:         │

│ input=Comment("tZOR?Uy,'uyi6s%;")                                            │

│ 2024-03-30T05:46:10.411072Z  INFO spiral_temp_test:         │

│ input=StringLiteral(";z'")                                                   │

│ 2024-03-30T05:46:10.411113Z  INFO spiral_temp_test:         │

│ input=Operator("(")                                                          │

│ 2024-03-30T05:46:10.411165Z  INFO spiral_temp_test:         │

│ input=Integer(8007756325065489920)                                           │

│ 2024-03-30T05:46:10.411214Z  INFO spiral_temp_test:         │

│ input=Identifier("BLv")                                                      │

│ 2024-03-30T05:46:10.411271Z  INFO spiral_temp_test:         │

│ input=StringLiteral("[`*:C`up'DD5?")                                         │

│ 2024-03-30T05:46:10.411324Z  INFO spiral_temp_test:         │

│ input=Operator("*")                                                          │

│ 2024-03-30T05:46:10.411385Z  INFO spiral_temp_test:         │

│ input=StringLiteral("J`'q;Hp")                                               │

│ 2024-03-30T05:46:10.411444Z  INFO spiral_temp_test:         │

│ input=Integer(-207160990662305846)                                           │

│ 2024-03-30T05:46:10.411512Z  INFO spiral_temp_test:         │

│ input=Identifier("uYj1EGt9nI5CIOD3r")                                        │

│ 2024-03-30T05:46:10.411573Z  INFO spiral_temp_test:         │

│ input=Operator("*")                                                          │

│ 2024-03-30T05:46:10.411645Z  INFO spiral_temp_test:         │

│ input=StringLiteral("].W*A/<'@!|v /?IP.")                                    │

│ 2024-03-30T05:46:10.411721Z  INFO spiral_temp_test:         │

│ input=Comment("=Px\\l{%zo*l/% w%:*U-FR+E,h/H*)w:")                           │

│ 2024-03-30T05:46:10.411771Z  INFO spiral_temp_test:         │

│ input=Identifier("N")                                                        │

│ 2024-03-30T05:46:10.411823Z  INFO spiral_temp_test:         │

│ input=Integer(-7889239692928606960)                                          │

│ 2024-03-30T05:46:10.411893Z  INFO spiral_temp_test:         │

│ input=StringLiteral("rFrj<$<A2`uA)<1{{QP")                                   │

│ 2024-03-30T05:46:10.411952Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.412019Z  INFO spiral_temp_test:         │

│ input=Comment("Wl,:61?%;gx'E\\&")                                            │

│ 2024-03-30T05:46:10.412074Z  INFO spiral_temp_test:         │

│ input=Comment("/`r$")                                                        │

│ 2024-03-30T05:46:10.412140Z  INFO spiral_temp_test:         │

│ input=Comment("6:<i2?*")                                                     │

│ 2024-03-30T05:46:10.412196Z  INFO spiral_temp_test:         │

│ input=Integer(-9148148051447812586)                                          │

│ 2024-03-30T05:46:10.412258Z  INFO spiral_temp_test:         │

│ input=StringLiteral("*")                                                     │

│ 2024-03-30T05:46:10.412331Z  INFO spiral_temp_test:         │

│ input=Identifier("O1P3lH5K7ahoMli")                                          │

│ 2024-03-30T05:46:10.412463Z  INFO spiral_temp_test:         │

│ input=StringLiteral("W%$'z>`/EOhP[Y^v*l=:G;yOL%]/Dn")                        │

│ 2024-03-30T05:46:10.412561Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.412613Z  INFO spiral_temp_test:         │

│ input=Integer(-5577147255377318208)                                          │

│ 2024-03-30T05:46:10.412648Z  INFO spiral_temp_test:         │

│ input=Integer(7674283771758076328)                                           │

│ 2024-03-30T05:46:10.412682Z  INFO spiral_temp_test:         │

│ input=Operator("+")                                                          │

│ 2024-03-30T05:46:10.412713Z  INFO spiral_temp_test:         │

│ input=Integer(172758257325836142)                                            │

│ 2024-03-30T05:46:10.412755Z  INFO spiral_temp_test:         │

│ input=Identifier("NYGMI84e3")                                                │

│ 2024-03-30T05:46:10.412797Z  INFO spiral_temp_test:         │

│ input=Operator("*")                                                          │

│ 2024-03-30T05:46:10.412845Z  INFO spiral_temp_test:         │

│ input=Comment("<1Sl`8$&F'W,>}|&O[$E7y\\")                                    │

│ 2024-03-30T05:46:10.412892Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.412927Z  INFO spiral_temp_test:         │

│ input=Integer(-3748097449316135680)                                          │

│ 2024-03-30T05:46:10.412967Z  INFO spiral_temp_test:         │

│ input=Identifier("aTUJFe1pe2p1i")                                            │

│ 2024-03-30T05:46:10.413020Z  INFO spiral_temp_test:         │

│ input=Identifier("FR5RmA2f25INfT0p")                                         │

│ 2024-03-30T05:46:10.413080Z  INFO spiral_temp_test:         │

│ input=Comment(";Tq6`S:<B>d5`/28-u`\\=3\\O$")                                 │

│ 2024-03-30T05:46:10.413126Z  INFO spiral_temp_test:         │

│ input=Identifier("Er84eZR7")                                                 │

│ 2024-03-30T05:46:10.413165Z  INFO spiral_temp_test:         │

│ input=Operator("+")                                                          │

│ 2024-03-30T05:46:10.413204Z  INFO spiral_temp_test:         │

│ input=Integer(-7010844856570985754)                                          │

│ 2024-03-30T05:46:10.413253Z  INFO spiral_temp_test:         │

│ input=Identifier("M9kGg9u3H53lI1ORUZFg0r")                                   │

│ 2024-03-30T05:46:10.413301Z  INFO spiral_temp_test:         │

│ input=Operator(")")                                                          │

│ 2024-03-30T05:46:10.413338Z  INFO spiral_temp_test:         │

│ input=Comment("")                                                            │

│ 2024-03-30T05:46:10.413379Z  INFO spiral_temp_test:         │

│ input=Comment("?<Q7>{Brj%QKLXg#.l")                                          │

│ 2024-03-30T05:46:10.413419Z  INFO spiral_temp_test:         │

│ input=Integer(-8730503903268594618)                                          │

│ 2024-03-30T05:46:10.413480Z  INFO spiral_temp_test:         │

│ input=Identifier("Ic")                                                       │

│ 2024-03-30T05:46:10.413531Z  INFO spiral_temp_test:         │

│ input=Integer(-520817826251418356)                                           │

│ 2024-03-30T05:46:10.413591Z  INFO spiral_temp_test:         │

│ input=StringLiteral("h7/:@lr`&2!cL,{3t{")                                    │

│ 2024-03-30T05:46:10.413633Z  INFO spiral_temp_test:         │

│ input=Integer(-7735012875492369556)                                          │

│ 2024-03-30T05:46:10.413689Z  INFO spiral_temp_test:         │

│ input=Comment("Cg%\"#fFpX&G/5")                                              │

│ 2024-03-30T05:46:10.413744Z  INFO spiral_temp_test:         │

│ input=Identifier("QBi663biF38Q")                                             │

│ 2024-03-30T05:46:10.413786Z  INFO spiral_temp_test:         │

│ input=Comment("i")                                                           │

│ 2024-03-30T05:46:10.413833Z  INFO spiral_temp_test:         │

│ input=Comment("#] \\`fq=`;\"oN8=")                                           │

│ 2024-03-30T05:46:10.413944Z  INFO spiral_temp_test:         │

│ input=Integer(1910692334126148969)                                           │

│ 2024-03-30T05:46:10.414005Z  INFO spiral_temp_test:         │

│ input=Comment(".%Q<.\"%U::@ d\\Ov\"at=:`'Z\\`")                              │

│ 2024-03-30T05:46:10.414060Z  INFO spiral_temp_test:         │

│ input=StringLiteral("=.M(L,$l#t {Q02")                                       │

│ 2024-03-30T05:46:10.414120Z  INFO spiral_temp_test:         │

│ input=StringLiteral("p8bd~,")                                                │

│ 2024-03-30T05:46:10.414163Z  INFO spiral_temp_test:         │

│ input=Integer(-5740771113223121035)                                          │

│ 2024-03-30T05:46:10.414229Z  INFO spiral_temp_test:         │

│ input=Comment(">p-bO0k*%(zBk&\\ygK''['O&")                                   │

│ 2024-03-30T05:46:10.414293Z  INFO spiral_temp_test:         │

│ input=Comment("u@+WH+=1=bvjzkE{n$CV0/`*k&P")                                 │

│ 2024-03-30T05:46:10.414345Z  INFO spiral_temp_test:         │

│ input=StringLiteral("UI$.MTjkECY:T<I&mC")                                    │

│ 2024-03-30T05:46:10.414393Z  INFO spiral_temp_test:         │

│ input=Operator("=")                                                          │

│ 2024-03-30T05:46:10.414443Z  INFO spiral_temp_test:         │

│ input=Comment("*3//\"2$` (a``M=b`0")                                         │

│ 2024-03-30T05:46:10.414480Z  INFO spiral_temp_test:         │

│ input=Identifier("dlm")                                                      │

│ 2024-03-30T05:46:10.414515Z  INFO spiral_temp_test:         │

│ input=Operator("+")                                                          │

│ 2024-03-30T05:46:10.414548Z  INFO spiral_temp_test:         │

│ input=Integer(-1394264823093923865)                                          │

│ 2024-03-30T05:46:10.414589Z  INFO spiral_temp_test:         │

│ input=Operator("/")                                                          │

│ 2024-03-30T05:46:10.414631Z  INFO spiral_temp_test:         │

│ input=Comment("rd:F")                                                        │

│ 2024-03-30T05:46:10.414674Z  INFO spiral_temp_test:         │

│ input=StringLiteral("!a*xmq=-`syUp%")                                        │

│ 2024-03-30T05:46:10.414720Z  INFO spiral_temp_test:         │

│ input=Operator("-")                                                          │

│ 2024-03-30T05:46:10.414754Z  INFO spiral_temp_test:         │

│ input=Comment("#+*")                                                         │

│ test prop_parse_format_idempotent ... ok                                     │

│ test                                                                         │

│ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │

│ ok                                                                           │

│                                                                              │

│ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │

│ finished in 0.15s                                                            │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

{ . $ScriptDir/../../../../target/release/spiral_temp_test$(GetExecutableSuffix)

} | Invoke-Block



╭─[ 80.98ms - stdout ]─────────────────────────────────────────────────────────╮

│ app=test                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook build.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 364901 bytes to build.dib.html

In [ ]:
{ . "$ScriptDir/../apps/perf/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@429-61> }

00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\perf

00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805

00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805

00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Perf.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #12 [Verbose] >

00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #15 [Verbose] > │ ## Perf (Polyglot)                                                           │

00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #17 [Verbose] >

00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #19 [Verbose] > // // test

00:00:03 #20 [Verbose] >

00:00:03 #21 [Verbose] > open testing

00:00:03 #22 [Verbose] > open benchmark

00:00:07 #23 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0146-2078-7893-7b620fdc550a\main.spi

00:00:09 #24 [Verbose] >

00:00:09 #25 [Verbose] > ╭─[ 5.95s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #26 [Verbose] > │ ()                                                                           │

00:00:09 #27 [Verbose] > │                                                                              │

00:00:09 #28 [Verbose] > │                                                                              │

00:00:09 #29 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #30 [Verbose] >

00:00:09 #31 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:09 #32 [Verbose] > #!import ../../lib/spiral/common.fsx

00:00:09 #33 [Verbose] > #!import ../../lib/spiral/sm.fsx

00:00:09 #34 [Verbose] > #!import ../../lib/spiral/date_time.fsx

00:00:09 #35 [Verbose] > #!import ../../lib/spiral/file_system.fsx

00:00:09 #36 [Verbose] > #!import ../../lib/spiral/lib.fsx

00:00:09 #37 [Verbose] >

00:00:09 #38 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:09 #39 [Verbose] > #r

00:00:09 #40 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

00:00:09 #41 [Verbose] > spNetCore.Html.Abstractions.dll"

00:00:09 #42 [Verbose] > #r

00:00:09 #43 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:09 #44 [Verbose] > otNet.Interactive.dll"

00:00:09 #45 [Verbose] > #r

00:00:09 #46 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:09 #47 [Verbose] > otNet.Interactive.FSharp.dll"

00:00:09 #48 [Verbose] > #r

00:00:09 #49 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:09 #50 [Verbose] > otNet.Interactive.Formatting.dll"

00:00:09 #51 [Verbose] > open System

00:00:09 #52 [Verbose] > open System.IO

00:00:09 #53 [Verbose] > open System.Text

00:00:09 #54 [Verbose] > open Microsoft.DotNet.Interactive.Formatting

00:00:11 #55 [Verbose] >

00:00:11 #56 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:11 #57 [Verbose] > #r

00:00:11 #58 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:11 #59 [Verbose] > otNet.Interactive.FSharp.dll"

00:00:11 #60 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

00:00:11 #61 [Verbose] > #r

00:00:11 #62 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:11 #63 [Verbose] > otNet.Interactive.dll"

00:00:11 #64 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel

00:00:11 #65 [Verbose] >

00:00:11 #66 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:11 #67 [Verbose] > type [[<Struct>]] US0 =

00:00:11 #68 [Verbose] >     | US0_0

00:00:11 #69 [Verbose] >     | US0_1

00:00:11 #70 [Verbose] > and [[<Struct>]] US1 =

00:00:11 #71 [Verbose] >     | US1_0

00:00:11 #72 [Verbose] >     | US1_1 of f1_0 : US0

00:00:11 #73 [Verbose] > let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

00:00:11 #74 [Verbose] >     v0

00:00:11 #75 [Verbose] > and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

00:00:11 #76 [Verbose] >     let mutable result = None

00:00:11 #77 [Verbose] >     #if FABLE_COMPILER_RUST && !WASM

00:00:11 #78 [Verbose] >     let v1 : (unit -> unit) = method0(v0)

00:00:11 #79 [Verbose] >     let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

00:00:11 #80 [Verbose] > () = Fable.Core.RustInterop.emitRustExpr () "v1()" }

00:00:11 #81 [Verbose] >     v2

00:00:11 #82 [Verbose] >     #endif

00:00:11 #83 [Verbose] >     #if FABLE_COMPILER_RUST && WASM

00:00:11 #84 [Verbose] >     let v3 : (unit -> unit) = method0(v0)

00:00:11 #85 [Verbose] >     let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

00:00:11 #86 [Verbose] > () = Fable.Core.RustInterop.emitRustExpr () "v3()" }

00:00:11 #87 [Verbose] >     v4

00:00:11 #88 [Verbose] >     #endif

00:00:11 #89 [Verbose] >     #if !FABLE_COMPILER && !F...

00:00:12 #90 [Verbose] >

00:00:12 #91 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:12 #92 [Verbose] > type Mut0 = {mutable l0 : int32; mutable l1 : string}

00:00:12 #93 [Verbose] > and Mut1 = {mutable l0 : int32}

00:00:12 #94 [Verbose] > let rec closure1 (v0 : string) (v1 : string) : bool =

00:00:12 #95 [Verbose] >     let v2 : bool = v1.Contains v0

00:00:12 #96 [Verbose] >     v2

00:00:12 #97 [Verbose] > and closure0 () (v0 : string) : (string -> bool) =

00:00:12 #98 [Verbose] >     closure1(v0)

00:00:12 #99 [Verbose] > and closure3 (v0 : string) (v1 : string) : bool =

00:00:12 #100 [Verbose] >     let v2 : bool = v1.EndsWith v0

00:00:12 #101 [Verbose] >     v2

00:00:12 #102 [Verbose] > and closure2 () (v0 : string) : (string -> bool) =

00:00:12 #103 [Verbose] >     closure3(v0)

00:00:12 #104 [Verbose] > and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

00:00:12 #105 [Verbose] >     let v3 : string = v2.PadLeft (v0, v1)

00:00:12 #106 [Verbose] >     v3

00:00:12 #107 [Verbose] > and closure5 (v0 : int32) (v1 : char) : (string -> string) =

00:00:12 #108 [Verbose] >     closure6(v0, v1)

00:00:12 #109 [Verbose] > and closure4 () (v0 : int32) : (char -> (string -> string)) =

00:00:12 #110 [Verbose] >     closure5(v0)

00:00:12 #111 [Verbose] > and closure8 (v0 : int32) (v1 : string) : string =

00:00:12 #112 [Verbose] >     let v2 : stri...

00:00:12 #113 [Verbose] >

00:00:12 #114 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:12 #115 [Verbose] > let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

00:00:12 #116 [Verbose] >     let v2 : string = v0.ToString ()

00:00:12 #117 [Verbose] >     let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

00:00:12 #118 [Verbose] >     let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

00:00:12 #119 [Verbose] >     v4

00:00:12 #120 [Verbose] > and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

00:00:12 #121 [Verbose] >     closure1(v0)

00:00:12 #122 [Verbose] > and closure5 (v0 : string, v1 : string) (v2 : string) : string =

00:00:12 #123 [Verbose] >     let v3 : string = v2.Replace (v0, v1)

00:00:12 #124 [Verbose] >     v3

00:00:12 #125 [Verbose] > and closure4 (v0 : string) (v1 : string) : (string -> string) =

00:00:12 #126 [Verbose] >     closure5(v0, v1)

00:00:12 #127 [Verbose] > and closure3 () (v0 : string) : (string -> (string -> string)) =

00:00:12 #128 [Verbose] >     closure4(v0)

00:00:12 #129 [Verbose] > and method0 () : (string -> (string -> (string -> string))) =

00:00:12 #130 [Verbose] >     closure3()

00:00:12 #131 [Verbose] > and closure2 () (v0 : System.Guid) : System.DateTime =

00:00:12 #132 [Verbose] >   ...

00:00:13 #133 [Verbose] >

00:00:13 #134 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:13 #135 [Verbose] > type [[<Struct>]] US0 =

00:00:13 #136 [Verbose] >     | US0_0

00:00:13 #137 [Verbose] >     | US0_1

00:00:13 #138 [Verbose] >     | US0_2

00:00:13 #139 [Verbose] > and [[<Struct>]] US1 =

00:00:13 #140 [Verbose] >     | US1_0 of f0_0 : US0

00:00:13 #141 [Verbose] >     | US1_1 of f1_0 : US0

00:00:13 #142 [Verbose] > let rec closure0 () () : string =

00:00:13 #143 [Verbose] >     let mutable result = None

00:00:13 #144 [Verbose] >     #if FABLE_COMPILER_RUST && !WASM

00:00:13 #145 [Verbose] >     let v0 : US0 = US0_1

00:00:13 #146 [Verbose] >     let v1 : US1 = US1_1(v0)

00:00:13 #147 [Verbose] >     let v2 : string = $"create_temp_directory_name target: {v1}"

00:00:13 #148 [Verbose] >     let v3 : string = failwith<string> v2

00:00:13 #149 [Verbose] >     v3

00:00:13 #150 [Verbose] >     #endif

00:00:13 #151 [Verbose] >     #if FABLE_COMPILER_RUST && WASM

00:00:13 #152 [Verbose] >     let v4 : US0 = US0_2

00:00:13 #153 [Verbose] >     let v5 : US1 = US1_1(v4)

00:00:13 #154 [Verbose] >     let v6 : string = $"create_temp_directory_name target: {v5}"

00:00:13 #155 [Verbose] >     let v7 : string = failwith<string> v6

00:00:13 #156 [Verbose] >     v7

00:00:13 #157 [Verbose] >     #endif

00:00:13 #158 [Verbose] >     #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

00:00:13 #159 [Verbose] >     let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...

00:00:13 #160 [Verbose] >

00:00:13 #161 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:13 #162 [Verbose] > #if !WASM && !FABLE_COMPILER

00:00:13 #163 [Verbose] > module Date_time =

00:00:13 #164 [Verbose] >     let new_guid_from_date_time x =

00:00:13 #165 [Verbose] > #if !INTERACTIVE

00:00:13 #166 [Verbose] >         Date_time.new_guid_from_date_time x

00:00:13 #167 [Verbose] > #else

00:00:13 #168 [Verbose] >         new_guid_from_date_time x

00:00:13 #169 [Verbose] > #endif

00:00:13 #170 [Verbose] > #endif

00:00:13 #171 [Verbose] >

00:00:13 #172 [Verbose] > module Sm =

00:00:13 #173 [Verbose] >     let concat x =

00:00:13 #174 [Verbose] > #if !INTERACTIVE

00:00:13 #175 [Verbose] >         Sm.concat x

00:00:13 #176 [Verbose] > #else

00:00:13 #177 [Verbose] >         concat x

00:00:13 #178 [Verbose] > #endif

00:00:13 #179 [Verbose] >

00:00:13 #180 [Verbose] >     let contains x =

00:00:13 #181 [Verbose] > #if !INTERACTIVE

00:00:13 #182 [Verbose] >         Sm.contains x

00:00:13 #183 [Verbose] > #else

00:00:13 #184 [Verbose] >         contains x

00:00:13 #185 [Verbose] > #endif

00:00:13 #186 [Verbose] >

00:00:13 #187 [Verbose] >     let ellipsis x =

00:00:13 #188 [Verbose] > #if !INTERACTIVE

00:00:13 #189 [Verbose] >         Sm.ellipsis x

00:00:13 #190 [Verbose] > #else

00:00:13 #191 [Verbose] >         ellipsis x

00:00:13 #192 [Verbose] > #endif

00:00:13 #193 [Verbose] >

00:00:13 #194 [Verbose] >     let ends_with x =

00:00:13 #195 [Verbose] > #if !INTERACTIVE

00:00:13 #196 [Verbose] >         Sm.ends_with x

00:00:13 #197 [Verbose] > #else

00:00:13 #198 [Verbose] >         ends_with x

00:00:13 #199 [Verbose] > #endif

00:00:13 #200 [Verbose] >

00:00:13 #201 [Verbose] >     let format_exception x =

00:00:13 #202 [Verbose] > #if !INTERACTIVE

00:00:13 #203 [Verbose] >         Sm.format_exception x

00:00:13 #204 [Verbose] > #else

00:00:13 #205 [Verbose] >         format_exception x

00:00:13 #206 [Verbose] > #endif

00:00:13 #207 [Verbose] >

00:00:13 #208 [Verbose] >     let replace x =

00:00:13 #209 [Verbose] > #if !INTERACTIVE

00:00:13 #210 [Verbose] >         Sm.repl...

00:00:13 #211 [Verbose] >

00:00:13 #212 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #213 [Verbose] > #if !INTERACTIVE

00:00:13 #214 [Verbose] > open Lib

00:00:13 #215 [Verbose] > #endif

00:00:13 #216 [Verbose] >

00:00:13 #217 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #218 [Verbose] > inl (/@) x = listm'.(/@) x

00:00:13 #219 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0146-2776-7602-722f36757c9c\main.spi

00:00:13 #220 [Verbose] >

00:00:13 #221 [Verbose] > ╭─[ 322.05ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #222 [Verbose] > │ ()                                                                           │

00:00:13 #223 [Verbose] > │                                                                              │

00:00:13 #224 [Verbose] > │                                                                              │

00:00:13 #225 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #226 [Verbose] >

00:00:13 #227 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #228 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #229 [Verbose] > │ ## TestCaseResult                                                            │

00:00:13 #230 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #231 [Verbose] >

00:00:13 #232 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #233 [Verbose] > type TestCaseResult =

00:00:13 #234 [Verbose] >     {

00:00:13 #235 [Verbose] >         Input: string

00:00:13 #236 [Verbose] >         Expected: string

00:00:13 #237 [Verbose] >         Result: string

00:00:13 #238 [Verbose] >         TimeList: int64 list

00:00:13 #239 [Verbose] >     }

00:00:13 #240 [Verbose] >

00:00:13 #241 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #242 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #243 [Verbose] > │ ## run                                                                       │

00:00:13 #244 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #245 [Verbose] >

00:00:13 #246 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #247 [Verbose] > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,

00:00:13 #248 [Verbose] > expected) =

00:00:13 #249 [Verbose] >     let inputStr =

00:00:13 #250 [Verbose] >         match box input with

00:00:13 #251 [Verbose] >         | :? System.Collections.ICollection as input ->

00:00:13 #252 [Verbose] >             System.Linq.Enumerable.Cast<obj> input

00:00:13 #253 [Verbose] >             |> Seq.map string

00:00:13 #254 [Verbose] >             |> Sm.concat ","

00:00:13 #255 [Verbose] >         | _ -> input.ToString ()

00:00:13 #256 [Verbose] >

00:00:13 #257 [Verbose] >     printfn ""

00:00:13 #258 [Verbose] >     printfn $"Solution: {inputStr}  "

00:00:13 #259 [Verbose] >

00:00:13 #260 [Verbose] >     let performanceInvoke (fn: unit -> 'T) =

00:00:13 #261 [Verbose] >         GC.Collect ()

00:00:13 #262 [Verbose] >         let stopwatch = System.Diagnostics.Stopwatch ()

00:00:13 #263 [Verbose] >         stopwatch.Start ()

00:00:13 #264 [Verbose] >         let time1 = stopwatch.ElapsedMilliseconds

00:00:13 #265 [Verbose] >

00:00:13 #266 [Verbose] >         let result =

00:00:13 #267 [Verbose] >             [[| 0 .. count |]]

00:00:13 #268 [Verbose] >             |> Array.Parallel.map (fun _ ->

00:00:13 #269 [Verbose] >                 fn ()

00:00:13 #270 [Verbose] >             )

00:00:13 #271 [Verbose] >             |> Array.last

00:00:13 #272 [Verbose] >

00:00:13 #273 [Verbose] >         let time2 = stopwatch.ElapsedMilliseconds - time1

00:00:13 #274 [Verbose] >

00:00:13 #275 [Verbose] >         result, time2

00:00:13 #276 [Verbose] >

00:00:13 #277 [Verbose] >     let resultsWithTime =

00:00:13 #278 [Verbose] >         solutions

00:00:13 #279 [Verbose] >         |> List.mapi (fun i (testName, solution) ->

00:00:13 #280 [Verbose] >             let result, time = performanceInvoke (fun () -> solution input)

00:00:13 #281 [Verbose] >             printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time}  "

00:00:13 #282 [Verbose] >             result, time

00:00:13 #283 [Verbose] >         )

00:00:13 #284 [Verbose] >

00:00:13 #285 [Verbose] >

00:00:13 #286 [Verbose] >     match resultsWithTime |> List.map fst with

00:00:13 #287 [Verbose] >     | ([[]] | [[ _ ]]) -> ()

00:00:13 #288 [Verbose] >     | (head :: tail) when tail |> List.forall ((=) head) -> ()

00:00:13 #289 [Verbose] >     | results -> failwithf $"Challenge error: %A{results}"

00:00:13 #290 [Verbose] >

00:00:13 #291 [Verbose] >     {

00:00:13 #292 [Verbose] >         Input = inputStr

00:00:13 #293 [Verbose] >         Expected = expected.ToString ()

00:00:13 #294 [Verbose] >         Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()

00:00:13 #295 [Verbose] >         TimeList = resultsWithTime |> List.map snd

00:00:13 #296 [Verbose] >     }

00:00:13 #297 [Verbose] >

00:00:13 #298 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #299 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #300 [Verbose] > │ ## runAll                                                                    │

00:00:13 #301 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #302 [Verbose] >

00:00:13 #303 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #304 [Verbose] > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)

00:00:13 #305 [Verbose] > testCases =

00:00:13 #306 [Verbose] >     printfn ""

00:00:13 #307 [Verbose] >     printfn ""

00:00:13 #308 [Verbose] >     printfn $"Test: {testName}"

00:00:13 #309 [Verbose] >     testCases

00:00:13 #310 [Verbose] >     |> Seq.map (run count solutions)

00:00:13 #311 [Verbose] >     |> Seq.toList

00:00:13 #312 [Verbose] >

00:00:13 #313 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #314 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #315 [Verbose] > │ ## sortResultList                                                            │

00:00:13 #316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #317 [Verbose] >

00:00:13 #318 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #319 [Verbose] > let sortResultList resultList =

00:00:13 #320 [Verbose] >     let table =

00:00:13 #321 [Verbose] >         let rows =

00:00:13 #322 [Verbose] >             resultList

00:00:13 #323 [Verbose] >             |> List.map (fun result ->

00:00:13 #324 [Verbose] >                 let best =

00:00:13 #325 [Verbose] >                     result.TimeList

00:00:13 #326 [Verbose] >                     |> List.mapi (fun i time ->

00:00:13 #327 [Verbose] >                         i + 1, time

00:00:13 #328 [Verbose] >                     )

00:00:13 #329 [Verbose] >                     |> List.sortBy snd

00:00:13 #330 [Verbose] >                     |> List.head

00:00:13 #331 [Verbose] >                     |> _.ToString()

00:00:13 #332 [Verbose] >                 let row =

00:00:13 #333 [Verbose] >                     [[

00:00:13 #334 [Verbose] >                         result.Input

00:00:13 #335 [Verbose] >                         result.Expected

00:00:13 #336 [Verbose] >                         result.Result

00:00:13 #337 [Verbose] >                         best

00:00:13 #338 [Verbose] >                     ]]

00:00:13 #339 [Verbose] >                 let color =

00:00:13 #340 [Verbose] >                     match result.Expected = result.Result with

00:00:13 #341 [Verbose] >                     | true -> Some ConsoleColor.DarkGreen

00:00:13 #342 [Verbose] >                     | false -> Some ConsoleColor.DarkRed

00:00:13 #343 [Verbose] >                 row, color

00:00:13 #344 [Verbose] >             )

00:00:13 #345 [Verbose] >         let header =

00:00:13 #346 [Verbose] >             [[

00:00:13 #347 [Verbose] >                 [[

00:00:13 #348 [Verbose] >                     "Input"

00:00:13 #349 [Verbose] >                     "Expected"

00:00:13 #350 [Verbose] >                     "Result"

00:00:13 #351 [Verbose] >                     "Best"

00:00:13 #352 [Verbose] >                 ]]

00:00:13 #353 [Verbose] >                 [[

00:00:13 #354 [Verbose] >                     "---"

00:00:13 #355 [Verbose] >                     "---"

00:00:13 #356 [Verbose] >                     "---"

00:00:13 #357 [Verbose] >                     "---"

00:00:13 #358 [Verbose] >                 ]]

00:00:13 #359 [Verbose] >             ]]

00:00:13 #360 [Verbose] >             |> List.map (fun row -> row, None)

00:00:13 #361 [Verbose] >         header @ rows

00:00:13 #362 [Verbose] >

00:00:13 #363 [Verbose] >     let formattedTable =

00:00:13 #364 [Verbose] >         let lengthMap =

00:00:13 #365 [Verbose] >             table

00:00:13 #366 [Verbose] >             |> List.map fst

00:00:13 #367 [Verbose] >             |> List.transpose

00:00:13 #368 [Verbose] >             |> List.map (fun column ->

00:00:13 #369 [Verbose] >                 column

00:00:13 #370 [Verbose] >                 |> List.map String.length

00:00:13 #371 [Verbose] >                 |> List.sortDescending

00:00:13 #372 [Verbose] >                 |> List.tryHead

00:00:13 #373 [Verbose] >                 |> Option.defaultValue 0

00:00:13 #374 [Verbose] >             )

00:00:13 #375 [Verbose] >             |> List.indexed

00:00:13 #376 [Verbose] >             |> Map.ofList

00:00:13 #377 [Verbose] >         table

00:00:13 #378 [Verbose] >         |> List.map (fun (row, color) ->

00:00:13 #379 [Verbose] >             let newRow =

00:00:13 #380 [Verbose] >                 row

00:00:13 #381 [Verbose] >                 |> List.mapi (fun i cell ->

00:00:13 #382 [Verbose] >                     cell.PadRight lengthMap.[[i]]

00:00:13 #383 [Verbose] >                 )

00:00:13 #384 [Verbose] >             newRow, color

00:00:13 #385 [Verbose] >         )

00:00:13 #386 [Verbose] >

00:00:13 #387 [Verbose] >     printfn ""

00:00:13 #388 [Verbose] >     formattedTable

00:00:13 #389 [Verbose] >     |> List.iter (fun (row, color) ->

00:00:13 #390 [Verbose] >         match color with

00:00:13 #391 [Verbose] >         | Some color -> Console.ForegroundColor <- color

00:00:13 #392 [Verbose] >         | None -> Console.ResetColor ()

00:00:13 #393 [Verbose] >

00:00:13 #394 [Verbose] >         printfn "%s" (String.Join ("\t| ", row))

00:00:13 #395 [Verbose] >

00:00:13 #396 [Verbose] >         Console.ResetColor ()

00:00:13 #397 [Verbose] >     )

00:00:13 #398 [Verbose] >

00:00:13 #399 [Verbose] >     let averages =

00:00:13 #400 [Verbose] >         resultList

00:00:13 #401 [Verbose] >         |> List.map (fun result -> result.TimeList |> List.map float)

00:00:13 #402 [Verbose] >         |> List.transpose

00:00:13 #403 [Verbose] >         |> List.map List.average

00:00:13 #404 [Verbose] >         |> List.map int64

00:00:13 #405 [Verbose] >         |> List.indexed

00:00:13 #406 [Verbose] >

00:00:13 #407 [Verbose] >     printfn ""

00:00:13 #408 [Verbose] >     printfn "Average Ranking  "

00:00:13 #409 [Verbose] >     averages

00:00:13 #410 [Verbose] >     |> List.sortBy snd

00:00:13 #411 [Verbose] >     |> List.iter (fun (i, avg) ->

00:00:13 #412 [Verbose] >         printfn $"Test case %d{i + 1}. Average Time: %A{avg}  "

00:00:13 #413 [Verbose] >     )

00:00:13 #414 [Verbose] >

00:00:13 #415 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #416 [Verbose] > let mutable _count =

00:00:13 #417 [Verbose] >     if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")

00:00:13 #418 [Verbose] > <> "<null>"

00:00:13 #419 [Verbose] >     then 2000000

00:00:13 #420 [Verbose] >     else 2000

00:00:13 #421 [Verbose] >

00:00:13 #422 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #423 [Verbose] > inl is_fast () =

00:00:13 #424 [Verbose] >     false

00:00:14 #425 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0146-2846-4643-429de02cbeba\main.spi

00:00:14 #426 [Verbose] >

00:00:14 #427 [Verbose] > ╭─[ 324.71ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #428 [Verbose] > │ ()                                                                           │

00:00:14 #429 [Verbose] > │                                                                              │

00:00:14 #430 [Verbose] > │                                                                              │

00:00:14 #431 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #432 [Verbose] >

00:00:14 #433 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #434 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #435 [Verbose] > │ ## empty3Tests                                                               │

00:00:14 #436 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #437 [Verbose] >

00:00:14 #438 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #439 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #440 [Verbose] > │ Test: Empty3                                                                 │

00:00:14 #441 [Verbose] > │                                                                              │

00:00:14 #442 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #443 [Verbose] > │ Test case 1. A. Time: 91L                                                    │

00:00:14 #444 [Verbose] > │                                                                              │

00:00:14 #445 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #446 [Verbose] > │ Test case 1. A. Time: 56L                                                    │

00:00:14 #447 [Verbose] > │                                                                              │

00:00:14 #448 [Verbose] > │ Input  | Expected      | Result | Best                                       │

00:00:14 #449 [Verbose] > │ ---    | ---           | ---    | ---                                        │

00:00:14 #450 [Verbose] > │ (a, a) | a             | a      | (1, 91)                                    │

00:00:14 #451 [Verbose] > │ (a, a) | a             | a      | (1, 56)                                    │

00:00:14 #452 [Verbose] > │                                                                              │

00:00:14 #453 [Verbose] > │ Averages                                                                     │

00:00:14 #454 [Verbose] > │ Test case 1. Average Time: 73L                                               │

00:00:14 #455 [Verbose] > │                                                                              │

00:00:14 #456 [Verbose] > │ Ranking                                                                      │

00:00:14 #457 [Verbose] > │ Test case 1. Average Time: 73L                                               │

00:00:14 #458 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #459 [Verbose] >

00:00:14 #460 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #461 [Verbose] > //// test

00:00:14 #462 [Verbose] >

00:00:14 #463 [Verbose] > let solutions = [[

00:00:14 #464 [Verbose] >     "A",

00:00:14 #465 [Verbose] >     fun (a, _b) ->

00:00:14 #466 [Verbose] >         a

00:00:14 #467 [Verbose] > ]]

00:00:14 #468 [Verbose] > let testCases = seq {

00:00:14 #469 [Verbose] >     ("a", "a"), "a"

00:00:14 #470 [Verbose] >     ("a", "a"), "a"

00:00:14 #471 [Verbose] > }

00:00:14 #472 [Verbose] > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases

00:00:14 #473 [Verbose] > empty3Tests

00:00:14 #474 [Verbose] > |> sortResultList

00:00:14 #475 [Verbose] >

00:00:14 #476 [Verbose] > ╭─[ 379.13ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #477 [Verbose] > │                                                                              │

00:00:14 #478 [Verbose] > │                                                                              │

00:00:14 #479 [Verbose] > │ Test: empty3Tests                                                            │

00:00:14 #480 [Verbose] > │                                                                              │

00:00:14 #481 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #482 [Verbose] > │ Test case 1. A. Time: 1L                                                     │

00:00:14 #483 [Verbose] > │                                                                              │

00:00:14 #484 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #485 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:14 #486 [Verbose] > │                                                                              │

00:00:14 #487 [Verbose] > │ Input 	| Expected	| Result	| Best                                                  │

00:00:14 #488 [Verbose] > │ ---   	| ---     	| ---   	| ---                                                   │

00:00:14 #489 [Verbose] > │ (a, a)	| a       	| a     	| (1, 1)                                                │

00:00:14 #490 [Verbose] > │ (a, a)	| a       	| a     	| (1, 0)                                                │

00:00:14 #491 [Verbose] > │                                                                              │

00:00:14 #492 [Verbose] > │ Average Ranking                                                              │

00:00:14 #493 [Verbose] > │ Test case 1. Average Time: 0L                                                │

00:00:14 #494 [Verbose] > │                                                                              │

00:00:14 #495 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #496 [Verbose] >

00:00:14 #497 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #498 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #499 [Verbose] > │ ## empty2Tests                                                               │

00:00:14 #500 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #501 [Verbose] >

00:00:14 #502 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #503 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #504 [Verbose] > │ Test: Empty2                                                                 │

00:00:14 #505 [Verbose] > │                                                                              │

00:00:14 #506 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #507 [Verbose] > │ Test case 1. A. Time: 59L                                                    │

00:00:14 #508 [Verbose] > │                                                                              │

00:00:14 #509 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #510 [Verbose] > │ Test case 1. A. Time: 53L                                                    │

00:00:14 #511 [Verbose] > │                                                                              │

00:00:14 #512 [Verbose] > │ Input   | Expected        | Result  | Best                                   │

00:00:14 #513 [Verbose] > │ ---     | ---             | ---     | ---                                    │

00:00:14 #514 [Verbose] > │ (a, a)  | a               | a       | (1, 59)                                │

00:00:14 #515 [Verbose] > │ (a, a)  | a               | a       | (1, 53)                                │

00:00:14 #516 [Verbose] > │                                                                              │

00:00:14 #517 [Verbose] > │ Averages                                                                     │

00:00:14 #518 [Verbose] > │ Test case 1. Average Time: 56L                                               │

00:00:14 #519 [Verbose] > │                                                                              │

00:00:14 #520 [Verbose] > │ Ranking                                                                      │

00:00:14 #521 [Verbose] > │ Test case 1. Average Time: 56L                                               │

00:00:14 #522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #523 [Verbose] >

00:00:14 #524 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #525 [Verbose] > //// test

00:00:14 #526 [Verbose] >

00:00:14 #527 [Verbose] > let solutions = [[

00:00:14 #528 [Verbose] >     "A",

00:00:14 #529 [Verbose] >     fun (a, _b) ->

00:00:14 #530 [Verbose] >         a

00:00:14 #531 [Verbose] > ]]

00:00:14 #532 [Verbose] > let testCases = seq {

00:00:14 #533 [Verbose] >     ("a", "a"), "a"

00:00:14 #534 [Verbose] >     ("a", "a"), "a"

00:00:14 #535 [Verbose] > }

00:00:14 #536 [Verbose] > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases

00:00:14 #537 [Verbose] > empty2Tests

00:00:14 #538 [Verbose] > |> sortResultList

00:00:14 #539 [Verbose] >

00:00:14 #540 [Verbose] > ╭─[ 315.19ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #541 [Verbose] > │                                                                              │

00:00:14 #542 [Verbose] > │                                                                              │

00:00:14 #543 [Verbose] > │ Test: empty2Tests                                                            │

00:00:14 #544 [Verbose] > │                                                                              │

00:00:14 #545 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #546 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:14 #547 [Verbose] > │                                                                              │

00:00:14 #548 [Verbose] > │ Solution: (a, a)                                                             │

00:00:14 #549 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:14 #550 [Verbose] > │                                                                              │

00:00:14 #551 [Verbose] > │ Input 	| Expected	| Result	| Best                                                  │

00:00:14 #552 [Verbose] > │ ---   	| ---     	| ---   	| ---                                                   │

00:00:14 #553 [Verbose] > │ (a, a)	| a       	| a     	| (1, 0)                                                │

00:00:14 #554 [Verbose] > │ (a, a)	| a       	| a     	| (1, 0)                                                │

00:00:14 #555 [Verbose] > │                                                                              │

00:00:14 #556 [Verbose] > │ Average Ranking                                                              │

00:00:14 #557 [Verbose] > │ Test case 1. Average Time: 0L                                                │

00:00:14 #558 [Verbose] > │                                                                              │

00:00:14 #559 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #560 [Verbose] >

00:00:14 #561 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #562 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #563 [Verbose] > │ ## emptyTests                                                                │

00:00:14 #564 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #565 [Verbose] >

00:00:14 #566 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #567 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #568 [Verbose] > │ Test: Empty                                                                  │

00:00:14 #569 [Verbose] > │                                                                              │

00:00:14 #570 [Verbose] > │ Solution: 0                                                                  │

00:00:14 #571 [Verbose] > │ Test case 1. A. Time: 61L                                                    │

00:00:14 #572 [Verbose] > │                                                                              │

00:00:14 #573 [Verbose] > │ Solution: 2                                                                  │

00:00:14 #574 [Verbose] > │ Test case 1. A. Time: 62L                                                    │

00:00:14 #575 [Verbose] > │                                                                              │

00:00:14 #576 [Verbose] > │ Solution: 5                                                                  │

00:00:14 #577 [Verbose] > │ Test case 1. A. Time: 70L                                                    │

00:00:14 #578 [Verbose] > │                                                                              │

00:00:14 #579 [Verbose] > │ Input   | Expected        | Result  | Best                                   │

00:00:14 #580 [Verbose] > │ ---     | ---             | ---     | ---                                    │

00:00:14 #581 [Verbose] > │ 0       | 0               | 0       | (1, 61)                                │

00:00:14 #582 [Verbose] > │ 2       | 2               | 2       | (1, 62)                                │

00:00:14 #583 [Verbose] > │ 5       | 5               | 5       | (1, 70)                                │

00:00:14 #584 [Verbose] > │                                                                              │

00:00:14 #585 [Verbose] > │ Averages                                                                     │

00:00:14 #586 [Verbose] > │ Test case 1. Average Time: 64L                                               │

00:00:14 #587 [Verbose] > │                                                                              │

00:00:14 #588 [Verbose] > │ Ranking                                                                      │

00:00:14 #589 [Verbose] > │ Test case 1. Average Time: 64L                                               │

00:00:14 #590 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #591 [Verbose] >

00:00:14 #592 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #593 [Verbose] > //// test

00:00:14 #594 [Verbose] >

00:00:14 #595 [Verbose] > let solutions = [[

00:00:14 #596 [Verbose] >     "A",

00:00:14 #597 [Verbose] >     fun n ->

00:00:14 #598 [Verbose] >         n + 0

00:00:14 #599 [Verbose] > ]]

00:00:14 #600 [Verbose] > let testCases = seq {

00:00:14 #601 [Verbose] >     0, 0

00:00:14 #602 [Verbose] >     2, 2

00:00:14 #603 [Verbose] >     5, 5

00:00:14 #604 [Verbose] > }

00:00:14 #605 [Verbose] > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases

00:00:14 #606 [Verbose] > emptyTests

00:00:14 #607 [Verbose] > |> sortResultList

00:00:15 #608 [Verbose] >

00:00:15 #609 [Verbose] > ╭─[ 375.92ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #610 [Verbose] > │                                                                              │

00:00:15 #611 [Verbose] > │                                                                              │

00:00:15 #612 [Verbose] > │ Test: emptyTests                                                             │

00:00:15 #613 [Verbose] > │                                                                              │

00:00:15 #614 [Verbose] > │ Solution: 0                                                                  │

00:00:15 #615 [Verbose] > │ Test case 1. A. Time: 2L                                                     │

00:00:15 #616 [Verbose] > │                                                                              │

00:00:15 #617 [Verbose] > │ Solution: 2                                                                  │

00:00:15 #618 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #619 [Verbose] > │                                                                              │

00:00:15 #620 [Verbose] > │ Solution: 5                                                                  │

00:00:15 #621 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #622 [Verbose] > │                                                                              │

00:00:15 #623 [Verbose] > │ Input	| Expected	| Result	| Best                                                   │

00:00:15 #624 [Verbose] > │ ---  	| ---     	| ---   	| ---                                                    │

00:00:15 #625 [Verbose] > │ 0    	| 0       	| 0     	| (1, 2)                                                 │

00:00:15 #626 [Verbose] > │ 2    	| 2       	| 2     	| (1, 0)                                                 │

00:00:15 #627 [Verbose] > │ 5    	| 5       	| 5     	| (1, 0)                                                 │

00:00:15 #628 [Verbose] > │                                                                              │

00:00:15 #629 [Verbose] > │ Average Ranking                                                              │

00:00:15 #630 [Verbose] > │ Test case 1. Average Time: 0L                                                │

00:00:15 #631 [Verbose] > │                                                                              │

00:00:15 #632 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #633 [Verbose] >

00:00:15 #634 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #635 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #636 [Verbose] > │ ## uniqueLettersTests                                                        │

00:00:15 #637 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #638 [Verbose] >

00:00:15 #639 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #640 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #641 [Verbose] > │ Test: UniqueLetters                                                          │

00:00:15 #642 [Verbose] > │                                                                              │

00:00:15 #643 [Verbose] > │ Solution: abc                                                                │

00:00:15 #644 [Verbose] > │ Test case 1. A. Time: 1512L                                                  │

00:00:15 #645 [Verbose] > │ Test case 2. B. Time: 1947L                                                  │

00:00:15 #646 [Verbose] > │ Test case 3. C. Time: 2023L                                                  │

00:00:15 #647 [Verbose] > │ Test case 4. D. Time: 1358L                                                  │

00:00:15 #648 [Verbose] > │ Test case 5. E. Time: 1321L                                                  │

00:00:15 #649 [Verbose] > │ Test case 6. F. Time: 1346L                                                  │

00:00:15 #650 [Verbose] > │ Test case 7. G. Time: 1304L                                                  │

00:00:15 #651 [Verbose] > │ Test case 8. H. Time: 1383L                                                  │

00:00:15 #652 [Verbose] > │ Test case 9. I. Time: 1495L                                                  │

00:00:15 #653 [Verbose] > │ Test case 10. J. Time: 1245L                                                 │

00:00:15 #654 [Verbose] > │ Test case 11. K. Time: 1219L                                                 │

00:00:15 #655 [Verbose] > │                                                                              │

00:00:15 #656 [Verbose] > │ Solution: accabb                                                             │

00:00:15 #657 [Verbose] > │ Test case 1. A. Time: 1648L                                                  │

00:00:15 #658 [Verbose] > │ Test case 2. B. Time: 2061L                                                  │

00:00:15 #659 [Verbose] > │ Test case 3. C. Time: 2413L                                                  │

00:00:15 #660 [Verbose] > │ Test case 4. D. Time: 1561L                                                  │

00:00:15 #661 [Verbose] > │ Test case 5. E. Time: 1593L                                                  │

00:00:15 #662 [Verbose] > │ Test case 6. F. Time: 1518L                                                  │

00:00:15 #663 [Verbose] > │ Test case 7. G. Time: 1415L                                                  │

00:00:15 #664 [Verbose] > │ Test case 8. H. Time: 1510L                                                  │

00:00:15 #665 [Verbose] > │ Test case 9. I. Time: 1445L                                                  │

00:00:15 #666 [Verbose] > │ Test case 10. J. Time: 1636L                                                 │

00:00:15 #667 [Verbose] > │ Test case 11. K. Time: 1317L                                                 │

00:00:15 #668 [Verbose] > │                                                                              │

00:00:15 #669 [Verbose] > │ Solution: pprrqqpp                                                           │

00:00:15 #670 [Verbose] > │ Test case 1. A. Time: 2255L                                                  │

00:00:15 #671 [Verbose] > │ Test case 2. B. Time: 2408L                                                  │

00:00:15 #672 [Verbose] > │ Test case 3. C. Time: 2393L                                                  │

00:00:15 #673 [Verbose] > │ Test case 4. D. Time: 1675L                                                  │

00:00:15 #674 [Verbose] > │ Test case 5. E. Time: 1911L                                                  │

00:00:15 #675 [Verbose] > │ Test case 6. F. Time: 2126L                                                  │

00:00:15 #676 [Verbose] > │ Test case 7. G. Time: 1504L                                                  │

00:00:15 #677 [Verbose] > │ Test case 8. H. Time: 1715L                                                  │

00:00:15 #678 [Verbose] > │ Test case 9. I. Time: 1537L                                                  │

00:00:15 #679 [Verbose] > │ Test case 10. J. Time: 1522L                                                 │

00:00:15 #680 [Verbose] > │ Test case 11. K. Time: 1322L                                                 │

00:00:15 #681 [Verbose] > │                                                                              │

00:00:15 #682 [Verbose] > │ Solution:                                                                    │

00:00:15 #683 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:15 #684 [Verbose] > │ bbb                                                                          │

00:00:15 #685 [Verbose] > │ Test case 1. A. Time: 13073L                                                 │

00:00:15 #686 [Verbose] > │ Test case 2. B. Time: 11519L                                                 │

00:00:15 #687 [Verbose] > │ Test case 3. C. Time: 8373L                                                  │

00:00:15 #688 [Verbose] > │ Test case 4. D. Time: 5860L                                                  │

00:00:15 #689 [Verbose] > │ Test case 5. E. Time: 6490L                                                  │

00:00:15 #690 [Verbose] > │ Test case 6. F. Time: 6325L                                                  │

00:00:15 #691 [Verbose] > │ Test case 7. G. Time: 5799L                                                  │

00:00:15 #692 [Verbose] > │ Test case 8. H. Time: 7099L                                                  │

00:00:15 #693 [Verbose] > │ Test case 9. I. Time: 6133L                                                  │

00:00:15 #694 [Verbose] > │ Test case 10. J. Time: 5993L                                                 │

00:00:15 #695 [Verbose] > │ Test case 11. K. Time: 2040L                                                 │

00:00:15 #696 [Verbose] > │                                                                              │

00:00:15 #697 [Verbose] > │ Input                                                                        │

00:00:15 #698 [Verbose] > │ | Expected        | Result  | Best                                           │

00:00:15 #699 [Verbose] > │ ---                                                                          │

00:00:15 #700 [Verbose] > │                                                                              │

00:00:15 #701 [Verbose] > │ | ---             | ---     | ---                                            │

00:00:15 #702 [Verbose] > │ abc                                                                          │

00:00:15 #703 [Verbose] > │                                                                              │

00:00:15 #704 [Verbose] > │ | abc             | abc     | (11, 1219)                                     │

00:00:15 #705 [Verbose] > │ accabb                                                                       │

00:00:15 #706 [Verbose] > │ | acb             | acb     | (11, 1317)                                     │

00:00:15 #707 [Verbose] > │ pprrqqpp                                                                     │

00:00:15 #708 [Verbose] > │ | prq             | prq     | (11, 1322)                                     │

00:00:15 #709 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:15 #710 [Verbose] > │ bbb | acb             | acb     | (11, 2040)                                 │

00:00:15 #711 [Verbose] > │                                                                              │

00:00:15 #712 [Verbose] > │ Averages                                                                     │

00:00:15 #713 [Verbose] > │ Test case 1. Average Time: 4622L                                             │

00:00:15 #714 [Verbose] > │ Test case 2. Average Time: 4483L                                             │

00:00:15 #715 [Verbose] > │ Test case 3. Average Time: 3800L                                             │

00:00:15 #716 [Verbose] > │ Test case 4. Average Time: 2613L                                             │

00:00:15 #717 [Verbose] > │ Test case 5. Average Time: 2828L                                             │

00:00:15 #718 [Verbose] > │ Test case 6. Average Time: 2828L                                             │

00:00:15 #719 [Verbose] > │ Test case 7. Average Time: 2505L                                             │

00:00:15 #720 [Verbose] > │ Test case 8. Average Time: 2926L                                             │

00:00:15 #721 [Verbose] > │ Test case 9. Average Time: 2652L                                             │

00:00:15 #722 [Verbose] > │ Test case 10. Average Time: 2599L                                            │

00:00:15 #723 [Verbose] > │ Test case 11. Average Time: 1474L                                            │

00:00:15 #724 [Verbose] > │                                                                              │

00:00:15 #725 [Verbose] > │ Ranking                                                                      │

00:00:15 #726 [Verbose] > │ Test case 1. Average Time: 4622L                                             │

00:00:15 #727 [Verbose] > │ Test case 2. Average Time: 4483L                                             │

00:00:15 #728 [Verbose] > │ Test case 3. Average Time: 3800L                                             │

00:00:15 #729 [Verbose] > │ Test case 8. Average Time: 2926L                                             │

00:00:15 #730 [Verbose] > │ Test case 5. Average Time: 2828L                                             │

00:00:15 #731 [Verbose] > │ Test case 6. Average Time: 2828L                                             │

00:00:15 #732 [Verbose] > │ Test case 9. Average Time: 2652L                                             │

00:00:15 #733 [Verbose] > │ Test case 4. Average Time: 2613L                                             │

00:00:15 #734 [Verbose] > │ Test case 10. Average Time: 2599L                                            │

00:00:15 #735 [Verbose] > │ Test case 7. Average Time: 2505L                                             │

00:00:15 #736 [Verbose] > │ Test case 11. Average Time: 1474L                                            │

00:00:15 #737 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #738 [Verbose] >

00:00:15 #739 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:15 #740 [Verbose] > //// test

00:00:15 #741 [Verbose] >

00:00:15 #742 [Verbose] > let solutions = [[

00:00:15 #743 [Verbose] >     "A",

00:00:15 #744 [Verbose] >     fun input ->

00:00:15 #745 [Verbose] >         input

00:00:15 #746 [Verbose] >         |> Seq.toList

00:00:15 #747 [Verbose] >         |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[

00:00:15 #748 [Verbose] > x ]]) [[]]

00:00:15 #749 [Verbose] >         |> Seq.toArray

00:00:15 #750 [Verbose] >         |> String

00:00:15 #751 [Verbose] >

00:00:15 #752 [Verbose] >     "B",

00:00:15 #753 [Verbose] >     fun input ->

00:00:15 #754 [Verbose] >         input

00:00:15 #755 [Verbose] >         |> Seq.rev

00:00:15 #756 [Verbose] >         |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then

00:00:15 #757 [Verbose] > acc else x :: acc) list [[]]

00:00:15 #758 [Verbose] >         |> Seq.rev

00:00:15 #759 [Verbose] >         |> Seq.toArray

00:00:15 #760 [Verbose] >         |> String

00:00:15 #761 [Verbose] >

00:00:15 #762 [Verbose] >     "C",

00:00:15 #763 [Verbose] >     fun input ->

00:00:15 #764 [Verbose] >         input

00:00:15 #765 [Verbose] >         |> Seq.rev

00:00:15 #766 [Verbose] >         |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set

00:00:15 #767 [Verbose] > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])

00:00:15 #768 [Verbose] >         |> snd

00:00:15 #769 [Verbose] >         |> Seq.rev

00:00:15 #770 [Verbose] >         |> Seq.toArray

00:00:15 #771 [Verbose] >         |> String

00:00:15 #772 [Verbose] >

00:00:15 #773 [Verbose] >     "D",

00:00:15 #774 [Verbose] >     fun input ->

00:00:15 #775 [Verbose] >         input

00:00:15 #776 [Verbose] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:15 #777 [Verbose] > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])

00:00:15 #778 [Verbose] >         |> snd

00:00:15 #779 [Verbose] >         |> String

00:00:15 #780 [Verbose] >

00:00:15 #781 [Verbose] >     "E",

00:00:15 #782 [Verbose] >     fun input ->

00:00:15 #783 [Verbose] >         input

00:00:15 #784 [Verbose] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:15 #785 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])

00:00:15 #786 [Verbose] >         |> snd

00:00:15 #787 [Verbose] >         |> List.rev

00:00:15 #788 [Verbose] >         |> List.toArray

00:00:15 #789 [Verbose] >         |> String

00:00:15 #790 [Verbose] >

00:00:15 #791 [Verbose] >     "F",

00:00:15 #792 [Verbose] >     fun input ->

00:00:15 #793 [Verbose] >         input

00:00:15 #794 [Verbose] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:15 #795 [Verbose] > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])

00:00:15 #796 [Verbose] >         |> snd

00:00:15 #797 [Verbose] >         |> List.toArray

00:00:15 #798 [Verbose] >         |> String

00:00:15 #799 [Verbose] >

00:00:15 #800 [Verbose] >     "G",

00:00:15 #801 [Verbose] >     fun input ->

00:00:15 #802 [Verbose] >         input

00:00:15 #803 [Verbose] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:15 #804 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])

00:00:15 #805 [Verbose] >         |> snd

00:00:15 #806 [Verbose] >         |> List.toArray

00:00:15 #807 [Verbose] >         |> Array.rev

00:00:15 #808 [Verbose] >         |> String

00:00:15 #809 [Verbose] >

00:00:15 #810 [Verbose] >     "H",

00:00:15 #811 [Verbose] >     fun input ->

00:00:15 #812 [Verbose] >         input

00:00:15 #813 [Verbose] >         |> Seq.toList

00:00:15 #814 [Verbose] >         |> fun list ->

00:00:15 #815 [Verbose] >             let rec loop set = function

00:00:15 #816 [Verbose] >                 | head :: tail when Set.contains head set -> loop set tail

00:00:15 #817 [Verbose] >                 | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]

00:00:15 #818 [Verbose] >                 | [[]] -> [[]]

00:00:15 #819 [Verbose] >             loop Set.empty list

00:00:15 #820 [Verbose] >             |> List.rev

00:00:15 #821 [Verbose] >         |> List.toArray

00:00:15 #822 [Verbose] >         |> String

00:00:15 #823 [Verbose] >

00:00:15 #824 [Verbose] >     "I",

00:00:15 #825 [Verbose] >     fun input ->

00:00:15 #826 [Verbose] >         input

00:00:15 #827 [Verbose] >         |> Seq.toList

00:00:15 #828 [Verbose] >         |> fun list ->

00:00:15 #829 [Verbose] >             let rec loop set = function

00:00:15 #830 [Verbose] >                 | head :: tail when Set.contains head set -> loop set tail

00:00:15 #831 [Verbose] >                 | head :: tail -> loop (set.Add head) tail |> Array.append [[|

00:00:15 #832 [Verbose] > head |]]

00:00:15 #833 [Verbose] >                 | [[]] -> [[||]]

00:00:15 #834 [Verbose] >             loop Set.empty list

00:00:15 #835 [Verbose] >         |> String

00:00:15 #836 [Verbose] >

00:00:15 #837 [Verbose] >     "J",

00:00:15 #838 [Verbose] >     fun input ->

00:00:15 #839 [Verbose] >         input

00:00:15 #840 [Verbose] >         |> Seq.toList

00:00:15 #841 [Verbose] >         |> fun list ->

00:00:15 #842 [Verbose] >             let rec loop set = function

00:00:15 #843 [Verbose] >                 | head :: tail when Set.contains head set -> loop set tail

00:00:15 #844 [Verbose] >                 | head :: tail -> head :: loop (set.Add head) tail

00:00:15 #845 [Verbose] >                 | [[]] -> [[]]

00:00:15 #846 [Verbose] >             loop Set.empty list

00:00:15 #847 [Verbose] >         |> List.toArray

00:00:15 #848 [Verbose] >         |> String

00:00:15 #849 [Verbose] >

00:00:15 #850 [Verbose] >     "K",

00:00:15 #851 [Verbose] >     fun input ->

00:00:15 #852 [Verbose] >         input

00:00:15 #853 [Verbose] >         |> Seq.distinct

00:00:15 #854 [Verbose] >         |> Seq.toArray

00:00:15 #855 [Verbose] >         |> String

00:00:15 #856 [Verbose] > ]]

00:00:15 #857 [Verbose] > let testCases = seq {

00:00:15 #858 [Verbose] >     "abc", "abc"

00:00:15 #859 [Verbose] >     "accabb", "acb"

00:00:15 #860 [Verbose] >     "pprrqqpp", "prq"

00:00:15 #861 [Verbose] >

00:00:15 #862 [Verbose] > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb

00:00:15 #863 [Verbose] > ", "acb"

00:00:15 #864 [Verbose] > }

00:00:15 #865 [Verbose] > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions

00:00:15 #866 [Verbose] > testCases

00:00:15 #867 [Verbose] > uniqueLettersTests

00:00:15 #868 [Verbose] > |> sortResultList

00:00:21 #869 [Verbose] >

00:00:21 #870 [Verbose] > ╭─[ 6.18s - stdout ]───────────────────────────────────────────────────────────╮

00:00:21 #871 [Verbose] > │                                                                              │

00:00:21 #872 [Verbose] > │                                                                              │

00:00:21 #873 [Verbose] > │ Test: uniqueLettersTests                                                     │

00:00:21 #874 [Verbose] > │                                                                              │

00:00:21 #875 [Verbose] > │ Solution: abc                                                                │

00:00:21 #876 [Verbose] > │ Test case 1. A. Time: 3L                                                     │

00:00:21 #877 [Verbose] > │ Test case 2. B. Time: 4L                                                     │

00:00:21 #878 [Verbose] > │ Test case 3. C. Time: 3L                                                     │

00:00:21 #879 [Verbose] > │ Test case 4. D. Time: 4L                                                     │

00:00:21 #880 [Verbose] > │ Test case 5. E. Time: 1L                                                     │

00:00:21 #881 [Verbose] > │ Test case 6. F. Time: 1L                                                     │

00:00:21 #882 [Verbose] > │ Test case 7. G. Time: 1L                                                     │

00:00:21 #883 [Verbose] > │ Test case 8. H. Time: 2L                                                     │

00:00:21 #884 [Verbose] > │ Test case 9. I. Time: 1L                                                     │

00:00:21 #885 [Verbose] > │ Test case 10. J. Time: 1L                                                    │

00:00:21 #886 [Verbose] > │ Test case 11. K. Time: 2L                                                    │

00:00:21 #887 [Verbose] > │                                                                              │

00:00:21 #888 [Verbose] > │ Solution: accabb                                                             │

00:00:21 #889 [Verbose] > │ Test case 1. A. Time: 1L                                                     │

00:00:21 #890 [Verbose] > │ Test case 2. B. Time: 1L                                                     │

00:00:21 #891 [Verbose] > │ Test case 3. C. Time: 1L                                                     │

00:00:21 #892 [Verbose] > │ Test case 4. D. Time: 1L                                                     │

00:00:21 #893 [Verbose] > │ Test case 5. E. Time: 0L                                                     │

00:00:21 #894 [Verbose] > │ Test case 6. F. Time: 0L                                                     │

00:00:21 #895 [Verbose] > │ Test case 7. G. Time: 0L                                                     │

00:00:21 #896 [Verbose] > │ Test case 8. H. Time: 0L                                                     │

00:00:21 #897 [Verbose] > │ Test case 9. I. Time: 0L                                                     │

00:00:21 #898 [Verbose] > │ Test case 10. J. Time: 0L                                                    │

00:00:21 #899 [Verbose] > │ Test case 11. K. Time: 1L                                                    │

00:00:21 #900 [Verbose] > │                                                                              │

00:00:21 #901 [Verbose] > │ Solution: pprrqqpp                                                           │

00:00:21 #902 [Verbose] > │ Test case 1. A. Time: 1L                                                     │

00:00:21 #903 [Verbose] > │ Test case 2. B. Time: 1L                                                     │

00:00:21 #904 [Verbose] > │ Test case 3. C. Time: 1L                                                     │

00:00:21 #905 [Verbose] > │ Test case 4. D. Time: 1L                                                     │

00:00:21 #906 [Verbose] > │ Test case 5. E. Time: 1L                                                     │

00:00:21 #907 [Verbose] > │ Test case 6. F. Time: 1L                                                     │

00:00:21 #908 [Verbose] > │ Test case 7. G. Time: 1L                                                     │

00:00:21 #909 [Verbose] > │ Test case 8. H. Time: 1L                                                     │

00:00:21 #910 [Verbose] > │ Test case 9. I. Time: 0L                                                     │

00:00:21 #911 [Verbose] > │ Test case 10. J. Time: 1L                                                    │

00:00:21 #912 [Verbose] > │ Test case 11. K. Time: 0L                                                    │

00:00:21 #913 [Verbose] > │                                                                              │

00:00:21 #914 [Verbose] > │ Solution:                                                                    │

00:00:21 #915 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:21 #916 [Verbose] > │ bbb                                                                          │

00:00:21 #917 [Verbose] > │ Test case 1. A. Time: 14L                                                    │

00:00:21 #918 [Verbose] > │ Test case 2. B. Time: 8L                                                     │

00:00:21 #919 [Verbose] > │ Test case 3. C. Time: 12L                                                    │

00:00:21 #920 [Verbose] > │ Test case 4. D. Time: 8L                                                     │

00:00:21 #921 [Verbose] > │ Test case 5. E. Time: 9L                                                     │

00:00:21 #922 [Verbose] > │ Test case 6. F. Time: 9L                                                     │

00:00:21 #923 [Verbose] > │ Test case 7. G. Time: 6L                                                     │

00:00:21 #924 [Verbose] > │ Test case 8. H. Time: 7L                                                     │

00:00:21 #925 [Verbose] > │ Test case 9. I. Time: 6L                                                     │

00:00:21 #926 [Verbose] > │ Test case 10. J. Time: 7L                                                    │

00:00:21 #927 [Verbose] > │ Test case 11. K. Time: 3L                                                    │

00:00:21 #928 [Verbose] > │                                                                              │

00:00:21 #929 [Verbose] > │ Input                                                                        │

00:00:21 #930 [Verbose] > │ | Expected	| Result	| Best                                                       │

00:00:21 #931 [Verbose] > │ ---                                                                          │

00:00:21 #932 [Verbose] > │ | ---     	| ---   	| ---                                                        │

00:00:21 #933 [Verbose] > │ abc                                                                          │

00:00:21 #934 [Verbose] > │ | abc     	| abc   	| (5, 1)                                                     │

00:00:21 #935 [Verbose] > │ accabb                                                                       │

00:00:21 #936 [Verbose] > │ | acb     	| acb   	| (5, 0)                                                     │

00:00:21 #937 [Verbose] > │ pprrqqpp                                                                     │

00:00:21 #938 [Verbose] > │ | prq     	| prq   	| (9, 0)                                                     │

00:00:21 #939 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:21 #940 [Verbose] > │ bbb	| acb     	| acb   	| (11, 3)                                                  │

00:00:21 #941 [Verbose] > │                                                                              │

00:00:21 #942 [Verbose] > │ Average Ranking                                                              │

00:00:21 #943 [Verbose] > │ Test case 9. Average Time: 1L                                                │

00:00:21 #944 [Verbose] > │ Test case 11. Average Time: 1L                                               │

00:00:21 #945 [Verbose] > │ Test case 5. Average Time: 2L                                                │

00:00:21 #946 [Verbose] > │ Test case 6. Average Time: 2L                                                │

00:00:21 #947 [Verbose] > │ Test case 7. Average Time: 2L                                                │

00:00:21 #948 [Verbose] > │ Test case 8. Average Time: 2L                                                │

00:00:21 #949 [Verbose] > │ Test case 10. Average Time: 2L                                               │

00:00:21 #950 [Verbose] > │ Test case 2. Average Time: 3L                                                │

00:00:21 #951 [Verbose] > │ Test case 4. Average Time: 3L                                                │

00:00:21 #952 [Verbose] > │ Test case 1. Average Time: 4L                                                │

00:00:21 #953 [Verbose] > │ Test case 3. Average Time: 4L                                                │

00:00:21 #954 [Verbose] > │                                                                              │

00:00:21 #955 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #956 [Verbose] >

00:00:21 #957 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #958 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #959 [Verbose] > │ ## rotateStringsTests                                                        │

00:00:21 #960 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #961 [Verbose] >

00:00:21 #962 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #963 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #964 [Verbose] > │ https://www.hackerrank.com/challenges/rotate-string/forum                    │

00:00:21 #965 [Verbose] > │                                                                              │

00:00:21 #966 [Verbose] > │ Test: RotateStrings                                                          │

00:00:21 #967 [Verbose] > │                                                                              │

00:00:21 #968 [Verbose] > │ Solution: abc                                                                │

00:00:21 #969 [Verbose] > │ Test case 1. A. Time: 1842L                                                  │

00:00:21 #970 [Verbose] > │ Test case 2. B. Time: 1846L                                                  │

00:00:21 #971 [Verbose] > │ Test case 3. C. Time: 1936L                                                  │

00:00:21 #972 [Verbose] > │ Test case 4. CA. Time: 2224L                                                 │

00:00:21 #973 [Verbose] > │ Test case 5. CB. Time: 2329L                                                 │

00:00:21 #974 [Verbose] > │ Test case 6. D. Time: 2474L                                                  │

00:00:21 #975 [Verbose] > │ Test case 7. E. Time: 1664L                                                  │

00:00:21 #976 [Verbose] > │ Test case 8. F. Time: 1517L                                                  │

00:00:21 #977 [Verbose] > │ Test case 9. FA. Time: 1651L                                                 │

00:00:21 #978 [Verbose] > │ Test case 10. FB. Time: 3764L                                                │

00:00:21 #979 [Verbose] > │ Test case 11. FC. Time: 5415L                                                │

00:00:21 #980 [Verbose] > │                                                                              │

00:00:21 #981 [Verbose] > │ Solution: abcde                                                              │

00:00:21 #982 [Verbose] > │ Test case 1. A. Time: 3356L                                                  │

00:00:21 #983 [Verbose] > │ Test case 2. B. Time: 2592L                                                  │

00:00:21 #984 [Verbose] > │ Test case 3. C. Time: 2346L                                                  │

00:00:21 #985 [Verbose] > │ Test case 4. CA. Time: 2997L                                                 │

00:00:21 #986 [Verbose] > │ Test case 5. CB. Time: 3061L                                                 │

00:00:21 #987 [Verbose] > │ Test case 6. D. Time: 4051L                                                  │

00:00:21 #988 [Verbose] > │ Test case 7. E. Time: 1905L                                                  │

00:00:21 #989 [Verbose] > │ Test case 8. F. Time: 1771L                                                  │

00:00:21 #990 [Verbose] > │ Test case 9. FA. Time: 2175L                                                 │

00:00:21 #991 [Verbose] > │ Test case 10. FB. Time: 3275L                                                │

00:00:21 #992 [Verbose] > │ Test case 11. FC. Time: 5266L                                                │

00:00:21 #993 [Verbose] > │                                                                              │

00:00:21 #994 [Verbose] > │ Solution: abcdefghi                                                          │

00:00:21 #995 [Verbose] > │ Test case 1. A. Time: 4492L                                                  │

00:00:21 #996 [Verbose] > │ Test case 2. B. Time: 3526L                                                  │

00:00:21 #997 [Verbose] > │ Test case 3. C. Time: 3583L                                                  │

00:00:21 #998 [Verbose] > │ Test case 4. CA. Time: 3711L                                                 │

00:00:21 #999 [Verbose] > │ Test case 5. CB. Time: 4783L                                                 │

00:00:21 #1000 [Verbose] > │ Test case 6. D. Time: 7557L                                                  │

00:00:21 #1001 [Verbose] > │ Test case 7. E. Time: 3452L                                                  │

00:00:21 #1002 [Verbose] > │ Test case 8. F. Time: 3050L                                                  │

00:00:21 #1003 [Verbose] > │ Test case 9. FA. Time: 3275L                                                 │

00:00:21 #1004 [Verbose] > │ Test case 10. FB. Time: 4635L                                                │

00:00:21 #1005 [Verbose] > │ Test case 11. FC. Time: 5616L                                                │

00:00:21 #1006 [Verbose] > │                                                                              │

00:00:21 #1007 [Verbose] > │ Solution: abab                                                               │

00:00:21 #1008 [Verbose] > │ Test case 1. A. Time: 2093L                                                  │

00:00:21 #1009 [Verbose] > │ Test case 2. B. Time: 1843L                                                  │

00:00:21 #1010 [Verbose] > │ Test case 3. C. Time: 1746L                                                  │

00:00:21 #1011 [Verbose] > │ Test case 4. CA. Time: 2085L                                                 │

00:00:21 #1012 [Verbose] > │ Test case 5. CB. Time: 2139L                                                 │

00:00:21 #1013 [Verbose] > │ Test case 6. D. Time: 2095L                                                  │

00:00:21 #1014 [Verbose] > │ Test case 7. E. Time: 1723L                                                  │

00:00:21 #1015 [Verbose] > │ Test case 8. F. Time: 1558L                                                  │

00:00:21 #1016 [Verbose] > │ Test case 9. FA. Time: 1620L                                                 │

00:00:21 #1017 [Verbose] > │ Test case 10. FB. Time: 2319L                                                │

00:00:21 #1018 [Verbose] > │ Test case 11. FC. Time: 3918L                                                │

00:00:21 #1019 [Verbose] > │                                                                              │

00:00:21 #1020 [Verbose] > │ Solution: aa                                                                 │

00:00:21 #1021 [Verbose] > │ Test case 1. A. Time: 1107L                                                  │

00:00:21 #1022 [Verbose] > │ Test case 2. B. Time: 1241L                                                  │

00:00:21 #1023 [Verbose] > │ Test case 3. C. Time: 1183L                                                  │

00:00:21 #1024 [Verbose] > │ Test case 4. CA. Time: 1563L                                                 │

00:00:21 #1025 [Verbose] > │ Test case 5. CB. Time: 1525L                                                 │

00:00:21 #1026 [Verbose] > │ Test case 6. D. Time: 1591L                                                  │

00:00:21 #1027 [Verbose] > │ Test case 7. E. Time: 1327L                                                  │

00:00:21 #1028 [Verbose] > │ Test case 8. F. Time: 1151L                                                  │

00:00:21 #1029 [Verbose] > │ Test case 9. FA. Time: 1180L                                                 │

00:00:21 #1030 [Verbose] > │ Test case 10. FB. Time: 1733L                                                │

00:00:21 #1031 [Verbose] > │ Test case 11. FC. Time: 2817L                                                │

00:00:21 #1032 [Verbose] > │                                                                              │

00:00:21 #1033 [Verbose] > │ Solution: z                                                                  │

00:00:21 #1034 [Verbose] > │ Test case 1. A. Time: 816L                                                   │

00:00:21 #1035 [Verbose] > │ Test case 2. B. Time: 745L                                                   │

00:00:21 #1036 [Verbose] > │ Test case 3. C. Time: 928L                                                   │

00:00:21 #1037 [Verbose] > │ Test case 4. CA. Time: 1375L                                                 │

00:00:21 #1038 [Verbose] > │ Test case 5. CB. Time: 1029L                                                 │

00:00:21 #1039 [Verbose] > │ Test case 6. D. Time: 852L                                                   │

00:00:21 #1040 [Verbose] > │ Test case 7. E. Time: 712L                                                   │

00:00:21 #1041 [Verbose] > │ Test case 8. F. Time: 263L                                                   │

00:00:21 #1042 [Verbose] > │ Test case 9. FA. Time: 232L                                                  │

00:00:21 #1043 [Verbose] > │ Test case 10. FB. Time: 773L                                                 │

00:00:21 #1044 [Verbose] > │ Test case 11. FC. Time: 1789L                                                │

00:00:21 #1045 [Verbose] > │                                                                              │

00:00:21 #1046 [Verbose] > │ Input           | Expected                                                   │

00:00:21 #1047 [Verbose] > │                                                                              │

00:00:21 #1048 [Verbose] > │ | Result                                                                     │

00:00:21 #1049 [Verbose] > │                                                                              │

00:00:21 #1050 [Verbose] > │ | Best                                                                       │

00:00:21 #1051 [Verbose] > │ ---             | ---                                                        │

00:00:21 #1052 [Verbose] > │                                                                              │

00:00:21 #1053 [Verbose] > │ | ---                                                                        │

00:00:21 #1054 [Verbose] > │                                                                              │

00:00:21 #1055 [Verbose] > │ | ---                                                                        │

00:00:21 #1056 [Verbose] > │ abc             | bca cab abc                                                │

00:00:21 #1057 [Verbose] > │                                                                              │

00:00:21 #1058 [Verbose] > │ | bca cab abc                                                                │

00:00:21 #1059 [Verbose] > │                                                                              │

00:00:21 #1060 [Verbose] > │ | (8, 1517)                                                                  │

00:00:21 #1061 [Verbose] > │ abcde           | bcdea cdeab deabc eabcd abcde                              │

00:00:21 #1062 [Verbose] > │ | bcdea cdeab deabc eabcd abcde                                              │

00:00:21 #1063 [Verbose] > │ | (8, 1771)                                                                  │

00:00:21 #1064 [Verbose] > │ abcdefghi       | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde          │

00:00:21 #1065 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi       | bcdefghia cdefghiab          │

00:00:21 #1066 [Verbose] > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi        │

00:00:21 #1067 [Verbose] > │ | (8, 3050)                                                                  │

00:00:21 #1068 [Verbose] > │ abab            | baba abab baba abab                                        │

00:00:21 #1069 [Verbose] > │                                                                              │

00:00:21 #1070 [Verbose] > │ | baba abab baba abab                                                        │

00:00:21 #1071 [Verbose] > │                                                                              │

00:00:21 #1072 [Verbose] > │ | (8, 1558)                                                                  │

00:00:21 #1073 [Verbose] > │ aa              | aa aa                                                      │

00:00:21 #1074 [Verbose] > │                                                                              │

00:00:21 #1075 [Verbose] > │ | aa aa                                                                      │

00:00:21 #1076 [Verbose] > │                                                                              │

00:00:21 #1077 [Verbose] > │ | (1, 1107)                                                                  │

00:00:21 #1078 [Verbose] > │ z               | z                                                          │

00:00:21 #1079 [Verbose] > │                                                                              │

00:00:21 #1080 [Verbose] > │ | z                                                                          │

00:00:21 #1081 [Verbose] > │                                                                              │

00:00:21 #1082 [Verbose] > │ | (9, 232)                                                                   │

00:00:21 #1083 [Verbose] > │                                                                              │

00:00:21 #1084 [Verbose] > │ Averages                                                                     │

00:00:21 #1085 [Verbose] > │ Test case 1. Average Time: 2284L                                             │

00:00:21 #1086 [Verbose] > │ Test case 2. Average Time: 1965L                                             │

00:00:21 #1087 [Verbose] > │ Test case 3. Average Time: 1953L                                             │

00:00:21 #1088 [Verbose] > │ Test case 4. Average Time: 2325L                                             │

00:00:21 #1089 [Verbose] > │ Test case 5. Average Time: 2477L                                             │

00:00:21 #1090 [Verbose] > │ Test case 6. Average Time: 3103L                                             │

00:00:21 #1091 [Verbose] > │ Test case 7. Average Time: 1797L                                             │

00:00:21 #1092 [Verbose] > │ Test case 8. Average Time: 1551L                                             │

00:00:21 #1093 [Verbose] > │ Test case 9. Average Time: 1688L                                             │

00:00:21 #1094 [Verbose] > │ Test case 10. Average Time: 2749L                                            │

00:00:21 #1095 [Verbose] > │ Test case 11. Average Time: 4136L                                            │

00:00:21 #1096 [Verbose] > │                                                                              │

00:00:21 #1097 [Verbose] > │ Ranking                                                                      │

00:00:21 #1098 [Verbose] > │ Test case 11. Average Time: 4136L                                            │

00:00:21 #1099 [Verbose] > │ Test case 6. Average Time: 3103L                                             │

00:00:21 #1100 [Verbose] > │ Test case 10. Average Time: 2749L                                            │

00:00:21 #1101 [Verbose] > │ Test case 5. Average Time: 2477L                                             │

00:00:21 #1102 [Verbose] > │ Test case 4. Average Time: 2325L                                             │

00:00:21 #1103 [Verbose] > │ Test case 1. Average Time: 2284L                                             │

00:00:21 #1104 [Verbose] > │ Test case 2. Average Time: 1965L                                             │

00:00:21 #1105 [Verbose] > │ Test case 3. Average Time: 1953L                                             │

00:00:21 #1106 [Verbose] > │ Test case 7. Average Time: 1797L                                             │

00:00:21 #1107 [Verbose] > │ Test case 9. Average Time: 1688L                                             │

00:00:21 #1108 [Verbose] > │ Test case 8. Average Time: 1551L                                             │

00:00:21 #1109 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #1110 [Verbose] >

00:00:21 #1111 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:21 #1112 [Verbose] > //// test

00:00:21 #1113 [Verbose] >

00:00:21 #1114 [Verbose] > let solutions = [[

00:00:21 #1115 [Verbose] >     "A",

00:00:21 #1116 [Verbose] >     fun (input: string) ->

00:00:21 #1117 [Verbose] >         let resultList =

00:00:21 #1118 [Verbose] >             List.fold (fun acc x ->

00:00:21 #1119 [Verbose] >                 let rotate (text: string) (letter: string) = text.Substring (1,

00:00:21 #1120 [Verbose] > input.Length - 1) + letter

00:00:21 #1121 [Verbose] >                 [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)

00:00:21 #1122 [Verbose] > ]] @ acc

00:00:21 #1123 [Verbose] >             ) [[]] (Seq.toList input)

00:00:21 #1124 [Verbose] >

00:00:21 #1125 [Verbose] >         (resultList, "")

00:00:21 #1126 [Verbose] >         ||> List.foldBack (fun acc x -> x + acc + " ")

00:00:21 #1127 [Verbose] >         |> _.TrimEnd()

00:00:21 #1128 [Verbose] >

00:00:21 #1129 [Verbose] >     "B",

00:00:21 #1130 [Verbose] >     fun input ->

00:00:21 #1131 [Verbose] >         input

00:00:21 #1132 [Verbose] >         |> Seq.toList

00:00:21 #1133 [Verbose] >         |> List.fold (fun (acc: string list) letter ->

00:00:21 #1134 [Verbose] >             let last =

00:00:21 #1135 [Verbose] >                 if acc.IsEmpty

00:00:21 #1136 [Verbose] >                 then input

00:00:21 #1137 [Verbose] >                 else acc.Head

00:00:21 #1138 [Verbose] >

00:00:21 #1139 [Verbose] >             let item = last.[[1 .. input.Length - 1]] + string letter

00:00:21 #1140 [Verbose] >

00:00:21 #1141 [Verbose] >             item :: acc

00:00:21 #1142 [Verbose] >         ) [[]]

00:00:21 #1143 [Verbose] >         |> List.rev

00:00:21 #1144 [Verbose] >         |> Sm.concat " "

00:00:21 #1145 [Verbose] >

00:00:21 #1146 [Verbose] >     "C",

00:00:21 #1147 [Verbose] >     fun input ->

00:00:21 #1148 [Verbose] >         input

00:00:21 #1149 [Verbose] >         |> Seq.toList

00:00:21 #1150 [Verbose] >         |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..

00:00:21 #1151 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:21 #1152 [Verbose] >         |> List.rev

00:00:21 #1153 [Verbose] >         |> List.skip 1

00:00:21 #1154 [Verbose] >         |> Sm.concat " "

00:00:21 #1155 [Verbose] >

00:00:21 #1156 [Verbose] >     "CA",

00:00:21 #1157 [Verbose] >     fun input ->

00:00:21 #1158 [Verbose] >         input

00:00:21 #1159 [Verbose] >         |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..

00:00:21 #1160 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:21 #1161 [Verbose] >         |> Seq.rev

00:00:21 #1162 [Verbose] >         |> Seq.skip 1

00:00:21 #1163 [Verbose] >         |> Sm.concat " "

00:00:21 #1164 [Verbose] >

00:00:21 #1165 [Verbose] >     "CB",

00:00:21 #1166 [Verbose] >     fun input ->

00:00:21 #1167 [Verbose] >         input

00:00:21 #1168 [Verbose] >         |> Seq.toArray

00:00:21 #1169 [Verbose] >         |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|

00:00:21 #1170 [Verbose] > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]

00:00:21 #1171 [Verbose] >         |> Array.rev

00:00:21 #1172 [Verbose] >         |> Array.skip 1

00:00:21 #1173 [Verbose] >         |> Sm.concat " "

00:00:21 #1174 [Verbose] >

00:00:21 #1175 [Verbose] >     "D",

00:00:21 #1176 [Verbose] >     fun input ->

00:00:21 #1177 [Verbose] >         input

00:00:21 #1178 [Verbose] >         |> Seq.toList

00:00:21 #1179 [Verbose] >         |> fun list ->

00:00:21 #1180 [Verbose] >             let rec loop (acc: char list list) = function

00:00:21 #1181 [Verbose] >                 | _ when acc.Length = list.Length -> acc

00:00:21 #1182 [Verbose] >                 | head :: tail ->

00:00:21 #1183 [Verbose] >                     let item = tail @ [[ head ]]

00:00:21 #1184 [Verbose] >                     loop (item :: acc) item

00:00:21 #1185 [Verbose] >                 | [[]] -> [[]]

00:00:21 #1186 [Verbose] >             loop [[]] list

00:00:21 #1187 [Verbose] >         |> List.rev

00:00:21 #1188 [Verbose] >         |> List.map (List.toArray >> String)

00:00:21 #1189 [Verbose] >         |> Sm.concat " "

00:00:21 #1190 [Verbose] >

00:00:21 #1191 [Verbose] >     "E",

00:00:21 #1192 [Verbose] >     fun input ->

00:00:21 #1193 [Verbose] >         input

00:00:21 #1194 [Verbose] >         |> Seq.toList

00:00:21 #1195 [Verbose] >         |> fun list ->

00:00:21 #1196 [Verbose] >             let rec loop (last: string) = function

00:00:21 #1197 [Verbose] >                 | head :: tail ->

00:00:21 #1198 [Verbose] >                     let item = last.[[1 .. input.Length - 1]] + string head

00:00:21 #1199 [Verbose] >                     item :: loop item tail

00:00:21 #1200 [Verbose] >                 | [[]] -> [[]]

00:00:21 #1201 [Verbose] >             loop input list

00:00:21 #1202 [Verbose] >         |> Sm.concat " "

00:00:21 #1203 [Verbose] >

00:00:21 #1204 [Verbose] >     "F",

00:00:21 #1205 [Verbose] >     fun input ->

00:00:21 #1206 [Verbose] >         Array.singleton 0

00:00:21 #1207 [Verbose] >         |> Array.append [[| 1 .. input.Length - 1 |]]

00:00:21 #1208 [Verbose] >         |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1209 [Verbose] >         |> Sm.concat " "

00:00:21 #1210 [Verbose] >

00:00:21 #1211 [Verbose] >     "FA",

00:00:21 #1212 [Verbose] >     fun input ->

00:00:21 #1213 [Verbose] >         List.singleton 0

00:00:21 #1214 [Verbose] >         |> List.append [[ 1 .. input.Length - 1 ]]

00:00:21 #1215 [Verbose] >         |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1216 [Verbose] >         |> Sm.concat " "

00:00:21 #1217 [Verbose] >

00:00:21 #1218 [Verbose] >     "FB",

00:00:21 #1219 [Verbose] >     fun input ->

00:00:21 #1220 [Verbose] >         Seq.singleton 0

00:00:21 #1221 [Verbose] >         |> Seq.append (seq { 1 .. input.Length - 1 })

00:00:21 #1222 [Verbose] >         |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1223 [Verbose] >         |> Sm.concat " "

00:00:21 #1224 [Verbose] >

00:00:21 #1225 [Verbose] >     "FC",

00:00:21 #1226 [Verbose] >     fun input ->

00:00:21 #1227 [Verbose] >         Array.singleton 0

00:00:21 #1228 [Verbose] >         |> Array.append [[| 1 .. input.Length - 1 |]]

00:00:21 #1229 [Verbose] >         |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1230 [Verbose] >         |> Sm.concat " "

00:00:21 #1231 [Verbose] > ]]

00:00:21 #1232 [Verbose] > let testCases = seq {

00:00:21 #1233 [Verbose] >     "abc", "bca cab abc"

00:00:21 #1234 [Verbose] >     "abcde", "bcdea cdeab deabc eabcd abcde"

00:00:21 #1235 [Verbose] >     "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef

00:00:21 #1236 [Verbose] > hiabcdefg iabcdefgh abcdefghi"

00:00:21 #1237 [Verbose] >     "abab", "baba abab baba abab"

00:00:21 #1238 [Verbose] >     "aa", "aa aa"

00:00:21 #1239 [Verbose] >     "z", "z"

00:00:21 #1240 [Verbose] > }

00:00:21 #1241 [Verbose] > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions

00:00:21 #1242 [Verbose] > testCases

00:00:21 #1243 [Verbose] > rotateStringsTests

00:00:21 #1244 [Verbose] > |> sortResultList

00:00:30 #1245 [Verbose] >

00:00:30 #1246 [Verbose] > ╭─[ 9.07s - stdout ]───────────────────────────────────────────────────────────╮

00:00:30 #1247 [Verbose] > │                                                                              │

00:00:30 #1248 [Verbose] > │                                                                              │

00:00:30 #1249 [Verbose] > │ Test: rotateStringsTests                                                     │

00:00:30 #1250 [Verbose] > │                                                                              │

00:00:30 #1251 [Verbose] > │ Solution: abc                                                                │

00:00:30 #1252 [Verbose] > │ Test case 1. A. Time: 2L                                                     │

00:00:30 #1253 [Verbose] > │ Test case 2. B. Time: 1L                                                     │

00:00:30 #1254 [Verbose] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1255 [Verbose] > │ Test case 4. CA. Time: 4L                                                    │

00:00:30 #1256 [Verbose] > │ Test case 5. CB. Time: 2L                                                    │

00:00:30 #1257 [Verbose] > │ Test case 6. D. Time: 2L                                                     │

00:00:30 #1258 [Verbose] > │ Test case 7. E. Time: 1L                                                     │

00:00:30 #1259 [Verbose] > │ Test case 8. F. Time: 1L                                                     │

00:00:30 #1260 [Verbose] > │ Test case 9. FA. Time: 2L                                                    │

00:00:30 #1261 [Verbose] > │ Test case 10. FB. Time: 8L                                                   │

00:00:30 #1262 [Verbose] > │ Test case 11. FC. Time: 9L                                                   │

00:00:30 #1263 [Verbose] > │                                                                              │

00:00:30 #1264 [Verbose] > │ Solution: abcde                                                              │

00:00:30 #1265 [Verbose] > │ Test case 1. A. Time: 1L                                                     │

00:00:30 #1266 [Verbose] > │ Test case 2. B. Time: 0L                                                     │

00:00:30 #1267 [Verbose] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1268 [Verbose] > │ Test case 4. CA. Time: 1L                                                    │

00:00:30 #1269 [Verbose] > │ Test case 5. CB. Time: 1L                                                    │

00:00:30 #1270 [Verbose] > │ Test case 6. D. Time: 4L                                                     │

00:00:30 #1271 [Verbose] > │ Test case 7. E. Time: 0L                                                     │

00:00:30 #1272 [Verbose] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1273 [Verbose] > │ Test case 9. FA. Time: 0L                                                    │

00:00:30 #1274 [Verbose] > │ Test case 10. FB. Time: 4L                                                   │

00:00:30 #1275 [Verbose] > │ Test case 11. FC. Time: 5L                                                   │

00:00:30 #1276 [Verbose] > │                                                                              │

00:00:30 #1277 [Verbose] > │ Solution: abcdefghi                                                          │

00:00:30 #1278 [Verbose] > │ Test case 1. A. Time: 4L                                                     │

00:00:30 #1279 [Verbose] > │ Test case 2. B. Time: 4L                                                     │

00:00:30 #1280 [Verbose] > │ Test case 3. C. Time: 2L                                                     │

00:00:30 #1281 [Verbose] > │ Test case 4. CA. Time: 4L                                                    │

00:00:30 #1282 [Verbose] > │ Test case 5. CB. Time: 2L                                                    │

00:00:30 #1283 [Verbose] > │ Test case 6. D. Time: 7L                                                     │

00:00:30 #1284 [Verbose] > │ Test case 7. E. Time: 1L                                                     │

00:00:30 #1285 [Verbose] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1286 [Verbose] > │ Test case 9. FA. Time: 7L                                                    │

00:00:30 #1287 [Verbose] > │ Test case 10. FB. Time: 2L                                                   │

00:00:30 #1288 [Verbose] > │ Test case 11. FC. Time: 6L                                                   │

00:00:30 #1289 [Verbose] > │                                                                              │

00:00:30 #1290 [Verbose] > │ Solution: abab                                                               │

00:00:30 #1291 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:30 #1292 [Verbose] > │ Test case 2. B. Time: 0L                                                     │

00:00:30 #1293 [Verbose] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1294 [Verbose] > │ Test case 4. CA. Time: 1L                                                    │

00:00:30 #1295 [Verbose] > │ Test case 5. CB. Time: 1L                                                    │

00:00:30 #1296 [Verbose] > │ Test case 6. D. Time: 1L                                                     │

00:00:30 #1297 [Verbose] > │ Test case 7. E. Time: 1L                                                     │

00:00:30 #1298 [Verbose] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1299 [Verbose] > │ Test case 9. FA. Time: 0L                                                    │

00:00:30 #1300 [Verbose] > │ Test case 10. FB. Time: 1L                                                   │

00:00:30 #1301 [Verbose] > │ Test case 11. FC. Time: 4L                                                   │

00:00:30 #1302 [Verbose] > │                                                                              │

00:00:30 #1303 [Verbose] > │ Solution: aa                                                                 │

00:00:30 #1304 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:30 #1305 [Verbose] > │ Test case 2. B. Time: 0L                                                     │

00:00:30 #1306 [Verbose] > │ Test case 3. C. Time: 0L                                                     │

00:00:30 #1307 [Verbose] > │ Test case 4. CA. Time: 0L                                                    │

00:00:30 #1308 [Verbose] > │ Test case 5. CB. Time: 0L                                                    │

00:00:30 #1309 [Verbose] > │ Test case 6. D. Time: 0L                                                     │

00:00:30 #1310 [Verbose] > │ Test case 7. E. Time: 0L                                                     │

00:00:30 #1311 [Verbose] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1312 [Verbose] > │ Test case 9. FA. Time: 0L                                                    │

00:00:30 #1313 [Verbose] > │ Test case 10. FB. Time: 1L                                                   │

00:00:30 #1314 [Verbose] > │ Test case 11. FC. Time: 4L                                                   │

00:00:30 #1315 [Verbose] > │                                                                              │

00:00:30 #1316 [Verbose] > │ Solution: z                                                                  │

00:00:30 #1317 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:00:30 #1318 [Verbose] > │ Test case 2. B. Time: 0L                                                     │

00:00:30 #1319 [Verbose] > │ Test case 3. C. Time: 0L                                                     │

00:00:30 #1320 [Verbose] > │ Test case 4. CA. Time: 0L                                                    │

00:00:30 #1321 [Verbose] > │ Test case 5. CB. Time: 0L                                                    │

00:00:30 #1322 [Verbose] > │ Test case 6. D. Time: 0L                                                     │

00:00:30 #1323 [Verbose] > │ Test case 7. E. Time: 0L                                                     │

00:00:30 #1324 [Verbose] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1325 [Verbose] > │ Test case 9. FA. Time: 0L                                                    │

00:00:30 #1326 [Verbose] > │ Test case 10. FB. Time: 0L                                                   │

00:00:30 #1327 [Verbose] > │ Test case 11. FC. Time: 4L                                                   │

00:00:30 #1328 [Verbose] > │                                                                              │

00:00:30 #1329 [Verbose] > │ Input    	| Expected                                                           │

00:00:30 #1330 [Verbose] > │                                                                              │

00:00:30 #1331 [Verbose] > │ | Result                                                                     │

00:00:30 #1332 [Verbose] > │                                                                              │

00:00:30 #1333 [Verbose] > │ | Best                                                                       │

00:00:30 #1334 [Verbose] > │ ---      	| ---                                                                │

00:00:30 #1335 [Verbose] > │                                                                              │

00:00:30 #1336 [Verbose] > │ | ---                                                                        │

00:00:30 #1337 [Verbose] > │                                                                              │

00:00:30 #1338 [Verbose] > │ | ---                                                                        │

00:00:30 #1339 [Verbose] > │ abc      	| bca cab abc                                                        │

00:00:30 #1340 [Verbose] > │                                                                              │

00:00:30 #1341 [Verbose] > │ | bca cab abc                                                                │

00:00:30 #1342 [Verbose] > │                                                                              │

00:00:30 #1343 [Verbose] > │ | (2, 1)                                                                     │

00:00:30 #1344 [Verbose] > │ abcde    	| bcdea cdeab deabc eabcd abcde                                      │

00:00:30 #1345 [Verbose] > │ | bcdea cdeab deabc eabcd abcde                                              │

00:00:30 #1346 [Verbose] > │ | (2, 0)                                                                     │

00:00:30 #1347 [Verbose] > │ abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef        │

00:00:30 #1348 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd        │

00:00:30 #1349 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi	| (8, 0)                     │

00:00:30 #1350 [Verbose] > │ abab     	| baba abab baba abab                                                │

00:00:30 #1351 [Verbose] > │ | baba abab baba abab                                                        │

00:00:30 #1352 [Verbose] > │ | (1, 0)                                                                     │

00:00:30 #1353 [Verbose] > │ aa       	| aa aa                                                              │

00:00:30 #1354 [Verbose] > │                                                                              │

00:00:30 #1355 [Verbose] > │ | aa aa                                                                      │

00:00:30 #1356 [Verbose] > │                                                                              │

00:00:30 #1357 [Verbose] > │ | (1, 0)                                                                     │

00:00:30 #1358 [Verbose] > │ z        	| z                                                                  │

00:00:30 #1359 [Verbose] > │                                                                              │

00:00:30 #1360 [Verbose] > │ | z                                                                          │

00:00:30 #1361 [Verbose] > │                                                                              │

00:00:30 #1362 [Verbose] > │ | (1, 0)                                                                     │

00:00:30 #1363 [Verbose] > │                                                                              │

00:00:30 #1364 [Verbose] > │ Average Ranking                                                              │

00:00:30 #1365 [Verbose] > │ Test case 2. Average Time: 0L                                                │

00:00:30 #1366 [Verbose] > │ Test case 3. Average Time: 0L                                                │

00:00:30 #1367 [Verbose] > │ Test case 7. Average Time: 0L                                                │

00:00:30 #1368 [Verbose] > │ Test case 8. Average Time: 0L                                                │

00:00:30 #1369 [Verbose] > │ Test case 1. Average Time: 1L                                                │

00:00:30 #1370 [Verbose] > │ Test case 4. Average Time: 1L                                                │

00:00:30 #1371 [Verbose] > │ Test case 5. Average Time: 1L                                                │

00:00:30 #1372 [Verbose] > │ Test case 9. Average Time: 1L                                                │

00:00:30 #1373 [Verbose] > │ Test case 6. Average Time: 2L                                                │

00:00:30 #1374 [Verbose] > │ Test case 10. Average Time: 2L                                               │

00:00:30 #1375 [Verbose] > │ Test case 11. Average Time: 5L                                               │

00:00:30 #1376 [Verbose] > │                                                                              │

00:00:30 #1377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1378 [Verbose] >

00:00:30 #1379 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #1380 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #1381 [Verbose] > │ ## rotate_strings_tests                                                      │

00:00:30 #1382 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1383 [Verbose] >

00:00:30 #1384 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #1385 [Verbose] > // // test

00:00:30 #1386 [Verbose] > // // timeout=60000

00:00:30 #1387 [Verbose] > // // print_code=true

00:00:30 #1388 [Verbose] >

00:00:30 #1389 [Verbose] > inl get_solutions () =

00:00:30 #1390 [Verbose] >     [[

00:00:30 #1391 [Verbose] >         // "A",

00:00:30 #1392 [Verbose] >         // fun (input : string) =>

00:00:30 #1393 [Verbose] >         //     let resultList =

00:00:30 #1394 [Verbose] >         //         List.fold (fun acc x =>

00:00:30 #1395 [Verbose] >         //             let rotate (text : string) (letter : string) =

00:00:30 #1396 [Verbose] > text.Substring (1, input.Length - 1) + letter

00:00:30 #1397 [Verbose] >         //             [[ rotate (if acc.IsEmpty then input else acc.Head)

00:00:30 #1398 [Verbose] > (string x) ]] /@ acc

00:00:30 #1399 [Verbose] >         //         ) [[]] (Seq.toList input)

00:00:30 #1400 [Verbose] >

00:00:30 #1401 [Verbose] >         //     List.foldBack (fun acc x => x + acc + " ") resultList ""

00:00:30 #1402 [Verbose] >         //     |> fun x => x.TrimEnd ()

00:00:30 #1403 [Verbose] >

00:00:30 #1404 [Verbose] >         // "B",

00:00:30 #1405 [Verbose] >         // fun input =>

00:00:30 #1406 [Verbose] >         //     input

00:00:30 #1407 [Verbose] >         //     |> Seq.toList

00:00:30 #1408 [Verbose] >         //     |> List.fold (fun (acc : string list) letter =>

00:00:30 #1409 [Verbose] >         //         let last =

00:00:30 #1410 [Verbose] >         //             if acc.IsEmpty

00:00:30 #1411 [Verbose] >         //             then input

00:00:30 #1412 [Verbose] >         //             else acc.Head

00:00:30 #1413 [Verbose] >

00:00:30 #1414 [Verbose] >         //         let item = last.[[1 .. input.Length - 1]] + string letter

00:00:30 #1415 [Verbose] >

00:00:30 #1416 [Verbose] >         //         item :: acc

00:00:30 #1417 [Verbose] >         //     ) [[]]

00:00:30 #1418 [Verbose] >         //     |> List.rev

00:00:30 #1419 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1420 [Verbose] >

00:00:30 #1421 [Verbose] >         // "C",

00:00:30 #1422 [Verbose] >         // fun input =>

00:00:30 #1423 [Verbose] >         //     input

00:00:30 #1424 [Verbose] >         //     |> Seq.toList

00:00:30 #1425 [Verbose] >         //     |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..

00:00:30 #1426 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:30 #1427 [Verbose] >         //     |> List.rev

00:00:30 #1428 [Verbose] >         //     |> List.skip 1

00:00:30 #1429 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1430 [Verbose] >

00:00:30 #1431 [Verbose] >         // "CA",

00:00:30 #1432 [Verbose] >         // fun input =>

00:00:30 #1433 [Verbose] >         //     input

00:00:30 #1434 [Verbose] >         //     |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..

00:00:30 #1435 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:30 #1436 [Verbose] >         //     |> Seq.rev

00:00:30 #1437 [Verbose] >         //     |> Seq.skip 1

00:00:30 #1438 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1439 [Verbose] >

00:00:30 #1440 [Verbose] >         // "CB",

00:00:30 #1441 [Verbose] >         // fun input =>

00:00:30 #1442 [Verbose] >         //     input

00:00:30 #1443 [Verbose] >         //     |> Seq.toArray

00:00:30 #1444 [Verbose] >         //     |> Array.fold (fun (acc : a _ string) letter => acc |>

00:00:30 #1445 [Verbose] > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))

00:00:30 #1446 [Verbose] > (a ;[[ input ]])

00:00:30 #1447 [Verbose] >         //     |> Array.rev

00:00:30 #1448 [Verbose] >         //     |> Array.skip 1

00:00:30 #1449 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1450 [Verbose] >

00:00:30 #1451 [Verbose] >         // "D",

00:00:30 #1452 [Verbose] >         // fun input =>

00:00:30 #1453 [Verbose] >         //     input

00:00:30 #1454 [Verbose] >         //     |> Seq.toList

00:00:30 #1455 [Verbose] >         //     |> fun list =>

00:00:30 #1456 [Verbose] >         //         let rec loop (acc : list (list char)) = function

00:00:30 #1457 [Verbose] >         //             | _ when acc.Length = list.Length => acc

00:00:30 #1458 [Verbose] >         //             | head :: tail =>

00:00:30 #1459 [Verbose] >         //                 let item = tail /@ [[ head ]]

00:00:30 #1460 [Verbose] >         //                 loop (item :: acc) item

00:00:30 #1461 [Verbose] >         //             | [[]] => [[]]

00:00:30 #1462 [Verbose] >         //         loop [[]] list

00:00:30 #1463 [Verbose] >         //     |> List.rev

00:00:30 #1464 [Verbose] >         //     |> List.map (List.toArray >> String)

00:00:30 #1465 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1466 [Verbose] >

00:00:30 #1467 [Verbose] >         // "E",

00:00:30 #1468 [Verbose] >         // fun input =>

00:00:30 #1469 [Verbose] >         //     input

00:00:30 #1470 [Verbose] >         //     |> Seq.toList

00:00:30 #1471 [Verbose] >         //     |> fun list =>

00:00:30 #1472 [Verbose] >         //         let rec loop (last : string) = function

00:00:30 #1473 [Verbose] >         //             | head :: tail =>

00:00:30 #1474 [Verbose] >         //                 let item = last.[[1 .. input.Length - 1]] + string

00:00:30 #1475 [Verbose] > head

00:00:30 #1476 [Verbose] >         //                 item :: loop item tail

00:00:30 #1477 [Verbose] >         //             | [[]] => [[]]

00:00:30 #1478 [Verbose] >         //         loop input list

00:00:30 #1479 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1480 [Verbose] >

00:00:30 #1481 [Verbose] >         "F",

00:00:30 #1482 [Verbose] >         fun input =>

00:00:30 #1483 [Verbose] >         // Array.singleton 0

00:00:30 #1484 [Verbose] >         // |> Array.append [[| 1 .. input.Length - 1 |]]

00:00:30 #1485 [Verbose] >         // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:30 #1486 [Verbose] >         // |> Sm.concat " "

00:00:30 #1487 [Verbose] >             inl input_length = input |> sm.length

00:00:30 #1488 [Verbose] >             am.singleton 0i32

00:00:30 #1489 [Verbose] >             |> am.append (am'.init_series 1 (input_length - 1) 1)

00:00:30 #1490 [Verbose] >             |> am.map (fun i =>

00:00:30 #1491 [Verbose] >                 inl a = sm.slice input { from = i; to = input_length - 1 } :

00:00:30 #1492 [Verbose] > string

00:00:30 #1493 [Verbose] >                 inl b = sm.slice input { from = 0; to = i - 1 } : string

00:00:30 #1494 [Verbose] >                 $"!a + !b" : string

00:00:30 #1495 [Verbose] >             )

00:00:30 #1496 [Verbose] >             |> seq.of_array

00:00:30 #1497 [Verbose] >             |> sm'.concat " "

00:00:30 #1498 [Verbose] >

00:00:30 #1499 [Verbose] >         "FA",

00:00:30 #1500 [Verbose] >         fun input =>

00:00:30 #1501 [Verbose] >         //     List.singleton 0

00:00:30 #1502 [Verbose] >         //     |> List.append [[ 1 .. input.Length - 1 ]]

00:00:30 #1503 [Verbose] >         //   //  |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:30 #1504 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1505 [Verbose] >             inl input_length = input |> sm.length

00:00:30 #1506 [Verbose] >             listm.singleton 0i32

00:00:30 #1507 [Verbose] >             |> listm.append (listm'.init_series 1 (input_length - 1) 1)

00:00:30 #1508 [Verbose] >             |> listm.map (fun i =>

00:00:30 #1509 [Verbose] >                 inl a = sm.slice input { from = i; to = input_length - 1 } :

00:00:30 #1510 [Verbose] > string

00:00:30 #1511 [Verbose] >                 inl b = if i = 0 then "" else sm.slice input { from = 0; to = i

00:00:30 #1512 [Verbose] > - 1 } : string

00:00:30 #1513 [Verbose] >                 $"!a + !b" : string

00:00:30 #1514 [Verbose] >             )

00:00:30 #1515 [Verbose] >             |> listm.toArray

00:00:30 #1516 [Verbose] >             |> fun x => x : a i32 _

00:00:30 #1517 [Verbose] >             |> seq.of_array

00:00:30 #1518 [Verbose] >             |> sm'.concat " "

00:00:30 #1519 [Verbose] >

00:00:30 #1520 [Verbose] >         // "FB",

00:00:30 #1521 [Verbose] >         // fun input =>

00:00:30 #1522 [Verbose] >         //     Seq.singleton 0

00:00:30 #1523 [Verbose] >         //   //  |> Seq.append (seq { 1 .. input.Length - 1 })

00:00:30 #1524 [Verbose] >         //   //  |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:30 #1525 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1526 [Verbose] >

00:00:30 #1527 [Verbose] >         // "FC",

00:00:30 #1528 [Verbose] >         // fun input =>

00:00:30 #1529 [Verbose] >         //     Array.singleton 0

00:00:30 #1530 [Verbose] >         //     |> Array.append (a ;[[ 1 .. input.Length - 1 ]])

00:00:30 #1531 [Verbose] >         // //    |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ ..

00:00:30 #1532 [Verbose] > i - 1 ]])

00:00:30 #1533 [Verbose] >         //     |> Sm.concat " "

00:00:30 #1534 [Verbose] >     ]]

00:00:30 #1535 [Verbose] >

00:00:30 #1536 [Verbose] > inl rec rotate_strings_tests () =

00:00:30 #1537 [Verbose] >     inl test_cases = [[

00:00:30 #1538 [Verbose] >         "abc", "bca cab abc"

00:00:30 #1539 [Verbose] >         "abcde", "bcdea cdeab deabc eabcd abcde"

00:00:30 #1540 [Verbose] >         "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde

00:00:30 #1541 [Verbose] > ghiabcdef hiabcdefg iabcdefgh abcdefghi"

00:00:30 #1542 [Verbose] >         "abab", "baba abab baba abab"

00:00:30 #1543 [Verbose] >         "aa", "aa aa"

00:00:30 #1544 [Verbose] >         "z", "z"

00:00:30 #1545 [Verbose] >     ]]

00:00:30 #1546 [Verbose] >

00:00:30 #1547 [Verbose] >     inl solutions = get_solutions ()

00:00:30 #1548 [Verbose] >

00:00:30 #1549 [Verbose] >     // inl is_fast () = true

00:00:30 #1550 [Verbose] >

00:00:30 #1551 [Verbose] >     inl count =

00:00:30 #1552 [Verbose] >         if is_fast ()

00:00:30 #1553 [Verbose] >         then 1000i32

00:00:30 #1554 [Verbose] >         else 2000000i32

00:00:30 #1555 [Verbose] >

00:00:30 #1556 [Verbose] >     run_all (nameof rotate_strings_tests) count solutions test_cases

00:00:30 #1557 [Verbose] >     |> sort_result_list

00:00:30 #1558 [Verbose] >

00:00:30 #1559 [Verbose] > rotate_strings_tests ()

00:00:30 #1560 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0146-4539-3920-3dd24cdf2424\main.spi

00:00:56 #1561 [Verbose] >

00:00:56 #1562 [Verbose] > ╭─[ 25.99s - stdout ]──────────────────────────────────────────────────────────╮

00:00:56 #1563 [Verbose] > │ type UH0 =                                                                   │

00:00:56 #1564 [Verbose] > │     | UH0_0 of string * string * UH0                                         │

00:00:56 #1565 [Verbose] > │     | UH0_1                                                                  │

00:00:56 #1566 [Verbose] > │ and Mut0 = {mutable l0 : uint64}                                             │

00:00:56 #1567 [Verbose] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:56 #1568 [Verbose] > │ and UH1 =                                                                    │

00:00:56 #1569 [Verbose] > │     | UH1_0 of int32 * UH1                                                   │

00:00:56 #1570 [Verbose] > │     | UH1_1                                                                  │

00:00:56 #1571 [Verbose] > │ and UH2 =                                                                    │

00:00:56 #1572 [Verbose] > │     | UH2_0 of string * UH2                                                  │

00:00:56 #1573 [Verbose] > │     | UH2_1                                                                  │

00:00:56 #1574 [Verbose] > │ and UH3 =                                                                    │

00:00:56 #1575 [Verbose] > │     | UH3_0 of int32 * string * (string -> string) * UH3                     │

00:00:56 #1576 [Verbose] > │     | UH3_1                                                                  │

00:00:56 #1577 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:00:56 #1578 [Verbose] > │     | US0_0                                                                  │

00:00:56 #1579 [Verbose] > │     | US0_1 of f1_0 : System.ConsoleColor                                    │

00:00:56 #1580 [Verbose] > │ and UH4 =                                                                    │

00:00:56 #1581 [Verbose] > │     | UH4_0 of int64 * int64 * UH4                                           │

00:00:56 #1582 [Verbose] > │     | UH4_1                                                                  │

00:00:56 #1583 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH4; mutable l2 : int64}       │

00:00:56 #1584 [Verbose] > │ and UH5 =                                                                    │

00:00:56 #1585 [Verbose] > │     | UH5_0 of UH2 * US0 * UH5                                               │

00:00:56 #1586 [Verbose] > │     | UH5_1                                                                  │

00:00:56 #1587 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:00:56 #1588 [Verbose] > │     | US1_0                                                                  │

00:00:56 #1589 [Verbose] > │     | US1_1 of f1_0 : int64                                                  │

00:00:56 #1590 [Verbose] > │ and UH6 =                                                                    │

00:00:56 #1591 [Verbose] > │     | UH6_0 of int32 * int64 * UH6                                           │

00:00:56 #1592 [Verbose] > │     | UH6_1                                                                  │

00:00:56 #1593 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH6; mutable l2 : int32}       │

00:00:56 #1594 [Verbose] > │ and UH7 =                                                                    │

00:00:56 #1595 [Verbose] > │     | UH7_0 of int32 * string * UH7                                          │

00:00:56 #1596 [Verbose] > │     | UH7_1                                                                  │

00:00:56 #1597 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 =                           │

00:00:56 #1598 [Verbose] > │     match v0 with                                                            │

00:00:56 #1599 [Verbose] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1600 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:56 #1601 [Verbose] > │         method2(v4, v5)                                                      │

00:00:56 #1602 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:56 #1603 [Verbose] > │         v1                                                                   │

00:00:56 #1604 [Verbose] > │ and method3 (v0 : (struct (string * string) []), v1 : UH0, v2 : uint64) :    │

00:00:56 #1605 [Verbose] > │ uint64 =                                                                     │

00:00:56 #1606 [Verbose] > │     match v1 with                                                            │

00:00:56 #1607 [Verbose] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1608 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1609 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:56 #1610 [Verbose] > │         method3(v0, v5, v6)                                                  │

00:00:56 #1611 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:56 #1612 [Verbose] > │         v2                                                                   │

00:00:56 #1613 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string) []) =                     │

00:00:56 #1614 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1615 [Verbose] > │     let v2 : uint64 = method2(v0, v1)                                        │

00:00:56 #1616 [Verbose] > │     let v3 : (struct (string * string) []) = Array.zeroCreate<struct (string │

00:00:56 #1617 [Verbose] > │ * string)> (System.Convert.ToInt32(v2))                                      │

00:00:56 #1618 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1619 [Verbose] > │     let v5 : uint64 = method3(v3, v0, v4)                                    │

00:00:56 #1620 [Verbose] > │     v3                                                                       │

00:00:56 #1621 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool =                                │

00:00:56 #1622 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:00:56 #1623 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1624 [Verbose] > │     v3                                                                       │

00:00:56 #1625 [Verbose] > │ and method5 (v0 : int32, v1 : Mut1) : bool =                                 │

00:00:56 #1626 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:00:56 #1627 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1628 [Verbose] > │     v3                                                                       │

00:00:56 #1629 [Verbose] > │ and closure1 () (v0 : string) : string =                                     │

00:00:56 #1630 [Verbose] > │     let v1 : int32 = v0.Length                                               │

00:00:56 #1631 [Verbose] > │     let v2 : (int32 []) = Array.zeroCreate<int32> (1)                        │

00:00:56 #1632 [Verbose] > │     v2.[int 0] <- 0                                                          │

00:00:56 #1633 [Verbose] > │     let v3 : int32 = v1 - 1                                                  │

00:00:56 #1634 [Verbose] > │     let v4 : int32 = v3 - 1                                                  │

00:00:56 #1635 [Verbose] > │     let v5 : int32 = v4 + 1                                                  │

00:00:56 #1636 [Verbose] > │     let v6 : (int32 []) = Array.zeroCreate<int32> (v5)                       │

00:00:56 #1637 [Verbose] > │     let v7 : Mut1 = {l0 = 0} : Mut1                                          │

00:00:56 #1638 [Verbose] > │     while method5(v5, v7) do                                                 │

00:00:56 #1639 [Verbose] > │         let v9 : int32 = v7.l0                                               │

00:00:56 #1640 [Verbose] > │         let v10 : int32 = 1 + v9                                             │

00:00:56 #1641 [Verbose] > │         v6.[int v9] <- v10                                                   │

00:00:56 #1642 [Verbose] > │         let v11 : int32 = v9 + 1                                             │

00:00:56 #1643 [Verbose] > │         v7.l0 <- v11                                                         │

00:00:56 #1644 [Verbose] > │         ()                                                                   │

00:00:56 #1645 [Verbose] > │     let v12 : int32 = v6.Length                                              │

00:00:56 #1646 [Verbose] > │     let v13 : int32 = v2.Length                                              │

00:00:56 #1647 [Verbose] > │     let v14 : int32 = v12 + v13                                              │

00:00:56 #1648 [Verbose] > │     let v15 : (int32 []) = Array.zeroCreate<int32> (v14)                     │

00:00:56 #1649 [Verbose] > │     let v16 : Mut1 = {l0 = 0} : Mut1                                         │

00:00:56 #1650 [Verbose] > │     while method5(v14, v16) do                                               │

00:00:56 #1651 [Verbose] > │         let v18 : int32 = v16.l0                                             │

00:00:56 #1652 [Verbose] > │         let v19 : bool = v18 < v12                                           │

00:00:56 #1653 [Verbose] > │         let v23 : int32 =                                                    │

00:00:56 #1654 [Verbose] > │             if v19 then                                                      │

00:00:56 #1655 [Verbose] > │                 let v20 : int32 = v6.[int v18]                               │

00:00:56 #1656 [Verbose] > │                 v20                                                          │

00:00:56 #1657 [Verbose] > │             else                                                             │

00:00:56 #1658 [Verbose] > │                 let v21 : int32 = v18 - v12                                  │

00:00:56 #1659 [Verbose] > │                 let v22 : int32 = v2.[int v21]                               │

00:00:56 #1660 [Verbose] > │                 v22                                                          │

00:00:56 #1661 [Verbose] > │         v15.[int v18] <- v23                                                 │

00:00:56 #1662 [Verbose] > │         let v24 : int32 = v18 + 1                                            │

00:00:56 #1663 [Verbose] > │         v16.l0 <- v24                                                        │

00:00:56 #1664 [Verbose] > │         ()                                                                   │

00:00:56 #1665 [Verbose] > │     let v25 : int32 = v15.Length                                             │

00:00:56 #1666 [Verbose] > │     let v26 : (string []) = Array.zeroCreate<string> (v25)                   │

00:00:56 #1667 [Verbose] > │     let v27 : Mut1 = {l0 = 0} : Mut1                                         │

00:00:56 #1668 [Verbose] > │     while method5(v25, v27) do                                               │

00:00:56 #1669 [Verbose] > │         let v29 : int32 = v27.l0                                             │

00:00:56 #1670 [Verbose] > │         let v30 : int32 = v15.[int v29]                                      │

00:00:56 #1671 [Verbose] > │         let v31 : string = v0.[int v30..int v3]                              │

00:00:56 #1672 [Verbose] > │         let v32 : int32 = v30 - 1                                            │

00:00:56 #1673 [Verbose] > │         let v33 : string = v0.[int 0..int v32]                               │

00:00:56 #1674 [Verbose] > │         let v34 : string = v31 + v33                                         │

00:00:56 #1675 [Verbose] > │         v26.[int v29] <- v34                                                 │

00:00:56 #1676 [Verbose] > │         let v35 : int32 = v29 + 1                                            │

00:00:56 #1677 [Verbose] > │         v27.l0 <- v35                                                        │

00:00:56 #1678 [Verbose] > │         ()                                                                   │

00:00:56 #1679 [Verbose] > │     let v36 : ((string []) -> string seq) = Seq.ofArray                      │

00:00:56 #1680 [Verbose] > │     let v37 : string seq = v36 v26                                           │

00:00:56 #1681 [Verbose] > │     let v38 : string = " "                                                   │

00:00:56 #1682 [Verbose] > │     let v39 : string = v37 |> String.concat v38                              │

00:00:56 #1683 [Verbose] > │     v39                                                                      │

00:00:56 #1684 [Verbose] > │ and method6 (v0 : float, v1 : float) : UH1 =                                 │

00:00:56 #1685 [Verbose] > │     let v2 : bool = v1 < v0                                                  │

00:00:56 #1686 [Verbose] > │     if v2 then                                                               │

00:00:56 #1687 [Verbose] > │         let v3 : int32 = int32 v1                                            │

00:00:56 #1688 [Verbose] > │         let v4 : int32 = 1 + v3                                              │

00:00:56 #1689 [Verbose] > │         let v5 : float = v1 + 1.0                                            │

00:00:56 #1690 [Verbose] > │         let v6 : UH1 = method6(v0, v5)                                       │

00:00:56 #1691 [Verbose] > │         UH1_0(v4, v6)                                                        │

00:00:56 #1692 [Verbose] > │     else                                                                     │

00:00:56 #1693 [Verbose] > │         UH1_1                                                                │

00:00:56 #1694 [Verbose] > │ and method7 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:00:56 #1695 [Verbose] > │     match v0 with                                                            │

00:00:56 #1696 [Verbose] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:56 #1697 [Verbose] > │         let v4 : UH1 = method7(v3, v1)                                       │

00:00:56 #1698 [Verbose] > │         UH1_0(v2, v4)                                                        │

00:00:56 #1699 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:56 #1700 [Verbose] > │         v1                                                                   │

00:00:56 #1701 [Verbose] > │ and method8 (v0 : string, v1 : int32, v2 : UH1, v3 : UH2) : UH2 =            │

00:00:56 #1702 [Verbose] > │     match v2 with                                                            │

00:00:56 #1703 [Verbose] > │     | UH1_0(v4, v5) -> (* Cons *)                                            │

00:00:56 #1704 [Verbose] > │         let v6 : UH2 = method8(v0, v1, v5, v3)                               │

00:00:56 #1705 [Verbose] > │         let v7 : int32 = v1 - 1                                              │

00:00:56 #1706 [Verbose] > │         let v8 : string = v0.[int v4..int v7]                                │

00:00:56 #1707 [Verbose] > │         let v9 : bool = v4 = 0                                               │

00:00:56 #1708 [Verbose] > │         let v13 : string =                                                   │

00:00:56 #1709 [Verbose] > │             if v9 then                                                       │

00:00:56 #1710 [Verbose] > │                 let v10 : string = ""                                        │

00:00:56 #1711 [Verbose] > │                 v10                                                          │

00:00:56 #1712 [Verbose] > │             else                                                             │

00:00:56 #1713 [Verbose] > │                 let v11 : int32 = v4 - 1                                     │

00:00:56 #1714 [Verbose] > │                 let v12 : string = v0.[int 0..int v11]                       │

00:00:56 #1715 [Verbose] > │                 v12                                                          │

00:00:56 #1716 [Verbose] > │         let v14 : string = v8 + v13                                          │

00:00:56 #1717 [Verbose] > │         UH2_0(v14, v6)                                                       │

00:00:56 #1718 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:56 #1719 [Verbose] > │         v3                                                                   │

00:00:56 #1720 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 =                                │

00:00:56 #1721 [Verbose] > │     match v0 with                                                            │

00:00:56 #1722 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:56 #1723 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:00:56 #1724 [Verbose] > │         method10(v3, v4)                                                     │

00:00:56 #1725 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1726 [Verbose] > │         v1                                                                   │

00:00:56 #1727 [Verbose] > │ and method11 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:00:56 #1728 [Verbose] > │     match v1 with                                                            │

00:00:56 #1729 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:56 #1730 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:00:56 #1731 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:00:56 #1732 [Verbose] > │         method11(v0, v4, v5)                                                 │

00:00:56 #1733 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1734 [Verbose] > │         v2                                                                   │

00:00:56 #1735 [Verbose] > │ and method9 (v0 : UH2) : (string []) =                                       │

00:00:56 #1736 [Verbose] > │     let v1 : int32 = 0                                                       │

00:00:56 #1737 [Verbose] > │     let v2 : int32 = method10(v0, v1)                                        │

00:00:56 #1738 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:00:56 #1739 [Verbose] > │     let v4 : int32 = 0                                                       │

00:00:56 #1740 [Verbose] > │     let v5 : int32 = method11(v3, v0, v4)                                    │

00:00:56 #1741 [Verbose] > │     v3                                                                       │

00:00:56 #1742 [Verbose] > │ and closure2 () (v0 : string) : string =                                     │

00:00:56 #1743 [Verbose] > │     let v1 : int32 = v0.Length                                               │

00:00:56 #1744 [Verbose] > │     let v2 : int32 = v1 - 1                                                  │

00:00:56 #1745 [Verbose] > │     let v3 : int32 = v2 - 1                                                  │

00:00:56 #1746 [Verbose] > │     let v4 : float = float v3                                                │

00:00:56 #1747 [Verbose] > │     let v5 : float = v4 + 1.0                                                │

00:00:56 #1748 [Verbose] > │     let v6 : float = 0.0                                                     │

00:00:56 #1749 [Verbose] > │     let v7 : UH1 = method6(v5, v6)                                           │

00:00:56 #1750 [Verbose] > │     let v8 : int32 = 0                                                       │

00:00:56 #1751 [Verbose] > │     let v9 : UH1 = UH1_1                                                     │

00:00:56 #1752 [Verbose] > │     let v10 : UH1 = UH1_0(v8, v9)                                            │

00:00:56 #1753 [Verbose] > │     let v11 : UH1 = method7(v7, v10)                                         │

00:00:56 #1754 [Verbose] > │     let v12 : UH2 = UH2_1                                                    │

00:00:56 #1755 [Verbose] > │     let v13 : UH2 = method8(v0, v1, v11, v12)                                │

00:00:56 #1756 [Verbose] > │     let v14 : (string []) = method9(v13)                                     │

00:00:56 #1757 [Verbose] > │     let v15 : ((string []) -> string seq) = Seq.ofArray                      │

00:00:56 #1758 [Verbose] > │     let v16 : string seq = v15 v14                                           │

00:00:56 #1759 [Verbose] > │     let v17 : string = " "                                                   │

00:00:56 #1760 [Verbose] > │     let v18 : string = v16 |> String.concat v17                              │

00:00:56 #1761 [Verbose] > │     v18                                                                      │

00:00:56 #1762 [Verbose] > │ and method13 (v0 : UH3, v1 : uint64) : uint64 =                              │

00:00:56 #1763 [Verbose] > │     match v0 with                                                            │

00:00:56 #1764 [Verbose] > │     | UH3_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:56 #1765 [Verbose] > │         let v6 : uint64 = v1 + 1UL                                           │

00:00:56 #1766 [Verbose] > │         method13(v5, v6)                                                     │

00:00:56 #1767 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:56 #1768 [Verbose] > │         v1                                                                   │

00:00:56 #1769 [Verbose] > │ and method14 (v0 : (struct (int32 * string * (string -> string)) []), v1 :   │

00:00:56 #1770 [Verbose] > │ UH3, v2 : uint64) : uint64 =                                                 │

00:00:56 #1771 [Verbose] > │     match v1 with                                                            │

00:00:56 #1772 [Verbose] > │     | UH3_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:00:56 #1773 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:00:56 #1774 [Verbose] > │         let v7 : uint64 = v2 + 1UL                                           │

00:00:56 #1775 [Verbose] > │         method14(v0, v6, v7)                                                 │

00:00:56 #1776 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:56 #1777 [Verbose] > │         v2                                                                   │

00:00:56 #1778 [Verbose] > │ and method12 (v0 : UH3) : (struct (int32 * string * (string -> string)) [])  │

00:00:56 #1779 [Verbose] > │ =                                                                            │

00:00:56 #1780 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1781 [Verbose] > │     let v2 : uint64 = method13(v0, v1)                                       │

00:00:56 #1782 [Verbose] > │     let v3 : (struct (int32 * string * (string -> string)) []) =             │

00:00:56 #1783 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (string -> string))>               │

00:00:56 #1784 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:56 #1785 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1786 [Verbose] > │     let v5 : uint64 = method14(v3, v0, v4)                                   │

00:00:56 #1787 [Verbose] > │     v3                                                                       │

00:00:56 #1788 [Verbose] > │ and method15 (v0 : Mut1) : bool =                                            │

00:00:56 #1789 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:00:56 #1790 [Verbose] > │     let v2 : bool = v1 < 2000001                                             │

00:00:56 #1791 [Verbose] > │     v2                                                                       │

00:00:56 #1792 [Verbose] > │ and closure3 (v0 : string, v1 : (string -> string)) (v2 : int32) : string =  │

00:00:56 #1793 [Verbose] > │     v1 v0                                                                    │

00:00:56 #1794 [Verbose] > │ and method16 (v0 : string, v1 : (string []), v2 : uint64) : bool =           │

00:00:56 #1795 [Verbose] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:00:56 #1796 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:00:56 #1797 [Verbose] > │     if v4 then                                                               │

00:00:56 #1798 [Verbose] > │         let v5 : string = v1.[int v2]                                        │

00:00:56 #1799 [Verbose] > │         let v6 : bool = v0 = v5                                              │

00:00:56 #1800 [Verbose] > │         if v6 then                                                           │

00:00:56 #1801 [Verbose] > │             let v7 : uint64 = v2 + 1UL                                       │

00:00:56 #1802 [Verbose] > │             method16(v0, v1, v7)                                             │

00:00:56 #1803 [Verbose] > │         else                                                                 │

00:00:56 #1804 [Verbose] > │             false                                                            │

00:00:56 #1805 [Verbose] > │     else                                                                     │

00:00:56 #1806 [Verbose] > │         true                                                                 │

00:00:56 #1807 [Verbose] > │ and method17 (v0 : uint64, v1 : Mut2) : bool =                               │

00:00:56 #1808 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:00:56 #1809 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1810 [Verbose] > │     v3                                                                       │

00:00:56 #1811 [Verbose] > │ and method18 (v0 : UH4, v1 : UH4) : UH4 =                                    │

00:00:56 #1812 [Verbose] > │     match v0 with                                                            │

00:00:56 #1813 [Verbose] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1814 [Verbose] > │         let v5 : UH4 = UH4_0(v2, v3, v1)                                     │

00:00:56 #1815 [Verbose] > │         method18(v4, v5)                                                     │

00:00:56 #1816 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:56 #1817 [Verbose] > │         v1                                                                   │

00:00:56 #1818 [Verbose] > │ and method20 (v0 : UH4, v1 : int32) : int32 =                                │

00:00:56 #1819 [Verbose] > │     match v0 with                                                            │

00:00:56 #1820 [Verbose] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1821 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:00:56 #1822 [Verbose] > │         method20(v4, v5)                                                     │

00:00:56 #1823 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:56 #1824 [Verbose] > │         v1                                                                   │

00:00:56 #1825 [Verbose] > │ and method21 (v0 : (struct (int64 * int64) []), v1 : UH4, v2 : int32) :      │

00:00:56 #1826 [Verbose] > │ int32 =                                                                      │

00:00:56 #1827 [Verbose] > │     match v1 with                                                            │

00:00:56 #1828 [Verbose] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1829 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1830 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:00:56 #1831 [Verbose] > │         method21(v0, v5, v6)                                                 │

00:00:56 #1832 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:56 #1833 [Verbose] > │         v2                                                                   │

00:00:56 #1834 [Verbose] > │ and method19 (v0 : UH4) : (struct (int64 * int64) []) =                      │

00:00:56 #1835 [Verbose] > │     let v1 : int32 = 0                                                       │

00:00:56 #1836 [Verbose] > │     let v2 : int32 = method20(v0, v1)                                        │

00:00:56 #1837 [Verbose] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:00:56 #1838 [Verbose] > │ int64)> (v2)                                                                 │

00:00:56 #1839 [Verbose] > │     let v4 : int32 = 0                                                       │

00:00:56 #1840 [Verbose] > │     let v5 : int32 = method21(v3, v0, v4)                                    │

00:00:56 #1841 [Verbose] > │     v3                                                                       │

00:00:56 #1842 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:00:56 #1843 [Verbose] > │     v1                                                                       │

00:00:56 #1844 [Verbose] > │ and method23 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:00:56 #1845 [Verbose] > │     match v0 with                                                            │

00:00:56 #1846 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1847 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:56 #1848 [Verbose] > │         method23(v4, v5)                                                     │

00:00:56 #1849 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:56 #1850 [Verbose] > │         v1                                                                   │

00:00:56 #1851 [Verbose] > │ and method24 (v0 : (struct (UH2 * US0) []), v1 : UH5, v2 : uint64) : uint64  │

00:00:56 #1852 [Verbose] > │ =                                                                            │

00:00:56 #1853 [Verbose] > │     match v1 with                                                            │

00:00:56 #1854 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1855 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1856 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:56 #1857 [Verbose] > │         method24(v0, v5, v6)                                                 │

00:00:56 #1858 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:56 #1859 [Verbose] > │         v2                                                                   │

00:00:56 #1860 [Verbose] > │ and method22 (v0 : UH5) : (struct (UH2 * US0) []) =                          │

00:00:56 #1861 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1862 [Verbose] > │     let v2 : uint64 = method23(v0, v1)                                       │

00:00:56 #1863 [Verbose] > │     let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)>  │

00:00:56 #1864 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:56 #1865 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1866 [Verbose] > │     let v5 : uint64 = method24(v3, v0, v4)                                   │

00:00:56 #1867 [Verbose] > │     v3                                                                       │

00:00:56 #1868 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:00:56 #1869 [Verbose] > │     match v0 with                                                            │

00:00:56 #1870 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:56 #1871 [Verbose] > │         let v4 : uint64 = v1 + 1UL                                           │

00:00:56 #1872 [Verbose] > │         method26(v3, v4)                                                     │

00:00:56 #1873 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1874 [Verbose] > │         v1                                                                   │

00:00:56 #1875 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:00:56 #1876 [Verbose] > │     match v1 with                                                            │

00:00:56 #1877 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:56 #1878 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:00:56 #1879 [Verbose] > │         let v5 : uint64 = v2 + 1UL                                           │

00:00:56 #1880 [Verbose] > │         method27(v0, v4, v5)                                                 │

00:00:56 #1881 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1882 [Verbose] > │         v2                                                                   │

00:00:56 #1883 [Verbose] > │ and method25 (v0 : UH2) : (string []) =                                      │

00:00:56 #1884 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1885 [Verbose] > │     let v2 : uint64 = method26(v0, v1)                                       │

00:00:56 #1886 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:00:56 #1887 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:56 #1888 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1889 [Verbose] > │     let v5 : uint64 = method27(v3, v0, v4)                                   │

00:00:56 #1890 [Verbose] > │     v3                                                                       │

00:00:56 #1891 [Verbose] > │ and closure5 () (v0 : int64) : US1 =                                         │

00:00:56 #1892 [Verbose] > │     US1_1(v0)                                                                │

00:00:56 #1893 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool =                               │

00:00:56 #1894 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:00:56 #1895 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1896 [Verbose] > │     v3                                                                       │

00:00:56 #1897 [Verbose] > │ and method29 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:00:56 #1898 [Verbose] > │     match v0 with                                                            │

00:00:56 #1899 [Verbose] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1900 [Verbose] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:00:56 #1901 [Verbose] > │         method29(v4, v5)                                                     │

00:00:56 #1902 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1903 [Verbose] > │         v1                                                                   │

00:00:56 #1904 [Verbose] > │ and method31 (v0 : UH6, v1 : int32) : int32 =                                │

00:00:56 #1905 [Verbose] > │     match v0 with                                                            │

00:00:56 #1906 [Verbose] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1907 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:00:56 #1908 [Verbose] > │         method31(v4, v5)                                                     │

00:00:56 #1909 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1910 [Verbose] > │         v1                                                                   │

00:00:56 #1911 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : int32) :      │

00:00:56 #1912 [Verbose] > │ int32 =                                                                      │

00:00:56 #1913 [Verbose] > │     match v1 with                                                            │

00:00:56 #1914 [Verbose] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1915 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1916 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:00:56 #1917 [Verbose] > │         method32(v0, v5, v6)                                                 │

00:00:56 #1918 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1919 [Verbose] > │         v2                                                                   │

00:00:56 #1920 [Verbose] > │ and method30 (v0 : UH6) : (struct (int32 * int64) []) =                      │

00:00:56 #1921 [Verbose] > │     let v1 : int32 = 0                                                       │

00:00:56 #1922 [Verbose] > │     let v2 : int32 = method31(v0, v1)                                        │

00:00:56 #1923 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:56 #1924 [Verbose] > │ int64)> (v2)                                                                 │

00:00:56 #1925 [Verbose] > │     let v4 : int32 = 0                                                       │

00:00:56 #1926 [Verbose] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:00:56 #1927 [Verbose] > │     v3                                                                       │

00:00:56 #1928 [Verbose] > │ and method33 (v0 : UH2, v1 : UH7, v2 : int32) : struct (UH7 * int32) =       │

00:00:56 #1929 [Verbose] > │     match v0 with                                                            │

00:00:56 #1930 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:56 #1931 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:00:56 #1932 [Verbose] > │         let v6 : UH7 = UH7_0(v2, v3, v1)                                     │

00:00:56 #1933 [Verbose] > │         method33(v4, v6, v5)                                                 │

00:00:56 #1934 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1935 [Verbose] > │         struct (v1, v2)                                                      │

00:00:56 #1936 [Verbose] > │ and method34 (v0 : UH7, v1 : UH7) : UH7 =                                    │

00:00:56 #1937 [Verbose] > │     match v0 with                                                            │

00:00:56 #1938 [Verbose] > │     | UH7_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1939 [Verbose] > │         let v5 : UH7 = UH7_0(v2, v3, v1)                                     │

00:00:56 #1940 [Verbose] > │         method34(v4, v5)                                                     │

00:00:56 #1941 [Verbose] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:56 #1942 [Verbose] > │         v1                                                                   │

00:00:56 #1943 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH7, v2 : UH2) : UH2 =            │

00:00:56 #1944 [Verbose] > │     match v1 with                                                            │

00:00:56 #1945 [Verbose] > │     | UH7_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1946 [Verbose] > │         let v6 : UH2 = method35(v0, v5, v2)                                  │

00:00:56 #1947 [Verbose] > │         let v7 : int64 = v0.[v3]                                             │

00:00:56 #1948 [Verbose] > │         let v8 : int32 = int32 v7                                            │

00:00:56 #1949 [Verbose] > │         let v9 : string = v4.PadRight v8                                     │

00:00:56 #1950 [Verbose] > │         UH2_0(v9, v6)                                                        │

00:00:56 #1951 [Verbose] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:56 #1952 [Verbose] > │         v2                                                                   │

00:00:56 #1953 [Verbose] > │ and method37 (v0 : UH6, v1 : uint64) : uint64 =                              │

00:00:56 #1954 [Verbose] > │     match v0 with                                                            │

00:00:56 #1955 [Verbose] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1956 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:56 #1957 [Verbose] > │         method37(v4, v5)                                                     │

00:00:56 #1958 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1959 [Verbose] > │         v1                                                                   │

00:00:56 #1960 [Verbose] > │ and method38 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : uint64) :     │

00:00:56 #1961 [Verbose] > │ uint64 =                                                                     │

00:00:56 #1962 [Verbose] > │     match v1 with                                                            │

00:00:56 #1963 [Verbose] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1964 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1965 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:56 #1966 [Verbose] > │         method38(v0, v5, v6)                                                 │

00:00:56 #1967 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1968 [Verbose] > │         v2                                                                   │

00:00:56 #1969 [Verbose] > │ and method36 (v0 : UH6) : (struct (int32 * int64) []) =                      │

00:00:56 #1970 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1971 [Verbose] > │     let v2 : uint64 = method37(v0, v1)                                       │

00:00:56 #1972 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:56 #1973 [Verbose] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:00:56 #1974 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1975 [Verbose] > │     let v5 : uint64 = method38(v3, v0, v4)                                   │

00:00:56 #1976 [Verbose] > │     v3                                                                       │

00:00:56 #1977 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 =                    │

00:00:56 #1978 [Verbose] > │     v1                                                                       │

00:00:56 #1979 [Verbose] > │ and closure0 () () : unit =                                                  │

00:00:56 #1980 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:56 #1981 [Verbose] > │     let v1 : string = nameof v0                                              │

00:00:56 #1982 [Verbose] > │     let v2 : string = ""                                                     │

00:00:56 #1983 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:56 #1984 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:56 #1985 [Verbose] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:56 #1986 [Verbose] > │     System.Console.WriteLine v3                                              │

00:00:56 #1987 [Verbose] > │     let v4 : string = "abc"                                                  │

00:00:56 #1988 [Verbose] > │     let v5 : string = "bca cab abc"                                          │

00:00:56 #1989 [Verbose] > │     let v6 : string = "abcde"                                                │

00:00:56 #1990 [Verbose] > │     let v7 : string = "bcdea cdeab deabc eabcd abcde"                        │

00:00:56 #1991 [Verbose] > │     let v8 : string = "abcdefghi"                                            │

00:00:56 #1992 [Verbose] > │     let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde     │

00:00:56 #1993 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi"                                     │

00:00:56 #1994 [Verbose] > │     let v10 : string = "abab"                                                │

00:00:56 #1995 [Verbose] > │     let v11 : string = "baba abab baba abab"                                 │

00:00:56 #1996 [Verbose] > │     let v12 : string = "aa"                                                  │

00:00:56 #1997 [Verbose] > │     let v13 : string = "aa aa"                                               │

00:00:56 #1998 [Verbose] > │     let v14 : string = "z"                                                   │

00:00:56 #1999 [Verbose] > │     let v15 : UH0 = UH0_1                                                    │

00:00:56 #2000 [Verbose] > │     let v16 : UH0 = UH0_0(v14, v14, v15)                                     │

00:00:56 #2001 [Verbose] > │     let v17 : UH0 = UH0_0(v12, v13, v16)                                     │

00:00:56 #2002 [Verbose] > │     let v18 : UH0 = UH0_0(v10, v11, v17)                                     │

00:00:56 #2003 [Verbose] > │     let v19 : UH0 = UH0_0(v8, v9, v18)                                       │

00:00:56 #2004 [Verbose] > │     let v20 : UH0 = UH0_0(v6, v7, v19)                                       │

00:00:56 #2005 [Verbose] > │     let v21 : UH0 = UH0_0(v4, v5, v20)                                       │

00:00:56 #2006 [Verbose] > │     let v22 : (struct (string * string) []) = method1(v21)                   │

00:00:56 #2007 [Verbose] > │     let v23 : uint64 = System.Convert.ToUInt64 v22.Length                    │

00:00:56 #2008 [Verbose] > │     let v24 : (struct (string * string * string * (int64 [])) []) =          │

00:00:56 #2009 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:56 #2010 [Verbose] > │ (System.Convert.ToInt32(v23))                                                │

00:00:56 #2011 [Verbose] > │     let v25 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:56 #2012 [Verbose] > │     while method4(v23, v25) do                                               │

00:00:56 #2013 [Verbose] > │         let v27 : uint64 = v25.l0                                            │

00:00:56 #2014 [Verbose] > │         let struct (v28 : string, v29 : string) = v22.[int v27]              │

00:00:56 #2015 [Verbose] > │         let v30 : string = $"%A{v28}"                                        │

00:00:56 #2016 [Verbose] > │         System.Console.WriteLine v2                                          │

00:00:56 #2017 [Verbose] > │         let v31 : string = $"Solution: {v30}  "                              │

00:00:56 #2018 [Verbose] > │         System.Console.WriteLine v31                                         │

00:00:56 #2019 [Verbose] > │         let v32 : int32 = 0                                                  │

00:00:56 #2020 [Verbose] > │         let v33 : string = "F"                                               │

00:00:56 #2021 [Verbose] > │         let v34 : (string -> string) = closure1()                            │

00:00:56 #2022 [Verbose] > │         let v35 : int32 = 1                                                  │

00:00:56 #2023 [Verbose] > │         let v36 : string = "FA"                                              │

00:00:56 #2024 [Verbose] > │         let v37 : (string -> string) = closure2()                            │

00:00:56 #2025 [Verbose] > │         let v38 : UH3 = UH3_1                                                │

00:00:56 #2026 [Verbose] > │         let v39 : UH3 = UH3_0(v35, v36, v37, v38)                            │

00:00:56 #2027 [Verbose] > │         let v40 : UH3 = UH3_0(v32, v33, v34, v39)                            │

00:00:56 #2028 [Verbose] > │         let v41 : (struct (int32 * string * (string -> string)) []) =        │

00:00:56 #2029 [Verbose] > │ method12(v40)                                                                │

00:00:56 #2030 [Verbose] > │         let v42 : uint64 = System.Convert.ToUInt64 v41.Length                │

00:00:56 #2031 [Verbose] > │         let v43 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:00:56 #2032 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42))                              │

00:00:56 #2033 [Verbose] > │         let v44 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #2034 [Verbose] > │         while method4(v42, v44) do                                           │

00:00:56 #2035 [Verbose] > │             let v46 : uint64 = v44.l0                                        │

00:00:56 #2036 [Verbose] > │             let struct (v47 : int32, v48 : string, v49 : (string -> string)) │

00:00:56 #2037 [Verbose] > │ = v41.[int v46]                                                              │

00:00:57 #2038 [Verbose] > │             let mutable result = None                                        │

00:00:57 #2039 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:00:57 #2040 [Verbose] > │             ()                                                               │

00:00:57 #2041 [Verbose] > │             #endif                                                           │

00:00:57 #2042 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:00:57 #2043 [Verbose] > │             ()                                                               │

00:00:57 #2044 [Verbose] > │             #endif                                                           │

00:00:57 #2045 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:00:57 #2046 [Verbose] > │             System.GC.Collect ()                                             │

00:00:57 #2047 [Verbose] > │             ()                                                               │

00:00:57 #2048 [Verbose] > │             #endif                                                           │

00:00:57 #2049 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:00:57 #2050 [Verbose] > │             System.GC.Collect ()                                             │

00:00:57 #2051 [Verbose] > │             ()                                                               │

00:00:57 #2052 [Verbose] > │             #endif                                                           │

00:00:57 #2053 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:00:57 #2054 [Verbose] > │             System.GC.Collect ()                                             │

00:00:57 #2055 [Verbose] > │             ()                                                               │

00:00:57 #2056 [Verbose] > │             #endif                                                           │

00:00:57 #2057 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:00:57 #2058 [Verbose] > │             result |> Option.get                                             │

00:00:57 #2059 [Verbose] > │             let v50 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:57 #2060 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:00:57 #2061 [Verbose] > │             let v51 : System.Diagnostics.Stopwatch = v50 ()                  │

00:00:57 #2062 [Verbose] > │             v51.Start ()                                                     │

00:00:57 #2063 [Verbose] > │             let v52 : int64 = v51.ElapsedMilliseconds                        │

00:00:57 #2064 [Verbose] > │             let v53 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:57 #2065 [Verbose] > │             let v54 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:57 #2066 [Verbose] > │             while method15(v54) do                                           │

00:00:57 #2067 [Verbose] > │                 let v56 : int32 = v54.l0                                     │

00:00:57 #2068 [Verbose] > │                 v53.[int v56] <- v56                                         │

00:00:57 #2069 [Verbose] > │                 let v57 : int32 = v56 + 1                                    │

00:00:57 #2070 [Verbose] > │                 v54.l0 <- v57                                                │

00:00:57 #2071 [Verbose] > │                 ()                                                           │

00:00:57 #2072 [Verbose] > │             let v58 : (int32 -> string) = closure3(v28, v49)                 │

00:00:57 #2073 [Verbose] > │             let v59 : (string []) = v53 |> Array.Parallel.map v58            │

00:00:57 #2074 [Verbose] > │             let v60 : int32 = v59.Length                                     │

00:00:57 #2075 [Verbose] > │             let v61 : int32 = v60 - 1                                        │

00:00:57 #2076 [Verbose] > │             let v62 : string = v59.[int v61]                                 │

00:00:57 #2077 [Verbose] > │             let v63 : int64 = v51.ElapsedMilliseconds                        │

00:00:57 #2078 [Verbose] > │             let v64 : int64 = v63 - v52                                      │

00:00:57 #2079 [Verbose] > │             let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64}  "  │

00:00:57 #2080 [Verbose] > │             System.Console.WriteLine v65                                     │

00:00:57 #2081 [Verbose] > │             v43.[int v46] <- struct (v62, v64)                               │

00:00:57 #2082 [Verbose] > │             let v66 : uint64 = v46 + 1UL                                     │

00:00:57 #2083 [Verbose] > │             v44.l0 <- v66                                                    │

00:00:57 #2084 [Verbose] > │             ()                                                               │

00:00:57 #2085 [Verbose] > │         let v67 : uint64 = System.Convert.ToUInt64 v43.Length                │

00:00:57 #2086 [Verbose] > │         let v68 : (string []) = Array.zeroCreate<string>                     │

00:00:57 #2087 [Verbose] > │ (System.Convert.ToInt32(v67))                                                │

00:00:57 #2088 [Verbose] > │         let v69 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2089 [Verbose] > │         while method4(v67, v69) do                                           │

00:00:57 #2090 [Verbose] > │             let v71 : uint64 = v69.l0                                        │

00:00:57 #2091 [Verbose] > │             let struct (v72 : string, v73 : int64) = v43.[int v71]           │

00:00:57 #2092 [Verbose] > │             v68.[int v71] <- v72                                             │

00:00:57 #2093 [Verbose] > │             let v74 : uint64 = v71 + 1UL                                     │

00:00:57 #2094 [Verbose] > │             v69.l0 <- v74                                                    │

00:00:57 #2095 [Verbose] > │             ()                                                               │

00:00:57 #2096 [Verbose] > │         let v75 : uint64 = System.Convert.ToUInt64 v68.Length                │

00:00:57 #2097 [Verbose] > │         let v76 : bool = v75 <= 1UL                                          │

00:00:57 #2098 [Verbose] > │         if v76 then                                                          │

00:00:57 #2099 [Verbose] > │             ()                                                               │

00:00:57 #2100 [Verbose] > │         else                                                                 │

00:00:57 #2101 [Verbose] > │             let v77 : string = v68.[int 0UL]                                 │

00:00:57 #2102 [Verbose] > │             let v78 : uint64 = 0UL                                           │

00:00:57 #2103 [Verbose] > │             let v79 : bool = method16(v77, v68, v78)                         │

00:00:57 #2104 [Verbose] > │             if v79 then                                                      │

00:00:57 #2105 [Verbose] > │                 ()                                                           │

00:00:57 #2106 [Verbose] > │             else                                                             │

00:00:57 #2107 [Verbose] > │                 let v80 : string = $"Challenge error: {v68}"                 │

00:00:57 #2108 [Verbose] > │                 failwith<unit> v80                                           │

00:00:57 #2109 [Verbose] > │         let v81 : string = $"%A{v29}"                                        │

00:00:57 #2110 [Verbose] > │         let v82 : (string []) = Array.zeroCreate<string>                     │

00:00:57 #2111 [Verbose] > │ (System.Convert.ToInt32(v67))                                                │

00:00:57 #2112 [Verbose] > │         let v83 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2113 [Verbose] > │         while method4(v67, v83) do                                           │

00:00:57 #2114 [Verbose] > │             let v85 : uint64 = v83.l0                                        │

00:00:57 #2115 [Verbose] > │             let struct (v86 : string, v87 : int64) = v43.[int v85]           │

00:00:57 #2116 [Verbose] > │             v82.[int v85] <- v86                                             │

00:00:57 #2117 [Verbose] > │             let v88 : uint64 = v85 + 1UL                                     │

00:00:57 #2118 [Verbose] > │             v83.l0 <- v88                                                    │

00:00:57 #2119 [Verbose] > │             ()                                                               │

00:00:57 #2120 [Verbose] > │         let v89 : string = v82.[int 0UL]                                     │

00:00:57 #2121 [Verbose] > │         let v90 : string = $"%A{v89}"                                        │

00:00:57 #2122 [Verbose] > │         let v91 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:57 #2123 [Verbose] > │ (System.Convert.ToInt32(v67))                                                │

00:00:57 #2124 [Verbose] > │         let v92 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2125 [Verbose] > │         while method4(v67, v92) do                                           │

00:00:57 #2126 [Verbose] > │             let v94 : uint64 = v92.l0                                        │

00:00:57 #2127 [Verbose] > │             let struct (v95 : string, v96 : int64) = v43.[int v94]           │

00:00:57 #2128 [Verbose] > │             v91.[int v94] <- v96                                             │

00:00:57 #2129 [Verbose] > │             let v97 : uint64 = v94 + 1UL                                     │

00:00:57 #2130 [Verbose] > │             v92.l0 <- v97                                                    │

00:00:57 #2131 [Verbose] > │             ()                                                               │

00:00:57 #2132 [Verbose] > │         v24.[int v27] <- struct (v81, v30, v90, v91)                         │

00:00:57 #2133 [Verbose] > │         let v98 : uint64 = v27 + 1UL                                         │

00:00:57 #2134 [Verbose] > │         v25.l0 <- v98                                                        │

00:00:57 #2135 [Verbose] > │         ()                                                                   │

00:00:57 #2136 [Verbose] > │     let v99 : uint64 = System.Convert.ToUInt64 v24.Length                    │

00:00:57 #2137 [Verbose] > │     let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:57 #2138 [Verbose] > │ US0)> (System.Convert.ToInt32(v99))                                          │

00:00:57 #2139 [Verbose] > │     let v101 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2140 [Verbose] > │     while method4(v99, v101) do                                              │

00:00:57 #2141 [Verbose] > │         let v103 : uint64 = v101.l0                                          │

00:00:57 #2142 [Verbose] > │         let struct (v104 : string, v105 : string, v106 : string, v107 :      │

00:00:57 #2143 [Verbose] > │ (int64 [])) = v24.[int v103]                                                 │

00:00:57 #2144 [Verbose] > │         let v108 : uint64 = System.Convert.ToUInt64 v107.Length              │

00:00:57 #2145 [Verbose] > │         let v109 : UH4 = UH4_1                                               │

00:00:57 #2146 [Verbose] > │         let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2              │

00:00:57 #2147 [Verbose] > │         while method17(v108, v110) do                                        │

00:00:57 #2148 [Verbose] > │             let v112 : uint64 = v110.l0                                      │

00:00:57 #2149 [Verbose] > │             let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2         │

00:00:57 #2150 [Verbose] > │             let v115 : int64 = v107.[int v112]                               │

00:00:57 #2151 [Verbose] > │             let v116 : int64 = v114 + 1L                                     │

00:00:57 #2152 [Verbose] > │             let v117 : uint64 = v112 + 1UL                                   │

00:00:57 #2153 [Verbose] > │             let v118 : UH4 = UH4_0(v114, v115, v113)                         │

00:00:57 #2154 [Verbose] > │             v110.l0 <- v117                                                  │

00:00:57 #2155 [Verbose] > │             v110.l1 <- v118                                                  │

00:00:57 #2156 [Verbose] > │             v110.l2 <- v116                                                  │

00:00:57 #2157 [Verbose] > │             ()                                                               │

00:00:57 #2158 [Verbose] > │         let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2             │

00:00:57 #2159 [Verbose] > │         let v121 : UH4 = UH4_1                                               │

00:00:57 #2160 [Verbose] > │         let v122 : UH4 = method18(v119, v121)                                │

00:00:57 #2161 [Verbose] > │         let v123 : (struct (int64 * int64) []) = method19(v122)              │

00:00:57 #2162 [Verbose] > │         let v124 : int32 = v123.Length                                       │

00:00:57 #2163 [Verbose] > │         let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:57 #2164 [Verbose] > │ (int64 * int64)> (v124)                                                      │

00:00:57 #2165 [Verbose] > │         let v126 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:57 #2166 [Verbose] > │         while method5(v124, v126) do                                         │

00:00:57 #2167 [Verbose] > │             let v128 : int32 = v126.l0                                       │

00:00:57 #2168 [Verbose] > │             let struct (v129 : int64, v130 : int64) = v123.[int v128]        │

00:00:57 #2169 [Verbose] > │             let v131 : int64 = v129 + 1L                                     │

00:00:57 #2170 [Verbose] > │             v125.[int v128] <- struct (v131, v130)                           │

00:00:57 #2171 [Verbose] > │             let v132 : int32 = v128 + 1                                      │

00:00:57 #2172 [Verbose] > │             v126.l0 <- v132                                                  │

00:00:57 #2173 [Verbose] > │             ()                                                               │

00:00:57 #2174 [Verbose] > │         let v133 : (struct (int64 * int64) -> int64) = closure4()            │

00:00:57 #2175 [Verbose] > │         let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133   │

00:00:57 #2176 [Verbose] > │         let struct (v135 : int64, v136 : int64) = v134.[int 0]               │

00:00:57 #2177 [Verbose] > │         let v137 : string = $"%A{struct (v135, v136)}"                       │

00:00:57 #2178 [Verbose] > │         let v138 : bool = v104 = v106                                        │

00:00:57 #2179 [Verbose] > │         let v143 : US0 =                                                     │

00:00:57 #2180 [Verbose] > │             if v138 then                                                     │

00:00:57 #2181 [Verbose] > │                 let v139 : System.ConsoleColor =                             │

00:00:57 #2182 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:00:57 #2183 [Verbose] > │                 US0_1(v139)                                                  │

00:00:57 #2184 [Verbose] > │             else                                                             │

00:00:57 #2185 [Verbose] > │                 let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:57 #2186 [Verbose] > │                 US0_1(v141)                                                  │

00:00:57 #2187 [Verbose] > │         let v144 : UH2 = UH2_1                                               │

00:00:57 #2188 [Verbose] > │         let v145 : UH2 = UH2_0(v137, v144)                                   │

00:00:57 #2189 [Verbose] > │         let v146 : UH2 = UH2_0(v106, v145)                                   │

00:00:57 #2190 [Verbose] > │         let v147 : UH2 = UH2_0(v104, v146)                                   │

00:00:57 #2191 [Verbose] > │         let v148 : UH2 = UH2_0(v105, v147)                                   │

00:00:57 #2192 [Verbose] > │         v100.[int v103] <- struct (v148, v143)                               │

00:00:57 #2193 [Verbose] > │         let v149 : uint64 = v103 + 1UL                                       │

00:00:57 #2194 [Verbose] > │         v101.l0 <- v149                                                      │

00:00:57 #2195 [Verbose] > │         ()                                                                   │

00:00:57 #2196 [Verbose] > │     let v150 : string = "Input"                                              │

00:00:57 #2197 [Verbose] > │     let v151 : string = "Expected"                                           │

00:00:57 #2198 [Verbose] > │     let v152 : string = "Result"                                             │

00:00:57 #2199 [Verbose] > │     let v153 : string = "Best"                                               │

00:00:57 #2200 [Verbose] > │     let v154 : UH2 = UH2_1                                                   │

00:00:57 #2201 [Verbose] > │     let v155 : UH2 = UH2_0(v153, v154)                                       │

00:00:57 #2202 [Verbose] > │     let v156 : UH2 = UH2_0(v152, v155)                                       │

00:00:57 #2203 [Verbose] > │     let v157 : UH2 = UH2_0(v151, v156)                                       │

00:00:57 #2204 [Verbose] > │     let v158 : UH2 = UH2_0(v150, v157)                                       │

00:00:57 #2205 [Verbose] > │     let v159 : US0 = US0_0                                                   │

00:00:57 #2206 [Verbose] > │     let v160 : string = "---"                                                │

00:00:57 #2207 [Verbose] > │     let v161 : UH2 = UH2_1                                                   │

00:00:57 #2208 [Verbose] > │     let v162 : UH2 = UH2_0(v160, v161)                                       │

00:00:57 #2209 [Verbose] > │     let v163 : UH2 = UH2_0(v160, v162)                                       │

00:00:57 #2210 [Verbose] > │     let v164 : UH2 = UH2_0(v160, v163)                                       │

00:00:57 #2211 [Verbose] > │     let v165 : UH2 = UH2_0(v160, v164)                                       │

00:00:57 #2212 [Verbose] > │     let v166 : US0 = US0_0                                                   │

00:00:57 #2213 [Verbose] > │     let v167 : UH5 = UH5_1                                                   │

00:00:57 #2214 [Verbose] > │     let v168 : UH5 = UH5_0(v165, v166, v167)                                 │

00:00:57 #2215 [Verbose] > │     let v169 : UH5 = UH5_0(v158, v159, v168)                                 │

00:00:57 #2216 [Verbose] > │     let v170 : (struct (UH2 * US0) []) = method22(v169)                      │

00:00:57 #2217 [Verbose] > │     let v171 : uint64 = System.Convert.ToUInt64 v170.Length                  │

00:00:57 #2218 [Verbose] > │     let v172 : uint64 = System.Convert.ToUInt64 v100.Length                  │

00:00:57 #2219 [Verbose] > │     let v173 : uint64 = v171 + v172                                          │

00:00:57 #2220 [Verbose] > │     let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:57 #2221 [Verbose] > │ US0)> (System.Convert.ToInt32(v173))                                         │

00:00:57 #2222 [Verbose] > │     let v175 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2223 [Verbose] > │     while method4(v173, v175) do                                             │

00:00:57 #2224 [Verbose] > │         let v177 : uint64 = v175.l0                                          │

00:00:57 #2225 [Verbose] > │         let v178 : bool = v177 < v171                                        │

00:00:57 #2226 [Verbose] > │         let struct (v184 : UH2, v185 : US0) =                                │

00:00:57 #2227 [Verbose] > │             if v178 then                                                     │

00:00:57 #2228 [Verbose] > │                 let struct (v179 : UH2, v180 : US0) = v170.[int v177]        │

00:00:57 #2229 [Verbose] > │                 struct (v179, v180)                                          │

00:00:57 #2230 [Verbose] > │             else                                                             │

00:00:57 #2231 [Verbose] > │                 let v181 : uint64 = v177 - v171                              │

00:00:57 #2232 [Verbose] > │                 let struct (v182 : UH2, v183 : US0) = v100.[int v181]        │

00:00:57 #2233 [Verbose] > │                 struct (v182, v183)                                          │

00:00:57 #2234 [Verbose] > │         v174.[int v177] <- struct (v184, v185)                               │

00:00:57 #2235 [Verbose] > │         let v186 : uint64 = v177 + 1UL                                       │

00:00:57 #2236 [Verbose] > │         v175.l0 <- v186                                                      │

00:00:57 #2237 [Verbose] > │         ()                                                                   │

00:00:57 #2238 [Verbose] > │     let v187 : uint64 = System.Convert.ToUInt64 v174.Length                  │

00:00:57 #2239 [Verbose] > │     let v188 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:57 #2240 [Verbose] > │ (System.Convert.ToInt32(v187))                                               │

00:00:57 #2241 [Verbose] > │     let v189 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2242 [Verbose] > │     while method4(v187, v189) do                                             │

00:00:57 #2243 [Verbose] > │         let v191 : uint64 = v189.l0                                          │

00:00:57 #2244 [Verbose] > │         let struct (v192 : UH2, v193 : US0) = v174.[int v191]                │

00:00:57 #2245 [Verbose] > │         let v194 : (string []) = method25(v192)                              │

00:00:57 #2246 [Verbose] > │         v188.[int v191] <- v194                                              │

00:00:57 #2247 [Verbose] > │         let v195 : uint64 = v191 + 1UL                                       │

00:00:57 #2248 [Verbose] > │         v189.l0 <- v195                                                      │

00:00:57 #2249 [Verbose] > │         ()                                                                   │

00:00:57 #2250 [Verbose] > │     let v196 : ((string []) []) = v188 |> Array.transpose                    │

00:00:57 #2251 [Verbose] > │     let v197 : uint64 = System.Convert.ToUInt64 v196.Length                  │

00:00:57 #2252 [Verbose] > │     let v198 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:57 #2253 [Verbose] > │ (System.Convert.ToInt32(v197))                                               │

00:00:57 #2254 [Verbose] > │     let v199 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2255 [Verbose] > │     while method4(v197, v199) do                                             │

00:00:57 #2256 [Verbose] > │         let v201 : uint64 = v199.l0                                          │

00:00:57 #2257 [Verbose] > │         let v202 : (string []) = v196.[int v201]                             │

00:00:57 #2258 [Verbose] > │         let v203 : uint64 = System.Convert.ToUInt64 v202.Length              │

00:00:57 #2259 [Verbose] > │         let v204 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:57 #2260 [Verbose] > │ (System.Convert.ToInt32(v203))                                               │

00:00:57 #2261 [Verbose] > │         let v205 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:57 #2262 [Verbose] > │         while method4(v203, v205) do                                         │

00:00:57 #2263 [Verbose] > │             let v207 : uint64 = v205.l0                                      │

00:00:57 #2264 [Verbose] > │             let v208 : string = v202.[int v207]                              │

00:00:57 #2265 [Verbose] > │             let v209 : int64 = System.Convert.ToInt64 v208.Length            │

00:00:57 #2266 [Verbose] > │             v204.[int v207] <- v209                                          │

00:00:57 #2267 [Verbose] > │             let v210 : uint64 = v207 + 1UL                                   │

00:00:57 #2268 [Verbose] > │             v205.l0 <- v210                                                  │

00:00:57 #2269 [Verbose] > │             ()                                                               │

00:00:57 #2270 [Verbose] > │         let v211 : (int64 []) = v204 |> Array.sortDescending                 │

00:00:57 #2271 [Verbose] > │         let v212 : int64 option = v211 |> Array.tryItem 0                    │

00:00:57 #2272 [Verbose] > │         let v213 : (int64 -> US1) = closure5()                               │

00:00:57 #2273 [Verbose] > │         let v214 : US1 = US1_0                                               │

00:00:57 #2274 [Verbose] > │         let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │

00:00:57 #2275 [Verbose] > │         let v218 : int64 =                                                   │

00:00:57 #2276 [Verbose] > │             match v215 with                                                  │

00:00:57 #2277 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:00:57 #2278 [Verbose] > │                 0L                                                           │

00:00:57 #2279 [Verbose] > │             | US1_1(v216) -> (* Some *)                                      │

00:00:57 #2280 [Verbose] > │                 v216                                                         │

00:00:57 #2281 [Verbose] > │         v198.[int v201] <- v218                                              │

00:00:57 #2282 [Verbose] > │         let v219 : uint64 = v201 + 1UL                                       │

00:00:57 #2283 [Verbose] > │         v199.l0 <- v219                                                      │

00:00:57 #2284 [Verbose] > │         ()                                                                   │

00:00:57 #2285 [Verbose] > │     let v220 : uint64 = System.Convert.ToUInt64 v198.Length                  │

00:00:57 #2286 [Verbose] > │     let v221 : UH6 = UH6_1                                                   │

00:00:57 #2287 [Verbose] > │     let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3                   │

00:00:57 #2288 [Verbose] > │     while method28(v220, v222) do                                            │

00:00:57 #2289 [Verbose] > │         let v224 : uint64 = v222.l0                                          │

00:00:57 #2290 [Verbose] > │         let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2             │

00:00:57 #2291 [Verbose] > │         let v227 : int64 = v198.[int v224]                                   │

00:00:57 #2292 [Verbose] > │         let v228 : int32 = v226 + 1                                          │

00:00:57 #2293 [Verbose] > │         let v229 : uint64 = v224 + 1UL                                       │

00:00:57 #2294 [Verbose] > │         let v230 : UH6 = UH6_0(v226, v227, v225)                             │

00:00:57 #2295 [Verbose] > │         v222.l0 <- v229                                                      │

00:00:57 #2296 [Verbose] > │         v222.l1 <- v230                                                      │

00:00:57 #2297 [Verbose] > │         v222.l2 <- v228                                                      │

00:00:57 #2298 [Verbose] > │         ()                                                                   │

00:00:57 #2299 [Verbose] > │     let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2                 │

00:00:57 #2300 [Verbose] > │     let v233 : UH6 = UH6_1                                                   │

00:00:57 #2301 [Verbose] > │     let v234 : UH6 = method29(v231, v233)                                    │

00:00:57 #2302 [Verbose] > │     let v235 : (struct (int32 * int64) []) = method30(v234)                  │

00:00:57 #2303 [Verbose] > │     let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │

00:00:57 #2304 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:00:57 #2305 [Verbose] > │     let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:57 #2306 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187))                          │

00:00:57 #2307 [Verbose] > │     let v238 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2308 [Verbose] > │     while method4(v187, v238) do                                             │

00:00:57 #2309 [Verbose] > │         let v240 : uint64 = v238.l0                                          │

00:00:57 #2310 [Verbose] > │         let struct (v241 : UH2, v242 : US0) = v174.[int v240]                │

00:00:57 #2311 [Verbose] > │         let v243 : UH7 = UH7_1                                               │

00:00:57 #2312 [Verbose] > │         let v244 : int32 = 0                                                 │

00:00:57 #2313 [Verbose] > │         let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244)   │

00:00:57 #2314 [Verbose] > │         let v247 : UH7 = UH7_1                                               │

00:00:57 #2315 [Verbose] > │         let v248 : UH7 = method34(v245, v247)                                │

00:00:57 #2316 [Verbose] > │         let v249 : UH2 = UH2_1                                               │

00:00:57 #2317 [Verbose] > │         let v250 : UH2 = method35(v236, v248, v249)                          │

00:00:57 #2318 [Verbose] > │         let v251 : (string []) = method9(v250)                               │

00:00:57 #2319 [Verbose] > │         v237.[int v240] <- struct (v251, v242)                               │

00:00:57 #2320 [Verbose] > │         let v252 : uint64 = v240 + 1UL                                       │

00:00:57 #2321 [Verbose] > │         v238.l0 <- v252                                                      │

00:00:57 #2322 [Verbose] > │         ()                                                                   │

00:00:57 #2323 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:57 #2324 [Verbose] > │     let v253 : uint64 = System.Convert.ToUInt64 v237.Length                  │

00:00:57 #2325 [Verbose] > │     let v254 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2326 [Verbose] > │     while method4(v253, v254) do                                             │

00:00:57 #2327 [Verbose] > │         let v256 : uint64 = v254.l0                                          │

00:00:57 #2328 [Verbose] > │         let struct (v257 : (string []), v258 : US0) = v237.[int v256]        │

00:00:57 #2329 [Verbose] > │         match v258 with                                                      │

00:00:57 #2330 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:00:57 #2331 [Verbose] > │             let mutable result = None                                        │

00:00:57 #2332 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:00:57 #2333 [Verbose] > │             ()                                                               │

00:00:57 #2334 [Verbose] > │             #endif                                                           │

00:00:57 #2335 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:00:57 #2336 [Verbose] > │             ()                                                               │

00:00:57 #2337 [Verbose] > │             #endif                                                           │

00:00:57 #2338 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:00:57 #2339 [Verbose] > │             System.Console.ResetColor ()                                     │

00:00:57 #2340 [Verbose] > │             ()                                                               │

00:00:57 #2341 [Verbose] > │             #endif                                                           │

00:00:57 #2342 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:00:57 #2343 [Verbose] > │             System.Console.ResetColor ()                                     │

00:00:57 #2344 [Verbose] > │             ()                                                               │

00:00:57 #2345 [Verbose] > │             #endif                                                           │

00:00:57 #2346 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:00:57 #2347 [Verbose] > │             System.Console.ResetColor ()                                     │

00:00:57 #2348 [Verbose] > │             ()                                                               │

00:00:57 #2349 [Verbose] > │             #endif                                                           │

00:00:57 #2350 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:00:57 #2351 [Verbose] > │             result |> Option.get                                             │

00:00:57 #2352 [Verbose] > │             ()                                                               │

00:00:57 #2353 [Verbose] > │         | US0_1(v259) -> (* Some *)                                          │

00:00:57 #2354 [Verbose] > │             let mutable result = None                                        │

00:00:57 #2355 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:00:57 #2356 [Verbose] > │             ()                                                               │

00:00:57 #2357 [Verbose] > │             #endif                                                           │

00:00:57 #2358 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:00:57 #2359 [Verbose] > │             ()                                                               │

00:00:57 #2360 [Verbose] > │             #endif                                                           │

00:00:57 #2361 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:00:57 #2362 [Verbose] > │             System.Console.ForegroundColor <- v259                           │

00:00:57 #2363 [Verbose] > │             ()                                                               │

00:00:57 #2364 [Verbose] > │             #endif                                                           │

00:00:57 #2365 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:00:57 #2366 [Verbose] > │             System.Console.ForegroundColor <- v259                           │

00:00:57 #2367 [Verbose] > │             ()                                                               │

00:00:57 #2368 [Verbose] > │             #endif                                                           │

00:00:57 #2369 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:00:57 #2370 [Verbose] > │             System.Console.ForegroundColor <- v259                           │

00:00:57 #2371 [Verbose] > │             ()                                                               │

00:00:57 #2372 [Verbose] > │             #endif                                                           │

00:00:57 #2373 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:00:57 #2374 [Verbose] > │             result |> Option.get                                             │

00:00:57 #2375 [Verbose] > │             ()                                                               │

00:00:57 #2376 [Verbose] > │         let v260 : string = "\t| "                                           │

00:00:57 #2377 [Verbose] > │         let v261 : string = System.String.Join (v260, v257)                  │

00:00:57 #2378 [Verbose] > │         System.Console.WriteLine v261                                        │

00:00:57 #2379 [Verbose] > │         let mutable result = None                                            │

00:00:57 #2380 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:00:57 #2381 [Verbose] > │         ()                                                                   │

00:00:57 #2382 [Verbose] > │         #endif                                                               │

00:00:57 #2383 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:00:57 #2384 [Verbose] > │         ()                                                                   │

00:00:57 #2385 [Verbose] > │         #endif                                                               │

00:00:57 #2386 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:00:57 #2387 [Verbose] > │         System.Console.ResetColor ()                                         │

00:00:57 #2388 [Verbose] > │         ()                                                                   │

00:00:57 #2389 [Verbose] > │         #endif                                                               │

00:00:57 #2390 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:00:57 #2391 [Verbose] > │         System.Console.ResetColor ()                                         │

00:00:57 #2392 [Verbose] > │         ()                                                                   │

00:00:57 #2393 [Verbose] > │         #endif                                                               │

00:00:57 #2394 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:00:57 #2395 [Verbose] > │         System.Console.ResetColor ()                                         │

00:00:57 #2396 [Verbose] > │         ()                                                                   │

00:00:57 #2397 [Verbose] > │         #endif                                                               │

00:00:57 #2398 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:00:57 #2399 [Verbose] > │         result |> Option.get                                                 │

00:00:57 #2400 [Verbose] > │         let v262 : uint64 = v256 + 1UL                                       │

00:00:57 #2401 [Verbose] > │         v254.l0 <- v262                                                      │

00:00:57 #2402 [Verbose] > │         ()                                                                   │

00:00:57 #2403 [Verbose] > │     let v263 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:57 #2404 [Verbose] > │ (System.Convert.ToInt32(v99))                                                │

00:00:57 #2405 [Verbose] > │     let v264 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2406 [Verbose] > │     while method4(v99, v264) do                                              │

00:00:57 #2407 [Verbose] > │         let v266 : uint64 = v264.l0                                          │

00:00:57 #2408 [Verbose] > │         let struct (v267 : string, v268 : string, v269 : string, v270 :      │

00:00:57 #2409 [Verbose] > │ (int64 [])) = v24.[int v266]                                                 │

00:00:57 #2410 [Verbose] > │         let v271 : (int64 -> float) = float                                  │

00:00:57 #2411 [Verbose] > │         let v272 : uint64 = System.Convert.ToUInt64 v270.Length              │

00:00:57 #2412 [Verbose] > │         let v273 : (float []) = Array.zeroCreate<float>                      │

00:00:57 #2413 [Verbose] > │ (System.Convert.ToInt32(v272))                                               │

00:00:57 #2414 [Verbose] > │         let v274 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:57 #2415 [Verbose] > │         while method4(v272, v274) do                                         │

00:00:57 #2416 [Verbose] > │             let v276 : uint64 = v274.l0                                      │

00:00:57 #2417 [Verbose] > │             let v277 : int64 = v270.[int v276]                               │

00:00:57 #2418 [Verbose] > │             let v278 : float = v271 v277                                     │

00:00:57 #2419 [Verbose] > │             v273.[int v276] <- v278                                          │

00:00:57 #2420 [Verbose] > │             let v279 : uint64 = v276 + 1UL                                   │

00:00:57 #2421 [Verbose] > │             v274.l0 <- v279                                                  │

00:00:57 #2422 [Verbose] > │             ()                                                               │

00:00:57 #2423 [Verbose] > │         v263.[int v266] <- v273                                              │

00:00:57 #2424 [Verbose] > │         let v280 : uint64 = v266 + 1UL                                       │

00:00:57 #2425 [Verbose] > │         v264.l0 <- v280                                                      │

00:00:57 #2426 [Verbose] > │         ()                                                                   │

00:00:57 #2427 [Verbose] > │     let v281 : ((float []) []) = v263 |> Array.transpose                     │

00:00:57 #2428 [Verbose] > │     let v282 : uint64 = System.Convert.ToUInt64 v281.Length                  │

00:00:57 #2429 [Verbose] > │     let v283 : (float []) = Array.zeroCreate<float>                          │

00:00:57 #2430 [Verbose] > │ (System.Convert.ToInt32(v282))                                               │

00:00:57 #2431 [Verbose] > │     let v284 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2432 [Verbose] > │     while method4(v282, v284) do                                             │

00:00:57 #2433 [Verbose] > │         let v286 : uint64 = v284.l0                                          │

00:00:57 #2434 [Verbose] > │         let v287 : (float []) = v281.[int v286]                              │

00:00:57 #2435 [Verbose] > │         let v288 : float = v287 |> Array.average                             │

00:00:57 #2436 [Verbose] > │         v283.[int v286] <- v288                                              │

00:00:57 #2437 [Verbose] > │         let v289 : uint64 = v286 + 1UL                                       │

00:00:57 #2438 [Verbose] > │         v284.l0 <- v289                                                      │

00:00:57 #2439 [Verbose] > │         ()                                                                   │

00:00:57 #2440 [Verbose] > │     let v290 : (float -> int64) = int64                                      │

00:00:57 #2441 [Verbose] > │     let v291 : uint64 = System.Convert.ToUInt64 v283.Length                  │

00:00:57 #2442 [Verbose] > │     let v292 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:57 #2443 [Verbose] > │ (System.Convert.ToInt32(v291))                                               │

00:00:57 #2444 [Verbose] > │     let v293 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2445 [Verbose] > │     while method4(v291, v293) do                                             │

00:00:57 #2446 [Verbose] > │         let v295 : uint64 = v293.l0                                          │

00:00:57 #2447 [Verbose] > │         let v296 : float = v283.[int v295]                                   │

00:00:57 #2448 [Verbose] > │         let v297 : int64 = v290 v296                                         │

00:00:57 #2449 [Verbose] > │         v292.[int v295] <- v297                                              │

00:00:57 #2450 [Verbose] > │         let v298 : uint64 = v295 + 1UL                                       │

00:00:57 #2451 [Verbose] > │         v293.l0 <- v298                                                      │

00:00:57 #2452 [Verbose] > │         ()                                                                   │

00:00:57 #2453 [Verbose] > │     let v299 : uint64 = System.Convert.ToUInt64 v292.Length                  │

00:00:57 #2454 [Verbose] > │     let v300 : UH6 = UH6_1                                                   │

00:00:57 #2455 [Verbose] > │     let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3                   │

00:00:57 #2456 [Verbose] > │     while method28(v299, v301) do                                            │

00:00:57 #2457 [Verbose] > │         let v303 : uint64 = v301.l0                                          │

00:00:57 #2458 [Verbose] > │         let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2             │

00:00:57 #2459 [Verbose] > │         let v306 : int64 = v292.[int v303]                                   │

00:00:57 #2460 [Verbose] > │         let v307 : int32 = v305 + 1                                          │

00:00:57 #2461 [Verbose] > │         let v308 : uint64 = v303 + 1UL                                       │

00:00:57 #2462 [Verbose] > │         let v309 : UH6 = UH6_0(v305, v306, v304)                             │

00:00:57 #2463 [Verbose] > │         v301.l0 <- v308                                                      │

00:00:57 #2464 [Verbose] > │         v301.l1 <- v309                                                      │

00:00:57 #2465 [Verbose] > │         v301.l2 <- v307                                                      │

00:00:57 #2466 [Verbose] > │         ()                                                                   │

00:00:57 #2467 [Verbose] > │     let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2                 │

00:00:57 #2468 [Verbose] > │     let v312 : UH6 = UH6_1                                                   │

00:00:57 #2469 [Verbose] > │     let v313 : UH6 = method29(v310, v312)                                    │

00:00:57 #2470 [Verbose] > │     let v314 : (struct (int32 * int64) []) = method36(v313)                  │

00:00:57 #2471 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:57 #2472 [Verbose] > │     let v315 : string = "Average Ranking  "                                  │

00:00:57 #2473 [Verbose] > │     System.Console.WriteLine v315                                            │

00:00:57 #2474 [Verbose] > │     let v316 : (struct (int32 * int64) -> int64) = closure6()                │

00:00:57 #2475 [Verbose] > │     let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316       │

00:00:57 #2476 [Verbose] > │     let v318 : uint64 = System.Convert.ToUInt64 v317.Length                  │

00:00:57 #2477 [Verbose] > │     let v319 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2478 [Verbose] > │     while method4(v318, v319) do                                             │

00:00:57 #2479 [Verbose] > │         let v321 : uint64 = v319.l0                                          │

00:00:57 #2480 [Verbose] > │         let struct (v322 : int32, v323 : int64) = v317.[int v321]            │

00:00:57 #2481 [Verbose] > │         let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │

00:00:57 #2482 [Verbose] > │ "                                                                            │

00:00:57 #2483 [Verbose] > │         System.Console.WriteLine v324                                        │

00:00:57 #2484 [Verbose] > │         let v325 : uint64 = v321 + 1UL                                       │

00:00:57 #2485 [Verbose] > │         v319.l0 <- v325                                                      │

00:00:57 #2486 [Verbose] > │         ()                                                                   │

00:00:57 #2487 [Verbose] > │     ()                                                                       │

00:00:57 #2488 [Verbose] > │ and method0 () : unit =                                                      │

00:00:57 #2489 [Verbose] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:57 #2490 [Verbose] > │     let v1 : string = nameof v0                                              │

00:00:57 #2491 [Verbose] > │     let v2 : string = ""                                                     │

00:00:57 #2492 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:57 #2493 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:57 #2494 [Verbose] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:57 #2495 [Verbose] > │     System.Console.WriteLine v3                                              │

00:00:57 #2496 [Verbose] > │     let v4 : string = "abc"                                                  │

00:00:57 #2497 [Verbose] > │     let v5 : string = "bca cab abc"                                          │

00:00:57 #2498 [Verbose] > │     let v6 : string = "abcde"                                                │

00:00:57 #2499 [Verbose] > │     let v7 : string = "bcdea cdeab deabc eabcd abcde"                        │

00:00:57 #2500 [Verbose] > │     let v8 : string = "abcdefghi"                                            │

00:00:57 #2501 [Verbose] > │     let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde     │

00:00:57 #2502 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi"                                     │

00:00:57 #2503 [Verbose] > │     let v10 : string = "abab"                                                │

00:00:57 #2504 [Verbose] > │     let v11 : string = "baba abab baba abab"                                 │

00:00:57 #2505 [Verbose] > │     let v12 : string = "aa"                                                  │

00:00:57 #2506 [Verbose] > │     let v13 : string = "aa aa"                                               │

00:00:57 #2507 [Verbose] > │     let v14 : string = "z"                                                   │

00:00:57 #2508 [Verbose] > │     let v15 : UH0 = UH0_1                                                    │

00:00:57 #2509 [Verbose] > │     let v16 : UH0 = UH0_0(v14, v14, v15)                                     │

00:00:57 #2510 [Verbose] > │     let v17 : UH0 = UH0_0(v12, v13, v16)                                     │

00:00:57 #2511 [Verbose] > │     let v18 : UH0 = UH0_0(v10, v11, v17)                                     │

00:00:57 #2512 [Verbose] > │     let v19 : UH0 = UH0_0(v8, v9, v18)                                       │

00:00:57 #2513 [Verbose] > │     let v20 : UH0 = UH0_0(v6, v7, v19)                                       │

00:00:57 #2514 [Verbose] > │     let v21 : UH0 = UH0_0(v4, v5, v20)                                       │

00:00:57 #2515 [Verbose] > │     let v22 : (struct (string * string) []) = method1(v21)                   │

00:00:57 #2516 [Verbose] > │     let v23 : uint64 = System.Convert.ToUInt64 v22.Length                    │

00:00:57 #2517 [Verbose] > │     let v24 : (struct (string * string * string * (int64 [])) []) =          │

00:00:57 #2518 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:57 #2519 [Verbose] > │ (System.Convert.ToInt32(v23))                                                │

00:00:57 #2520 [Verbose] > │     let v25 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:57 #2521 [Verbose] > │     while method4(v23, v25) do                                               │

00:00:57 #2522 [Verbose] > │         let v27 : uint64 = v25.l0                                            │

00:00:57 #2523 [Verbose] > │         let struct (v28 : string, v29 : string) = v22.[int v27]              │

00:00:57 #2524 [Verbose] > │         let v30 : string = $"%A{v28}"                                        │

00:00:57 #2525 [Verbose] > │         System.Console.WriteLine v2                                          │

00:00:57 #2526 [Verbose] > │         let v31 : string = $"Solution: {v30}  "                              │

00:00:57 #2527 [Verbose] > │         System.Console.WriteLine v31                                         │

00:00:57 #2528 [Verbose] > │         let v32 : int32 = 0                                                  │

00:00:57 #2529 [Verbose] > │         let v33 : string = "F"                                               │

00:00:57 #2530 [Verbose] > │         let v34 : (string -> string) = closure1()                            │

00:00:57 #2531 [Verbose] > │         let v35 : int32 = 1                                                  │

00:00:57 #2532 [Verbose] > │         let v36 : string = "FA"                                              │

00:00:57 #2533 [Verbose] > │         let v37 : (string -> string) = closure2()                            │

00:00:57 #2534 [Verbose] > │         let v38 : UH3 = UH3_1                                                │

00:00:57 #2535 [Verbose] > │         let v39 : UH3 = UH3_0(v35, v36, v37, v38)                            │

00:00:57 #2536 [Verbose] > │         let v40 : UH3 = UH3_0(v32, v33, v34, v39)                            │

00:00:57 #2537 [Verbose] > │         let v41 : (struct (int32 * string * (string -> string)) []) =        │

00:00:57 #2538 [Verbose] > │ method12(v40)                                                                │

00:00:57 #2539 [Verbose] > │         let v42 : uint64 = System.Convert.ToUInt64 v41.Length                │

00:00:57 #2540 [Verbose] > │         let v43 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:00:57 #2541 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42))                              │

00:00:57 #2542 [Verbose] > │         let v44 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2543 [Verbose] > │         while method4(v42, v44) do                                           │

00:00:57 #2544 [Verbose] > │             let v46 : uint64 = v44.l0                                        │

00:00:57 #2545 [Verbose] > │             let struct (v47 : int32, v48 : string, v49 : (string -> string)) │

00:00:57 #2546 [Verbose] > │ = v41.[int v46]                                                              │

00:00:57 #2547 [Verbose] > │             let mutable result = None                                        │

00:00:57 #2548 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:00:57 #2549 [Verbose] > │             ()                                                               │

00:00:57 #2550 [Verbose] > │             #endif                                                           │

00:00:57 #2551 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:00:57 #2552 [Verbose] > │             ()                                                               │

00:00:57 #2553 [Verbose] > │             #endif                                                           │

00:00:57 #2554 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:00:57 #2555 [Verbose] > │             System.GC.Collect ()                                             │

00:00:57 #2556 [Verbose] > │             ()                                                               │

00:00:57 #2557 [Verbose] > │             #endif                                                           │

00:00:57 #2558 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:00:57 #2559 [Verbose] > │             System.GC.Collect ()                                             │

00:00:57 #2560 [Verbose] > │             ()                                                               │

00:00:57 #2561 [Verbose] > │             #endif                                                           │

00:00:57 #2562 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:00:57 #2563 [Verbose] > │             System.GC.Collect ()                                             │

00:00:57 #2564 [Verbose] > │             ()                                                               │

00:00:57 #2565 [Verbose] > │             #endif                                                           │

00:00:57 #2566 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:00:57 #2567 [Verbose] > │             result |> Option.get                                             │

00:00:57 #2568 [Verbose] > │             let v50 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:57 #2569 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:00:57 #2570 [Verbose] > │             let v51 : System.Diagnostics.Stopwatch = v50 ()                  │

00:00:57 #2571 [Verbose] > │             v51.Start ()                                                     │

00:00:57 #2572 [Verbose] > │             let v52 : int64 = v51.ElapsedMilliseconds                        │

00:00:57 #2573 [Verbose] > │             let v53 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:57 #2574 [Verbose] > │             let v54 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:57 #2575 [Verbose] > │             while method15(v54) do                                           │

00:00:57 #2576 [Verbose] > │                 let v56 : int32 = v54.l0                                     │

00:00:57 #2577 [Verbose] > │                 v53.[int v56] <- v56                                         │

00:00:57 #2578 [Verbose] > │                 let v57 : int32 = v56 + 1                                    │

00:00:57 #2579 [Verbose] > │                 v54.l0 <- v57                                                │

00:00:57 #2580 [Verbose] > │                 ()                                                           │

00:00:57 #2581 [Verbose] > │             let v58 : (int32 -> string) = closure3(v28, v49)                 │

00:00:57 #2582 [Verbose] > │             let v59 : (string []) = v53 |> Array.Parallel.map v58            │

00:00:57 #2583 [Verbose] > │             let v60 : int32 = v59.Length                                     │

00:00:57 #2584 [Verbose] > │             let v61 : int32 = v60 - 1                                        │

00:00:57 #2585 [Verbose] > │             let v62 : string = v59.[int v61]                                 │

00:00:57 #2586 [Verbose] > │             let v63 : int64 = v51.ElapsedMilliseconds                        │

00:00:57 #2587 [Verbose] > │             let v64 : int64 = v63 - v52                                      │

00:00:57 #2588 [Verbose] > │             let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64}  "  │

00:00:57 #2589 [Verbose] > │             System.Console.WriteLine v65                                     │

00:00:57 #2590 [Verbose] > │             v43.[int v46] <- struct (v62, v64)                               │

00:00:57 #2591 [Verbose] > │             let v66 : uint64 = v46 + 1UL                                     │

00:00:57 #2592 [Verbose] > │             v44.l0 <- v66                                                    │

00:00:57 #2593 [Verbose] > │             ()                                                               │

00:00:57 #2594 [Verbose] > │         let v67 : uint64 = System.Convert.ToUInt64 v43.Length                │

00:00:57 #2595 [Verbose] > │         let v68 : (string []) = Array.zeroCreate<string>                     │

00:00:57 #2596 [Verbose] > │ (System.Convert.ToInt32(v67))                                                │

00:00:57 #2597 [Verbose] > │         let v69 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2598 [Verbose] > │         while method4(v67, v69) do                                           │

00:00:57 #2599 [Verbose] > │             let v71 : uint64 = v69.l0                                        │

00:00:57 #2600 [Verbose] > │             let struct (v72 : string, v73 : int64) = v43.[int v71]           │

00:00:57 #2601 [Verbose] > │             v68.[int v71] <- v72                                             │

00:00:57 #2602 [Verbose] > │             let v74 : uint64 = v71 + 1UL                                     │

00:00:57 #2603 [Verbose] > │             v69.l0 <- v74                                                    │

00:00:57 #2604 [Verbose] > │             ()                                                               │

00:00:57 #2605 [Verbose] > │         let v75 : uint64 = System.Convert.ToUInt64 v68.Length                │

00:00:57 #2606 [Verbose] > │         let v76 : bool = v75 <= 1UL                                          │

00:00:57 #2607 [Verbose] > │         if v76 then                                                          │

00:00:57 #2608 [Verbose] > │             ()                                                               │

00:00:57 #2609 [Verbose] > │         else                                                                 │

00:00:57 #2610 [Verbose] > │             let v77 : string = v68.[int 0UL]                                 │

00:00:57 #2611 [Verbose] > │             let v78 : uint64 = 0UL                                           │

00:00:57 #2612 [Verbose] > │             let v79 : bool = method16(v77, v68, v78)                         │

00:00:57 #2613 [Verbose] > │             if v79 then                                                      │

00:00:57 #2614 [Verbose] > │                 ()                                                           │

00:00:57 #2615 [Verbose] > │             else                                                             │

00:00:57 #2616 [Verbose] > │                 let v80 : string = $"Challenge error: {v68}"                 │

00:00:57 #2617 [Verbose] > │                 failwith<unit> v80                                           │

00:00:57 #2618 [Verbose] > │         let v81 : string = $"%A{v29}"                                        │

00:00:57 #2619 [Verbose] > │         let v82 : (string []) = Array.zeroCreate<string>                     │

00:00:57 #2620 [Verbose] > │ (System.Convert.ToInt32(v67))                                                │

00:00:57 #2621 [Verbose] > │         let v83 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2622 [Verbose] > │         while method4(v67, v83) do                                           │

00:00:57 #2623 [Verbose] > │             let v85 : uint64 = v83.l0                                        │

00:00:57 #2624 [Verbose] > │             let struct (v86 : string, v87 : int64) = v43.[int v85]           │

00:00:57 #2625 [Verbose] > │             v82.[int v85] <- v86                                             │

00:00:57 #2626 [Verbose] > │             let v88 : uint64 = v85 + 1UL                                     │

00:00:57 #2627 [Verbose] > │             v83.l0 <- v88                                                    │

00:00:57 #2628 [Verbose] > │             ()                                                               │

00:00:57 #2629 [Verbose] > │         let v89 : string = v82.[int 0UL]                                     │

00:00:57 #2630 [Verbose] > │         let v90 : string = $"%A{v89}"                                        │

00:00:57 #2631 [Verbose] > │         let v91 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:57 #2632 [Verbose] > │ (System.Convert.ToInt32(v67))                                                │

00:00:57 #2633 [Verbose] > │         let v92 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:57 #2634 [Verbose] > │         while method4(v67, v92) do                                           │

00:00:57 #2635 [Verbose] > │             let v94 : uint64 = v92.l0                                        │

00:00:57 #2636 [Verbose] > │             let struct (v95 : string, v96 : int64) = v43.[int v94]           │

00:00:57 #2637 [Verbose] > │             v91.[int v94] <- v96                                             │

00:00:57 #2638 [Verbose] > │             let v97 : uint64 = v94 + 1UL                                     │

00:00:57 #2639 [Verbose] > │             v92.l0 <- v97                                                    │

00:00:57 #2640 [Verbose] > │             ()                                                               │

00:00:57 #2641 [Verbose] > │         v24.[int v27] <- struct (v81, v30, v90, v91)                         │

00:00:57 #2642 [Verbose] > │         let v98 : uint64 = v27 + 1UL                                         │

00:00:57 #2643 [Verbose] > │         v25.l0 <- v98                                                        │

00:00:57 #2644 [Verbose] > │         ()                                                                   │

00:00:57 #2645 [Verbose] > │     let v99 : uint64 = System.Convert.ToUInt64 v24.Length                    │

00:00:57 #2646 [Verbose] > │     let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:57 #2647 [Verbose] > │ US0)> (System.Convert.ToInt32(v99))                                          │

00:00:57 #2648 [Verbose] > │     let v101 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2649 [Verbose] > │     while method4(v99, v101) do                                              │

00:00:57 #2650 [Verbose] > │         let v103 : uint64 = v101.l0                                          │

00:00:57 #2651 [Verbose] > │         let struct (v104 : string, v105 : string, v106 : string, v107 :      │

00:00:57 #2652 [Verbose] > │ (int64 [])) = v24.[int v103]                                                 │

00:00:57 #2653 [Verbose] > │         let v108 : uint64 = System.Convert.ToUInt64 v107.Length              │

00:00:57 #2654 [Verbose] > │         let v109 : UH4 = UH4_1                                               │

00:00:57 #2655 [Verbose] > │         let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2              │

00:00:57 #2656 [Verbose] > │         while method17(v108, v110) do                                        │

00:00:57 #2657 [Verbose] > │             let v112 : uint64 = v110.l0                                      │

00:00:57 #2658 [Verbose] > │             let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2         │

00:00:57 #2659 [Verbose] > │             let v115 : int64 = v107.[int v112]                               │

00:00:57 #2660 [Verbose] > │             let v116 : int64 = v114 + 1L                                     │

00:00:57 #2661 [Verbose] > │             let v117 : uint64 = v112 + 1UL                                   │

00:00:57 #2662 [Verbose] > │             let v118 : UH4 = UH4_0(v114, v115, v113)                         │

00:00:57 #2663 [Verbose] > │             v110.l0 <- v117                                                  │

00:00:57 #2664 [Verbose] > │             v110.l1 <- v118                                                  │

00:00:57 #2665 [Verbose] > │             v110.l2 <- v116                                                  │

00:00:57 #2666 [Verbose] > │             ()                                                               │

00:00:57 #2667 [Verbose] > │         let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2             │

00:00:57 #2668 [Verbose] > │         let v121 : UH4 = UH4_1                                               │

00:00:57 #2669 [Verbose] > │         let v122 : UH4 = method18(v119, v121)                                │

00:00:57 #2670 [Verbose] > │         let v123 : (struct (int64 * int64) []) = method19(v122)              │

00:00:57 #2671 [Verbose] > │         let v124 : int32 = v123.Length                                       │

00:00:57 #2672 [Verbose] > │         let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:57 #2673 [Verbose] > │ (int64 * int64)> (v124)                                                      │

00:00:57 #2674 [Verbose] > │         let v126 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:57 #2675 [Verbose] > │         while method5(v124, v126) do                                         │

00:00:57 #2676 [Verbose] > │             let v128 : int32 = v126.l0                                       │

00:00:57 #2677 [Verbose] > │             let struct (v129 : int64, v130 : int64) = v123.[int v128]        │

00:00:57 #2678 [Verbose] > │             let v131 : int64 = v129 + 1L                                     │

00:00:57 #2679 [Verbose] > │             v125.[int v128] <- struct (v131, v130)                           │

00:00:57 #2680 [Verbose] > │             let v132 : int32 = v128 + 1                                      │

00:00:57 #2681 [Verbose] > │             v126.l0 <- v132                                                  │

00:00:57 #2682 [Verbose] > │             ()                                                               │

00:00:57 #2683 [Verbose] > │         let v133 : (struct (int64 * int64) -> int64) = closure4()            │

00:00:57 #2684 [Verbose] > │         let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133   │

00:00:57 #2685 [Verbose] > │         let struct (v135 : int64, v136 : int64) = v134.[int 0]               │

00:00:57 #2686 [Verbose] > │         let v137 : string = $"%A{struct (v135, v136)}"                       │

00:00:57 #2687 [Verbose] > │         let v138 : bool = v104 = v106                                        │

00:00:57 #2688 [Verbose] > │         let v143 : US0 =                                                     │

00:00:57 #2689 [Verbose] > │             if v138 then                                                     │

00:00:57 #2690 [Verbose] > │                 let v139 : System.ConsoleColor =                             │

00:00:57 #2691 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:00:57 #2692 [Verbose] > │                 US0_1(v139)                                                  │

00:00:57 #2693 [Verbose] > │             else                                                             │

00:00:57 #2694 [Verbose] > │                 let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:57 #2695 [Verbose] > │                 US0_1(v141)                                                  │

00:00:57 #2696 [Verbose] > │         let v144 : UH2 = UH2_1                                               │

00:00:57 #2697 [Verbose] > │         let v145 : UH2 = UH2_0(v137, v144)                                   │

00:00:57 #2698 [Verbose] > │         let v146 : UH2 = UH2_0(v106, v145)                                   │

00:00:57 #2699 [Verbose] > │         let v147 : UH2 = UH2_0(v104, v146)                                   │

00:00:57 #2700 [Verbose] > │         let v148 : UH2 = UH2_0(v105, v147)                                   │

00:00:57 #2701 [Verbose] > │         v100.[int v103] <- struct (v148, v143)                               │

00:00:57 #2702 [Verbose] > │         let v149 : uint64 = v103 + 1UL                                       │

00:00:57 #2703 [Verbose] > │         v101.l0 <- v149                                                      │

00:00:57 #2704 [Verbose] > │         ()                                                                   │

00:00:57 #2705 [Verbose] > │     let v150 : string = "Input"                                              │

00:00:57 #2706 [Verbose] > │     let v151 : string = "Expected"                                           │

00:00:57 #2707 [Verbose] > │     let v152 : string = "Result"                                             │

00:00:57 #2708 [Verbose] > │     let v153 : string = "Best"                                               │

00:00:57 #2709 [Verbose] > │     let v154 : UH2 = UH2_1                                                   │

00:00:57 #2710 [Verbose] > │     let v155 : UH2 = UH2_0(v153, v154)                                       │

00:00:57 #2711 [Verbose] > │     let v156 : UH2 = UH2_0(v152, v155)                                       │

00:00:57 #2712 [Verbose] > │     let v157 : UH2 = UH2_0(v151, v156)                                       │

00:00:57 #2713 [Verbose] > │     let v158 : UH2 = UH2_0(v150, v157)                                       │

00:00:57 #2714 [Verbose] > │     let v159 : US0 = US0_0                                                   │

00:00:57 #2715 [Verbose] > │     let v160 : string = "---"                                                │

00:00:57 #2716 [Verbose] > │     let v161 : UH2 = UH2_1                                                   │

00:00:57 #2717 [Verbose] > │     let v162 : UH2 = UH2_0(v160, v161)                                       │

00:00:57 #2718 [Verbose] > │     let v163 : UH2 = UH2_0(v160, v162)                                       │

00:00:57 #2719 [Verbose] > │     let v164 : UH2 = UH2_0(v160, v163)                                       │

00:00:57 #2720 [Verbose] > │     let v165 : UH2 = UH2_0(v160, v164)                                       │

00:00:57 #2721 [Verbose] > │     let v166 : US0 = US0_0                                                   │

00:00:57 #2722 [Verbose] > │     let v167 : UH5 = UH5_1                                                   │

00:00:57 #2723 [Verbose] > │     let v168 : UH5 = UH5_0(v165, v166, v167)                                 │

00:00:57 #2724 [Verbose] > │     let v169 : UH5 = UH5_0(v158, v159, v168)                                 │

00:00:57 #2725 [Verbose] > │     let v170 : (struct (UH2 * US0) []) = method22(v169)                      │

00:00:57 #2726 [Verbose] > │     let v171 : uint64 = System.Convert.ToUInt64 v170.Length                  │

00:00:57 #2727 [Verbose] > │     let v172 : uint64 = System.Convert.ToUInt64 v100.Length                  │

00:00:57 #2728 [Verbose] > │     let v173 : uint64 = v171 + v172                                          │

00:00:57 #2729 [Verbose] > │     let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:57 #2730 [Verbose] > │ US0)> (System.Convert.ToInt32(v173))                                         │

00:00:57 #2731 [Verbose] > │     let v175 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2732 [Verbose] > │     while method4(v173, v175) do                                             │

00:00:57 #2733 [Verbose] > │         let v177 : uint64 = v175.l0                                          │

00:00:57 #2734 [Verbose] > │         let v178 : bool = v177 < v171                                        │

00:00:57 #2735 [Verbose] > │         let struct (v184 : UH2, v185 : US0) =                                │

00:00:57 #2736 [Verbose] > │             if v178 then                                                     │

00:00:57 #2737 [Verbose] > │                 let struct (v179 : UH2, v180 : US0) = v170.[int v177]        │

00:00:57 #2738 [Verbose] > │                 struct (v179, v180)                                          │

00:00:57 #2739 [Verbose] > │             else                                                             │

00:00:57 #2740 [Verbose] > │                 let v181 : uint64 = v177 - v171                              │

00:00:57 #2741 [Verbose] > │                 let struct (v182 : UH2, v183 : US0) = v100.[int v181]        │

00:00:57 #2742 [Verbose] > │                 struct (v182, v183)                                          │

00:00:57 #2743 [Verbose] > │         v174.[int v177] <- struct (v184, v185)                               │

00:00:57 #2744 [Verbose] > │         let v186 : uint64 = v177 + 1UL                                       │

00:00:57 #2745 [Verbose] > │         v175.l0 <- v186                                                      │

00:00:57 #2746 [Verbose] > │         ()                                                                   │

00:00:57 #2747 [Verbose] > │     let v187 : uint64 = System.Convert.ToUInt64 v174.Length                  │

00:00:57 #2748 [Verbose] > │     let v188 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:57 #2749 [Verbose] > │ (System.Convert.ToInt32(v187))                                               │

00:00:57 #2750 [Verbose] > │     let v189 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2751 [Verbose] > │     while method4(v187, v189) do                                             │

00:00:57 #2752 [Verbose] > │         let v191 : uint64 = v189.l0                                          │

00:00:57 #2753 [Verbose] > │         let struct (v192 : UH2, v193 : US0) = v174.[int v191]                │

00:00:57 #2754 [Verbose] > │         let v194 : (string []) = method25(v192)                              │

00:00:57 #2755 [Verbose] > │         v188.[int v191] <- v194                                              │

00:00:57 #2756 [Verbose] > │         let v195 : uint64 = v191 + 1UL                                       │

00:00:57 #2757 [Verbose] > │         v189.l0 <- v195                                                      │

00:00:57 #2758 [Verbose] > │         ()                                                                   │

00:00:57 #2759 [Verbose] > │     let v196 : ((string []) []) = v188 |> Array.transpose                    │

00:00:57 #2760 [Verbose] > │     let v197 : uint64 = System.Convert.ToUInt64 v196.Length                  │

00:00:57 #2761 [Verbose] > │     let v198 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:57 #2762 [Verbose] > │ (System.Convert.ToInt32(v197))                                               │

00:00:57 #2763 [Verbose] > │     let v199 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2764 [Verbose] > │     while method4(v197, v199) do                                             │

00:00:57 #2765 [Verbose] > │         let v201 : uint64 = v199.l0                                          │

00:00:57 #2766 [Verbose] > │         let v202 : (string []) = v196.[int v201]                             │

00:00:57 #2767 [Verbose] > │         let v203 : uint64 = System.Convert.ToUInt64 v202.Length              │

00:00:57 #2768 [Verbose] > │         let v204 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:57 #2769 [Verbose] > │ (System.Convert.ToInt32(v203))                                               │

00:00:57 #2770 [Verbose] > │         let v205 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:57 #2771 [Verbose] > │         while method4(v203, v205) do                                         │

00:00:57 #2772 [Verbose] > │             let v207 : uint64 = v205.l0                                      │

00:00:57 #2773 [Verbose] > │             let v208 : string = v202.[int v207]                              │

00:00:57 #2774 [Verbose] > │             let v209 : int64 = System.Convert.ToInt64 v208.Length            │

00:00:57 #2775 [Verbose] > │             v204.[int v207] <- v209                                          │

00:00:57 #2776 [Verbose] > │             let v210 : uint64 = v207 + 1UL                                   │

00:00:57 #2777 [Verbose] > │             v205.l0 <- v210                                                  │

00:00:57 #2778 [Verbose] > │             ()                                                               │

00:00:57 #2779 [Verbose] > │         let v211 : (int64 []) = v204 |> Array.sortDescending                 │

00:00:57 #2780 [Verbose] > │         let v212 : int64 option = v211 |> Array.tryItem 0                    │

00:00:57 #2781 [Verbose] > │         let v213 : (int64 -> US1) = closure5()                               │

00:00:57 #2782 [Verbose] > │         let v214 : US1 = US1_0                                               │

00:00:57 #2783 [Verbose] > │         let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │

00:00:57 #2784 [Verbose] > │         let v218 : int64 =                                                   │

00:00:57 #2785 [Verbose] > │             match v215 with                                                  │

00:00:57 #2786 [Verbose] > │             | US1_0 -> (* None *)                                            │

00:00:57 #2787 [Verbose] > │                 0L                                                           │

00:00:57 #2788 [Verbose] > │             | US1_1(v216) -> (* Some *)                                      │

00:00:57 #2789 [Verbose] > │                 v216                                                         │

00:00:57 #2790 [Verbose] > │         v198.[int v201] <- v218                                              │

00:00:57 #2791 [Verbose] > │         let v219 : uint64 = v201 + 1UL                                       │

00:00:57 #2792 [Verbose] > │         v199.l0 <- v219                                                      │

00:00:57 #2793 [Verbose] > │         ()                                                                   │

00:00:57 #2794 [Verbose] > │     let v220 : uint64 = System.Convert.ToUInt64 v198.Length                  │

00:00:57 #2795 [Verbose] > │     let v221 : UH6 = UH6_1                                                   │

00:00:57 #2796 [Verbose] > │     let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3                   │

00:00:57 #2797 [Verbose] > │     while method28(v220, v222) do                                            │

00:00:57 #2798 [Verbose] > │         let v224 : uint64 = v222.l0                                          │

00:00:57 #2799 [Verbose] > │         let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2             │

00:00:57 #2800 [Verbose] > │         let v227 : int64 = v198.[int v224]                                   │

00:00:57 #2801 [Verbose] > │         let v228 : int32 = v226 + 1                                          │

00:00:57 #2802 [Verbose] > │         let v229 : uint64 = v224 + 1UL                                       │

00:00:57 #2803 [Verbose] > │         let v230 : UH6 = UH6_0(v226, v227, v225)                             │

00:00:57 #2804 [Verbose] > │         v222.l0 <- v229                                                      │

00:00:57 #2805 [Verbose] > │         v222.l1 <- v230                                                      │

00:00:57 #2806 [Verbose] > │         v222.l2 <- v228                                                      │

00:00:57 #2807 [Verbose] > │         ()                                                                   │

00:00:57 #2808 [Verbose] > │     let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2                 │

00:00:57 #2809 [Verbose] > │     let v233 : UH6 = UH6_1                                                   │

00:00:57 #2810 [Verbose] > │     let v234 : UH6 = method29(v231, v233)                                    │

00:00:57 #2811 [Verbose] > │     let v235 : (struct (int32 * int64) []) = method30(v234)                  │

00:00:57 #2812 [Verbose] > │     let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │

00:00:57 #2813 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:00:57 #2814 [Verbose] > │     let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:57 #2815 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187))                          │

00:00:57 #2816 [Verbose] > │     let v238 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2817 [Verbose] > │     while method4(v187, v238) do                                             │

00:00:57 #2818 [Verbose] > │         let v240 : uint64 = v238.l0                                          │

00:00:57 #2819 [Verbose] > │         let struct (v241 : UH2, v242 : US0) = v174.[int v240]                │

00:00:57 #2820 [Verbose] > │         let v243 : UH7 = UH7_1                                               │

00:00:57 #2821 [Verbose] > │         let v244 : int32 = 0                                                 │

00:00:57 #2822 [Verbose] > │         let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244)   │

00:00:57 #2823 [Verbose] > │         let v247 : UH7 = UH7_1                                               │

00:00:57 #2824 [Verbose] > │         let v248 : UH7 = method34(v245, v247)                                │

00:00:57 #2825 [Verbose] > │         let v249 : UH2 = UH2_1                                               │

00:00:57 #2826 [Verbose] > │         let v250 : UH2 = method35(v236, v248, v249)                          │

00:00:57 #2827 [Verbose] > │         let v251 : (string []) = method9(v250)                               │

00:00:57 #2828 [Verbose] > │         v237.[int v240] <- struct (v251, v242)                               │

00:00:57 #2829 [Verbose] > │         let v252 : uint64 = v240 + 1UL                                       │

00:00:57 #2830 [Verbose] > │         v238.l0 <- v252                                                      │

00:00:57 #2831 [Verbose] > │         ()                                                                   │

00:00:57 #2832 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:57 #2833 [Verbose] > │     let v253 : uint64 = System.Convert.ToUInt64 v237.Length                  │

00:00:57 #2834 [Verbose] > │     let v254 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2835 [Verbose] > │     while method4(v253, v254) do                                             │

00:00:57 #2836 [Verbose] > │         let v256 : uint64 = v254.l0                                          │

00:00:57 #2837 [Verbose] > │         let struct (v257 : (string []), v258 : US0) = v237.[int v256]        │

00:00:57 #2838 [Verbose] > │         match v258 with                                                      │

00:00:57 #2839 [Verbose] > │         | US0_0 -> (* None *)                                                │

00:00:57 #2840 [Verbose] > │             let mutable result = None                                        │

00:00:57 #2841 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:00:57 #2842 [Verbose] > │             ()                                                               │

00:00:57 #2843 [Verbose] > │             #endif                                                           │

00:00:57 #2844 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:00:57 #2845 [Verbose] > │             ()                                                               │

00:00:57 #2846 [Verbose] > │             #endif                                                           │

00:00:57 #2847 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:00:57 #2848 [Verbose] > │             System.Console.ResetColor ()                                     │

00:00:57 #2849 [Verbose] > │             ()                                                               │

00:00:57 #2850 [Verbose] > │             #endif                                                           │

00:00:57 #2851 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:00:57 #2852 [Verbose] > │             System.Console.ResetColor ()                                     │

00:00:57 #2853 [Verbose] > │             ()                                                               │

00:00:57 #2854 [Verbose] > │             #endif                                                           │

00:00:57 #2855 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:00:57 #2856 [Verbose] > │             System.Console.ResetColor ()                                     │

00:00:57 #2857 [Verbose] > │             ()                                                               │

00:00:57 #2858 [Verbose] > │             #endif                                                           │

00:00:57 #2859 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:00:57 #2860 [Verbose] > │             result |> Option.get                                             │

00:00:57 #2861 [Verbose] > │             ()                                                               │

00:00:57 #2862 [Verbose] > │         | US0_1(v259) -> (* Some *)                                          │

00:00:57 #2863 [Verbose] > │             let mutable result = None                                        │

00:00:57 #2864 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:00:57 #2865 [Verbose] > │             ()                                                               │

00:00:57 #2866 [Verbose] > │             #endif                                                           │

00:00:57 #2867 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:00:57 #2868 [Verbose] > │             ()                                                               │

00:00:57 #2869 [Verbose] > │             #endif                                                           │

00:00:57 #2870 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:00:57 #2871 [Verbose] > │             System.Console.ForegroundColor <- v259                           │

00:00:57 #2872 [Verbose] > │             ()                                                               │

00:00:57 #2873 [Verbose] > │             #endif                                                           │

00:00:57 #2874 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:00:57 #2875 [Verbose] > │             System.Console.ForegroundColor <- v259                           │

00:00:57 #2876 [Verbose] > │             ()                                                               │

00:00:57 #2877 [Verbose] > │             #endif                                                           │

00:00:57 #2878 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:00:57 #2879 [Verbose] > │             System.Console.ForegroundColor <- v259                           │

00:00:57 #2880 [Verbose] > │             ()                                                               │

00:00:57 #2881 [Verbose] > │             #endif                                                           │

00:00:57 #2882 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:00:57 #2883 [Verbose] > │             result |> Option.get                                             │

00:00:57 #2884 [Verbose] > │             ()                                                               │

00:00:57 #2885 [Verbose] > │         let v260 : string = "\t| "                                           │

00:00:57 #2886 [Verbose] > │         let v261 : string = System.String.Join (v260, v257)                  │

00:00:57 #2887 [Verbose] > │         System.Console.WriteLine v261                                        │

00:00:57 #2888 [Verbose] > │         let mutable result = None                                            │

00:00:57 #2889 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:00:57 #2890 [Verbose] > │         ()                                                                   │

00:00:57 #2891 [Verbose] > │         #endif                                                               │

00:00:57 #2892 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:00:57 #2893 [Verbose] > │         ()                                                                   │

00:00:57 #2894 [Verbose] > │         #endif                                                               │

00:00:57 #2895 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:00:57 #2896 [Verbose] > │         System.Console.ResetColor ()                                         │

00:00:57 #2897 [Verbose] > │         ()                                                                   │

00:00:57 #2898 [Verbose] > │         #endif                                                               │

00:00:57 #2899 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:00:57 #2900 [Verbose] > │         System.Console.ResetColor ()                                         │

00:00:57 #2901 [Verbose] > │         ()                                                                   │

00:00:57 #2902 [Verbose] > │         #endif                                                               │

00:00:57 #2903 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:00:57 #2904 [Verbose] > │         System.Console.ResetColor ()                                         │

00:00:57 #2905 [Verbose] > │         ()                                                                   │

00:00:57 #2906 [Verbose] > │         #endif                                                               │

00:00:57 #2907 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:00:57 #2908 [Verbose] > │         result |> Option.get                                                 │

00:00:57 #2909 [Verbose] > │         let v262 : uint64 = v256 + 1UL                                       │

00:00:57 #2910 [Verbose] > │         v254.l0 <- v262                                                      │

00:00:57 #2911 [Verbose] > │         ()                                                                   │

00:00:57 #2912 [Verbose] > │     let v263 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:57 #2913 [Verbose] > │ (System.Convert.ToInt32(v99))                                                │

00:00:57 #2914 [Verbose] > │     let v264 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2915 [Verbose] > │     while method4(v99, v264) do                                              │

00:00:57 #2916 [Verbose] > │         let v266 : uint64 = v264.l0                                          │

00:00:57 #2917 [Verbose] > │         let struct (v267 : string, v268 : string, v269 : string, v270 :      │

00:00:57 #2918 [Verbose] > │ (int64 [])) = v24.[int v266]                                                 │

00:00:57 #2919 [Verbose] > │         let v271 : (int64 -> float) = float                                  │

00:00:57 #2920 [Verbose] > │         let v272 : uint64 = System.Convert.ToUInt64 v270.Length              │

00:00:57 #2921 [Verbose] > │         let v273 : (float []) = Array.zeroCreate<float>                      │

00:00:57 #2922 [Verbose] > │ (System.Convert.ToInt32(v272))                                               │

00:00:57 #2923 [Verbose] > │         let v274 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:57 #2924 [Verbose] > │         while method4(v272, v274) do                                         │

00:00:57 #2925 [Verbose] > │             let v276 : uint64 = v274.l0                                      │

00:00:57 #2926 [Verbose] > │             let v277 : int64 = v270.[int v276]                               │

00:00:57 #2927 [Verbose] > │             let v278 : float = v271 v277                                     │

00:00:57 #2928 [Verbose] > │             v273.[int v276] <- v278                                          │

00:00:57 #2929 [Verbose] > │             let v279 : uint64 = v276 + 1UL                                   │

00:00:57 #2930 [Verbose] > │             v274.l0 <- v279                                                  │

00:00:57 #2931 [Verbose] > │             ()                                                               │

00:00:57 #2932 [Verbose] > │         v263.[int v266] <- v273                                              │

00:00:57 #2933 [Verbose] > │         let v280 : uint64 = v266 + 1UL                                       │

00:00:57 #2934 [Verbose] > │         v264.l0 <- v280                                                      │

00:00:57 #2935 [Verbose] > │         ()                                                                   │

00:00:57 #2936 [Verbose] > │     let v281 : ((float []) []) = v263 |> Array.transpose                     │

00:00:57 #2937 [Verbose] > │     let v282 : uint64 = System.Convert.ToUInt64 v281.Length                  │

00:00:57 #2938 [Verbose] > │     let v283 : (float []) = Array.zeroCreate<float>                          │

00:00:57 #2939 [Verbose] > │ (System.Convert.ToInt32(v282))                                               │

00:00:57 #2940 [Verbose] > │     let v284 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2941 [Verbose] > │     while method4(v282, v284) do                                             │

00:00:57 #2942 [Verbose] > │         let v286 : uint64 = v284.l0                                          │

00:00:57 #2943 [Verbose] > │         let v287 : (float []) = v281.[int v286]                              │

00:00:57 #2944 [Verbose] > │         let v288 : float = v287 |> Array.average                             │

00:00:57 #2945 [Verbose] > │         v283.[int v286] <- v288                                              │

00:00:57 #2946 [Verbose] > │         let v289 : uint64 = v286 + 1UL                                       │

00:00:57 #2947 [Verbose] > │         v284.l0 <- v289                                                      │

00:00:57 #2948 [Verbose] > │         ()                                                                   │

00:00:57 #2949 [Verbose] > │     let v290 : (float -> int64) = int64                                      │

00:00:57 #2950 [Verbose] > │     let v291 : uint64 = System.Convert.ToUInt64 v283.Length                  │

00:00:57 #2951 [Verbose] > │     let v292 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:57 #2952 [Verbose] > │ (System.Convert.ToInt32(v291))                                               │

00:00:57 #2953 [Verbose] > │     let v293 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2954 [Verbose] > │     while method4(v291, v293) do                                             │

00:00:57 #2955 [Verbose] > │         let v295 : uint64 = v293.l0                                          │

00:00:57 #2956 [Verbose] > │         let v296 : float = v283.[int v295]                                   │

00:00:57 #2957 [Verbose] > │         let v297 : int64 = v290 v296                                         │

00:00:57 #2958 [Verbose] > │         v292.[int v295] <- v297                                              │

00:00:57 #2959 [Verbose] > │         let v298 : uint64 = v295 + 1UL                                       │

00:00:57 #2960 [Verbose] > │         v293.l0 <- v298                                                      │

00:00:57 #2961 [Verbose] > │         ()                                                                   │

00:00:57 #2962 [Verbose] > │     let v299 : uint64 = System.Convert.ToUInt64 v292.Length                  │

00:00:57 #2963 [Verbose] > │     let v300 : UH6 = UH6_1                                                   │

00:00:57 #2964 [Verbose] > │     let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3                   │

00:00:57 #2965 [Verbose] > │     while method28(v299, v301) do                                            │

00:00:57 #2966 [Verbose] > │         let v303 : uint64 = v301.l0                                          │

00:00:57 #2967 [Verbose] > │         let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2             │

00:00:57 #2968 [Verbose] > │         let v306 : int64 = v292.[int v303]                                   │

00:00:57 #2969 [Verbose] > │         let v307 : int32 = v305 + 1                                          │

00:00:57 #2970 [Verbose] > │         let v308 : uint64 = v303 + 1UL                                       │

00:00:57 #2971 [Verbose] > │         let v309 : UH6 = UH6_0(v305, v306, v304)                             │

00:00:57 #2972 [Verbose] > │         v301.l0 <- v308                                                      │

00:00:57 #2973 [Verbose] > │         v301.l1 <- v309                                                      │

00:00:57 #2974 [Verbose] > │         v301.l2 <- v307                                                      │

00:00:57 #2975 [Verbose] > │         ()                                                                   │

00:00:57 #2976 [Verbose] > │     let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2                 │

00:00:57 #2977 [Verbose] > │     let v312 : UH6 = UH6_1                                                   │

00:00:57 #2978 [Verbose] > │     let v313 : UH6 = method29(v310, v312)                                    │

00:00:57 #2979 [Verbose] > │     let v314 : (struct (int32 * int64) []) = method36(v313)                  │

00:00:57 #2980 [Verbose] > │     System.Console.WriteLine v2                                              │

00:00:57 #2981 [Verbose] > │     let v315 : string = "Average Ranking  "                                  │

00:00:57 #2982 [Verbose] > │     System.Console.WriteLine v315                                            │

00:00:57 #2983 [Verbose] > │     let v316 : (struct (int32 * int64) -> int64) = closure6()                │

00:00:57 #2984 [Verbose] > │     let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316       │

00:00:57 #2985 [Verbose] > │     let v318 : uint64 = System.Convert.ToUInt64 v317.Length                  │

00:00:57 #2986 [Verbose] > │     let v319 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:57 #2987 [Verbose] > │     while method4(v318, v319) do                                             │

00:00:57 #2988 [Verbose] > │         let v321 : uint64 = v319.l0                                          │

00:00:57 #2989 [Verbose] > │         let struct (v322 : int32, v323 : int64) = v317.[int v321]            │

00:00:57 #2990 [Verbose] > │         let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │

00:00:57 #2991 [Verbose] > │ "                                                                            │

00:00:57 #2992 [Verbose] > │         System.Console.WriteLine v324                                        │

00:00:57 #2993 [Verbose] > │         let v325 : uint64 = v321 + 1UL                                       │

00:00:57 #2994 [Verbose] > │         v319.l0 <- v325                                                      │

00:00:57 #2995 [Verbose] > │         ()                                                                   │

00:00:57 #2996 [Verbose] > │     ()                                                                       │

00:00:57 #2997 [Verbose] > │ method0()                                                                    │

00:00:57 #2998 [Verbose] > │                                                                              │

00:00:57 #2999 [Verbose] > │                                                                              │

00:00:57 #3000 [Verbose] > │                                                                              │

00:00:57 #3001 [Verbose] > │ Test: v0                                                                     │

00:00:57 #3002 [Verbose] > │                                                                              │

00:00:57 #3003 [Verbose] > │ Solution: "abc"                                                              │

00:00:57 #3004 [Verbose] > │ Test case 1. F. Time: 1084                                                   │

00:00:57 #3005 [Verbose] > │ Test case 2. FA. Time: 1452                                                  │

00:00:57 #3006 [Verbose] > │                                                                              │

00:00:57 #3007 [Verbose] > │ Solution: "abcde"                                                            │

00:00:57 #3008 [Verbose] > │ Test case 1. F. Time: 1547                                                   │

00:00:57 #3009 [Verbose] > │ Test case 2. FA. Time: 2387                                                  │

00:00:57 #3010 [Verbose] > │                                                                              │

00:00:57 #3011 [Verbose] > │ Solution: "abcdefghi"                                                        │

00:00:57 #3012 [Verbose] > │ Test case 1. F. Time: 2224                                                   │

00:00:57 #3013 [Verbose] > │ Test case 2. FA. Time: 2531                                                  │

00:00:57 #3014 [Verbose] > │                                                                              │

00:00:57 #3015 [Verbose] > │ Solution: "abab"                                                             │

00:00:57 #3016 [Verbose] > │ Test case 1. F. Time: 1083                                                   │

00:00:57 #3017 [Verbose] > │ Test case 2. FA. Time: 1298                                                  │

00:00:57 #3018 [Verbose] > │                                                                              │

00:00:57 #3019 [Verbose] > │ Solution: "aa"                                                               │

00:00:57 #3020 [Verbose] > │ Test case 1. F. Time: 773                                                    │

00:00:57 #3021 [Verbose] > │ Test case 2. FA. Time: 812                                                   │

00:00:57 #3022 [Verbose] > │                                                                              │

00:00:57 #3023 [Verbose] > │ Solution: "z"                                                                │

00:00:57 #3024 [Verbose] > │ Test case 1. F. Time: 319                                                    │

00:00:57 #3025 [Verbose] > │ Test case 2. FA. Time: 188                                                   │

00:00:57 #3026 [Verbose] > │                                                                              │

00:00:57 #3027 [Verbose] > │ Input      	| Expected                                                         │

00:00:57 #3028 [Verbose] > │                                                                              │

00:00:57 #3029 [Verbose] > │ | Result                                                                     │

00:00:57 #3030 [Verbose] > │                                                                              │

00:00:57 #3031 [Verbose] > │ | Best                                                                       │

00:00:57 #3032 [Verbose] > │ ---        	| ---                                                              │

00:00:57 #3033 [Verbose] > │                                                                              │

00:00:57 #3034 [Verbose] > │ | ---                                                                        │

00:00:57 #3035 [Verbose] > │                                                                              │

00:00:57 #3036 [Verbose] > │ | ---                                                                        │

00:00:57 #3037 [Verbose] > │ "abc"      	| "bca cab abc"                                                    │

00:00:57 #3038 [Verbose] > │                                                                              │

00:00:57 #3039 [Verbose] > │ | "bca cab abc"                                                              │

00:00:57 #3040 [Verbose] > │                                                                              │

00:00:57 #3041 [Verbose] > │ | struct (1L, 1084L)                                                         │

00:00:57 #3042 [Verbose] > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │

00:00:57 #3043 [Verbose] > │ | "bcdea cdeab deabc eabcd abcde"                                            │

00:00:57 #3044 [Verbose] > │ | struct (1L, 1547L)                                                         │

00:00:57 #3045 [Verbose] > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │

00:00:57 #3046 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │

00:00:57 #3047 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| struct (1L, 2224L)        │

00:00:57 #3048 [Verbose] > │ "abab"     	| "baba abab baba abab"                                            │

00:00:57 #3049 [Verbose] > │ | "baba abab baba abab"                                                      │

00:00:57 #3050 [Verbose] > │ | struct (1L, 1083L)                                                         │

00:00:57 #3051 [Verbose] > │ "aa"       	| "aa aa"                                                          │

00:00:57 #3052 [Verbose] > │                                                                              │

00:00:57 #3053 [Verbose] > │ | "aa aa"                                                                    │

00:00:57 #3054 [Verbose] > │                                                                              │

00:00:57 #3055 [Verbose] > │ | struct (1L, 773L)                                                          │

00:00:57 #3056 [Verbose] > │ "z"        	| "z"                                                              │

00:00:57 #3057 [Verbose] > │                                                                              │

00:00:57 #3058 [Verbose] > │ | "z"                                                                        │

00:00:57 #3059 [Verbose] > │                                                                              │

00:00:57 #3060 [Verbose] > │ | struct (2L, 188L)                                                          │

00:00:57 #3061 [Verbose] > │                                                                              │

00:00:57 #3062 [Verbose] > │ Average Ranking                                                              │

00:00:57 #3063 [Verbose] > │ Test case 1. Average Time: 1171L                                             │

00:00:57 #3064 [Verbose] > │ Test case 2. Average Time: 1444L                                             │

00:00:57 #3065 [Verbose] > │                                                                              │

00:00:57 #3066 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #3067 [Verbose] >

00:00:57 #3068 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #3069 [Verbose] > // // test

00:00:57 #3070 [Verbose] > // // rust=

00:00:57 #3071 [Verbose] > // // print_code=false

00:00:57 #3072 [Verbose] >

00:00:57 #3073 [Verbose] > // rotate_strings_tests ()

00:00:57 #3074 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0147-1200-0058-06c67a58b3cf\main.spi

00:00:57 #3075 [Verbose] >

00:00:57 #3076 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:57 #3077 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:57 #3078 [Verbose] > │ ## binary_search_tests                                                       │

00:00:57 #3079 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #3080 [Verbose] >

00:00:57 #3081 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #3082 [Verbose] > // // test

00:00:57 #3083 [Verbose] > // // timeout=90000

00:00:57 #3084 [Verbose] > // // print_code=true

00:00:57 #3085 [Verbose] >

00:00:57 #3086 [Verbose] > inl binary_search_semi_open_1 arr target left right =

00:00:57 #3087 [Verbose] >     inl rec body left right =

00:00:57 #3088 [Verbose] >         if left >= right

00:00:57 #3089 [Verbose] >         then None

00:00:57 #3090 [Verbose] >         else

00:00:57 #3091 [Verbose] >             inl mid = (left + right) / 2

00:00:57 #3092 [Verbose] >             inl item = index arr mid

00:00:57 #3093 [Verbose] >             if item = target

00:00:57 #3094 [Verbose] >             then Some mid

00:00:57 #3095 [Verbose] >             elif item < target

00:00:57 #3096 [Verbose] >             then loop (mid + 1) right

00:00:57 #3097 [Verbose] >             else loop left mid

00:00:57 #3098 [Verbose] >     and inl loop left right =

00:00:57 #3099 [Verbose] >         if var_is right |> not

00:00:57 #3100 [Verbose] >         then body left right

00:00:57 #3101 [Verbose] >         else

00:00:57 #3102 [Verbose] >             inl left = dyn left

00:00:57 #3103 [Verbose] >             join body left right

00:00:57 #3104 [Verbose] >     loop left right

00:00:57 #3105 [Verbose] >

00:00:57 #3106 [Verbose] > inl binary_search_closed_1 arr target left right =

00:00:57 #3107 [Verbose] >     inl rec body left right =

00:00:57 #3108 [Verbose] >         if left > right

00:00:57 #3109 [Verbose] >         then None

00:00:57 #3110 [Verbose] >         else

00:00:57 #3111 [Verbose] >             inl mid = (left + right) / 2

00:00:57 #3112 [Verbose] >             inl item = index arr mid

00:00:57 #3113 [Verbose] >             if item = target

00:00:57 #3114 [Verbose] >             then Some mid

00:00:57 #3115 [Verbose] >             elif item < target

00:00:57 #3116 [Verbose] >             then loop (mid + 1) right

00:00:57 #3117 [Verbose] >             else loop left (mid - 1)

00:00:57 #3118 [Verbose] >     and inl loop left right =

00:00:57 #3119 [Verbose] >         if var_is right |> not

00:00:57 #3120 [Verbose] >         then body left right

00:00:57 #3121 [Verbose] >         else

00:00:57 #3122 [Verbose] >             inl left = dyn left

00:00:57 #3123 [Verbose] >             join body left right

00:00:57 #3124 [Verbose] >     loop left right

00:00:57 #3125 [Verbose] >

00:00:57 #3126 [Verbose] > inl binary_search_semi_open_2 arr target left right =

00:00:57 #3127 [Verbose] >     let rec body left right =

00:00:57 #3128 [Verbose] >         if left >= right

00:00:57 #3129 [Verbose] >         then None

00:00:57 #3130 [Verbose] >         else

00:00:57 #3131 [Verbose] >             inl mid = (left + right) / 2

00:00:57 #3132 [Verbose] >             inl item = index arr mid

00:00:57 #3133 [Verbose] >             if item = target

00:00:57 #3134 [Verbose] >             then Some mid

00:00:57 #3135 [Verbose] >             elif item < target

00:00:57 #3136 [Verbose] >             then loop (mid + 1) right

00:00:57 #3137 [Verbose] >             else loop left mid

00:00:57 #3138 [Verbose] >     and inl loop left right = body left right

00:00:57 #3139 [Verbose] >     loop left right

00:00:57 #3140 [Verbose] >

00:00:57 #3141 [Verbose] > inl binary_search_closed_2 arr target left right =

00:00:57 #3142 [Verbose] >     let rec body left right =

00:00:57 #3143 [Verbose] >         if left > right

00:00:57 #3144 [Verbose] >         then None

00:00:57 #3145 [Verbose] >         else

00:00:57 #3146 [Verbose] >             inl mid = (left + right) / 2

00:00:57 #3147 [Verbose] >             inl item = index arr mid

00:00:57 #3148 [Verbose] >             if item = target

00:00:57 #3149 [Verbose] >             then Some mid

00:00:57 #3150 [Verbose] >             elif item < target

00:00:57 #3151 [Verbose] >             then loop (mid + 1) right

00:00:57 #3152 [Verbose] >             else loop left (mid - 1)

00:00:57 #3153 [Verbose] >     and inl loop left right = body left right

00:00:57 #3154 [Verbose] >     loop left right

00:00:57 #3155 [Verbose] >

00:00:57 #3156 [Verbose] > inl get_solutions () =

00:00:57 #3157 [Verbose] >     [[

00:00:57 #3158 [Verbose] >         "semi_open_1",

00:00:57 #3159 [Verbose] >         fun (arr, (target, len)) =>

00:00:57 #3160 [Verbose] >             binary_search_semi_open_1 arr target 0 len

00:00:57 #3161 [Verbose] >

00:00:57 #3162 [Verbose] >         "closed_1",

00:00:57 #3163 [Verbose] >         fun (arr, (target, len)) =>

00:00:57 #3164 [Verbose] >             binary_search_closed_1 arr target 0 (len - 1)

00:00:57 #3165 [Verbose] >

00:00:57 #3166 [Verbose] >         "semi_open_2",

00:00:57 #3167 [Verbose] >         fun (arr, (target, len)) =>

00:00:57 #3168 [Verbose] >             binary_search_semi_open_2 arr target 0 len

00:00:57 #3169 [Verbose] >

00:00:57 #3170 [Verbose] >         "closed_2",

00:00:57 #3171 [Verbose] >         fun (arr, (target, len)) =>

00:00:57 #3172 [Verbose] >             binary_search_closed_2 arr target 0 (len - 1)

00:00:57 #3173 [Verbose] >     ]]

00:00:57 #3174 [Verbose] >

00:00:57 #3175 [Verbose] > inl rec binary_search_tests () =

00:00:57 #3176 [Verbose] >     inl arr_with_len target len arr =

00:00:57 #3177 [Verbose] >         arr, (target, (len |> optionm'.default_with fun () => length arr))

00:00:57 #3178 [Verbose] >

00:00:57 #3179 [Verbose] >     inl test_cases = [[

00:00:57 #3180 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)

00:00:57 #3181 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)

00:00:57 #3182 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)

00:00:57 #3183 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None

00:00:57 #3184 [Verbose] >         ((am'.init_series 1i32 100 1) |> arr_with_len 60 None), (Some 59)

00:00:57 #3185 [Verbose] >

00:00:57 #3186 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some

00:00:57 #3187 [Verbose] > 3i32)

00:00:57 #3188 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some

00:00:57 #3189 [Verbose] > 0i32)

00:00:57 #3190 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some

00:00:57 #3191 [Verbose] > 6i32)

00:00:57 #3192 [Verbose] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None

00:00:57 #3193 [Verbose] >         ((am'.init_series 1i32 100 1) |> arr_with_len 60 (Some 100)), (Some 59)

00:00:57 #3194 [Verbose] >     ]]

00:00:57 #3195 [Verbose] >

00:00:57 #3196 [Verbose] >     inl solutions = get_solutions ()

00:00:57 #3197 [Verbose] >

00:00:57 #3198 [Verbose] >     // inl is_fast () = true

00:00:57 #3199 [Verbose] >

00:00:57 #3200 [Verbose] >     inl count =

00:00:57 #3201 [Verbose] >         if is_fast ()

00:00:57 #3202 [Verbose] >         then 1000i32

00:00:57 #3203 [Verbose] >         else 8000000i32

00:00:57 #3204 [Verbose] >

00:00:57 #3205 [Verbose] >     run_all (nameof binary_search_tests) count solutions test_cases

00:00:57 #3206 [Verbose] >     |> sort_result_list

00:00:57 #3207 [Verbose] >

00:00:57 #3208 [Verbose] >

00:00:57 #3209 [Verbose] > let main () =

00:00:57 #3210 [Verbose] >     binary_search_tests ()

00:00:57 #3211 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0147-1229-2910-2e8c8f62c1d2\main.spi

00:01:30 #3212 [Verbose] >

00:01:30 #3213 [Verbose] > ╭─[ 32.64s - stdout ]──────────────────────────────────────────────────────────╮

00:01:30 #3214 [Verbose] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:30 #3215 [Verbose] > │ and [<Struct>] US0 =                                                         │

00:01:30 #3216 [Verbose] > │     | US0_0                                                                  │

00:01:30 #3217 [Verbose] > │     | US0_1 of f1_0 : int32                                                  │

00:01:30 #3218 [Verbose] > │ and UH0 =                                                                    │

00:01:30 #3219 [Verbose] > │     | UH0_0 of (int32 []) * int32 * int32 * US0 * UH0                        │

00:01:30 #3220 [Verbose] > │     | UH0_1                                                                  │

00:01:30 #3221 [Verbose] > │ and Mut1 = {mutable l0 : uint64}                                             │

00:01:30 #3222 [Verbose] > │ and UH1 =                                                                    │

00:01:30 #3223 [Verbose] > │     | UH1_0 of int32 * string * (struct ((int32 []) * int32 * int32) -> US0) │

00:01:30 #3224 [Verbose] > │ * UH1                                                                        │

00:01:30 #3225 [Verbose] > │     | UH1_1                                                                  │

00:01:30 #3226 [Verbose] > │ and UH2 =                                                                    │

00:01:30 #3227 [Verbose] > │     | UH2_0 of string * UH2                                                  │

00:01:30 #3228 [Verbose] > │     | UH2_1                                                                  │

00:01:30 #3229 [Verbose] > │ and [<Struct>] US1 =                                                         │

00:01:30 #3230 [Verbose] > │     | US1_0                                                                  │

00:01:30 #3231 [Verbose] > │     | US1_1 of f1_0 : System.ConsoleColor                                    │

00:01:30 #3232 [Verbose] > │ and UH3 =                                                                    │

00:01:30 #3233 [Verbose] > │     | UH3_0 of int64 * int64 * UH3                                           │

00:01:30 #3234 [Verbose] > │     | UH3_1                                                                  │

00:01:30 #3235 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64}       │

00:01:30 #3236 [Verbose] > │ and UH4 =                                                                    │

00:01:30 #3237 [Verbose] > │     | UH4_0 of UH2 * US1 * UH4                                               │

00:01:30 #3238 [Verbose] > │     | UH4_1                                                                  │

00:01:30 #3239 [Verbose] > │ and [<Struct>] US2 =                                                         │

00:01:30 #3240 [Verbose] > │     | US2_0                                                                  │

00:01:30 #3241 [Verbose] > │     | US2_1 of f1_0 : int64                                                  │

00:01:30 #3242 [Verbose] > │ and UH5 =                                                                    │

00:01:30 #3243 [Verbose] > │     | UH5_0 of int32 * int64 * UH5                                           │

00:01:30 #3244 [Verbose] > │     | UH5_1                                                                  │

00:01:30 #3245 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32}       │

00:01:30 #3246 [Verbose] > │ and UH6 =                                                                    │

00:01:30 #3247 [Verbose] > │     | UH6_0 of int32 * string * UH6                                          │

00:01:30 #3248 [Verbose] > │     | UH6_1                                                                  │

00:01:30 #3249 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) =                             │

00:01:30 #3250 [Verbose] > │     v0                                                                       │

00:01:30 #3251 [Verbose] > │ and method2 (v0 : Mut0) : bool =                                             │

00:01:30 #3252 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:30 #3253 [Verbose] > │     let v2 : bool = v1 < 100                                                 │

00:01:30 #3254 [Verbose] > │     v2                                                                       │

00:01:30 #3255 [Verbose] > │ and method4 (v0 : UH0, v1 : uint64) : uint64 =                               │

00:01:30 #3256 [Verbose] > │     match v0 with                                                            │

00:01:30 #3257 [Verbose] > │     | UH0_0(v2, v3, v4, v5, v6) -> (* Cons *)                                │

00:01:30 #3258 [Verbose] > │         let v7 : uint64 = v1 + 1UL                                           │

00:01:30 #3259 [Verbose] > │         method4(v6, v7)                                                      │

00:01:30 #3260 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:30 #3261 [Verbose] > │         v1                                                                   │

00:01:30 #3262 [Verbose] > │ and method5 (v0 : (struct ((int32 []) * int32 * int32 * US0) []), v1 : UH0,  │

00:01:30 #3263 [Verbose] > │ v2 : uint64) : uint64 =                                                      │

00:01:30 #3264 [Verbose] > │     match v1 with                                                            │

00:01:30 #3265 [Verbose] > │     | UH0_0(v3, v4, v5, v6, v7) -> (* Cons *)                                │

00:01:30 #3266 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5, v6)                               │

00:01:30 #3267 [Verbose] > │         let v8 : uint64 = v2 + 1UL                                           │

00:01:30 #3268 [Verbose] > │         method5(v0, v7, v8)                                                  │

00:01:30 #3269 [Verbose] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:30 #3270 [Verbose] > │         v2                                                                   │

00:01:30 #3271 [Verbose] > │ and method3 (v0 : UH0) : (struct ((int32 []) * int32 * int32 * US0) []) =    │

00:01:30 #3272 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:01:30 #3273 [Verbose] > │     let v2 : uint64 = method4(v0, v1)                                        │

00:01:30 #3274 [Verbose] > │     let v3 : (struct ((int32 []) * int32 * int32 * US0) []) =                │

00:01:30 #3275 [Verbose] > │ Array.zeroCreate<struct ((int32 []) * int32 * int32 * US0)>                  │

00:01:30 #3276 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:01:30 #3277 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:01:30 #3278 [Verbose] > │     let v5 : uint64 = method5(v3, v0, v4)                                    │

00:01:30 #3279 [Verbose] > │     v3                                                                       │

00:01:30 #3280 [Verbose] > │ and method6 (v0 : uint64, v1 : Mut1) : bool =                                │

00:01:30 #3281 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:01:30 #3282 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:30 #3283 [Verbose] > │     v3                                                                       │

00:01:30 #3284 [Verbose] > │ and method7 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:30 #3285 [Verbose] > │     let v4 : bool = v3 >= v2                                                 │

00:01:30 #3286 [Verbose] > │     if v4 then                                                               │

00:01:30 #3287 [Verbose] > │         US0_0                                                                │

00:01:30 #3288 [Verbose] > │     else                                                                     │

00:01:30 #3289 [Verbose] > │         let v6 : int32 = v3 + v2                                             │

00:01:30 #3290 [Verbose] > │         let v7 : int32 = v6 / 2                                              │

00:01:30 #3291 [Verbose] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:30 #3292 [Verbose] > │         let v9 : bool = v8 = v1                                              │

00:01:30 #3293 [Verbose] > │         if v9 then                                                           │

00:01:30 #3294 [Verbose] > │             US0_1(v7)                                                        │

00:01:30 #3295 [Verbose] > │         else                                                                 │

00:01:30 #3296 [Verbose] > │             let v11 : bool = v8 < v1                                         │

00:01:30 #3297 [Verbose] > │             if v11 then                                                      │

00:01:30 #3298 [Verbose] > │                 let v12 : int32 = v7 + 1                                     │

00:01:30 #3299 [Verbose] > │                 method7(v0, v1, v2, v12)                                     │

00:01:30 #3300 [Verbose] > │             else                                                             │

00:01:30 #3301 [Verbose] > │                 method7(v0, v1, v7, v3)                                      │

00:01:30 #3302 [Verbose] > │ and closure1 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:30 #3303 [Verbose] > │     let v3 : int32 = 0                                                       │

00:01:30 #3304 [Verbose] > │     method7(v0, v1, v2, v3)                                                  │

00:01:30 #3305 [Verbose] > │ and method8 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:30 #3306 [Verbose] > │     let v4 : bool = v3 > v2                                                  │

00:01:30 #3307 [Verbose] > │     if v4 then                                                               │

00:01:30 #3308 [Verbose] > │         US0_0                                                                │

00:01:30 #3309 [Verbose] > │     else                                                                     │

00:01:30 #3310 [Verbose] > │         let v6 : int32 = v3 + v2                                             │

00:01:30 #3311 [Verbose] > │         let v7 : int32 = v6 / 2                                              │

00:01:30 #3312 [Verbose] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:30 #3313 [Verbose] > │         let v9 : bool = v8 = v1                                              │

00:01:30 #3314 [Verbose] > │         if v9 then                                                           │

00:01:30 #3315 [Verbose] > │             US0_1(v7)                                                        │

00:01:30 #3316 [Verbose] > │         else                                                                 │

00:01:30 #3317 [Verbose] > │             let v11 : bool = v8 < v1                                         │

00:01:30 #3318 [Verbose] > │             if v11 then                                                      │

00:01:30 #3319 [Verbose] > │                 let v12 : int32 = v7 + 1                                     │

00:01:30 #3320 [Verbose] > │                 method8(v0, v1, v2, v12)                                     │

00:01:30 #3321 [Verbose] > │             else                                                             │

00:01:30 #3322 [Verbose] > │                 let v14 : int32 = v7 - 1                                     │

00:01:30 #3323 [Verbose] > │                 method8(v0, v1, v14, v3)                                     │

00:01:30 #3324 [Verbose] > │ and closure2 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:30 #3325 [Verbose] > │     let v3 : int32 = v2 - 1                                                  │

00:01:30 #3326 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:30 #3327 [Verbose] > │     method8(v0, v1, v3, v4)                                                  │

00:01:30 #3328 [Verbose] > │ and method9 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:30 #3329 [Verbose] > │     let v4 : bool = v2 >= v3                                                 │

00:01:30 #3330 [Verbose] > │     if v4 then                                                               │

00:01:30 #3331 [Verbose] > │         US0_0                                                                │

00:01:30 #3332 [Verbose] > │     else                                                                     │

00:01:30 #3333 [Verbose] > │         let v6 : int32 = v2 + v3                                             │

00:01:30 #3334 [Verbose] > │         let v7 : int32 = v6 / 2                                              │

00:01:30 #3335 [Verbose] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:30 #3336 [Verbose] > │         let v9 : bool = v8 = v1                                              │

00:01:30 #3337 [Verbose] > │         if v9 then                                                           │

00:01:30 #3338 [Verbose] > │             US0_1(v7)                                                        │

00:01:30 #3339 [Verbose] > │         else                                                                 │

00:01:30 #3340 [Verbose] > │             let v11 : bool = v8 < v1                                         │

00:01:30 #3341 [Verbose] > │             if v11 then                                                      │

00:01:30 #3342 [Verbose] > │                 let v12 : int32 = v7 + 1                                     │

00:01:30 #3343 [Verbose] > │                 method9(v0, v1, v12, v3)                                     │

00:01:30 #3344 [Verbose] > │             else                                                             │

00:01:30 #3345 [Verbose] > │                 method9(v0, v1, v2, v7)                                      │

00:01:30 #3346 [Verbose] > │ and closure3 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:30 #3347 [Verbose] > │     let v3 : int32 = 0                                                       │

00:01:30 #3348 [Verbose] > │     method9(v0, v1, v3, v2)                                                  │

00:01:30 #3349 [Verbose] > │ and method10 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =   │

00:01:30 #3350 [Verbose] > │     let v4 : bool = v2 > v3                                                  │

00:01:30 #3351 [Verbose] > │     if v4 then                                                               │

00:01:30 #3352 [Verbose] > │         US0_0                                                                │

00:01:30 #3353 [Verbose] > │     else                                                                     │

00:01:30 #3354 [Verbose] > │         let v6 : int32 = v2 + v3                                             │

00:01:30 #3355 [Verbose] > │         let v7 : int32 = v6 / 2                                              │

00:01:30 #3356 [Verbose] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:30 #3357 [Verbose] > │         let v9 : bool = v8 = v1                                              │

00:01:30 #3358 [Verbose] > │         if v9 then                                                           │

00:01:30 #3359 [Verbose] > │             US0_1(v7)                                                        │

00:01:30 #3360 [Verbose] > │         else                                                                 │

00:01:30 #3361 [Verbose] > │             let v11 : bool = v8 < v1                                         │

00:01:30 #3362 [Verbose] > │             if v11 then                                                      │

00:01:30 #3363 [Verbose] > │                 let v12 : int32 = v7 + 1                                     │

00:01:30 #3364 [Verbose] > │                 method10(v0, v1, v12, v3)                                    │

00:01:30 #3365 [Verbose] > │             else                                                             │

00:01:30 #3366 [Verbose] > │                 let v14 : int32 = v7 - 1                                     │

00:01:30 #3367 [Verbose] > │                 method10(v0, v1, v2, v14)                                    │

00:01:30 #3368 [Verbose] > │ and closure4 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:30 #3369 [Verbose] > │     let v3 : int32 = v2 - 1                                                  │

00:01:30 #3370 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:30 #3371 [Verbose] > │     method10(v0, v1, v4, v3)                                                 │

00:01:30 #3372 [Verbose] > │ and method12 (v0 : UH1, v1 : uint64) : uint64 =                              │

00:01:30 #3373 [Verbose] > │     match v0 with                                                            │

00:01:30 #3374 [Verbose] > │     | UH1_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:01:30 #3375 [Verbose] > │         let v6 : uint64 = v1 + 1UL                                           │

00:01:30 #3376 [Verbose] > │         method12(v5, v6)                                                     │

00:01:30 #3377 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:01:30 #3378 [Verbose] > │         v1                                                                   │

00:01:30 #3379 [Verbose] > │ and method13 (v0 : (struct (int32 * string * (struct ((int32 []) * int32 *   │

00:01:30 #3380 [Verbose] > │ int32) -> US0)) []), v1 : UH1, v2 : uint64) : uint64 =                       │

00:01:30 #3381 [Verbose] > │     match v1 with                                                            │

00:01:30 #3382 [Verbose] > │     | UH1_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:01:30 #3383 [Verbose] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:01:30 #3384 [Verbose] > │         let v7 : uint64 = v2 + 1UL                                           │

00:01:30 #3385 [Verbose] > │         method13(v0, v6, v7)                                                 │

00:01:30 #3386 [Verbose] > │     | UH1_1 -> (* Nil *)                                                     │

00:01:30 #3387 [Verbose] > │         v2                                                                   │

00:01:30 #3388 [Verbose] > │ and method11 (v0 : UH1) : (struct (int32 * string * (struct ((int32 []) *    │

00:01:30 #3389 [Verbose] > │ int32 * int32) -> US0)) []) =                                                │

00:01:30 #3390 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:01:30 #3391 [Verbose] > │     let v2 : uint64 = method12(v0, v1)                                       │

00:01:30 #3392 [Verbose] > │     let v3 : (struct (int32 * string * (struct ((int32 []) * int32 * int32)  │

00:01:30 #3393 [Verbose] > │ -> US0)) []) = Array.zeroCreate<struct (int32 * string * (struct ((int32 []) │

00:01:30 #3394 [Verbose] > │ * int32 * int32) -> US0))> (System.Convert.ToInt32(v2))                      │

00:01:30 #3395 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:01:30 #3396 [Verbose] > │     let v5 : uint64 = method13(v3, v0, v4)                                   │

00:01:30 #3397 [Verbose] > │     v3                                                                       │

00:01:30 #3398 [Verbose] > │ and method14 (v0 : Mut0) : bool =                                            │

00:01:30 #3399 [Verbose] > │     let v1 : int32 = v0.l0                                                   │

00:01:30 #3400 [Verbose] > │     let v2 : bool = v1 < 8000001                                             │

00:01:30 #3401 [Verbose] > │     v2                                                                       │

00:01:30 #3402 [Verbose] > │ and closure5 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : (struct ((int32  │

00:01:30 #3403 [Verbose] > │ []) * int32 * int32) -> US0)) (v4 : int32) : US0 =                           │

00:01:30 #3404 [Verbose] > │     v3 struct (v0, v1, v2)                                                   │

00:01:30 #3405 [Verbose] > │ and method15 (v0 : US0, v1 : (US0 []), v2 : uint64) : bool =                 │

00:01:30 #3406 [Verbose] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:01:30 #3407 [Verbose] > │     let v4 : bool = v2 < v3                                                  │

00:01:30 #3408 [Verbose] > │     if v4 then                                                               │

00:01:30 #3409 [Verbose] > │         let v5 : US0 = v1.[int v2]                                           │

00:01:30 #3410 [Verbose] > │         let v9 : bool =                                                      │

00:01:30 #3411 [Verbose] > │             match v0, v5 with                                                │

00:01:30 #3412 [Verbose] > │             | US0_0, US0_0 -> (* None *)                                     │

00:01:30 #3413 [Verbose] > │                 true                                                         │

00:01:30 #3414 [Verbose] > │             | US0_1(v6), US0_1(v7) -> (* Some *)                             │

00:01:30 #3415 [Verbose] > │                 let v8 : bool = v6 = v7                                      │

00:01:30 #3416 [Verbose] > │                 v8                                                           │

00:01:30 #3417 [Verbose] > │             | _ ->                                                           │

00:01:30 #3418 [Verbose] > │                 false                                                        │

00:01:30 #3419 [Verbose] > │         if v9 then                                                           │

00:01:30 #3420 [Verbose] > │             let v10 : uint64 = v2 + 1UL                                      │

00:01:30 #3421 [Verbose] > │             method15(v0, v1, v10)                                            │

00:01:30 #3422 [Verbose] > │         else                                                                 │

00:01:30 #3423 [Verbose] > │             false                                                            │

00:01:30 #3424 [Verbose] > │     else                                                                     │

00:01:30 #3425 [Verbose] > │         true                                                                 │

00:01:30 #3426 [Verbose] > │ and method16 (v0 : uint64, v1 : Mut2) : bool =                               │

00:01:30 #3427 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:01:30 #3428 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:30 #3429 [Verbose] > │     v3                                                                       │

00:01:30 #3430 [Verbose] > │ and method17 (v0 : UH3, v1 : UH3) : UH3 =                                    │

00:01:30 #3431 [Verbose] > │     match v0 with                                                            │

00:01:30 #3432 [Verbose] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3433 [Verbose] > │         let v5 : UH3 = UH3_0(v2, v3, v1)                                     │

00:01:30 #3434 [Verbose] > │         method17(v4, v5)                                                     │

00:01:30 #3435 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:01:30 #3436 [Verbose] > │         v1                                                                   │

00:01:30 #3437 [Verbose] > │ and method19 (v0 : UH3, v1 : int32) : int32 =                                │

00:01:30 #3438 [Verbose] > │     match v0 with                                                            │

00:01:30 #3439 [Verbose] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3440 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:01:30 #3441 [Verbose] > │         method19(v4, v5)                                                     │

00:01:30 #3442 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:01:30 #3443 [Verbose] > │         v1                                                                   │

00:01:30 #3444 [Verbose] > │ and method20 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) :      │

00:01:30 #3445 [Verbose] > │ int32 =                                                                      │

00:01:30 #3446 [Verbose] > │     match v1 with                                                            │

00:01:30 #3447 [Verbose] > │     | UH3_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:30 #3448 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:30 #3449 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:01:30 #3450 [Verbose] > │         method20(v0, v5, v6)                                                 │

00:01:30 #3451 [Verbose] > │     | UH3_1 -> (* Nil *)                                                     │

00:01:30 #3452 [Verbose] > │         v2                                                                   │

00:01:30 #3453 [Verbose] > │ and method18 (v0 : UH3) : (struct (int64 * int64) []) =                      │

00:01:30 #3454 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:30 #3455 [Verbose] > │     let v2 : int32 = method19(v0, v1)                                        │

00:01:30 #3456 [Verbose] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:01:30 #3457 [Verbose] > │ int64)> (v2)                                                                 │

00:01:30 #3458 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:30 #3459 [Verbose] > │     let v5 : int32 = method20(v3, v0, v4)                                    │

00:01:30 #3460 [Verbose] > │     v3                                                                       │

00:01:30 #3461 [Verbose] > │ and method21 (v0 : int32, v1 : Mut0) : bool =                                │

00:01:30 #3462 [Verbose] > │     let v2 : int32 = v1.l0                                                   │

00:01:30 #3463 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:30 #3464 [Verbose] > │     v3                                                                       │

00:01:30 #3465 [Verbose] > │ and closure6 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:01:30 #3466 [Verbose] > │     v1                                                                       │

00:01:30 #3467 [Verbose] > │ and method23 (v0 : UH4, v1 : uint64) : uint64 =                              │

00:01:30 #3468 [Verbose] > │     match v0 with                                                            │

00:01:30 #3469 [Verbose] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3470 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:01:30 #3471 [Verbose] > │         method23(v4, v5)                                                     │

00:01:30 #3472 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:01:30 #3473 [Verbose] > │         v1                                                                   │

00:01:30 #3474 [Verbose] > │ and method24 (v0 : (struct (UH2 * US1) []), v1 : UH4, v2 : uint64) : uint64  │

00:01:30 #3475 [Verbose] > │ =                                                                            │

00:01:30 #3476 [Verbose] > │     match v1 with                                                            │

00:01:30 #3477 [Verbose] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:30 #3478 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:30 #3479 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:01:30 #3480 [Verbose] > │         method24(v0, v5, v6)                                                 │

00:01:30 #3481 [Verbose] > │     | UH4_1 -> (* Nil *)                                                     │

00:01:30 #3482 [Verbose] > │         v2                                                                   │

00:01:30 #3483 [Verbose] > │ and method22 (v0 : UH4) : (struct (UH2 * US1) []) =                          │

00:01:30 #3484 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:01:30 #3485 [Verbose] > │     let v2 : uint64 = method23(v0, v1)                                       │

00:01:30 #3486 [Verbose] > │     let v3 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * US1)>  │

00:01:30 #3487 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:01:30 #3488 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:01:30 #3489 [Verbose] > │     let v5 : uint64 = method24(v3, v0, v4)                                   │

00:01:30 #3490 [Verbose] > │     v3                                                                       │

00:01:30 #3491 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:01:30 #3492 [Verbose] > │     match v0 with                                                            │

00:01:30 #3493 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:01:30 #3494 [Verbose] > │         let v4 : uint64 = v1 + 1UL                                           │

00:01:30 #3495 [Verbose] > │         method26(v3, v4)                                                     │

00:01:30 #3496 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:30 #3497 [Verbose] > │         v1                                                                   │

00:01:30 #3498 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:01:30 #3499 [Verbose] > │     match v1 with                                                            │

00:01:30 #3500 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:01:30 #3501 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:01:30 #3502 [Verbose] > │         let v5 : uint64 = v2 + 1UL                                           │

00:01:30 #3503 [Verbose] > │         method27(v0, v4, v5)                                                 │

00:01:30 #3504 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:30 #3505 [Verbose] > │         v2                                                                   │

00:01:30 #3506 [Verbose] > │ and method25 (v0 : UH2) : (string []) =                                      │

00:01:30 #3507 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:01:30 #3508 [Verbose] > │     let v2 : uint64 = method26(v0, v1)                                       │

00:01:30 #3509 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:01:30 #3510 [Verbose] > │ (System.Convert.ToInt32(v2))                                                 │

00:01:30 #3511 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:01:30 #3512 [Verbose] > │     let v5 : uint64 = method27(v3, v0, v4)                                   │

00:01:30 #3513 [Verbose] > │     v3                                                                       │

00:01:30 #3514 [Verbose] > │ and closure7 () (v0 : int64) : US2 =                                         │

00:01:30 #3515 [Verbose] > │     US2_1(v0)                                                                │

00:01:30 #3516 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool =                               │

00:01:30 #3517 [Verbose] > │     let v2 : uint64 = v1.l0                                                  │

00:01:30 #3518 [Verbose] > │     let v3 : bool = v2 < v0                                                  │

00:01:30 #3519 [Verbose] > │     v3                                                                       │

00:01:30 #3520 [Verbose] > │ and method29 (v0 : UH5, v1 : UH5) : UH5 =                                    │

00:01:30 #3521 [Verbose] > │     match v0 with                                                            │

00:01:30 #3522 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3523 [Verbose] > │         let v5 : UH5 = UH5_0(v2, v3, v1)                                     │

00:01:30 #3524 [Verbose] > │         method29(v4, v5)                                                     │

00:01:30 #3525 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:30 #3526 [Verbose] > │         v1                                                                   │

00:01:30 #3527 [Verbose] > │ and method31 (v0 : UH5, v1 : int32) : int32 =                                │

00:01:30 #3528 [Verbose] > │     match v0 with                                                            │

00:01:30 #3529 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3530 [Verbose] > │         let v5 : int32 = v1 + 1                                              │

00:01:30 #3531 [Verbose] > │         method31(v4, v5)                                                     │

00:01:30 #3532 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:30 #3533 [Verbose] > │         v1                                                                   │

00:01:30 #3534 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) :      │

00:01:30 #3535 [Verbose] > │ int32 =                                                                      │

00:01:30 #3536 [Verbose] > │     match v1 with                                                            │

00:01:30 #3537 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:30 #3538 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:30 #3539 [Verbose] > │         let v6 : int32 = v2 + 1                                              │

00:01:30 #3540 [Verbose] > │         method32(v0, v5, v6)                                                 │

00:01:30 #3541 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:30 #3542 [Verbose] > │         v2                                                                   │

00:01:30 #3543 [Verbose] > │ and method30 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:01:30 #3544 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:30 #3545 [Verbose] > │     let v2 : int32 = method31(v0, v1)                                        │

00:01:30 #3546 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:01:30 #3547 [Verbose] > │ int64)> (v2)                                                                 │

00:01:30 #3548 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:30 #3549 [Verbose] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:01:30 #3550 [Verbose] > │     v3                                                                       │

00:01:30 #3551 [Verbose] > │ and method33 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) =       │

00:01:30 #3552 [Verbose] > │     match v0 with                                                            │

00:01:30 #3553 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:01:30 #3554 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:01:30 #3555 [Verbose] > │         let v6 : UH6 = UH6_0(v2, v3, v1)                                     │

00:01:30 #3556 [Verbose] > │         method33(v4, v6, v5)                                                 │

00:01:30 #3557 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:30 #3558 [Verbose] > │         struct (v1, v2)                                                      │

00:01:30 #3559 [Verbose] > │ and method34 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:01:30 #3560 [Verbose] > │     match v0 with                                                            │

00:01:30 #3561 [Verbose] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3562 [Verbose] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:01:30 #3563 [Verbose] > │         method34(v4, v5)                                                     │

00:01:30 #3564 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:01:30 #3565 [Verbose] > │         v1                                                                   │

00:01:30 #3566 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 =            │

00:01:30 #3567 [Verbose] > │     match v1 with                                                            │

00:01:30 #3568 [Verbose] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:30 #3569 [Verbose] > │         let v6 : UH2 = method35(v0, v5, v2)                                  │

00:01:30 #3570 [Verbose] > │         let v7 : int64 = v0.[v3]                                             │

00:01:30 #3571 [Verbose] > │         let v8 : int32 = int32 v7                                            │

00:01:30 #3572 [Verbose] > │         let v9 : string = v4.PadRight v8                                     │

00:01:30 #3573 [Verbose] > │         UH2_0(v9, v6)                                                        │

00:01:30 #3574 [Verbose] > │     | UH6_1 -> (* Nil *)                                                     │

00:01:30 #3575 [Verbose] > │         v2                                                                   │

00:01:30 #3576 [Verbose] > │ and method37 (v0 : UH2, v1 : int32) : int32 =                                │

00:01:30 #3577 [Verbose] > │     match v0 with                                                            │

00:01:30 #3578 [Verbose] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:01:30 #3579 [Verbose] > │         let v4 : int32 = v1 + 1                                              │

00:01:30 #3580 [Verbose] > │         method37(v3, v4)                                                     │

00:01:30 #3581 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:30 #3582 [Verbose] > │         v1                                                                   │

00:01:30 #3583 [Verbose] > │ and method38 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:01:30 #3584 [Verbose] > │     match v1 with                                                            │

00:01:30 #3585 [Verbose] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:01:30 #3586 [Verbose] > │         v0.[int v2] <- v3                                                    │

00:01:30 #3587 [Verbose] > │         let v5 : int32 = v2 + 1                                              │

00:01:30 #3588 [Verbose] > │         method38(v0, v4, v5)                                                 │

00:01:30 #3589 [Verbose] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:30 #3590 [Verbose] > │         v2                                                                   │

00:01:30 #3591 [Verbose] > │ and method36 (v0 : UH2) : (string []) =                                      │

00:01:30 #3592 [Verbose] > │     let v1 : int32 = 0                                                       │

00:01:30 #3593 [Verbose] > │     let v2 : int32 = method37(v0, v1)                                        │

00:01:30 #3594 [Verbose] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:01:30 #3595 [Verbose] > │     let v4 : int32 = 0                                                       │

00:01:30 #3596 [Verbose] > │     let v5 : int32 = method38(v3, v0, v4)                                    │

00:01:30 #3597 [Verbose] > │     v3                                                                       │

00:01:30 #3598 [Verbose] > │ and method40 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:01:30 #3599 [Verbose] > │     match v0 with                                                            │

00:01:30 #3600 [Verbose] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:30 #3601 [Verbose] > │         let v5 : uint64 = v1 + 1UL                                           │

00:01:30 #3602 [Verbose] > │         method40(v4, v5)                                                     │

00:01:30 #3603 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:30 #3604 [Verbose] > │         v1                                                                   │

00:01:30 #3605 [Verbose] > │ and method41 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) :     │

00:01:30 #3606 [Verbose] > │ uint64 =                                                                     │

00:01:30 #3607 [Verbose] > │     match v1 with                                                            │

00:01:30 #3608 [Verbose] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:30 #3609 [Verbose] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:30 #3610 [Verbose] > │         let v6 : uint64 = v2 + 1UL                                           │

00:01:30 #3611 [Verbose] > │         method41(v0, v5, v6)                                                 │

00:01:30 #3612 [Verbose] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:30 #3613 [Verbose] > │         v2                                                                   │

00:01:30 #3614 [Verbose] > │ and method39 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:01:30 #3615 [Verbose] > │     let v1 : uint64 = 0UL                                                    │

00:01:30 #3616 [Verbose] > │     let v2 : uint64 = method40(v0, v1)                                       │

00:01:30 #3617 [Verbose] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:01:30 #3618 [Verbose] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:01:30 #3619 [Verbose] > │     let v4 : uint64 = 0UL                                                    │

00:01:30 #3620 [Verbose] > │     let v5 : uint64 = method41(v3, v0, v4)                                   │

00:01:30 #3621 [Verbose] > │     v3                                                                       │

00:01:30 #3622 [Verbose] > │ and closure8 () struct (v0 : int32, v1 : int64) : int64 =                    │

00:01:30 #3623 [Verbose] > │     v1                                                                       │

00:01:30 #3624 [Verbose] > │ and closure0 () () : unit =                                                  │

00:01:30 #3625 [Verbose] > │     let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #3626 [Verbose] > │     let v1 : (int32 []) = method1(v0)                                        │

00:01:30 #3627 [Verbose] > │     let v2 : int32 = v1.Length                                               │

00:01:30 #3628 [Verbose] > │     let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #3629 [Verbose] > │     let v4 : (int32 []) = method1(v3)                                        │

00:01:30 #3630 [Verbose] > │     let v5 : int32 = v4.Length                                               │

00:01:30 #3631 [Verbose] > │     let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #3632 [Verbose] > │     let v7 : (int32 []) = method1(v6)                                        │

00:01:30 #3633 [Verbose] > │     let v8 : int32 = v7.Length                                               │

00:01:30 #3634 [Verbose] > │     let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #3635 [Verbose] > │     let v10 : (int32 []) = method1(v9)                                       │

00:01:30 #3636 [Verbose] > │     let v11 : int32 = v10.Length                                             │

00:01:30 #3637 [Verbose] > │     let v12 : (int32 []) = Array.zeroCreate<int32> (100)                     │

00:01:30 #3638 [Verbose] > │     let v13 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:30 #3639 [Verbose] > │     while method2(v13) do                                                    │

00:01:30 #3640 [Verbose] > │         let v15 : int32 = v13.l0                                             │

00:01:30 #3641 [Verbose] > │         let v16 : int32 = 1 + v15                                            │

00:01:30 #3642 [Verbose] > │         v12.[int v15] <- v16                                                 │

00:01:30 #3643 [Verbose] > │         let v17 : int32 = v15 + 1                                            │

00:01:30 #3644 [Verbose] > │         v13.l0 <- v17                                                        │

00:01:30 #3645 [Verbose] > │         ()                                                                   │

00:01:30 #3646 [Verbose] > │     let v18 : int32 = v12.Length                                             │

00:01:30 #3647 [Verbose] > │     let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #3648 [Verbose] > │     let v20 : (int32 []) = method1(v19)                                      │

00:01:30 #3649 [Verbose] > │     let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #3650 [Verbose] > │     let v22 : (int32 []) = method1(v21)                                      │

00:01:30 #3651 [Verbose] > │     let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #3652 [Verbose] > │     let v24 : (int32 []) = method1(v23)                                      │

00:01:30 #3653 [Verbose] > │     let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #3654 [Verbose] > │     let v26 : (int32 []) = method1(v25)                                      │

00:01:30 #3655 [Verbose] > │     let v27 : (int32 []) = Array.zeroCreate<int32> (100)                     │

00:01:30 #3656 [Verbose] > │     let v28 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:30 #3657 [Verbose] > │     while method2(v28) do                                                    │

00:01:30 #3658 [Verbose] > │         let v30 : int32 = v28.l0                                             │

00:01:30 #3659 [Verbose] > │         let v31 : int32 = 1 + v30                                            │

00:01:30 #3660 [Verbose] > │         v27.[int v30] <- v31                                                 │

00:01:30 #3661 [Verbose] > │         let v32 : int32 = v30 + 1                                            │

00:01:30 #3662 [Verbose] > │         v28.l0 <- v32                                                        │

00:01:30 #3663 [Verbose] > │         ()                                                                   │

00:01:30 #3664 [Verbose] > │     let v33 : (unit -> unit) = closure0()                                    │

00:01:30 #3665 [Verbose] > │     let v34 : string = nameof v33                                            │

00:01:30 #3666 [Verbose] > │     let v35 : string = ""                                                    │

00:01:30 #3667 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #3668 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #3669 [Verbose] > │     let v36 : string = $"Test: {v34}"                                        │

00:01:30 #3670 [Verbose] > │     System.Console.WriteLine v36                                             │

00:01:30 #3671 [Verbose] > │     let v37 : int32 = 6                                                      │

00:01:30 #3672 [Verbose] > │     let v38 : int32 = 3                                                      │

00:01:30 #3673 [Verbose] > │     let v39 : US0 = US0_1(v38)                                               │

00:01:30 #3674 [Verbose] > │     let v40 : int32 = 1                                                      │

00:01:30 #3675 [Verbose] > │     let v41 : int32 = 0                                                      │

00:01:30 #3676 [Verbose] > │     let v42 : US0 = US0_1(v41)                                               │

00:01:30 #3677 [Verbose] > │     let v43 : int32 = 11                                                     │

00:01:30 #3678 [Verbose] > │     let v44 : int32 = 6                                                      │

00:01:30 #3679 [Verbose] > │     let v45 : US0 = US0_1(v44)                                               │

00:01:30 #3680 [Verbose] > │     let v46 : int32 = 12                                                     │

00:01:30 #3681 [Verbose] > │     let v47 : US0 = US0_0                                                    │

00:01:30 #3682 [Verbose] > │     let v48 : int32 = 60                                                     │

00:01:30 #3683 [Verbose] > │     let v49 : int32 = 59                                                     │

00:01:30 #3684 [Verbose] > │     let v50 : US0 = US0_1(v49)                                               │

00:01:30 #3685 [Verbose] > │     let v51 : int32 = 6                                                      │

00:01:30 #3686 [Verbose] > │     let v52 : int32 = 7                                                      │

00:01:30 #3687 [Verbose] > │     let v53 : int32 = 3                                                      │

00:01:30 #3688 [Verbose] > │     let v54 : US0 = US0_1(v53)                                               │

00:01:30 #3689 [Verbose] > │     let v55 : int32 = 1                                                      │

00:01:30 #3690 [Verbose] > │     let v56 : int32 = 7                                                      │

00:01:30 #3691 [Verbose] > │     let v57 : int32 = 0                                                      │

00:01:30 #3692 [Verbose] > │     let v58 : US0 = US0_1(v57)                                               │

00:01:30 #3693 [Verbose] > │     let v59 : int32 = 11                                                     │

00:01:30 #3694 [Verbose] > │     let v60 : int32 = 7                                                      │

00:01:30 #3695 [Verbose] > │     let v61 : int32 = 6                                                      │

00:01:30 #3696 [Verbose] > │     let v62 : US0 = US0_1(v61)                                               │

00:01:30 #3697 [Verbose] > │     let v63 : int32 = 12                                                     │

00:01:30 #3698 [Verbose] > │     let v64 : int32 = 7                                                      │

00:01:30 #3699 [Verbose] > │     let v65 : US0 = US0_0                                                    │

00:01:30 #3700 [Verbose] > │     let v66 : int32 = 60                                                     │

00:01:30 #3701 [Verbose] > │     let v67 : int32 = 100                                                    │

00:01:30 #3702 [Verbose] > │     let v68 : int32 = 59                                                     │

00:01:30 #3703 [Verbose] > │     let v69 : US0 = US0_1(v68)                                               │

00:01:30 #3704 [Verbose] > │     let v70 : UH0 = UH0_1                                                    │

00:01:30 #3705 [Verbose] > │     let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70)                           │

00:01:30 #3706 [Verbose] > │     let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71)                           │

00:01:30 #3707 [Verbose] > │     let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72)                           │

00:01:30 #3708 [Verbose] > │     let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73)                           │

00:01:30 #3709 [Verbose] > │     let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74)                           │

00:01:30 #3710 [Verbose] > │     let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75)                           │

00:01:30 #3711 [Verbose] > │     let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76)                           │

00:01:30 #3712 [Verbose] > │     let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77)                             │

00:01:30 #3713 [Verbose] > │     let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78)                             │

00:01:30 #3714 [Verbose] > │     let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79)                             │

00:01:30 #3715 [Verbose] > │     let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80)  │

00:01:30 #3716 [Verbose] > │     let v82 : uint64 = System.Convert.ToUInt64 v81.Length                    │

00:01:30 #3717 [Verbose] > │     let v83 : (struct (string * string * string * (int64 [])) []) =          │

00:01:30 #3718 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:01:30 #3719 [Verbose] > │ (System.Convert.ToInt32(v82))                                                │

00:01:30 #3720 [Verbose] > │     let v84 : Mut1 = {l0 = 0UL} : Mut1                                       │

00:01:30 #3721 [Verbose] > │     while method6(v82, v84) do                                               │

00:01:30 #3722 [Verbose] > │         let v86 : uint64 = v84.l0                                            │

00:01:30 #3723 [Verbose] > │         let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │

00:01:30 #3724 [Verbose] > │ v81.[int v86]                                                                │

00:01:30 #3725 [Verbose] > │         let v91 : string = $"%A{struct (v87, v88, v89)}"                     │

00:01:30 #3726 [Verbose] > │         System.Console.WriteLine v35                                         │

00:01:30 #3727 [Verbose] > │         let v92 : string = $"Solution: {v91}  "                              │

00:01:30 #3728 [Verbose] > │         System.Console.WriteLine v92                                         │

00:01:30 #3729 [Verbose] > │         let v93 : int32 = 0                                                  │

00:01:30 #3730 [Verbose] > │         let v94 : string = "semi_open_1"                                     │

00:01:30 #3731 [Verbose] > │         let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1()  │

00:01:30 #3732 [Verbose] > │         let v96 : int32 = 1                                                  │

00:01:30 #3733 [Verbose] > │         let v97 : string = "closed_1"                                        │

00:01:30 #3734 [Verbose] > │         let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2()  │

00:01:30 #3735 [Verbose] > │         let v99 : int32 = 2                                                  │

00:01:30 #3736 [Verbose] > │         let v100 : string = "semi_open_2"                                    │

00:01:30 #3737 [Verbose] > │         let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │

00:01:30 #3738 [Verbose] > │         let v102 : int32 = 3                                                 │

00:01:30 #3739 [Verbose] > │         let v103 : string = "closed_2"                                       │

00:01:30 #3740 [Verbose] > │         let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │

00:01:30 #3741 [Verbose] > │         let v105 : UH1 = UH1_1                                               │

00:01:30 #3742 [Verbose] > │         let v106 : UH1 = UH1_0(v102, v103, v104, v105)                       │

00:01:30 #3743 [Verbose] > │         let v107 : UH1 = UH1_0(v99, v100, v101, v106)                        │

00:01:30 #3744 [Verbose] > │         let v108 : UH1 = UH1_0(v96, v97, v98, v107)                          │

00:01:30 #3745 [Verbose] > │         let v109 : UH1 = UH1_0(v93, v94, v95, v108)                          │

00:01:30 #3746 [Verbose] > │         let v110 : (struct (int32 * string * (struct ((int32 []) * int32 *   │

00:01:30 #3747 [Verbose] > │ int32) -> US0)) []) = method11(v109)                                         │

00:01:30 #3748 [Verbose] > │         let v111 : uint64 = System.Convert.ToUInt64 v110.Length              │

00:01:30 #3749 [Verbose] > │         let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0  │

00:01:30 #3750 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111))                                     │

00:01:30 #3751 [Verbose] > │         let v113 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #3752 [Verbose] > │         while method6(v111, v113) do                                         │

00:01:30 #3753 [Verbose] > │             let v115 : uint64 = v113.l0                                      │

00:01:30 #3754 [Verbose] > │             let struct (v116 : int32, v117 : string, v118 : (struct ((int32  │

00:01:30 #3755 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115]                              │

00:01:30 #3756 [Verbose] > │             let mutable result = None                                        │

00:01:30 #3757 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:30 #3758 [Verbose] > │             ()                                                               │

00:01:30 #3759 [Verbose] > │             #endif                                                           │

00:01:30 #3760 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:30 #3761 [Verbose] > │             ()                                                               │

00:01:30 #3762 [Verbose] > │             #endif                                                           │

00:01:30 #3763 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:30 #3764 [Verbose] > │             System.GC.Collect ()                                             │

00:01:30 #3765 [Verbose] > │             ()                                                               │

00:01:30 #3766 [Verbose] > │             #endif                                                           │

00:01:30 #3767 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:30 #3768 [Verbose] > │             System.GC.Collect ()                                             │

00:01:30 #3769 [Verbose] > │             ()                                                               │

00:01:30 #3770 [Verbose] > │             #endif                                                           │

00:01:30 #3771 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:30 #3772 [Verbose] > │             System.GC.Collect ()                                             │

00:01:30 #3773 [Verbose] > │             ()                                                               │

00:01:30 #3774 [Verbose] > │             #endif                                                           │

00:01:30 #3775 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:30 #3776 [Verbose] > │             result |> Option.get                                             │

00:01:30 #3777 [Verbose] > │             let v119 : (unit -> System.Diagnostics.Stopwatch) =              │

00:01:30 #3778 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:01:30 #3779 [Verbose] > │             let v120 : System.Diagnostics.Stopwatch = v119 ()                │

00:01:30 #3780 [Verbose] > │             v120.Start ()                                                    │

00:01:30 #3781 [Verbose] > │             let v121 : int64 = v120.ElapsedMilliseconds                      │

00:01:30 #3782 [Verbose] > │             let v122 : (int32 []) = Array.zeroCreate<int32> (8000001)        │

00:01:30 #3783 [Verbose] > │             let v123 : Mut0 = {l0 = 0} : Mut0                                │

00:01:30 #3784 [Verbose] > │             while method14(v123) do                                          │

00:01:30 #3785 [Verbose] > │                 let v125 : int32 = v123.l0                                   │

00:01:30 #3786 [Verbose] > │                 v122.[int v125] <- v125                                      │

00:01:30 #3787 [Verbose] > │                 let v126 : int32 = v125 + 1                                  │

00:01:30 #3788 [Verbose] > │                 v123.l0 <- v126                                              │

00:01:30 #3789 [Verbose] > │                 ()                                                           │

00:01:30 #3790 [Verbose] > │             let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118)        │

00:01:30 #3791 [Verbose] > │             let v128 : (US0 []) = v122 |> Array.Parallel.map v127            │

00:01:30 #3792 [Verbose] > │             let v129 : int32 = v128.Length                                   │

00:01:30 #3793 [Verbose] > │             let v130 : int32 = v129 - 1                                      │

00:01:30 #3794 [Verbose] > │             let v131 : US0 = v128.[int v130]                                 │

00:01:30 #3795 [Verbose] > │             let v132 : int64 = v120.ElapsedMilliseconds                      │

00:01:30 #3796 [Verbose] > │             let v133 : int64 = v132 - v121                                   │

00:01:30 #3797 [Verbose] > │             let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │

00:01:30 #3798 [Verbose] > │ "                                                                            │

00:01:30 #3799 [Verbose] > │             System.Console.WriteLine v134                                    │

00:01:30 #3800 [Verbose] > │             v112.[int v115] <- struct (v131, v133)                           │

00:01:30 #3801 [Verbose] > │             let v135 : uint64 = v115 + 1UL                                   │

00:01:30 #3802 [Verbose] > │             v113.l0 <- v135                                                  │

00:01:30 #3803 [Verbose] > │             ()                                                               │

00:01:30 #3804 [Verbose] > │         let v136 : uint64 = System.Convert.ToUInt64 v112.Length              │

00:01:30 #3805 [Verbose] > │         let v137 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:30 #3806 [Verbose] > │ (System.Convert.ToInt32(v136))                                               │

00:01:30 #3807 [Verbose] > │         let v138 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #3808 [Verbose] > │         while method6(v136, v138) do                                         │

00:01:30 #3809 [Verbose] > │             let v140 : uint64 = v138.l0                                      │

00:01:30 #3810 [Verbose] > │             let struct (v141 : US0, v142 : int64) = v112.[int v140]          │

00:01:30 #3811 [Verbose] > │             v137.[int v140] <- v141                                          │

00:01:30 #3812 [Verbose] > │             let v143 : uint64 = v140 + 1UL                                   │

00:01:30 #3813 [Verbose] > │             v138.l0 <- v143                                                  │

00:01:30 #3814 [Verbose] > │             ()                                                               │

00:01:30 #3815 [Verbose] > │         let v144 : uint64 = System.Convert.ToUInt64 v137.Length              │

00:01:30 #3816 [Verbose] > │         let v145 : bool = v144 <= 1UL                                        │

00:01:30 #3817 [Verbose] > │         if v145 then                                                         │

00:01:30 #3818 [Verbose] > │             ()                                                               │

00:01:30 #3819 [Verbose] > │         else                                                                 │

00:01:30 #3820 [Verbose] > │             let v146 : US0 = v137.[int 0UL]                                  │

00:01:30 #3821 [Verbose] > │             let v147 : uint64 = 0UL                                          │

00:01:30 #3822 [Verbose] > │             let v148 : bool = method15(v146, v137, v147)                     │

00:01:30 #3823 [Verbose] > │             if v148 then                                                     │

00:01:30 #3824 [Verbose] > │                 ()                                                           │

00:01:30 #3825 [Verbose] > │             else                                                             │

00:01:30 #3826 [Verbose] > │                 let v149 : string = $"Challenge error: {v137}"               │

00:01:30 #3827 [Verbose] > │                 failwith<unit> v149                                          │

00:01:30 #3828 [Verbose] > │         let v150 : string = $"%A{v90}"                                       │

00:01:30 #3829 [Verbose] > │         let v151 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:30 #3830 [Verbose] > │ (System.Convert.ToInt32(v136))                                               │

00:01:30 #3831 [Verbose] > │         let v152 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #3832 [Verbose] > │         while method6(v136, v152) do                                         │

00:01:30 #3833 [Verbose] > │             let v154 : uint64 = v152.l0                                      │

00:01:30 #3834 [Verbose] > │             let struct (v155 : US0, v156 : int64) = v112.[int v154]          │

00:01:30 #3835 [Verbose] > │             v151.[int v154] <- v155                                          │

00:01:30 #3836 [Verbose] > │             let v157 : uint64 = v154 + 1UL                                   │

00:01:30 #3837 [Verbose] > │             v152.l0 <- v157                                                  │

00:01:30 #3838 [Verbose] > │             ()                                                               │

00:01:30 #3839 [Verbose] > │         let v158 : US0 = v151.[int 0UL]                                      │

00:01:30 #3840 [Verbose] > │         let v159 : string = $"%A{v158}"                                      │

00:01:30 #3841 [Verbose] > │         let v160 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:30 #3842 [Verbose] > │ (System.Convert.ToInt32(v136))                                               │

00:01:30 #3843 [Verbose] > │         let v161 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #3844 [Verbose] > │         while method6(v136, v161) do                                         │

00:01:30 #3845 [Verbose] > │             let v163 : uint64 = v161.l0                                      │

00:01:30 #3846 [Verbose] > │             let struct (v164 : US0, v165 : int64) = v112.[int v163]          │

00:01:30 #3847 [Verbose] > │             v160.[int v163] <- v165                                          │

00:01:30 #3848 [Verbose] > │             let v166 : uint64 = v163 + 1UL                                   │

00:01:30 #3849 [Verbose] > │             v161.l0 <- v166                                                  │

00:01:30 #3850 [Verbose] > │             ()                                                               │

00:01:30 #3851 [Verbose] > │         v83.[int v86] <- struct (v150, v91, v159, v160)                      │

00:01:30 #3852 [Verbose] > │         let v167 : uint64 = v86 + 1UL                                        │

00:01:30 #3853 [Verbose] > │         v84.l0 <- v167                                                       │

00:01:30 #3854 [Verbose] > │         ()                                                                   │

00:01:30 #3855 [Verbose] > │     let v168 : uint64 = System.Convert.ToUInt64 v83.Length                   │

00:01:30 #3856 [Verbose] > │     let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:30 #3857 [Verbose] > │ US1)> (System.Convert.ToInt32(v168))                                         │

00:01:30 #3858 [Verbose] > │     let v170 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #3859 [Verbose] > │     while method6(v168, v170) do                                             │

00:01:30 #3860 [Verbose] > │         let v172 : uint64 = v170.l0                                          │

00:01:30 #3861 [Verbose] > │         let struct (v173 : string, v174 : string, v175 : string, v176 :      │

00:01:30 #3862 [Verbose] > │ (int64 [])) = v83.[int v172]                                                 │

00:01:30 #3863 [Verbose] > │         let v177 : uint64 = System.Convert.ToUInt64 v176.Length              │

00:01:30 #3864 [Verbose] > │         let v178 : UH3 = UH3_1                                               │

00:01:30 #3865 [Verbose] > │         let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2              │

00:01:30 #3866 [Verbose] > │         while method16(v177, v179) do                                        │

00:01:30 #3867 [Verbose] > │             let v181 : uint64 = v179.l0                                      │

00:01:30 #3868 [Verbose] > │             let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2         │

00:01:30 #3869 [Verbose] > │             let v184 : int64 = v176.[int v181]                               │

00:01:30 #3870 [Verbose] > │             let v185 : int64 = v183 + 1L                                     │

00:01:30 #3871 [Verbose] > │             let v186 : uint64 = v181 + 1UL                                   │

00:01:30 #3872 [Verbose] > │             let v187 : UH3 = UH3_0(v183, v184, v182)                         │

00:01:30 #3873 [Verbose] > │             v179.l0 <- v186                                                  │

00:01:30 #3874 [Verbose] > │             v179.l1 <- v187                                                  │

00:01:30 #3875 [Verbose] > │             v179.l2 <- v185                                                  │

00:01:30 #3876 [Verbose] > │             ()                                                               │

00:01:30 #3877 [Verbose] > │         let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2             │

00:01:30 #3878 [Verbose] > │         let v190 : UH3 = UH3_1                                               │

00:01:30 #3879 [Verbose] > │         let v191 : UH3 = method17(v188, v190)                                │

00:01:30 #3880 [Verbose] > │         let v192 : (struct (int64 * int64) []) = method18(v191)              │

00:01:30 #3881 [Verbose] > │         let v193 : int32 = v192.Length                                       │

00:01:30 #3882 [Verbose] > │         let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:01:30 #3883 [Verbose] > │ (int64 * int64)> (v193)                                                      │

00:01:30 #3884 [Verbose] > │         let v195 : Mut0 = {l0 = 0} : Mut0                                    │

00:01:30 #3885 [Verbose] > │         while method21(v193, v195) do                                        │

00:01:30 #3886 [Verbose] > │             let v197 : int32 = v195.l0                                       │

00:01:30 #3887 [Verbose] > │             let struct (v198 : int64, v199 : int64) = v192.[int v197]        │

00:01:30 #3888 [Verbose] > │             let v200 : int64 = v198 + 1L                                     │

00:01:30 #3889 [Verbose] > │             v194.[int v197] <- struct (v200, v199)                           │

00:01:30 #3890 [Verbose] > │             let v201 : int32 = v197 + 1                                      │

00:01:30 #3891 [Verbose] > │             v195.l0 <- v201                                                  │

00:01:30 #3892 [Verbose] > │             ()                                                               │

00:01:30 #3893 [Verbose] > │         let v202 : (struct (int64 * int64) -> int64) = closure6()            │

00:01:30 #3894 [Verbose] > │         let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202   │

00:01:30 #3895 [Verbose] > │         let struct (v204 : int64, v205 : int64) = v203.[int 0]               │

00:01:30 #3896 [Verbose] > │         let v206 : string = $"%A{struct (v204, v205)}"                       │

00:01:30 #3897 [Verbose] > │         let v207 : bool = v173 = v175                                        │

00:01:30 #3898 [Verbose] > │         let v212 : US1 =                                                     │

00:01:30 #3899 [Verbose] > │             if v207 then                                                     │

00:01:30 #3900 [Verbose] > │                 let v208 : System.ConsoleColor =                             │

00:01:30 #3901 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:01:30 #3902 [Verbose] > │                 US1_1(v208)                                                  │

00:01:30 #3903 [Verbose] > │             else                                                             │

00:01:30 #3904 [Verbose] > │                 let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:01:30 #3905 [Verbose] > │                 US1_1(v210)                                                  │

00:01:30 #3906 [Verbose] > │         let v213 : UH2 = UH2_1                                               │

00:01:30 #3907 [Verbose] > │         let v214 : UH2 = UH2_0(v206, v213)                                   │

00:01:30 #3908 [Verbose] > │         let v215 : UH2 = UH2_0(v175, v214)                                   │

00:01:30 #3909 [Verbose] > │         let v216 : UH2 = UH2_0(v173, v215)                                   │

00:01:30 #3910 [Verbose] > │         let v217 : UH2 = UH2_0(v174, v216)                                   │

00:01:30 #3911 [Verbose] > │         v169.[int v172] <- struct (v217, v212)                               │

00:01:30 #3912 [Verbose] > │         let v218 : uint64 = v172 + 1UL                                       │

00:01:30 #3913 [Verbose] > │         v170.l0 <- v218                                                      │

00:01:30 #3914 [Verbose] > │         ()                                                                   │

00:01:30 #3915 [Verbose] > │     let v219 : string = "Input"                                              │

00:01:30 #3916 [Verbose] > │     let v220 : string = "Expected"                                           │

00:01:30 #3917 [Verbose] > │     let v221 : string = "Result"                                             │

00:01:30 #3918 [Verbose] > │     let v222 : string = "Best"                                               │

00:01:30 #3919 [Verbose] > │     let v223 : UH2 = UH2_1                                                   │

00:01:30 #3920 [Verbose] > │     let v224 : UH2 = UH2_0(v222, v223)                                       │

00:01:30 #3921 [Verbose] > │     let v225 : UH2 = UH2_0(v221, v224)                                       │

00:01:30 #3922 [Verbose] > │     let v226 : UH2 = UH2_0(v220, v225)                                       │

00:01:30 #3923 [Verbose] > │     let v227 : UH2 = UH2_0(v219, v226)                                       │

00:01:30 #3924 [Verbose] > │     let v228 : US1 = US1_0                                                   │

00:01:30 #3925 [Verbose] > │     let v229 : string = "---"                                                │

00:01:30 #3926 [Verbose] > │     let v230 : UH2 = UH2_1                                                   │

00:01:30 #3927 [Verbose] > │     let v231 : UH2 = UH2_0(v229, v230)                                       │

00:01:30 #3928 [Verbose] > │     let v232 : UH2 = UH2_0(v229, v231)                                       │

00:01:30 #3929 [Verbose] > │     let v233 : UH2 = UH2_0(v229, v232)                                       │

00:01:30 #3930 [Verbose] > │     let v234 : UH2 = UH2_0(v229, v233)                                       │

00:01:30 #3931 [Verbose] > │     let v235 : US1 = US1_0                                                   │

00:01:30 #3932 [Verbose] > │     let v236 : UH4 = UH4_1                                                   │

00:01:30 #3933 [Verbose] > │     let v237 : UH4 = UH4_0(v234, v235, v236)                                 │

00:01:30 #3934 [Verbose] > │     let v238 : UH4 = UH4_0(v227, v228, v237)                                 │

00:01:30 #3935 [Verbose] > │     let v239 : (struct (UH2 * US1) []) = method22(v238)                      │

00:01:30 #3936 [Verbose] > │     let v240 : uint64 = System.Convert.ToUInt64 v239.Length                  │

00:01:30 #3937 [Verbose] > │     let v241 : uint64 = System.Convert.ToUInt64 v169.Length                  │

00:01:30 #3938 [Verbose] > │     let v242 : uint64 = v240 + v241                                          │

00:01:30 #3939 [Verbose] > │     let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:30 #3940 [Verbose] > │ US1)> (System.Convert.ToInt32(v242))                                         │

00:01:30 #3941 [Verbose] > │     let v244 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #3942 [Verbose] > │     while method6(v242, v244) do                                             │

00:01:30 #3943 [Verbose] > │         let v246 : uint64 = v244.l0                                          │

00:01:30 #3944 [Verbose] > │         let v247 : bool = v246 < v240                                        │

00:01:30 #3945 [Verbose] > │         let struct (v253 : UH2, v254 : US1) =                                │

00:01:30 #3946 [Verbose] > │             if v247 then                                                     │

00:01:30 #3947 [Verbose] > │                 let struct (v248 : UH2, v249 : US1) = v239.[int v246]        │

00:01:30 #3948 [Verbose] > │                 struct (v248, v249)                                          │

00:01:30 #3949 [Verbose] > │             else                                                             │

00:01:30 #3950 [Verbose] > │                 let v250 : uint64 = v246 - v240                              │

00:01:30 #3951 [Verbose] > │                 let struct (v251 : UH2, v252 : US1) = v169.[int v250]        │

00:01:30 #3952 [Verbose] > │                 struct (v251, v252)                                          │

00:01:30 #3953 [Verbose] > │         v243.[int v246] <- struct (v253, v254)                               │

00:01:30 #3954 [Verbose] > │         let v255 : uint64 = v246 + 1UL                                       │

00:01:30 #3955 [Verbose] > │         v244.l0 <- v255                                                      │

00:01:30 #3956 [Verbose] > │         ()                                                                   │

00:01:30 #3957 [Verbose] > │     let v256 : uint64 = System.Convert.ToUInt64 v243.Length                  │

00:01:30 #3958 [Verbose] > │     let v257 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:01:30 #3959 [Verbose] > │ (System.Convert.ToInt32(v256))                                               │

00:01:30 #3960 [Verbose] > │     let v258 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #3961 [Verbose] > │     while method6(v256, v258) do                                             │

00:01:30 #3962 [Verbose] > │         let v260 : uint64 = v258.l0                                          │

00:01:30 #3963 [Verbose] > │         let struct (v261 : UH2, v262 : US1) = v243.[int v260]                │

00:01:30 #3964 [Verbose] > │         let v263 : (string []) = method25(v261)                              │

00:01:30 #3965 [Verbose] > │         v257.[int v260] <- v263                                              │

00:01:30 #3966 [Verbose] > │         let v264 : uint64 = v260 + 1UL                                       │

00:01:30 #3967 [Verbose] > │         v258.l0 <- v264                                                      │

00:01:30 #3968 [Verbose] > │         ()                                                                   │

00:01:30 #3969 [Verbose] > │     let v265 : ((string []) []) = v257 |> Array.transpose                    │

00:01:30 #3970 [Verbose] > │     let v266 : uint64 = System.Convert.ToUInt64 v265.Length                  │

00:01:30 #3971 [Verbose] > │     let v267 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:30 #3972 [Verbose] > │ (System.Convert.ToInt32(v266))                                               │

00:01:30 #3973 [Verbose] > │     let v268 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #3974 [Verbose] > │     while method6(v266, v268) do                                             │

00:01:30 #3975 [Verbose] > │         let v270 : uint64 = v268.l0                                          │

00:01:30 #3976 [Verbose] > │         let v271 : (string []) = v265.[int v270]                             │

00:01:30 #3977 [Verbose] > │         let v272 : uint64 = System.Convert.ToUInt64 v271.Length              │

00:01:30 #3978 [Verbose] > │         let v273 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:30 #3979 [Verbose] > │ (System.Convert.ToInt32(v272))                                               │

00:01:30 #3980 [Verbose] > │         let v274 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #3981 [Verbose] > │         while method6(v272, v274) do                                         │

00:01:30 #3982 [Verbose] > │             let v276 : uint64 = v274.l0                                      │

00:01:30 #3983 [Verbose] > │             let v277 : string = v271.[int v276]                              │

00:01:30 #3984 [Verbose] > │             let v278 : int64 = System.Convert.ToInt64 v277.Length            │

00:01:30 #3985 [Verbose] > │             v273.[int v276] <- v278                                          │

00:01:30 #3986 [Verbose] > │             let v279 : uint64 = v276 + 1UL                                   │

00:01:30 #3987 [Verbose] > │             v274.l0 <- v279                                                  │

00:01:30 #3988 [Verbose] > │             ()                                                               │

00:01:30 #3989 [Verbose] > │         let v280 : (int64 []) = v273 |> Array.sortDescending                 │

00:01:30 #3990 [Verbose] > │         let v281 : int64 option = v280 |> Array.tryItem 0                    │

00:01:30 #3991 [Verbose] > │         let v282 : (int64 -> US2) = closure7()                               │

00:01:30 #3992 [Verbose] > │         let v283 : US2 = US2_0                                               │

00:01:30 #3993 [Verbose] > │         let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │

00:01:30 #3994 [Verbose] > │         let v287 : int64 =                                                   │

00:01:30 #3995 [Verbose] > │             match v284 with                                                  │

00:01:30 #3996 [Verbose] > │             | US2_0 -> (* None *)                                            │

00:01:30 #3997 [Verbose] > │                 0L                                                           │

00:01:30 #3998 [Verbose] > │             | US2_1(v285) -> (* Some *)                                      │

00:01:30 #3999 [Verbose] > │                 v285                                                         │

00:01:30 #4000 [Verbose] > │         v267.[int v270] <- v287                                              │

00:01:30 #4001 [Verbose] > │         let v288 : uint64 = v270 + 1UL                                       │

00:01:30 #4002 [Verbose] > │         v268.l0 <- v288                                                      │

00:01:30 #4003 [Verbose] > │         ()                                                                   │

00:01:30 #4004 [Verbose] > │     let v289 : uint64 = System.Convert.ToUInt64 v267.Length                  │

00:01:30 #4005 [Verbose] > │     let v290 : UH5 = UH5_1                                                   │

00:01:30 #4006 [Verbose] > │     let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3                   │

00:01:30 #4007 [Verbose] > │     while method28(v289, v291) do                                            │

00:01:30 #4008 [Verbose] > │         let v293 : uint64 = v291.l0                                          │

00:01:30 #4009 [Verbose] > │         let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2             │

00:01:30 #4010 [Verbose] > │         let v296 : int64 = v267.[int v293]                                   │

00:01:30 #4011 [Verbose] > │         let v297 : int32 = v295 + 1                                          │

00:01:30 #4012 [Verbose] > │         let v298 : uint64 = v293 + 1UL                                       │

00:01:30 #4013 [Verbose] > │         let v299 : UH5 = UH5_0(v295, v296, v294)                             │

00:01:30 #4014 [Verbose] > │         v291.l0 <- v298                                                      │

00:01:30 #4015 [Verbose] > │         v291.l1 <- v299                                                      │

00:01:30 #4016 [Verbose] > │         v291.l2 <- v297                                                      │

00:01:30 #4017 [Verbose] > │         ()                                                                   │

00:01:30 #4018 [Verbose] > │     let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2                 │

00:01:30 #4019 [Verbose] > │     let v302 : UH5 = UH5_1                                                   │

00:01:30 #4020 [Verbose] > │     let v303 : UH5 = method29(v300, v302)                                    │

00:01:30 #4021 [Verbose] > │     let v304 : (struct (int32 * int64) []) = method30(v303)                  │

00:01:30 #4022 [Verbose] > │     let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │

00:01:30 #4023 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:01:30 #4024 [Verbose] > │     let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct     │

00:01:30 #4025 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256))                          │

00:01:30 #4026 [Verbose] > │     let v307 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4027 [Verbose] > │     while method6(v256, v307) do                                             │

00:01:30 #4028 [Verbose] > │         let v309 : uint64 = v307.l0                                          │

00:01:30 #4029 [Verbose] > │         let struct (v310 : UH2, v311 : US1) = v243.[int v309]                │

00:01:30 #4030 [Verbose] > │         let v312 : UH6 = UH6_1                                               │

00:01:30 #4031 [Verbose] > │         let v313 : int32 = 0                                                 │

00:01:30 #4032 [Verbose] > │         let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313)   │

00:01:30 #4033 [Verbose] > │         let v316 : UH6 = UH6_1                                               │

00:01:30 #4034 [Verbose] > │         let v317 : UH6 = method34(v314, v316)                                │

00:01:30 #4035 [Verbose] > │         let v318 : UH2 = UH2_1                                               │

00:01:30 #4036 [Verbose] > │         let v319 : UH2 = method35(v305, v317, v318)                          │

00:01:30 #4037 [Verbose] > │         let v320 : (string []) = method36(v319)                              │

00:01:30 #4038 [Verbose] > │         v306.[int v309] <- struct (v320, v311)                               │

00:01:30 #4039 [Verbose] > │         let v321 : uint64 = v309 + 1UL                                       │

00:01:30 #4040 [Verbose] > │         v307.l0 <- v321                                                      │

00:01:30 #4041 [Verbose] > │         ()                                                                   │

00:01:30 #4042 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #4043 [Verbose] > │     let v322 : uint64 = System.Convert.ToUInt64 v306.Length                  │

00:01:30 #4044 [Verbose] > │     let v323 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4045 [Verbose] > │     while method6(v322, v323) do                                             │

00:01:30 #4046 [Verbose] > │         let v325 : uint64 = v323.l0                                          │

00:01:30 #4047 [Verbose] > │         let struct (v326 : (string []), v327 : US1) = v306.[int v325]        │

00:01:30 #4048 [Verbose] > │         match v327 with                                                      │

00:01:30 #4049 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:01:30 #4050 [Verbose] > │             let mutable result = None                                        │

00:01:30 #4051 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:30 #4052 [Verbose] > │             ()                                                               │

00:01:30 #4053 [Verbose] > │             #endif                                                           │

00:01:30 #4054 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:30 #4055 [Verbose] > │             ()                                                               │

00:01:30 #4056 [Verbose] > │             #endif                                                           │

00:01:30 #4057 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:30 #4058 [Verbose] > │             System.Console.ResetColor ()                                     │

00:01:30 #4059 [Verbose] > │             ()                                                               │

00:01:30 #4060 [Verbose] > │             #endif                                                           │

00:01:30 #4061 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:30 #4062 [Verbose] > │             System.Console.ResetColor ()                                     │

00:01:30 #4063 [Verbose] > │             ()                                                               │

00:01:30 #4064 [Verbose] > │             #endif                                                           │

00:01:30 #4065 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:30 #4066 [Verbose] > │             System.Console.ResetColor ()                                     │

00:01:30 #4067 [Verbose] > │             ()                                                               │

00:01:30 #4068 [Verbose] > │             #endif                                                           │

00:01:30 #4069 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:30 #4070 [Verbose] > │             result |> Option.get                                             │

00:01:30 #4071 [Verbose] > │             ()                                                               │

00:01:30 #4072 [Verbose] > │         | US1_1(v328) -> (* Some *)                                          │

00:01:30 #4073 [Verbose] > │             let mutable result = None                                        │

00:01:30 #4074 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:30 #4075 [Verbose] > │             ()                                                               │

00:01:30 #4076 [Verbose] > │             #endif                                                           │

00:01:30 #4077 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:30 #4078 [Verbose] > │             ()                                                               │

00:01:30 #4079 [Verbose] > │             #endif                                                           │

00:01:30 #4080 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:30 #4081 [Verbose] > │             System.Console.ForegroundColor <- v328                           │

00:01:30 #4082 [Verbose] > │             ()                                                               │

00:01:30 #4083 [Verbose] > │             #endif                                                           │

00:01:30 #4084 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:30 #4085 [Verbose] > │             System.Console.ForegroundColor <- v328                           │

00:01:30 #4086 [Verbose] > │             ()                                                               │

00:01:30 #4087 [Verbose] > │             #endif                                                           │

00:01:30 #4088 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:30 #4089 [Verbose] > │             System.Console.ForegroundColor <- v328                           │

00:01:30 #4090 [Verbose] > │             ()                                                               │

00:01:30 #4091 [Verbose] > │             #endif                                                           │

00:01:30 #4092 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:30 #4093 [Verbose] > │             result |> Option.get                                             │

00:01:30 #4094 [Verbose] > │             ()                                                               │

00:01:30 #4095 [Verbose] > │         let v329 : string = "\t| "                                           │

00:01:30 #4096 [Verbose] > │         let v330 : string = System.String.Join (v329, v326)                  │

00:01:30 #4097 [Verbose] > │         System.Console.WriteLine v330                                        │

00:01:30 #4098 [Verbose] > │         let mutable result = None                                            │

00:01:30 #4099 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:01:30 #4100 [Verbose] > │         ()                                                                   │

00:01:30 #4101 [Verbose] > │         #endif                                                               │

00:01:30 #4102 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:01:30 #4103 [Verbose] > │         ()                                                                   │

00:01:30 #4104 [Verbose] > │         #endif                                                               │

00:01:30 #4105 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:01:30 #4106 [Verbose] > │         System.Console.ResetColor ()                                         │

00:01:30 #4107 [Verbose] > │         ()                                                                   │

00:01:30 #4108 [Verbose] > │         #endif                                                               │

00:01:30 #4109 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:01:30 #4110 [Verbose] > │         System.Console.ResetColor ()                                         │

00:01:30 #4111 [Verbose] > │         ()                                                                   │

00:01:30 #4112 [Verbose] > │         #endif                                                               │

00:01:30 #4113 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:01:30 #4114 [Verbose] > │         System.Console.ResetColor ()                                         │

00:01:30 #4115 [Verbose] > │         ()                                                                   │

00:01:30 #4116 [Verbose] > │         #endif                                                               │

00:01:30 #4117 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:01:30 #4118 [Verbose] > │         result |> Option.get                                                 │

00:01:30 #4119 [Verbose] > │         let v331 : uint64 = v325 + 1UL                                       │

00:01:30 #4120 [Verbose] > │         v323.l0 <- v331                                                      │

00:01:30 #4121 [Verbose] > │         ()                                                                   │

00:01:30 #4122 [Verbose] > │     let v332 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:01:30 #4123 [Verbose] > │ (System.Convert.ToInt32(v168))                                               │

00:01:30 #4124 [Verbose] > │     let v333 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4125 [Verbose] > │     while method6(v168, v333) do                                             │

00:01:30 #4126 [Verbose] > │         let v335 : uint64 = v333.l0                                          │

00:01:30 #4127 [Verbose] > │         let struct (v336 : string, v337 : string, v338 : string, v339 :      │

00:01:30 #4128 [Verbose] > │ (int64 [])) = v83.[int v335]                                                 │

00:01:30 #4129 [Verbose] > │         let v340 : (int64 -> float) = float                                  │

00:01:30 #4130 [Verbose] > │         let v341 : uint64 = System.Convert.ToUInt64 v339.Length              │

00:01:30 #4131 [Verbose] > │         let v342 : (float []) = Array.zeroCreate<float>                      │

00:01:30 #4132 [Verbose] > │ (System.Convert.ToInt32(v341))                                               │

00:01:30 #4133 [Verbose] > │         let v343 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4134 [Verbose] > │         while method6(v341, v343) do                                         │

00:01:30 #4135 [Verbose] > │             let v345 : uint64 = v343.l0                                      │

00:01:30 #4136 [Verbose] > │             let v346 : int64 = v339.[int v345]                               │

00:01:30 #4137 [Verbose] > │             let v347 : float = v340 v346                                     │

00:01:30 #4138 [Verbose] > │             v342.[int v345] <- v347                                          │

00:01:30 #4139 [Verbose] > │             let v348 : uint64 = v345 + 1UL                                   │

00:01:30 #4140 [Verbose] > │             v343.l0 <- v348                                                  │

00:01:30 #4141 [Verbose] > │             ()                                                               │

00:01:30 #4142 [Verbose] > │         v332.[int v335] <- v342                                              │

00:01:30 #4143 [Verbose] > │         let v349 : uint64 = v335 + 1UL                                       │

00:01:30 #4144 [Verbose] > │         v333.l0 <- v349                                                      │

00:01:30 #4145 [Verbose] > │         ()                                                                   │

00:01:30 #4146 [Verbose] > │     let v350 : ((float []) []) = v332 |> Array.transpose                     │

00:01:30 #4147 [Verbose] > │     let v351 : uint64 = System.Convert.ToUInt64 v350.Length                  │

00:01:30 #4148 [Verbose] > │     let v352 : (float []) = Array.zeroCreate<float>                          │

00:01:30 #4149 [Verbose] > │ (System.Convert.ToInt32(v351))                                               │

00:01:30 #4150 [Verbose] > │     let v353 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4151 [Verbose] > │     while method6(v351, v353) do                                             │

00:01:30 #4152 [Verbose] > │         let v355 : uint64 = v353.l0                                          │

00:01:30 #4153 [Verbose] > │         let v356 : (float []) = v350.[int v355]                              │

00:01:30 #4154 [Verbose] > │         let v357 : float = v356 |> Array.average                             │

00:01:30 #4155 [Verbose] > │         v352.[int v355] <- v357                                              │

00:01:30 #4156 [Verbose] > │         let v358 : uint64 = v355 + 1UL                                       │

00:01:30 #4157 [Verbose] > │         v353.l0 <- v358                                                      │

00:01:30 #4158 [Verbose] > │         ()                                                                   │

00:01:30 #4159 [Verbose] > │     let v359 : (float -> int64) = int64                                      │

00:01:30 #4160 [Verbose] > │     let v360 : uint64 = System.Convert.ToUInt64 v352.Length                  │

00:01:30 #4161 [Verbose] > │     let v361 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:30 #4162 [Verbose] > │ (System.Convert.ToInt32(v360))                                               │

00:01:30 #4163 [Verbose] > │     let v362 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4164 [Verbose] > │     while method6(v360, v362) do                                             │

00:01:30 #4165 [Verbose] > │         let v364 : uint64 = v362.l0                                          │

00:01:30 #4166 [Verbose] > │         let v365 : float = v352.[int v364]                                   │

00:01:30 #4167 [Verbose] > │         let v366 : int64 = v359 v365                                         │

00:01:30 #4168 [Verbose] > │         v361.[int v364] <- v366                                              │

00:01:30 #4169 [Verbose] > │         let v367 : uint64 = v364 + 1UL                                       │

00:01:30 #4170 [Verbose] > │         v362.l0 <- v367                                                      │

00:01:30 #4171 [Verbose] > │         ()                                                                   │

00:01:30 #4172 [Verbose] > │     let v368 : uint64 = System.Convert.ToUInt64 v361.Length                  │

00:01:30 #4173 [Verbose] > │     let v369 : UH5 = UH5_1                                                   │

00:01:30 #4174 [Verbose] > │     let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3                   │

00:01:30 #4175 [Verbose] > │     while method28(v368, v370) do                                            │

00:01:30 #4176 [Verbose] > │         let v372 : uint64 = v370.l0                                          │

00:01:30 #4177 [Verbose] > │         let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2             │

00:01:30 #4178 [Verbose] > │         let v375 : int64 = v361.[int v372]                                   │

00:01:30 #4179 [Verbose] > │         let v376 : int32 = v374 + 1                                          │

00:01:30 #4180 [Verbose] > │         let v377 : uint64 = v372 + 1UL                                       │

00:01:30 #4181 [Verbose] > │         let v378 : UH5 = UH5_0(v374, v375, v373)                             │

00:01:30 #4182 [Verbose] > │         v370.l0 <- v377                                                      │

00:01:30 #4183 [Verbose] > │         v370.l1 <- v378                                                      │

00:01:30 #4184 [Verbose] > │         v370.l2 <- v376                                                      │

00:01:30 #4185 [Verbose] > │         ()                                                                   │

00:01:30 #4186 [Verbose] > │     let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2                 │

00:01:30 #4187 [Verbose] > │     let v381 : UH5 = UH5_1                                                   │

00:01:30 #4188 [Verbose] > │     let v382 : UH5 = method29(v379, v381)                                    │

00:01:30 #4189 [Verbose] > │     let v383 : (struct (int32 * int64) []) = method39(v382)                  │

00:01:30 #4190 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #4191 [Verbose] > │     let v384 : string = "Average Ranking  "                                  │

00:01:30 #4192 [Verbose] > │     System.Console.WriteLine v384                                            │

00:01:30 #4193 [Verbose] > │     let v385 : (struct (int32 * int64) -> int64) = closure8()                │

00:01:30 #4194 [Verbose] > │     let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385       │

00:01:30 #4195 [Verbose] > │     let v387 : uint64 = System.Convert.ToUInt64 v386.Length                  │

00:01:30 #4196 [Verbose] > │     let v388 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4197 [Verbose] > │     while method6(v387, v388) do                                             │

00:01:30 #4198 [Verbose] > │         let v390 : uint64 = v388.l0                                          │

00:01:30 #4199 [Verbose] > │         let struct (v391 : int32, v392 : int64) = v386.[int v390]            │

00:01:30 #4200 [Verbose] > │         let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │

00:01:30 #4201 [Verbose] > │ "                                                                            │

00:01:30 #4202 [Verbose] > │         System.Console.WriteLine v393                                        │

00:01:30 #4203 [Verbose] > │         let v394 : uint64 = v390 + 1UL                                       │

00:01:30 #4204 [Verbose] > │         v388.l0 <- v394                                                      │

00:01:30 #4205 [Verbose] > │         ()                                                                   │

00:01:30 #4206 [Verbose] > │     ()                                                                       │

00:01:30 #4207 [Verbose] > │ and method0 () : unit =                                                      │

00:01:30 #4208 [Verbose] > │     let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #4209 [Verbose] > │     let v1 : (int32 []) = method1(v0)                                        │

00:01:30 #4210 [Verbose] > │     let v2 : int32 = v1.Length                                               │

00:01:30 #4211 [Verbose] > │     let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #4212 [Verbose] > │     let v4 : (int32 []) = method1(v3)                                        │

00:01:30 #4213 [Verbose] > │     let v5 : int32 = v4.Length                                               │

00:01:30 #4214 [Verbose] > │     let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #4215 [Verbose] > │     let v7 : (int32 []) = method1(v6)                                        │

00:01:30 #4216 [Verbose] > │     let v8 : int32 = v7.Length                                               │

00:01:30 #4217 [Verbose] > │     let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:30 #4218 [Verbose] > │     let v10 : (int32 []) = method1(v9)                                       │

00:01:30 #4219 [Verbose] > │     let v11 : int32 = v10.Length                                             │

00:01:30 #4220 [Verbose] > │     let v12 : (int32 []) = Array.zeroCreate<int32> (100)                     │

00:01:30 #4221 [Verbose] > │     let v13 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:30 #4222 [Verbose] > │     while method2(v13) do                                                    │

00:01:30 #4223 [Verbose] > │         let v15 : int32 = v13.l0                                             │

00:01:30 #4224 [Verbose] > │         let v16 : int32 = 1 + v15                                            │

00:01:30 #4225 [Verbose] > │         v12.[int v15] <- v16                                                 │

00:01:30 #4226 [Verbose] > │         let v17 : int32 = v15 + 1                                            │

00:01:30 #4227 [Verbose] > │         v13.l0 <- v17                                                        │

00:01:30 #4228 [Verbose] > │         ()                                                                   │

00:01:30 #4229 [Verbose] > │     let v18 : int32 = v12.Length                                             │

00:01:30 #4230 [Verbose] > │     let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #4231 [Verbose] > │     let v20 : (int32 []) = method1(v19)                                      │

00:01:30 #4232 [Verbose] > │     let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #4233 [Verbose] > │     let v22 : (int32 []) = method1(v21)                                      │

00:01:30 #4234 [Verbose] > │     let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #4235 [Verbose] > │     let v24 : (int32 []) = method1(v23)                                      │

00:01:30 #4236 [Verbose] > │     let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:30 #4237 [Verbose] > │     let v26 : (int32 []) = method1(v25)                                      │

00:01:30 #4238 [Verbose] > │     let v27 : (int32 []) = Array.zeroCreate<int32> (100)                     │

00:01:30 #4239 [Verbose] > │     let v28 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:30 #4240 [Verbose] > │     while method2(v28) do                                                    │

00:01:30 #4241 [Verbose] > │         let v30 : int32 = v28.l0                                             │

00:01:30 #4242 [Verbose] > │         let v31 : int32 = 1 + v30                                            │

00:01:30 #4243 [Verbose] > │         v27.[int v30] <- v31                                                 │

00:01:30 #4244 [Verbose] > │         let v32 : int32 = v30 + 1                                            │

00:01:30 #4245 [Verbose] > │         v28.l0 <- v32                                                        │

00:01:30 #4246 [Verbose] > │         ()                                                                   │

00:01:30 #4247 [Verbose] > │     let v33 : (unit -> unit) = closure0()                                    │

00:01:30 #4248 [Verbose] > │     let v34 : string = nameof v33                                            │

00:01:30 #4249 [Verbose] > │     let v35 : string = ""                                                    │

00:01:30 #4250 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #4251 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #4252 [Verbose] > │     let v36 : string = $"Test: {v34}"                                        │

00:01:30 #4253 [Verbose] > │     System.Console.WriteLine v36                                             │

00:01:30 #4254 [Verbose] > │     let v37 : int32 = 6                                                      │

00:01:30 #4255 [Verbose] > │     let v38 : int32 = 3                                                      │

00:01:30 #4256 [Verbose] > │     let v39 : US0 = US0_1(v38)                                               │

00:01:30 #4257 [Verbose] > │     let v40 : int32 = 1                                                      │

00:01:30 #4258 [Verbose] > │     let v41 : int32 = 0                                                      │

00:01:30 #4259 [Verbose] > │     let v42 : US0 = US0_1(v41)                                               │

00:01:30 #4260 [Verbose] > │     let v43 : int32 = 11                                                     │

00:01:30 #4261 [Verbose] > │     let v44 : int32 = 6                                                      │

00:01:30 #4262 [Verbose] > │     let v45 : US0 = US0_1(v44)                                               │

00:01:30 #4263 [Verbose] > │     let v46 : int32 = 12                                                     │

00:01:30 #4264 [Verbose] > │     let v47 : US0 = US0_0                                                    │

00:01:30 #4265 [Verbose] > │     let v48 : int32 = 60                                                     │

00:01:30 #4266 [Verbose] > │     let v49 : int32 = 59                                                     │

00:01:30 #4267 [Verbose] > │     let v50 : US0 = US0_1(v49)                                               │

00:01:30 #4268 [Verbose] > │     let v51 : int32 = 6                                                      │

00:01:30 #4269 [Verbose] > │     let v52 : int32 = 7                                                      │

00:01:30 #4270 [Verbose] > │     let v53 : int32 = 3                                                      │

00:01:30 #4271 [Verbose] > │     let v54 : US0 = US0_1(v53)                                               │

00:01:30 #4272 [Verbose] > │     let v55 : int32 = 1                                                      │

00:01:30 #4273 [Verbose] > │     let v56 : int32 = 7                                                      │

00:01:30 #4274 [Verbose] > │     let v57 : int32 = 0                                                      │

00:01:30 #4275 [Verbose] > │     let v58 : US0 = US0_1(v57)                                               │

00:01:30 #4276 [Verbose] > │     let v59 : int32 = 11                                                     │

00:01:30 #4277 [Verbose] > │     let v60 : int32 = 7                                                      │

00:01:30 #4278 [Verbose] > │     let v61 : int32 = 6                                                      │

00:01:30 #4279 [Verbose] > │     let v62 : US0 = US0_1(v61)                                               │

00:01:30 #4280 [Verbose] > │     let v63 : int32 = 12                                                     │

00:01:30 #4281 [Verbose] > │     let v64 : int32 = 7                                                      │

00:01:30 #4282 [Verbose] > │     let v65 : US0 = US0_0                                                    │

00:01:30 #4283 [Verbose] > │     let v66 : int32 = 60                                                     │

00:01:30 #4284 [Verbose] > │     let v67 : int32 = 100                                                    │

00:01:30 #4285 [Verbose] > │     let v68 : int32 = 59                                                     │

00:01:30 #4286 [Verbose] > │     let v69 : US0 = US0_1(v68)                                               │

00:01:30 #4287 [Verbose] > │     let v70 : UH0 = UH0_1                                                    │

00:01:30 #4288 [Verbose] > │     let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70)                           │

00:01:30 #4289 [Verbose] > │     let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71)                           │

00:01:30 #4290 [Verbose] > │     let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72)                           │

00:01:30 #4291 [Verbose] > │     let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73)                           │

00:01:30 #4292 [Verbose] > │     let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74)                           │

00:01:30 #4293 [Verbose] > │     let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75)                           │

00:01:30 #4294 [Verbose] > │     let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76)                           │

00:01:30 #4295 [Verbose] > │     let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77)                             │

00:01:30 #4296 [Verbose] > │     let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78)                             │

00:01:30 #4297 [Verbose] > │     let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79)                             │

00:01:30 #4298 [Verbose] > │     let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80)  │

00:01:30 #4299 [Verbose] > │     let v82 : uint64 = System.Convert.ToUInt64 v81.Length                    │

00:01:30 #4300 [Verbose] > │     let v83 : (struct (string * string * string * (int64 [])) []) =          │

00:01:30 #4301 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:01:30 #4302 [Verbose] > │ (System.Convert.ToInt32(v82))                                                │

00:01:30 #4303 [Verbose] > │     let v84 : Mut1 = {l0 = 0UL} : Mut1                                       │

00:01:30 #4304 [Verbose] > │     while method6(v82, v84) do                                               │

00:01:30 #4305 [Verbose] > │         let v86 : uint64 = v84.l0                                            │

00:01:30 #4306 [Verbose] > │         let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │

00:01:30 #4307 [Verbose] > │ v81.[int v86]                                                                │

00:01:30 #4308 [Verbose] > │         let v91 : string = $"%A{struct (v87, v88, v89)}"                     │

00:01:30 #4309 [Verbose] > │         System.Console.WriteLine v35                                         │

00:01:30 #4310 [Verbose] > │         let v92 : string = $"Solution: {v91}  "                              │

00:01:30 #4311 [Verbose] > │         System.Console.WriteLine v92                                         │

00:01:30 #4312 [Verbose] > │         let v93 : int32 = 0                                                  │

00:01:30 #4313 [Verbose] > │         let v94 : string = "semi_open_1"                                     │

00:01:30 #4314 [Verbose] > │         let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1()  │

00:01:30 #4315 [Verbose] > │         let v96 : int32 = 1                                                  │

00:01:30 #4316 [Verbose] > │         let v97 : string = "closed_1"                                        │

00:01:30 #4317 [Verbose] > │         let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2()  │

00:01:30 #4318 [Verbose] > │         let v99 : int32 = 2                                                  │

00:01:30 #4319 [Verbose] > │         let v100 : string = "semi_open_2"                                    │

00:01:30 #4320 [Verbose] > │         let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │

00:01:30 #4321 [Verbose] > │         let v102 : int32 = 3                                                 │

00:01:30 #4322 [Verbose] > │         let v103 : string = "closed_2"                                       │

00:01:30 #4323 [Verbose] > │         let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │

00:01:30 #4324 [Verbose] > │         let v105 : UH1 = UH1_1                                               │

00:01:30 #4325 [Verbose] > │         let v106 : UH1 = UH1_0(v102, v103, v104, v105)                       │

00:01:30 #4326 [Verbose] > │         let v107 : UH1 = UH1_0(v99, v100, v101, v106)                        │

00:01:30 #4327 [Verbose] > │         let v108 : UH1 = UH1_0(v96, v97, v98, v107)                          │

00:01:30 #4328 [Verbose] > │         let v109 : UH1 = UH1_0(v93, v94, v95, v108)                          │

00:01:30 #4329 [Verbose] > │         let v110 : (struct (int32 * string * (struct ((int32 []) * int32 *   │

00:01:30 #4330 [Verbose] > │ int32) -> US0)) []) = method11(v109)                                         │

00:01:30 #4331 [Verbose] > │         let v111 : uint64 = System.Convert.ToUInt64 v110.Length              │

00:01:30 #4332 [Verbose] > │         let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0  │

00:01:30 #4333 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111))                                     │

00:01:30 #4334 [Verbose] > │         let v113 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4335 [Verbose] > │         while method6(v111, v113) do                                         │

00:01:30 #4336 [Verbose] > │             let v115 : uint64 = v113.l0                                      │

00:01:30 #4337 [Verbose] > │             let struct (v116 : int32, v117 : string, v118 : (struct ((int32  │

00:01:30 #4338 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115]                              │

00:01:30 #4339 [Verbose] > │             let mutable result = None                                        │

00:01:30 #4340 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:30 #4341 [Verbose] > │             ()                                                               │

00:01:30 #4342 [Verbose] > │             #endif                                                           │

00:01:30 #4343 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:30 #4344 [Verbose] > │             ()                                                               │

00:01:30 #4345 [Verbose] > │             #endif                                                           │

00:01:30 #4346 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:30 #4347 [Verbose] > │             System.GC.Collect ()                                             │

00:01:30 #4348 [Verbose] > │             ()                                                               │

00:01:30 #4349 [Verbose] > │             #endif                                                           │

00:01:30 #4350 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:30 #4351 [Verbose] > │             System.GC.Collect ()                                             │

00:01:30 #4352 [Verbose] > │             ()                                                               │

00:01:30 #4353 [Verbose] > │             #endif                                                           │

00:01:30 #4354 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:30 #4355 [Verbose] > │             System.GC.Collect ()                                             │

00:01:30 #4356 [Verbose] > │             ()                                                               │

00:01:30 #4357 [Verbose] > │             #endif                                                           │

00:01:30 #4358 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:30 #4359 [Verbose] > │             result |> Option.get                                             │

00:01:30 #4360 [Verbose] > │             let v119 : (unit -> System.Diagnostics.Stopwatch) =              │

00:01:30 #4361 [Verbose] > │ System.Diagnostics.Stopwatch                                                 │

00:01:30 #4362 [Verbose] > │             let v120 : System.Diagnostics.Stopwatch = v119 ()                │

00:01:30 #4363 [Verbose] > │             v120.Start ()                                                    │

00:01:30 #4364 [Verbose] > │             let v121 : int64 = v120.ElapsedMilliseconds                      │

00:01:30 #4365 [Verbose] > │             let v122 : (int32 []) = Array.zeroCreate<int32> (8000001)        │

00:01:30 #4366 [Verbose] > │             let v123 : Mut0 = {l0 = 0} : Mut0                                │

00:01:30 #4367 [Verbose] > │             while method14(v123) do                                          │

00:01:30 #4368 [Verbose] > │                 let v125 : int32 = v123.l0                                   │

00:01:30 #4369 [Verbose] > │                 v122.[int v125] <- v125                                      │

00:01:30 #4370 [Verbose] > │                 let v126 : int32 = v125 + 1                                  │

00:01:30 #4371 [Verbose] > │                 v123.l0 <- v126                                              │

00:01:30 #4372 [Verbose] > │                 ()                                                           │

00:01:30 #4373 [Verbose] > │             let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118)        │

00:01:30 #4374 [Verbose] > │             let v128 : (US0 []) = v122 |> Array.Parallel.map v127            │

00:01:30 #4375 [Verbose] > │             let v129 : int32 = v128.Length                                   │

00:01:30 #4376 [Verbose] > │             let v130 : int32 = v129 - 1                                      │

00:01:30 #4377 [Verbose] > │             let v131 : US0 = v128.[int v130]                                 │

00:01:30 #4378 [Verbose] > │             let v132 : int64 = v120.ElapsedMilliseconds                      │

00:01:30 #4379 [Verbose] > │             let v133 : int64 = v132 - v121                                   │

00:01:30 #4380 [Verbose] > │             let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │

00:01:30 #4381 [Verbose] > │ "                                                                            │

00:01:30 #4382 [Verbose] > │             System.Console.WriteLine v134                                    │

00:01:30 #4383 [Verbose] > │             v112.[int v115] <- struct (v131, v133)                           │

00:01:30 #4384 [Verbose] > │             let v135 : uint64 = v115 + 1UL                                   │

00:01:30 #4385 [Verbose] > │             v113.l0 <- v135                                                  │

00:01:30 #4386 [Verbose] > │             ()                                                               │

00:01:30 #4387 [Verbose] > │         let v136 : uint64 = System.Convert.ToUInt64 v112.Length              │

00:01:30 #4388 [Verbose] > │         let v137 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:30 #4389 [Verbose] > │ (System.Convert.ToInt32(v136))                                               │

00:01:30 #4390 [Verbose] > │         let v138 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4391 [Verbose] > │         while method6(v136, v138) do                                         │

00:01:30 #4392 [Verbose] > │             let v140 : uint64 = v138.l0                                      │

00:01:30 #4393 [Verbose] > │             let struct (v141 : US0, v142 : int64) = v112.[int v140]          │

00:01:30 #4394 [Verbose] > │             v137.[int v140] <- v141                                          │

00:01:30 #4395 [Verbose] > │             let v143 : uint64 = v140 + 1UL                                   │

00:01:30 #4396 [Verbose] > │             v138.l0 <- v143                                                  │

00:01:30 #4397 [Verbose] > │             ()                                                               │

00:01:30 #4398 [Verbose] > │         let v144 : uint64 = System.Convert.ToUInt64 v137.Length              │

00:01:30 #4399 [Verbose] > │         let v145 : bool = v144 <= 1UL                                        │

00:01:30 #4400 [Verbose] > │         if v145 then                                                         │

00:01:30 #4401 [Verbose] > │             ()                                                               │

00:01:30 #4402 [Verbose] > │         else                                                                 │

00:01:30 #4403 [Verbose] > │             let v146 : US0 = v137.[int 0UL]                                  │

00:01:30 #4404 [Verbose] > │             let v147 : uint64 = 0UL                                          │

00:01:30 #4405 [Verbose] > │             let v148 : bool = method15(v146, v137, v147)                     │

00:01:30 #4406 [Verbose] > │             if v148 then                                                     │

00:01:30 #4407 [Verbose] > │                 ()                                                           │

00:01:30 #4408 [Verbose] > │             else                                                             │

00:01:30 #4409 [Verbose] > │                 let v149 : string = $"Challenge error: {v137}"               │

00:01:30 #4410 [Verbose] > │                 failwith<unit> v149                                          │

00:01:30 #4411 [Verbose] > │         let v150 : string = $"%A{v90}"                                       │

00:01:30 #4412 [Verbose] > │         let v151 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:30 #4413 [Verbose] > │ (System.Convert.ToInt32(v136))                                               │

00:01:30 #4414 [Verbose] > │         let v152 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4415 [Verbose] > │         while method6(v136, v152) do                                         │

00:01:30 #4416 [Verbose] > │             let v154 : uint64 = v152.l0                                      │

00:01:30 #4417 [Verbose] > │             let struct (v155 : US0, v156 : int64) = v112.[int v154]          │

00:01:30 #4418 [Verbose] > │             v151.[int v154] <- v155                                          │

00:01:30 #4419 [Verbose] > │             let v157 : uint64 = v154 + 1UL                                   │

00:01:30 #4420 [Verbose] > │             v152.l0 <- v157                                                  │

00:01:30 #4421 [Verbose] > │             ()                                                               │

00:01:30 #4422 [Verbose] > │         let v158 : US0 = v151.[int 0UL]                                      │

00:01:30 #4423 [Verbose] > │         let v159 : string = $"%A{v158}"                                      │

00:01:30 #4424 [Verbose] > │         let v160 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:30 #4425 [Verbose] > │ (System.Convert.ToInt32(v136))                                               │

00:01:30 #4426 [Verbose] > │         let v161 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4427 [Verbose] > │         while method6(v136, v161) do                                         │

00:01:30 #4428 [Verbose] > │             let v163 : uint64 = v161.l0                                      │

00:01:30 #4429 [Verbose] > │             let struct (v164 : US0, v165 : int64) = v112.[int v163]          │

00:01:30 #4430 [Verbose] > │             v160.[int v163] <- v165                                          │

00:01:30 #4431 [Verbose] > │             let v166 : uint64 = v163 + 1UL                                   │

00:01:30 #4432 [Verbose] > │             v161.l0 <- v166                                                  │

00:01:30 #4433 [Verbose] > │             ()                                                               │

00:01:30 #4434 [Verbose] > │         v83.[int v86] <- struct (v150, v91, v159, v160)                      │

00:01:30 #4435 [Verbose] > │         let v167 : uint64 = v86 + 1UL                                        │

00:01:30 #4436 [Verbose] > │         v84.l0 <- v167                                                       │

00:01:30 #4437 [Verbose] > │         ()                                                                   │

00:01:30 #4438 [Verbose] > │     let v168 : uint64 = System.Convert.ToUInt64 v83.Length                   │

00:01:30 #4439 [Verbose] > │     let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:30 #4440 [Verbose] > │ US1)> (System.Convert.ToInt32(v168))                                         │

00:01:30 #4441 [Verbose] > │     let v170 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4442 [Verbose] > │     while method6(v168, v170) do                                             │

00:01:30 #4443 [Verbose] > │         let v172 : uint64 = v170.l0                                          │

00:01:30 #4444 [Verbose] > │         let struct (v173 : string, v174 : string, v175 : string, v176 :      │

00:01:30 #4445 [Verbose] > │ (int64 [])) = v83.[int v172]                                                 │

00:01:30 #4446 [Verbose] > │         let v177 : uint64 = System.Convert.ToUInt64 v176.Length              │

00:01:30 #4447 [Verbose] > │         let v178 : UH3 = UH3_1                                               │

00:01:30 #4448 [Verbose] > │         let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2              │

00:01:30 #4449 [Verbose] > │         while method16(v177, v179) do                                        │

00:01:30 #4450 [Verbose] > │             let v181 : uint64 = v179.l0                                      │

00:01:30 #4451 [Verbose] > │             let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2         │

00:01:30 #4452 [Verbose] > │             let v184 : int64 = v176.[int v181]                               │

00:01:30 #4453 [Verbose] > │             let v185 : int64 = v183 + 1L                                     │

00:01:30 #4454 [Verbose] > │             let v186 : uint64 = v181 + 1UL                                   │

00:01:30 #4455 [Verbose] > │             let v187 : UH3 = UH3_0(v183, v184, v182)                         │

00:01:30 #4456 [Verbose] > │             v179.l0 <- v186                                                  │

00:01:30 #4457 [Verbose] > │             v179.l1 <- v187                                                  │

00:01:30 #4458 [Verbose] > │             v179.l2 <- v185                                                  │

00:01:30 #4459 [Verbose] > │             ()                                                               │

00:01:30 #4460 [Verbose] > │         let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2             │

00:01:30 #4461 [Verbose] > │         let v190 : UH3 = UH3_1                                               │

00:01:30 #4462 [Verbose] > │         let v191 : UH3 = method17(v188, v190)                                │

00:01:30 #4463 [Verbose] > │         let v192 : (struct (int64 * int64) []) = method18(v191)              │

00:01:30 #4464 [Verbose] > │         let v193 : int32 = v192.Length                                       │

00:01:30 #4465 [Verbose] > │         let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:01:30 #4466 [Verbose] > │ (int64 * int64)> (v193)                                                      │

00:01:30 #4467 [Verbose] > │         let v195 : Mut0 = {l0 = 0} : Mut0                                    │

00:01:30 #4468 [Verbose] > │         while method21(v193, v195) do                                        │

00:01:30 #4469 [Verbose] > │             let v197 : int32 = v195.l0                                       │

00:01:30 #4470 [Verbose] > │             let struct (v198 : int64, v199 : int64) = v192.[int v197]        │

00:01:30 #4471 [Verbose] > │             let v200 : int64 = v198 + 1L                                     │

00:01:30 #4472 [Verbose] > │             v194.[int v197] <- struct (v200, v199)                           │

00:01:30 #4473 [Verbose] > │             let v201 : int32 = v197 + 1                                      │

00:01:30 #4474 [Verbose] > │             v195.l0 <- v201                                                  │

00:01:30 #4475 [Verbose] > │             ()                                                               │

00:01:30 #4476 [Verbose] > │         let v202 : (struct (int64 * int64) -> int64) = closure6()            │

00:01:30 #4477 [Verbose] > │         let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202   │

00:01:30 #4478 [Verbose] > │         let struct (v204 : int64, v205 : int64) = v203.[int 0]               │

00:01:30 #4479 [Verbose] > │         let v206 : string = $"%A{struct (v204, v205)}"                       │

00:01:30 #4480 [Verbose] > │         let v207 : bool = v173 = v175                                        │

00:01:30 #4481 [Verbose] > │         let v212 : US1 =                                                     │

00:01:30 #4482 [Verbose] > │             if v207 then                                                     │

00:01:30 #4483 [Verbose] > │                 let v208 : System.ConsoleColor =                             │

00:01:30 #4484 [Verbose] > │ System.ConsoleColor.DarkGreen                                                │

00:01:30 #4485 [Verbose] > │                 US1_1(v208)                                                  │

00:01:30 #4486 [Verbose] > │             else                                                             │

00:01:30 #4487 [Verbose] > │                 let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:01:30 #4488 [Verbose] > │                 US1_1(v210)                                                  │

00:01:30 #4489 [Verbose] > │         let v213 : UH2 = UH2_1                                               │

00:01:30 #4490 [Verbose] > │         let v214 : UH2 = UH2_0(v206, v213)                                   │

00:01:30 #4491 [Verbose] > │         let v215 : UH2 = UH2_0(v175, v214)                                   │

00:01:30 #4492 [Verbose] > │         let v216 : UH2 = UH2_0(v173, v215)                                   │

00:01:30 #4493 [Verbose] > │         let v217 : UH2 = UH2_0(v174, v216)                                   │

00:01:30 #4494 [Verbose] > │         v169.[int v172] <- struct (v217, v212)                               │

00:01:30 #4495 [Verbose] > │         let v218 : uint64 = v172 + 1UL                                       │

00:01:30 #4496 [Verbose] > │         v170.l0 <- v218                                                      │

00:01:30 #4497 [Verbose] > │         ()                                                                   │

00:01:30 #4498 [Verbose] > │     let v219 : string = "Input"                                              │

00:01:30 #4499 [Verbose] > │     let v220 : string = "Expected"                                           │

00:01:30 #4500 [Verbose] > │     let v221 : string = "Result"                                             │

00:01:30 #4501 [Verbose] > │     let v222 : string = "Best"                                               │

00:01:30 #4502 [Verbose] > │     let v223 : UH2 = UH2_1                                                   │

00:01:30 #4503 [Verbose] > │     let v224 : UH2 = UH2_0(v222, v223)                                       │

00:01:30 #4504 [Verbose] > │     let v225 : UH2 = UH2_0(v221, v224)                                       │

00:01:30 #4505 [Verbose] > │     let v226 : UH2 = UH2_0(v220, v225)                                       │

00:01:30 #4506 [Verbose] > │     let v227 : UH2 = UH2_0(v219, v226)                                       │

00:01:30 #4507 [Verbose] > │     let v228 : US1 = US1_0                                                   │

00:01:30 #4508 [Verbose] > │     let v229 : string = "---"                                                │

00:01:30 #4509 [Verbose] > │     let v230 : UH2 = UH2_1                                                   │

00:01:30 #4510 [Verbose] > │     let v231 : UH2 = UH2_0(v229, v230)                                       │

00:01:30 #4511 [Verbose] > │     let v232 : UH2 = UH2_0(v229, v231)                                       │

00:01:30 #4512 [Verbose] > │     let v233 : UH2 = UH2_0(v229, v232)                                       │

00:01:30 #4513 [Verbose] > │     let v234 : UH2 = UH2_0(v229, v233)                                       │

00:01:30 #4514 [Verbose] > │     let v235 : US1 = US1_0                                                   │

00:01:30 #4515 [Verbose] > │     let v236 : UH4 = UH4_1                                                   │

00:01:30 #4516 [Verbose] > │     let v237 : UH4 = UH4_0(v234, v235, v236)                                 │

00:01:30 #4517 [Verbose] > │     let v238 : UH4 = UH4_0(v227, v228, v237)                                 │

00:01:30 #4518 [Verbose] > │     let v239 : (struct (UH2 * US1) []) = method22(v238)                      │

00:01:30 #4519 [Verbose] > │     let v240 : uint64 = System.Convert.ToUInt64 v239.Length                  │

00:01:30 #4520 [Verbose] > │     let v241 : uint64 = System.Convert.ToUInt64 v169.Length                  │

00:01:30 #4521 [Verbose] > │     let v242 : uint64 = v240 + v241                                          │

00:01:30 #4522 [Verbose] > │     let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:30 #4523 [Verbose] > │ US1)> (System.Convert.ToInt32(v242))                                         │

00:01:30 #4524 [Verbose] > │     let v244 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4525 [Verbose] > │     while method6(v242, v244) do                                             │

00:01:30 #4526 [Verbose] > │         let v246 : uint64 = v244.l0                                          │

00:01:30 #4527 [Verbose] > │         let v247 : bool = v246 < v240                                        │

00:01:30 #4528 [Verbose] > │         let struct (v253 : UH2, v254 : US1) =                                │

00:01:30 #4529 [Verbose] > │             if v247 then                                                     │

00:01:30 #4530 [Verbose] > │                 let struct (v248 : UH2, v249 : US1) = v239.[int v246]        │

00:01:30 #4531 [Verbose] > │                 struct (v248, v249)                                          │

00:01:30 #4532 [Verbose] > │             else                                                             │

00:01:30 #4533 [Verbose] > │                 let v250 : uint64 = v246 - v240                              │

00:01:30 #4534 [Verbose] > │                 let struct (v251 : UH2, v252 : US1) = v169.[int v250]        │

00:01:30 #4535 [Verbose] > │                 struct (v251, v252)                                          │

00:01:30 #4536 [Verbose] > │         v243.[int v246] <- struct (v253, v254)                               │

00:01:30 #4537 [Verbose] > │         let v255 : uint64 = v246 + 1UL                                       │

00:01:30 #4538 [Verbose] > │         v244.l0 <- v255                                                      │

00:01:30 #4539 [Verbose] > │         ()                                                                   │

00:01:30 #4540 [Verbose] > │     let v256 : uint64 = System.Convert.ToUInt64 v243.Length                  │

00:01:30 #4541 [Verbose] > │     let v257 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:01:30 #4542 [Verbose] > │ (System.Convert.ToInt32(v256))                                               │

00:01:30 #4543 [Verbose] > │     let v258 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4544 [Verbose] > │     while method6(v256, v258) do                                             │

00:01:30 #4545 [Verbose] > │         let v260 : uint64 = v258.l0                                          │

00:01:30 #4546 [Verbose] > │         let struct (v261 : UH2, v262 : US1) = v243.[int v260]                │

00:01:30 #4547 [Verbose] > │         let v263 : (string []) = method25(v261)                              │

00:01:30 #4548 [Verbose] > │         v257.[int v260] <- v263                                              │

00:01:30 #4549 [Verbose] > │         let v264 : uint64 = v260 + 1UL                                       │

00:01:30 #4550 [Verbose] > │         v258.l0 <- v264                                                      │

00:01:30 #4551 [Verbose] > │         ()                                                                   │

00:01:30 #4552 [Verbose] > │     let v265 : ((string []) []) = v257 |> Array.transpose                    │

00:01:30 #4553 [Verbose] > │     let v266 : uint64 = System.Convert.ToUInt64 v265.Length                  │

00:01:30 #4554 [Verbose] > │     let v267 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:30 #4555 [Verbose] > │ (System.Convert.ToInt32(v266))                                               │

00:01:30 #4556 [Verbose] > │     let v268 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4557 [Verbose] > │     while method6(v266, v268) do                                             │

00:01:30 #4558 [Verbose] > │         let v270 : uint64 = v268.l0                                          │

00:01:30 #4559 [Verbose] > │         let v271 : (string []) = v265.[int v270]                             │

00:01:30 #4560 [Verbose] > │         let v272 : uint64 = System.Convert.ToUInt64 v271.Length              │

00:01:30 #4561 [Verbose] > │         let v273 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:30 #4562 [Verbose] > │ (System.Convert.ToInt32(v272))                                               │

00:01:30 #4563 [Verbose] > │         let v274 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4564 [Verbose] > │         while method6(v272, v274) do                                         │

00:01:30 #4565 [Verbose] > │             let v276 : uint64 = v274.l0                                      │

00:01:30 #4566 [Verbose] > │             let v277 : string = v271.[int v276]                              │

00:01:30 #4567 [Verbose] > │             let v278 : int64 = System.Convert.ToInt64 v277.Length            │

00:01:30 #4568 [Verbose] > │             v273.[int v276] <- v278                                          │

00:01:30 #4569 [Verbose] > │             let v279 : uint64 = v276 + 1UL                                   │

00:01:30 #4570 [Verbose] > │             v274.l0 <- v279                                                  │

00:01:30 #4571 [Verbose] > │             ()                                                               │

00:01:30 #4572 [Verbose] > │         let v280 : (int64 []) = v273 |> Array.sortDescending                 │

00:01:30 #4573 [Verbose] > │         let v281 : int64 option = v280 |> Array.tryItem 0                    │

00:01:30 #4574 [Verbose] > │         let v282 : (int64 -> US2) = closure7()                               │

00:01:30 #4575 [Verbose] > │         let v283 : US2 = US2_0                                               │

00:01:30 #4576 [Verbose] > │         let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │

00:01:30 #4577 [Verbose] > │         let v287 : int64 =                                                   │

00:01:30 #4578 [Verbose] > │             match v284 with                                                  │

00:01:30 #4579 [Verbose] > │             | US2_0 -> (* None *)                                            │

00:01:30 #4580 [Verbose] > │                 0L                                                           │

00:01:30 #4581 [Verbose] > │             | US2_1(v285) -> (* Some *)                                      │

00:01:30 #4582 [Verbose] > │                 v285                                                         │

00:01:30 #4583 [Verbose] > │         v267.[int v270] <- v287                                              │

00:01:30 #4584 [Verbose] > │         let v288 : uint64 = v270 + 1UL                                       │

00:01:30 #4585 [Verbose] > │         v268.l0 <- v288                                                      │

00:01:30 #4586 [Verbose] > │         ()                                                                   │

00:01:30 #4587 [Verbose] > │     let v289 : uint64 = System.Convert.ToUInt64 v267.Length                  │

00:01:30 #4588 [Verbose] > │     let v290 : UH5 = UH5_1                                                   │

00:01:30 #4589 [Verbose] > │     let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3                   │

00:01:30 #4590 [Verbose] > │     while method28(v289, v291) do                                            │

00:01:30 #4591 [Verbose] > │         let v293 : uint64 = v291.l0                                          │

00:01:30 #4592 [Verbose] > │         let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2             │

00:01:30 #4593 [Verbose] > │         let v296 : int64 = v267.[int v293]                                   │

00:01:30 #4594 [Verbose] > │         let v297 : int32 = v295 + 1                                          │

00:01:30 #4595 [Verbose] > │         let v298 : uint64 = v293 + 1UL                                       │

00:01:30 #4596 [Verbose] > │         let v299 : UH5 = UH5_0(v295, v296, v294)                             │

00:01:30 #4597 [Verbose] > │         v291.l0 <- v298                                                      │

00:01:30 #4598 [Verbose] > │         v291.l1 <- v299                                                      │

00:01:30 #4599 [Verbose] > │         v291.l2 <- v297                                                      │

00:01:30 #4600 [Verbose] > │         ()                                                                   │

00:01:30 #4601 [Verbose] > │     let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2                 │

00:01:30 #4602 [Verbose] > │     let v302 : UH5 = UH5_1                                                   │

00:01:30 #4603 [Verbose] > │     let v303 : UH5 = method29(v300, v302)                                    │

00:01:30 #4604 [Verbose] > │     let v304 : (struct (int32 * int64) []) = method30(v303)                  │

00:01:30 #4605 [Verbose] > │     let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │

00:01:30 #4606 [Verbose] > │ a, b) |> Map.ofArray                                                         │

00:01:30 #4607 [Verbose] > │     let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct     │

00:01:30 #4608 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256))                          │

00:01:30 #4609 [Verbose] > │     let v307 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4610 [Verbose] > │     while method6(v256, v307) do                                             │

00:01:30 #4611 [Verbose] > │         let v309 : uint64 = v307.l0                                          │

00:01:30 #4612 [Verbose] > │         let struct (v310 : UH2, v311 : US1) = v243.[int v309]                │

00:01:30 #4613 [Verbose] > │         let v312 : UH6 = UH6_1                                               │

00:01:30 #4614 [Verbose] > │         let v313 : int32 = 0                                                 │

00:01:30 #4615 [Verbose] > │         let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313)   │

00:01:30 #4616 [Verbose] > │         let v316 : UH6 = UH6_1                                               │

00:01:30 #4617 [Verbose] > │         let v317 : UH6 = method34(v314, v316)                                │

00:01:30 #4618 [Verbose] > │         let v318 : UH2 = UH2_1                                               │

00:01:30 #4619 [Verbose] > │         let v319 : UH2 = method35(v305, v317, v318)                          │

00:01:30 #4620 [Verbose] > │         let v320 : (string []) = method36(v319)                              │

00:01:30 #4621 [Verbose] > │         v306.[int v309] <- struct (v320, v311)                               │

00:01:30 #4622 [Verbose] > │         let v321 : uint64 = v309 + 1UL                                       │

00:01:30 #4623 [Verbose] > │         v307.l0 <- v321                                                      │

00:01:30 #4624 [Verbose] > │         ()                                                                   │

00:01:30 #4625 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #4626 [Verbose] > │     let v322 : uint64 = System.Convert.ToUInt64 v306.Length                  │

00:01:30 #4627 [Verbose] > │     let v323 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4628 [Verbose] > │     while method6(v322, v323) do                                             │

00:01:30 #4629 [Verbose] > │         let v325 : uint64 = v323.l0                                          │

00:01:30 #4630 [Verbose] > │         let struct (v326 : (string []), v327 : US1) = v306.[int v325]        │

00:01:30 #4631 [Verbose] > │         match v327 with                                                      │

00:01:30 #4632 [Verbose] > │         | US1_0 -> (* None *)                                                │

00:01:30 #4633 [Verbose] > │             let mutable result = None                                        │

00:01:30 #4634 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:30 #4635 [Verbose] > │             ()                                                               │

00:01:30 #4636 [Verbose] > │             #endif                                                           │

00:01:30 #4637 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:30 #4638 [Verbose] > │             ()                                                               │

00:01:30 #4639 [Verbose] > │             #endif                                                           │

00:01:30 #4640 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:30 #4641 [Verbose] > │             System.Console.ResetColor ()                                     │

00:01:30 #4642 [Verbose] > │             ()                                                               │

00:01:30 #4643 [Verbose] > │             #endif                                                           │

00:01:30 #4644 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:30 #4645 [Verbose] > │             System.Console.ResetColor ()                                     │

00:01:30 #4646 [Verbose] > │             ()                                                               │

00:01:30 #4647 [Verbose] > │             #endif                                                           │

00:01:30 #4648 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:30 #4649 [Verbose] > │             System.Console.ResetColor ()                                     │

00:01:30 #4650 [Verbose] > │             ()                                                               │

00:01:30 #4651 [Verbose] > │             #endif                                                           │

00:01:30 #4652 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:30 #4653 [Verbose] > │             result |> Option.get                                             │

00:01:30 #4654 [Verbose] > │             ()                                                               │

00:01:30 #4655 [Verbose] > │         | US1_1(v328) -> (* Some *)                                          │

00:01:30 #4656 [Verbose] > │             let mutable result = None                                        │

00:01:30 #4657 [Verbose] > │             #if FABLE_COMPILER_RUST && !WASM                                 │

00:01:30 #4658 [Verbose] > │             ()                                                               │

00:01:30 #4659 [Verbose] > │             #endif                                                           │

00:01:30 #4660 [Verbose] > │             #if FABLE_COMPILER_RUST && WASM                                  │

00:01:30 #4661 [Verbose] > │             ()                                                               │

00:01:30 #4662 [Verbose] > │             #endif                                                           │

00:01:30 #4663 [Verbose] > │             #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM             │

00:01:30 #4664 [Verbose] > │             System.Console.ForegroundColor <- v328                           │

00:01:30 #4665 [Verbose] > │             ()                                                               │

00:01:30 #4666 [Verbose] > │             #endif                                                           │

00:01:30 #4667 [Verbose] > │             #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM              │

00:01:30 #4668 [Verbose] > │             System.Console.ForegroundColor <- v328                           │

00:01:30 #4669 [Verbose] > │             ()                                                               │

00:01:30 #4670 [Verbose] > │             #endif                                                           │

00:01:30 #4671 [Verbose] > │             #if !FABLE_COMPILER_RUST && WASM                                 │

00:01:30 #4672 [Verbose] > │             System.Console.ForegroundColor <- v328                           │

00:01:30 #4673 [Verbose] > │             ()                                                               │

00:01:30 #4674 [Verbose] > │             #endif                                                           │

00:01:30 #4675 [Verbose] > │             |> fun x -> result <- Some x                                     │

00:01:30 #4676 [Verbose] > │             result |> Option.get                                             │

00:01:30 #4677 [Verbose] > │             ()                                                               │

00:01:30 #4678 [Verbose] > │         let v329 : string = "\t| "                                           │

00:01:30 #4679 [Verbose] > │         let v330 : string = System.String.Join (v329, v326)                  │

00:01:30 #4680 [Verbose] > │         System.Console.WriteLine v330                                        │

00:01:30 #4681 [Verbose] > │         let mutable result = None                                            │

00:01:30 #4682 [Verbose] > │         #if FABLE_COMPILER_RUST && !WASM                                     │

00:01:30 #4683 [Verbose] > │         ()                                                                   │

00:01:30 #4684 [Verbose] > │         #endif                                                               │

00:01:30 #4685 [Verbose] > │         #if FABLE_COMPILER_RUST && WASM                                      │

00:01:30 #4686 [Verbose] > │         ()                                                                   │

00:01:30 #4687 [Verbose] > │         #endif                                                               │

00:01:30 #4688 [Verbose] > │         #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                 │

00:01:30 #4689 [Verbose] > │         System.Console.ResetColor ()                                         │

00:01:30 #4690 [Verbose] > │         ()                                                                   │

00:01:30 #4691 [Verbose] > │         #endif                                                               │

00:01:30 #4692 [Verbose] > │         #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM                  │

00:01:30 #4693 [Verbose] > │         System.Console.ResetColor ()                                         │

00:01:30 #4694 [Verbose] > │         ()                                                                   │

00:01:30 #4695 [Verbose] > │         #endif                                                               │

00:01:30 #4696 [Verbose] > │         #if !FABLE_COMPILER_RUST && WASM                                     │

00:01:30 #4697 [Verbose] > │         System.Console.ResetColor ()                                         │

00:01:30 #4698 [Verbose] > │         ()                                                                   │

00:01:30 #4699 [Verbose] > │         #endif                                                               │

00:01:30 #4700 [Verbose] > │         |> fun x -> result <- Some x                                         │

00:01:30 #4701 [Verbose] > │         result |> Option.get                                                 │

00:01:30 #4702 [Verbose] > │         let v331 : uint64 = v325 + 1UL                                       │

00:01:30 #4703 [Verbose] > │         v323.l0 <- v331                                                      │

00:01:30 #4704 [Verbose] > │         ()                                                                   │

00:01:30 #4705 [Verbose] > │     let v332 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:01:30 #4706 [Verbose] > │ (System.Convert.ToInt32(v168))                                               │

00:01:30 #4707 [Verbose] > │     let v333 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4708 [Verbose] > │     while method6(v168, v333) do                                             │

00:01:30 #4709 [Verbose] > │         let v335 : uint64 = v333.l0                                          │

00:01:30 #4710 [Verbose] > │         let struct (v336 : string, v337 : string, v338 : string, v339 :      │

00:01:30 #4711 [Verbose] > │ (int64 [])) = v83.[int v335]                                                 │

00:01:30 #4712 [Verbose] > │         let v340 : (int64 -> float) = float                                  │

00:01:30 #4713 [Verbose] > │         let v341 : uint64 = System.Convert.ToUInt64 v339.Length              │

00:01:30 #4714 [Verbose] > │         let v342 : (float []) = Array.zeroCreate<float>                      │

00:01:30 #4715 [Verbose] > │ (System.Convert.ToInt32(v341))                                               │

00:01:30 #4716 [Verbose] > │         let v343 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:30 #4717 [Verbose] > │         while method6(v341, v343) do                                         │

00:01:30 #4718 [Verbose] > │             let v345 : uint64 = v343.l0                                      │

00:01:30 #4719 [Verbose] > │             let v346 : int64 = v339.[int v345]                               │

00:01:30 #4720 [Verbose] > │             let v347 : float = v340 v346                                     │

00:01:30 #4721 [Verbose] > │             v342.[int v345] <- v347                                          │

00:01:30 #4722 [Verbose] > │             let v348 : uint64 = v345 + 1UL                                   │

00:01:30 #4723 [Verbose] > │             v343.l0 <- v348                                                  │

00:01:30 #4724 [Verbose] > │             ()                                                               │

00:01:30 #4725 [Verbose] > │         v332.[int v335] <- v342                                              │

00:01:30 #4726 [Verbose] > │         let v349 : uint64 = v335 + 1UL                                       │

00:01:30 #4727 [Verbose] > │         v333.l0 <- v349                                                      │

00:01:30 #4728 [Verbose] > │         ()                                                                   │

00:01:30 #4729 [Verbose] > │     let v350 : ((float []) []) = v332 |> Array.transpose                     │

00:01:30 #4730 [Verbose] > │     let v351 : uint64 = System.Convert.ToUInt64 v350.Length                  │

00:01:30 #4731 [Verbose] > │     let v352 : (float []) = Array.zeroCreate<float>                          │

00:01:30 #4732 [Verbose] > │ (System.Convert.ToInt32(v351))                                               │

00:01:30 #4733 [Verbose] > │     let v353 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4734 [Verbose] > │     while method6(v351, v353) do                                             │

00:01:30 #4735 [Verbose] > │         let v355 : uint64 = v353.l0                                          │

00:01:30 #4736 [Verbose] > │         let v356 : (float []) = v350.[int v355]                              │

00:01:30 #4737 [Verbose] > │         let v357 : float = v356 |> Array.average                             │

00:01:30 #4738 [Verbose] > │         v352.[int v355] <- v357                                              │

00:01:30 #4739 [Verbose] > │         let v358 : uint64 = v355 + 1UL                                       │

00:01:30 #4740 [Verbose] > │         v353.l0 <- v358                                                      │

00:01:30 #4741 [Verbose] > │         ()                                                                   │

00:01:30 #4742 [Verbose] > │     let v359 : (float -> int64) = int64                                      │

00:01:30 #4743 [Verbose] > │     let v360 : uint64 = System.Convert.ToUInt64 v352.Length                  │

00:01:30 #4744 [Verbose] > │     let v361 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:30 #4745 [Verbose] > │ (System.Convert.ToInt32(v360))                                               │

00:01:30 #4746 [Verbose] > │     let v362 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4747 [Verbose] > │     while method6(v360, v362) do                                             │

00:01:30 #4748 [Verbose] > │         let v364 : uint64 = v362.l0                                          │

00:01:30 #4749 [Verbose] > │         let v365 : float = v352.[int v364]                                   │

00:01:30 #4750 [Verbose] > │         let v366 : int64 = v359 v365                                         │

00:01:30 #4751 [Verbose] > │         v361.[int v364] <- v366                                              │

00:01:30 #4752 [Verbose] > │         let v367 : uint64 = v364 + 1UL                                       │

00:01:30 #4753 [Verbose] > │         v362.l0 <- v367                                                      │

00:01:30 #4754 [Verbose] > │         ()                                                                   │

00:01:30 #4755 [Verbose] > │     let v368 : uint64 = System.Convert.ToUInt64 v361.Length                  │

00:01:30 #4756 [Verbose] > │     let v369 : UH5 = UH5_1                                                   │

00:01:30 #4757 [Verbose] > │     let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3                   │

00:01:30 #4758 [Verbose] > │     while method28(v368, v370) do                                            │

00:01:30 #4759 [Verbose] > │         let v372 : uint64 = v370.l0                                          │

00:01:30 #4760 [Verbose] > │         let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2             │

00:01:30 #4761 [Verbose] > │         let v375 : int64 = v361.[int v372]                                   │

00:01:30 #4762 [Verbose] > │         let v376 : int32 = v374 + 1                                          │

00:01:30 #4763 [Verbose] > │         let v377 : uint64 = v372 + 1UL                                       │

00:01:30 #4764 [Verbose] > │         let v378 : UH5 = UH5_0(v374, v375, v373)                             │

00:01:30 #4765 [Verbose] > │         v370.l0 <- v377                                                      │

00:01:30 #4766 [Verbose] > │         v370.l1 <- v378                                                      │

00:01:30 #4767 [Verbose] > │         v370.l2 <- v376                                                      │

00:01:30 #4768 [Verbose] > │         ()                                                                   │

00:01:30 #4769 [Verbose] > │     let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2                 │

00:01:30 #4770 [Verbose] > │     let v381 : UH5 = UH5_1                                                   │

00:01:30 #4771 [Verbose] > │     let v382 : UH5 = method29(v379, v381)                                    │

00:01:30 #4772 [Verbose] > │     let v383 : (struct (int32 * int64) []) = method39(v382)                  │

00:01:30 #4773 [Verbose] > │     System.Console.WriteLine v35                                             │

00:01:30 #4774 [Verbose] > │     let v384 : string = "Average Ranking  "                                  │

00:01:30 #4775 [Verbose] > │     System.Console.WriteLine v384                                            │

00:01:30 #4776 [Verbose] > │     let v385 : (struct (int32 * int64) -> int64) = closure8()                │

00:01:30 #4777 [Verbose] > │     let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385       │

00:01:30 #4778 [Verbose] > │     let v387 : uint64 = System.Convert.ToUInt64 v386.Length                  │

00:01:30 #4779 [Verbose] > │     let v388 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:30 #4780 [Verbose] > │     while method6(v387, v388) do                                             │

00:01:30 #4781 [Verbose] > │         let v390 : uint64 = v388.l0                                          │

00:01:30 #4782 [Verbose] > │         let struct (v391 : int32, v392 : int64) = v386.[int v390]            │

00:01:30 #4783 [Verbose] > │         let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │

00:01:30 #4784 [Verbose] > │ "                                                                            │

00:01:30 #4785 [Verbose] > │         System.Console.WriteLine v393                                        │

00:01:30 #4786 [Verbose] > │         let v394 : uint64 = v390 + 1UL                                       │

00:01:30 #4787 [Verbose] > │         v388.l0 <- v394                                                      │

00:01:30 #4788 [Verbose] > │         ()                                                                   │

00:01:30 #4789 [Verbose] > │     ()                                                                       │

00:01:30 #4790 [Verbose] > │ method0()                                                                    │

00:01:30 #4791 [Verbose] > │                                                                              │

00:01:30 #4792 [Verbose] > │                                                                              │

00:01:30 #4793 [Verbose] > │                                                                              │

00:01:30 #4794 [Verbose] > │ Test: v33                                                                    │

00:01:30 #4795 [Verbose] > │                                                                              │

00:01:30 #4796 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                            │

00:01:30 #4797 [Verbose] > │ Test case 1. semi_open_1. Time: 556                                          │

00:01:30 #4798 [Verbose] > │ Test case 2. closed_1. Time: 479                                             │

00:01:30 #4799 [Verbose] > │ Test case 3. semi_open_2. Time: 482                                          │

00:01:30 #4800 [Verbose] > │ Test case 4. closed_2. Time: 544                                             │

00:01:30 #4801 [Verbose] > │                                                                              │

00:01:30 #4802 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                            │

00:01:30 #4803 [Verbose] > │ Test case 1. semi_open_1. Time: 491                                          │

00:01:30 #4804 [Verbose] > │ Test case 2. closed_1. Time: 488                                             │

00:01:30 #4805 [Verbose] > │ Test case 3. semi_open_2. Time: 491                                          │

00:01:30 #4806 [Verbose] > │ Test case 4. closed_2. Time: 500                                             │

00:01:30 #4807 [Verbose] > │                                                                              │

00:01:30 #4808 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                           │

00:01:30 #4809 [Verbose] > │ Test case 1. semi_open_1. Time: 478                                          │

00:01:30 #4810 [Verbose] > │ Test case 2. closed_1. Time: 460                                             │

00:01:30 #4811 [Verbose] > │ Test case 3. semi_open_2. Time: 481                                          │

00:01:30 #4812 [Verbose] > │ Test case 4. closed_2. Time: 474                                             │

00:01:30 #4813 [Verbose] > │                                                                              │

00:01:30 #4814 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                           │

00:01:30 #4815 [Verbose] > │ Test case 1. semi_open_1. Time: 480                                          │

00:01:30 #4816 [Verbose] > │ Test case 2. closed_1. Time: 545                                             │

00:01:30 #4817 [Verbose] > │ Test case 3. semi_open_2. Time: 546                                          │

00:01:30 #4818 [Verbose] > │ Test case 4. closed_2. Time: 550                                             │

00:01:30 #4819 [Verbose] > │                                                                              │

00:01:30 #4820 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16;   │

00:01:30 #4821 [Verbose] > │ 17; 18; 19; 20;                                                              │

00:01:30 #4822 [Verbose] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:30 #4823 [Verbose] > │ 37; 38;                                                                      │

00:01:30 #4824 [Verbose] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:30 #4825 [Verbose] > │ 55; 56;                                                                      │

00:01:30 #4826 [Verbose] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:30 #4827 [Verbose] > │ 73; 74;                                                                      │

00:01:30 #4828 [Verbose] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:30 #4829 [Verbose] > │ 91; 92;                                                                      │

00:01:30 #4830 [Verbose] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)                        │

00:01:30 #4831 [Verbose] > │ Test case 1. semi_open_1. Time: 563                                          │

00:01:30 #4832 [Verbose] > │ Test case 2. closed_1. Time: 594                                             │

00:01:30 #4833 [Verbose] > │ Test case 3. semi_open_2. Time: 557                                          │

00:01:30 #4834 [Verbose] > │ Test case 4. closed_2. Time: 525                                             │

00:01:30 #4835 [Verbose] > │                                                                              │

00:01:30 #4836 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                            │

00:01:30 #4837 [Verbose] > │ Test case 1. semi_open_1. Time: 492                                          │

00:01:30 #4838 [Verbose] > │ Test case 2. closed_1. Time: 506                                             │

00:01:30 #4839 [Verbose] > │ Test case 3. semi_open_2. Time: 466                                          │

00:01:30 #4840 [Verbose] > │ Test case 4. closed_2. Time: 485                                             │

00:01:30 #4841 [Verbose] > │                                                                              │

00:01:30 #4842 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                            │

00:01:30 #4843 [Verbose] > │ Test case 1. semi_open_1. Time: 496                                          │

00:01:30 #4844 [Verbose] > │ Test case 2. closed_1. Time: 513                                             │

00:01:30 #4845 [Verbose] > │ Test case 3. semi_open_2. Time: 502                                          │

00:01:30 #4846 [Verbose] > │ Test case 4. closed_2. Time: 504                                             │

00:01:30 #4847 [Verbose] > │                                                                              │

00:01:30 #4848 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                           │

00:01:30 #4849 [Verbose] > │ Test case 1. semi_open_1. Time: 512                                          │

00:01:30 #4850 [Verbose] > │ Test case 2. closed_1. Time: 535                                             │

00:01:30 #4851 [Verbose] > │ Test case 3. semi_open_2. Time: 465                                          │

00:01:30 #4852 [Verbose] > │ Test case 4. closed_2. Time: 462                                             │

00:01:30 #4853 [Verbose] > │                                                                              │

00:01:30 #4854 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                           │

00:01:30 #4855 [Verbose] > │ Test case 1. semi_open_1. Time: 556                                          │

00:01:30 #4856 [Verbose] > │ Test case 2. closed_1. Time: 505                                             │

00:01:30 #4857 [Verbose] > │ Test case 3. semi_open_2. Time: 457                                          │

00:01:30 #4858 [Verbose] > │ Test case 4. closed_2. Time: 483                                             │

00:01:30 #4859 [Verbose] > │                                                                              │

00:01:30 #4860 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16;   │

00:01:30 #4861 [Verbose] > │ 17; 18; 19; 20;                                                              │

00:01:30 #4862 [Verbose] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:30 #4863 [Verbose] > │ 37; 38;                                                                      │

00:01:30 #4864 [Verbose] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:30 #4865 [Verbose] > │ 55; 56;                                                                      │

00:01:30 #4866 [Verbose] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:30 #4867 [Verbose] > │ 73; 74;                                                                      │

00:01:30 #4868 [Verbose] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:30 #4869 [Verbose] > │ 91; 92;                                                                      │

00:01:30 #4870 [Verbose] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)                        │

00:01:30 #4871 [Verbose] > │ Test case 1. semi_open_1. Time: 508                                          │

00:01:30 #4872 [Verbose] > │ Test case 2. closed_1. Time: 508                                             │

00:01:30 #4873 [Verbose] > │ Test case 3. semi_open_2. Time: 508                                          │

00:01:30 #4874 [Verbose] > │ Test case 4. closed_2. Time: 492                                             │

00:01:30 #4875 [Verbose] > │                                                                              │

00:01:30 #4876 [Verbose] > │ Input                                                                        │

00:01:30 #4877 [Verbose] > │                                                                              │

00:01:30 #4878 [Verbose] > │                                                                              │

00:01:30 #4879 [Verbose] > │                                                                              │

00:01:30 #4880 [Verbose] > │  	| Expected	| Result  	| Best                                                     │

00:01:30 #4881 [Verbose] > │ ---                                                                          │

00:01:30 #4882 [Verbose] > │                                                                              │

00:01:30 #4883 [Verbose] > │                                                                              │

00:01:30 #4884 [Verbose] > │                                                                              │

00:01:30 #4885 [Verbose] > │    	| ---     	| ---     	| ---                                                    │

00:01:30 #4886 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                                      │

00:01:30 #4887 [Verbose] > │                                                                              │

00:01:30 #4888 [Verbose] > │                                                                              │

00:01:30 #4889 [Verbose] > │                                                                              │

00:01:30 #4890 [Verbose] > │ | US0_1 3 	| US0_1 3 	| struct (2L, 479L)                                        │

00:01:30 #4891 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                                      │

00:01:30 #4892 [Verbose] > │                                                                              │

00:01:30 #4893 [Verbose] > │                                                                              │

00:01:30 #4894 [Verbose] > │                                                                              │

00:01:30 #4895 [Verbose] > │ | US0_1 0 	| US0_1 0 	| struct (2L, 488L)                                        │

00:01:30 #4896 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                                     │

00:01:30 #4897 [Verbose] > │                                                                              │

00:01:30 #4898 [Verbose] > │                                                                              │

00:01:30 #4899 [Verbose] > │                                                                              │

00:01:30 #4900 [Verbose] > │ | US0_1 6 	| US0_1 6 	| struct (2L, 460L)                                        │

00:01:30 #4901 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                                     │

00:01:30 #4902 [Verbose] > │                                                                              │

00:01:30 #4903 [Verbose] > │                                                                              │

00:01:30 #4904 [Verbose] > │                                                                              │

00:01:30 #4905 [Verbose] > │ | US0_0   	| US0_0   	| struct (1L, 480L)                                        │

00:01:30 #4906 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │

00:01:31 #4907 [Verbose] > │ 20;                                                                          │

00:01:31 #4908 [Verbose] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:31 #4909 [Verbose] > │ 37; 38;                                                                      │

00:01:31 #4910 [Verbose] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:31 #4911 [Verbose] > │ 55; 56;                                                                      │

00:01:31 #4912 [Verbose] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:31 #4913 [Verbose] > │ 73; 74;                                                                      │

00:01:31 #4914 [Verbose] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:31 #4915 [Verbose] > │ 91; 92;                                                                      │

00:01:31 #4916 [Verbose] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)	| US0_1 59	| US0_1 59	|      │

00:01:31 #4917 [Verbose] > │ struct (4L, 525L)                                                            │

00:01:31 #4918 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                                      │

00:01:31 #4919 [Verbose] > │                                                                              │

00:01:31 #4920 [Verbose] > │                                                                              │

00:01:31 #4921 [Verbose] > │                                                                              │

00:01:31 #4922 [Verbose] > │ | US0_1 3 	| US0_1 3 	| struct (3L, 466L)                                        │

00:01:31 #4923 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                                      │

00:01:31 #4924 [Verbose] > │                                                                              │

00:01:31 #4925 [Verbose] > │                                                                              │

00:01:31 #4926 [Verbose] > │                                                                              │

00:01:31 #4927 [Verbose] > │ | US0_1 0 	| US0_1 0 	| struct (1L, 496L)                                        │

00:01:31 #4928 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                                     │

00:01:31 #4929 [Verbose] > │                                                                              │

00:01:31 #4930 [Verbose] > │                                                                              │

00:01:31 #4931 [Verbose] > │                                                                              │

00:01:31 #4932 [Verbose] > │ | US0_1 6 	| US0_1 6 	| struct (4L, 462L)                                        │

00:01:31 #4933 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                                     │

00:01:31 #4934 [Verbose] > │                                                                              │

00:01:31 #4935 [Verbose] > │                                                                              │

00:01:31 #4936 [Verbose] > │                                                                              │

00:01:31 #4937 [Verbose] > │ | US0_0   	| US0_0   	| struct (3L, 457L)                                        │

00:01:31 #4938 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │

00:01:31 #4939 [Verbose] > │ 20;                                                                          │

00:01:31 #4940 [Verbose] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:31 #4941 [Verbose] > │ 37; 38;                                                                      │

00:01:31 #4942 [Verbose] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:31 #4943 [Verbose] > │ 55; 56;                                                                      │

00:01:31 #4944 [Verbose] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:31 #4945 [Verbose] > │ 73; 74;                                                                      │

00:01:31 #4946 [Verbose] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:31 #4947 [Verbose] > │ 91; 92;                                                                      │

00:01:31 #4948 [Verbose] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)	| US0_1 59	| US0_1 59	|      │

00:01:31 #4949 [Verbose] > │ struct (4L, 492L)                                                            │

00:01:31 #4950 [Verbose] > │                                                                              │

00:01:31 #4951 [Verbose] > │ Average Ranking                                                              │

00:01:31 #4952 [Verbose] > │ Test case 3. Average Time: 495L                                              │

00:01:31 #4953 [Verbose] > │ Test case 4. Average Time: 501L                                              │

00:01:31 #4954 [Verbose] > │ Test case 1. Average Time: 513L                                              │

00:01:31 #4955 [Verbose] > │ Test case 2. Average Time: 513L                                              │

00:01:31 #4956 [Verbose] > │                                                                              │

00:01:31 #4957 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #4958 [Verbose] >

00:01:31 #4959 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #4960 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #4961 [Verbose] > │ ## returnLettersWithOddCountTests                                            │

00:01:31 #4962 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #4963 [Verbose] >

00:01:31 #4964 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #4965 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #4966 [Verbose] > │ Test: ReturnLettersWithOddCount                                              │

00:01:31 #4967 [Verbose] > │                                                                              │

00:01:31 #4968 [Verbose] > │ Solution: 1                                                                  │

00:01:31 #4969 [Verbose] > │ Test case 1. A. Time: 645L                                                   │

00:01:31 #4970 [Verbose] > │                                                                              │

00:01:31 #4971 [Verbose] > │ Solution: 2                                                                  │

00:01:31 #4972 [Verbose] > │ Test case 1. A. Time: 663L                                                   │

00:01:31 #4973 [Verbose] > │                                                                              │

00:01:31 #4974 [Verbose] > │ Solution: 3                                                                  │

00:01:31 #4975 [Verbose] > │ Test case 1. A. Time: 680L                                                   │

00:01:31 #4976 [Verbose] > │                                                                              │

00:01:31 #4977 [Verbose] > │ Solution: 9                                                                  │

00:01:31 #4978 [Verbose] > │ Test case 1. A. Time: 730L                                                   │

00:01:31 #4979 [Verbose] > │                                                                              │

00:01:31 #4980 [Verbose] > │ Solution: 10                                                                 │

00:01:31 #4981 [Verbose] > │ Test case 1. A. Time: 815L                                                   │

00:01:31 #4982 [Verbose] > │                                                                              │

00:01:31 #4983 [Verbose] > │ Input   | Expected        | Result          | Best                           │

00:01:31 #4984 [Verbose] > │ ---     | ---             | ---             | ---                            │

00:01:31 #4985 [Verbose] > │ 1       | a               | a               | (1, 645)                       │

00:01:31 #4986 [Verbose] > │ 2       | ba              | ba              | (1, 663)                       │

00:01:31 #4987 [Verbose] > │ 3       | aaa             | aaa             | (1, 680)                       │

00:01:31 #4988 [Verbose] > │ 9       | aaaaaaaaa       | aaaaaaaaa       | (1, 730)                       │

00:01:31 #4989 [Verbose] > │ 10      | baaaaaaaaa      | baaaaaaaaa      | (1, 815)                       │

00:01:31 #4990 [Verbose] > │                                                                              │

00:01:31 #4991 [Verbose] > │ Averages                                                                     │

00:01:31 #4992 [Verbose] > │ Test case 1. Average Time: 706L                                              │

00:01:31 #4993 [Verbose] > │                                                                              │

00:01:31 #4994 [Verbose] > │ Ranking                                                                      │

00:01:31 #4995 [Verbose] > │ Test case 1. Average Time: 706L                                              │

00:01:31 #4996 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #4997 [Verbose] >

00:01:31 #4998 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:01:31 #4999 [Verbose] > //// test

00:01:31 #5000 [Verbose] >

00:01:31 #5001 [Verbose] > let solutions = [[

00:01:31 #5002 [Verbose] >     "A",

00:01:31 #5003 [Verbose] >     fun n ->

00:01:31 #5004 [Verbose] >         let mutable _builder = StringBuilder (new string('a', n))

00:01:31 #5005 [Verbose] >         if n % 2 = 0 then

00:01:31 #5006 [Verbose] >             _builder.[[0]] <- 'b'

00:01:31 #5007 [Verbose] >

00:01:31 #5008 [Verbose] >         _builder.ToString ()

00:01:31 #5009 [Verbose] > ]]

00:01:31 #5010 [Verbose] > let testCases = seq {

00:01:31 #5011 [Verbose] >     1, "a"

00:01:31 #5012 [Verbose] >     2, "ba"

00:01:31 #5013 [Verbose] >     3, "aaa"

00:01:31 #5014 [Verbose] >     9, "aaaaaaaaa"

00:01:31 #5015 [Verbose] >     10, "baaaaaaaaa"

00:01:31 #5016 [Verbose] > }

00:01:31 #5017 [Verbose] > let rec returnLettersWithOddCountTests =

00:01:31 #5018 [Verbose] >     runAll (nameof returnLettersWithOddCountTests) _count solutions testCases

00:01:31 #5019 [Verbose] > returnLettersWithOddCountTests

00:01:31 #5020 [Verbose] > |> sortResultList

00:01:31 #5021 [Verbose] >

00:01:31 #5022 [Verbose] > ╭─[ 821.48ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #5023 [Verbose] > │                                                                              │

00:01:31 #5024 [Verbose] > │                                                                              │

00:01:31 #5025 [Verbose] > │ Test: returnLettersWithOddCountTests                                         │

00:01:31 #5026 [Verbose] > │                                                                              │

00:01:31 #5027 [Verbose] > │ Solution: 1                                                                  │

00:01:31 #5028 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #5029 [Verbose] > │                                                                              │

00:01:31 #5030 [Verbose] > │ Solution: 2                                                                  │

00:01:31 #5031 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #5032 [Verbose] > │                                                                              │

00:01:31 #5033 [Verbose] > │ Solution: 3                                                                  │

00:01:31 #5034 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #5035 [Verbose] > │                                                                              │

00:01:31 #5036 [Verbose] > │ Solution: 9                                                                  │

00:01:31 #5037 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #5038 [Verbose] > │                                                                              │

00:01:31 #5039 [Verbose] > │ Solution: 10                                                                 │

00:01:31 #5040 [Verbose] > │ Test case 1. A. Time: 2L                                                     │

00:01:31 #5041 [Verbose] > │                                                                              │

00:01:31 #5042 [Verbose] > │ Input	| Expected  	| Result    	| Best                                             │

00:01:31 #5043 [Verbose] > │ ---  	| ---       	| ---       	| ---                                              │

00:01:31 #5044 [Verbose] > │ 1    	| a         	| a         	| (1, 0)                                           │

00:01:31 #5045 [Verbose] > │ 2    	| ba        	| ba        	| (1, 0)                                           │

00:01:31 #5046 [Verbose] > │ 3    	| aaa       	| aaa       	| (1, 0)                                           │

00:01:31 #5047 [Verbose] > │ 9    	| aaaaaaaaa 	| aaaaaaaaa 	| (1, 0)                                           │

00:01:31 #5048 [Verbose] > │ 10   	| baaaaaaaaa	| baaaaaaaaa	| (1, 2)                                           │

00:01:31 #5049 [Verbose] > │                                                                              │

00:01:31 #5050 [Verbose] > │ Average Ranking                                                              │

00:01:31 #5051 [Verbose] > │ Test case 1. Average Time: 0L                                                │

00:01:31 #5052 [Verbose] > │                                                                              │

00:01:31 #5053 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #5054 [Verbose] >

00:01:31 #5055 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #5056 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #5057 [Verbose] > │ ## hasAnyPairCloseToEachotherTests                                           │

00:01:31 #5058 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #5059 [Verbose] >

00:01:31 #5060 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:31 #5061 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:31 #5062 [Verbose] > │ Test: HasAnyPairCloseToEachother                                             │

00:01:31 #5063 [Verbose] > │                                                                              │

00:01:31 #5064 [Verbose] > │ Solution: 0                                                                  │

00:01:31 #5065 [Verbose] > │ Test case 1. A. Time: 137L                                                   │

00:01:31 #5066 [Verbose] > │                                                                              │

00:01:31 #5067 [Verbose] > │ Solution: 1,2                                                                │

00:01:31 #5068 [Verbose] > │ Test case 1. A. Time: 186L                                                   │

00:01:31 #5069 [Verbose] > │                                                                              │

00:01:31 #5070 [Verbose] > │ Solution: 3,5                                                                │

00:01:31 #5071 [Verbose] > │ Test case 1. A. Time: 206L                                                   │

00:01:31 #5072 [Verbose] > │                                                                              │

00:01:31 #5073 [Verbose] > │ Solution: 3,4,6                                                              │

00:01:31 #5074 [Verbose] > │ Test case 1. A. Time: 149L                                                   │

00:01:31 #5075 [Verbose] > │                                                                              │

00:01:31 #5076 [Verbose] > │ Solution: 2,4,6                                                              │

00:01:31 #5077 [Verbose] > │ Test case 1. A. Time: 150L                                                   │

00:01:31 #5078 [Verbose] > │                                                                              │

00:01:31 #5079 [Verbose] > │ Input   | Expected        | Result  | Best                                   │

00:01:31 #5080 [Verbose] > │ ---     | ---             | ---     | ---                                    │

00:01:31 #5081 [Verbose] > │ 0       | False           | False   | (1, 137)                               │

00:01:31 #5082 [Verbose] > │ 1,2     | True            | True    | (1, 186)                               │

00:01:31 #5083 [Verbose] > │ 3,5     | False           | False   | (1, 206)                               │

00:01:31 #5084 [Verbose] > │ 3,4,6   | True            | True    | (1, 149)                               │

00:01:31 #5085 [Verbose] > │ 2,4,6   | False           | False   | (1, 150)                               │

00:01:31 #5086 [Verbose] > │                                                                              │

00:01:31 #5087 [Verbose] > │ Averages                                                                     │

00:01:31 #5088 [Verbose] > │ Test case 1. Average Time: 165L                                              │

00:01:31 #5089 [Verbose] > │                                                                              │

00:01:31 #5090 [Verbose] > │ Ranking                                                                      │

00:01:31 #5091 [Verbose] > │ Test case 1. Average Time: 165L                                              │

00:01:31 #5092 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #5093 [Verbose] >

00:01:31 #5094 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:01:31 #5095 [Verbose] > //// test

00:01:31 #5096 [Verbose] >

00:01:31 #5097 [Verbose] > let solutions = [[

00:01:31 #5098 [Verbose] >     "A",

00:01:31 #5099 [Verbose] >     fun (a: int[[]]) ->

00:01:31 #5100 [Verbose] >         let indices = System.Linq.Enumerable.Range(0, a.Length) |>

00:01:31 #5101 [Verbose] > System.Linq.Enumerable.ToArray

00:01:31 #5102 [Verbose] >         System.Array.Sort (a, indices)

00:01:31 #5103 [Verbose] >

00:01:31 #5104 [Verbose] >         indices

00:01:31 #5105 [Verbose] >         |> Array.take (a.Length - 1)

00:01:31 #5106 [Verbose] >         |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)

00:01:31 #5107 [Verbose] > ]]

00:01:31 #5108 [Verbose] > let testCases = seq {

00:01:31 #5109 [Verbose] >     [[| 0 |]], false

00:01:31 #5110 [Verbose] >     [[| 1; 2 |]], true

00:01:31 #5111 [Verbose] >     [[| 3; 5 |]], false

00:01:31 #5112 [Verbose] >     [[| 3; 4; 6 |]], true

00:01:31 #5113 [Verbose] >     [[| 2; 4; 6 |]], false

00:01:31 #5114 [Verbose] > }

00:01:31 #5115 [Verbose] > let rec hasAnyPairCloseToEachotherTests =

00:01:31 #5116 [Verbose] >     runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases

00:01:31 #5117 [Verbose] > hasAnyPairCloseToEachotherTests

00:01:31 #5118 [Verbose] > |> sortResultList

00:01:32 #5119 [Verbose] >

00:01:32 #5120 [Verbose] > ╭─[ 750.78ms - stdout ]────────────────────────────────────────────────────────╮

00:01:32 #5121 [Verbose] > │                                                                              │

00:01:32 #5122 [Verbose] > │                                                                              │

00:01:32 #5123 [Verbose] > │ Test: hasAnyPairCloseToEachotherTests                                        │

00:01:32 #5124 [Verbose] > │                                                                              │

00:01:32 #5125 [Verbose] > │ Solution: 0                                                                  │

00:01:32 #5126 [Verbose] > │ Test case 1. A. Time: 2L                                                     │

00:01:32 #5127 [Verbose] > │                                                                              │

00:01:32 #5128 [Verbose] > │ Solution: 1,2                                                                │

00:01:32 #5129 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:32 #5130 [Verbose] > │                                                                              │

00:01:32 #5131 [Verbose] > │ Solution: 3,5                                                                │

00:01:32 #5132 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:32 #5133 [Verbose] > │                                                                              │

00:01:32 #5134 [Verbose] > │ Solution: 3,4,6                                                              │

00:01:32 #5135 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:32 #5136 [Verbose] > │                                                                              │

00:01:32 #5137 [Verbose] > │ Solution: 2,4,6                                                              │

00:01:32 #5138 [Verbose] > │ Test case 1. A. Time: 0L                                                     │

00:01:32 #5139 [Verbose] > │                                                                              │

00:01:32 #5140 [Verbose] > │ Input	| Expected	| Result	| Best                                                   │

00:01:32 #5141 [Verbose] > │ ---  	| ---     	| ---   	| ---                                                    │

00:01:32 #5142 [Verbose] > │ 0    	| False   	| False 	| (1, 2)                                                 │

00:01:32 #5143 [Verbose] > │ 1,2  	| True    	| True  	| (1, 0)                                                 │

00:01:32 #5144 [Verbose] > │ 3,5  	| False   	| False 	| (1, 0)                                                 │

00:01:32 #5145 [Verbose] > │ 3,4,6	| True    	| True  	| (1, 0)                                                 │

00:01:32 #5146 [Verbose] > │ 2,4,6	| False   	| False 	| (1, 0)                                                 │

00:01:32 #5147 [Verbose] > │                                                                              │

00:01:32 #5148 [Verbose] > │ Average Ranking                                                              │

00:01:32 #5149 [Verbose] > │ Test case 1. Average Time: 0L                                                │

00:01:32 #5150 [Verbose] > │                                                                              │

00:01:32 #5151 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:32 #5152 [Verbose] >

00:01:32 #5153 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:32 #5154 [Verbose] > // // test

00:01:32 #5155 [Verbose] >

00:01:32 #5156 [Verbose] > ()

00:01:32 #5157 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240330-0147-4725-2527-26f83f5d2c1b\main.spi

00:01:32 #5158 [Verbose] >

00:01:32 #5159 [Verbose] > ╭─[ 215.35ms - stdout ]────────────────────────────────────────────────────────╮

00:01:32 #5160 [Verbose] > │ let rec method0 () : unit =                                                  │

00:01:32 #5161 [Verbose] > │     ()                                                                       │

00:01:32 #5162 [Verbose] > │ method0()                                                                    │

00:01:32 #5163 [Verbose] > │                                                                              │

00:01:32 #5164 [Verbose] > │                                                                              │

00:01:32 #5165 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:34 #5166 [Verbose] > [NbConvertApp] Converting notebook Perf.dib.ipynb to html

00:01:34 #5167 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:34 #5168 [Verbose] >   validate(nb)

00:01:35 #5169 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:35 #5170 [Verbose] >   return _pygments_highlight(

00:01:36 #5171 [Verbose] > [NbConvertApp] Writing 563959 bytes to Perf.dib.html

00:01:37 #5172 [Debug] executeAsync / exitCode: 0 / output.Length: 359639

00:01:37 #5173 [Debug] main / executeCommand / exitCode: 0

00:01:39 #5174 [Debug] runWithTimeoutAsync / timeout: 2000

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Perf.dib

00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Perf.dib

In [ ]:
{ . "$ScriptDir/../apps/dir-tree-html/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # DirTreeHtml (Polyglot)                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/fsharp/Notebooks.dib

#!import ../../lib/fsharp/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log

expected actual

let inline _assertEqual expected actual = __assertEqual true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log ex...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/falco.markup/1.1.1/lib/netstandard2.0/Fal

co.Markup.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../../lib/spiral/common.fsx

#!import ../../lib/spiral/sm.fsx

#!import ../../lib/spiral/date_time.fsx

#!import ../../lib/spiral/file_system.fsx

#!import ../../lib/spiral/lib.fsx

#!import ../../lib/fsharp/Common.fs

#!import ../../lib/fsharp/CommonFSharp.fs

#!import ../../lib/fsharp/Async.fs

#!import ../../lib/fsharp/AsyncSeq.fs

#!import ../../lib/fsharp/Networking.fs

#!import ../../lib/fsharp/Runtime.fs

#!import ../../lib/fsharp/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

and [[<Struct>]] US1 =

    | US1_0

    | US1_1 of f1_0 : US0

let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =

    v0

and closure0 () (v0 : (unit -> unit)) : System.IDisposable =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v1 : (unit -> unit) = method0(v0)

    let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v1()" }

    v2

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v3 : (unit -> unit) = method0(v0)

    let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose

() = Fable.Core.RustInterop.emitRustExpr () "v3()" }

    v4

    #endif

    #if !FABLE_COMPILER && !F...



── fsharp - import ─────────────────────────────────────────────────────────────

type Mut0 = {mutable l0 : int32; mutable l1 : string}

and Mut1 = {mutable l0 : int32}

let rec closure1 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.Contains v0

    v2

and closure0 () (v0 : string) : (string -> bool) =

    closure1(v0)

and closure3 (v0 : string) (v1 : string) : bool =

    let v2 : bool = v1.EndsWith v0

    v2

and closure2 () (v0 : string) : (string -> bool) =

    closure3(v0)

and closure6 (v0 : int32, v1 : char) (v2 : string) : string =

    let v3 : string = v2.PadLeft (v0, v1)

    v3

and closure5 (v0 : int32) (v1 : char) : (string -> string) =

    closure6(v0, v1)

and closure4 () (v0 : int32) : (char -> (string -> string)) =

    closure5(v0)

and closure8 (v0 : int32) (v1 : string) : string =

    let v2 : stri...



── fsharp - import ─────────────────────────────────────────────────────────────

let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =

    let v2 : string = v0.ToString ()

    let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"

    v4

and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =

    closure1(v0)

and closure5 (v0 : string, v1 : string) (v2 : string) : string =

    let v3 : string = v2.Replace (v0, v1)

    v3

and closure4 (v0 : string) (v1 : string) : (string -> string) =

    closure5(v0, v1)

and closure3 () (v0 : string) : (string -> (string -> string)) =

    closure4(v0)

and method0 () : (string -> (string -> (string -> string))) =

    closure3()

and closure2 () (v0 : System.Guid) : System.DateTime =

  ...



── fsharp - import ─────────────────────────────────────────────────────────────

type [[<Struct>]] US0 =

    | US0_0

    | US0_1

    | US0_2

and [[<Struct>]] US1 =

    | US1_0 of f0_0 : US0

    | US1_1 of f1_0 : US0

let rec closure0 () () : string =

    let mutable result = None

    #if FABLE_COMPILER_RUST && !WASM

    let v0 : US0 = US0_1

    let v1 : US1 = US1_1(v0)

    let v2 : string = $"create_temp_directory_name target: {v1}"

    let v3 : string = failwith<string> v2

    v3

    #endif

    #if FABLE_COMPILER_RUST && WASM

    let v4 : US0 = US0_2

    let v5 : US1 = US1_1(v4)

    let v6 : string = $"create_temp_directory_name target: {v5}"

    let v7 : string = failwith<string> v6

    v7

    #endif

    #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM

    let v8 : string = System.Reflection.Assembly.GetEntryAssembly()...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !WASM && !FABLE_COMPILER

module Date_time =

    let new_guid_from_date_time x =

#if !INTERACTIVE

        Date_time.new_guid_from_date_time x

#else

        new_guid_from_date_time x

#endif

#endif



module Sm =

    let concat x =

#if !INTERACTIVE

        Sm.concat x

#else

        concat x

#endif



    let contains x =

#if !INTERACTIVE

        Sm.contains x

#else

        contains x

#endif



    let ellipsis x =

#if !INTERACTIVE

        Sm.ellipsis x

#else

        ellipsis x

#endif



    let ends_with x =

#if !INTERACTIVE

        Sm.ends_with x

#else

        ends_with x

#endif



    let format_exception x =

#if !INTERACTIVE

        Sm.format_exception x

#else

        format_exception x

#endif



    let replace x =

#if !INTERACTIVE

        Sm.repl...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



#if !INTERACTIVE

    open Lib

#endif



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    /// ## memoize



    let inline memoize fn =

        let result = lazy fn ()

        fun () -> result.Value



    /// ## TraceLevel



    type TraceLevel =

        | Verbose

        | Debug

        | Info

        | Warning

        | Critical



    let inline getLocals () = ""



    let mutable traceEnabled = true

    let mutable traceCount = 0

    let mutable traceLevel = Verbose

    let mutable traceDump = false



    let testTraceLevel level =

        traceEnabled && level >= traceLevel



    /// ## traceRaw



    let rec traceRaw level fn =

...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

   ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.A...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

Sm.format_exception}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            matc...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



#if !INTERACTIVE

    open Lib

#endif



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = File_system.create_temp_directory_name ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let getLocals () =

                $"tempFolder: {tempFolder} / result: {({|

                    Exists = result.Exists

                    CreationTime = result.CreationTime

                |})} {getLocals ()}"



            trace Debug ...



── fsharp ──────────────────────────────────────────────────────────────────────

#if !INTERACTIVE

open Lib

#endif



── fsharp ──────────────────────────────────────────────────────────────────────

open FileSystem.Operators

open Falco.Markup



── fsharp ──────────────────────────────────────────────────────────────────────

type FileSystemNode =

    | File of string * string * int64

    | Folder of string * string * FileSystemNode list

    | Root of FileSystemNode list



let rec scanDirectory isRoot (basePath : string) (path : string) =

    let relativePath =

        path

        |> Sm.replace basePath ""

        |> Sm.replace "\\" "/"

        |> Sm.replace "//" "/"

        |> Sm.trim_start [[| '/' |]]



    let directories =

        path

        |> System.IO.Directory.GetDirectories

        |> Array.toList

        |> List.sort

        |> List.map (scanDirectory false basePath)

    let files =

        path

        |> System.IO.Directory.GetFiles

        |> Array.toList

        |> List.sort

        |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath, 

System.IO.FileInfo(f).Length))



    let children = directories @ files

    if isRoot

    then Root children

    else Folder (path |> System.IO.Path.GetFileName, relativePath, children)



let rec generateHtml fsNode =

    let sizeLabel size =

        match float size with

        | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"

        | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"

        | size -> $"%.2f{size} B"

    match fsNode with

    | File (fileName, relativePath, size) ->

        Elem.div [[]] [[

            Text.raw "&#128196; "

            Elem.a [[

                Attr.href $"""{relativePath}{if relativePath = "" then "" else 

"/"}{fileName}"""

            ]] [[

                Text.raw fileName

            ]]

            Elem.span [[]] [[

                Text.raw $" ({size |> sizeLabel})"

            ]]

        ]]

    | Folder (folderName, relativePath, children) ->

        let size =

            let rec loop children =

                children

                |> List.sumBy (function

                    | File (_, _, size) -> size

                    | Folder (_, _, children)

                    | Root children -> loop children

                )

            loop children

        Elem.details [[

            Attr.open' "true"

        ]] [[

            Elem.summary [[]] [[

                Text.raw "&#128194; "

                Elem.a [[

                    Attr.href relativePath

                ]] [[

                    Text.raw folderName

                ]]

                Elem.span [[]] [[

                    Text.raw $" ({size |> sizeLabel})"

                ]]

            ]]

            Elem.div [[]] [[

                yield! children |> List.map generateHtml

            ]]

        ]]

    | Root children ->

        Elem.div [[]] [[

            yield! children |> List.map generateHtml

        ]]



let generateHtmlForFileSystem root =

    $"""<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <style>

body {{

    background-color: #222;

    color: #ccc;

}}

a {{

  color: #777;

  font-size: 15px;

}}

span {{

  font-size: 11px;

}}

div > div {{

  padding-left: 10px;

}}

details > div {{

  padding-left: 19px;

}}

  </style>

</head>

<body>

  {root |> generateHtml |> renderNode}

</body>

</html>

"""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.createTempDirectory ()

let rec loop d n = async {

    if n >= 0 then

        tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore

        do!

            n

            |> string

            |> String.replicate (n + 1)

            |> FileSystem.writeAllTextAsync (tempFolder </> d </> $"file.txt")

        do! loop $"{d}/{n}" (n - 1)

}

loop "_.root" 3

|> Async.RunSynchronously



let html =

    scanDirectory true tempFolder tempFolder

    |> generateHtmlForFileSystem



html

|> _assertEqual """<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <style>

body {

    background-color: #222;

    color: #ccc;

}

a {

  color: #777;

  font-size: 15px;

}

span {

  font-size: 11px;

}

div > div {

  padding-left: 10px;

}

details > div {

  padding-left: 19px;

}

  </style>

</head>

<body>

  <div><details open="true"><summary>&#128194; <a href="_.root">_.root</a><span>

(10.00 B)</span></summary><div><details open="true"><summary>&#128194; <a 

href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details 

open="true"><summary>&#128194; <a href="_.root/3/2">2</a><span> (3.00 

B)</span></summary><div><details open="true"><summary>&#128194; <a 

href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>&#128196; <a 

href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00 

B)</span></div></div></details><div>&#128196; <a 

href="_.root/3/2/file.txt">file.txt</a><span> (2.00 

B)</span></div></div></details><div>&#128196; <a 

href="_.root/3/file.txt">file.txt</a><span> (3.00 

B)</span></div></div></details><div>&#128196; <a 

href="_.root/file.txt">file.txt</a><span> (4.00 

B)</span></div></div></details></div>

</body>

</html>

"""



html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent



╭─[ 177.97ms - return value ]──────────────────────────────────────────────────╮

│ <!DOCTYPE html>                                                              │

│ <html lang="en">                                                             │

│ <head>                                                                       │

│   <meta charset="UTF-8">                                                     │

│   <style>                                                                    │

│ body {                                                                       │

│     background-color: #222;                                                  │

│     color: #ccc;                                                             │

│ }                                                                            │

│ a {                                                                          │

│   color: #777;                                                               │

│   font-size: 15px;                                                           │

│ }                                                                            │

│ span {                                                                       │

│   font-size: 11px;                                                           │

│ }                                                                            │

│ div > div {                                                                  │

│   padding-left: 10px;                                                        │

│ }                                                                            │

│ details > div {                                                              │

│   padding-left: 19px;                                                        │

│ }                                                                            │

│   </style>                                                                   │

│ </head>                                                                      │

│ <body>                                                                       │

│   <div><details open="true"><summary>&#128194; <a                            │

│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │

│ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │

│ B)</span></summary><div><details open="true"><summary>&#128194; <a           │

│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │

│ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │

│ B)</span></summary><div><div>&#128196; <a href="_.root...                    │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 194.21ms - stdout ]────────────────────────────────────────────────────────╮

│ <!DOCTYPE html>                                                              │

│ <html lang="en">                                                             │

│ <head>                                                                       │

│   <meta charset="UTF-8">                                                     │

│   <style>                                                                    │

│ body {                                                                       │

│     background-color: #222;                                                  │

│     color: #ccc;                                                             │

│ }                                                                            │

│ a {                                                                          │

│   color: #777;                                                               │

│   font-size: 15px;                                                           │

│ }                                                                            │

│ span {                                                                       │

│   font-size: 11px;                                                           │

│ }                                                                            │

│ div > div {                                                                  │

│   padding-left: 10px;                                                        │

│ }                                                                            │

│ details > div {                                                              │

│   padding-left: 19px;                                                        │

│ }                                                                            │

│   </style>                                                                   │

│ </head>                                                                      │

│ <body>                                                                       │

│   <div><details open="true"><summary>&#128194; <a                            │

│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │

│ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │

│ B)</span></summary><div><details open="true"><summary>&#128194; <a           │

│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │

│ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │

│ B)</span></summary><div><div>&#128196; <a                                    │

│ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │

│ B)</span></div></div></details><div>&#128196; <a                             │

│ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │

│ B)</span></div></div></details><div>&#128196; <a                             │

│ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │

│ B)</span></div></div></details><div>&#128196; <a                             │

│ href="_.root/file.txt">file.txt</a><span> (4.00                              │

│ B)</span></div></div></details></div>                                        │

│ </body>                                                                      │

│ </html>                                                                      │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string

    | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Dir _ -> nameof Dir

            | Html _ -> nameof Html



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Argu.ArgumentParser.Create<Arguments>().PrintUsage ()



╭─[ 132.80ms - return value ]──────────────────────────────────────────────────╮

│ USAGE: dotnet-repl [--help] --dir <string> --html <string>                   │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --dir <string>        Dir                                                │

│     --html <string>       Html                                               │

│     --help                display this list of options.                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let dir =

        match argsMap.[[nameof Arguments.Dir]] with

        | [[ Arguments.Dir dir ]] -> Some dir

        | _ -> None

        |> Option.get



    let htmlPath =

        match argsMap.[[nameof Arguments.Html]] with

        | [[ Arguments.Html html ]] -> Some html

        | _ -> None

        |> Option.get



    let fileSystem = scanDirectory true dir dir

    let html = generateHtmlForFileSystem fileSystem



    html |> FileSystem.writeAllTextAsync htmlPath

    |> Async.runWithTimeout 30000

    |> function

        | Some () -> 0

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 72.74ms - return value ]───────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook DirTreeHtml.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 309807 bytes to DirTreeHtml.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DirTreeHtml.dib

00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DirTreeHtml.dib

00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/date_time.fsx; ... ] / name: DirTreeHtml / code.Length: 4601

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64"

  WorkingDirectory =

   Some "C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:01 #5 [Verbose] >   Determining projects to restore...

00:00:01 #6 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj (in 412 ms).

00:00:01 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj]

00:00:07 #8 [Verbose] >   DirTreeHtml -> C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll

00:00:09 #9 [Verbose] >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\

00:00:09 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 730

00:00:09 #11 [Debug] executeAsync / options: { Command =

   "dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64"

  WorkingDirectory =

   Some "C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml"

  CancellationToken = None

  OnLine = None }

00:00:09 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET

00:00:10 #13 [Verbose] >   Determining projects to restore...

00:00:11 #14 [Verbose] >   Restored C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj (in 404 ms).

00:00:11 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj]

00:00:17 #16 [Verbose] >   DirTreeHtml -> C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll

00:00:25 #17 [Verbose] >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\

00:00:25 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 728

In [ ]:
{ . "$ScriptDir/../apps/ipfs/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped

Already up to date



Done in 1.9s

In [ ]:
{ . "$ScriptDir/outdated.ps1" } | Invoke-Block
Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d

Resolving dependency graph...

Outdated packages found:

  Group: Main

    * Argu 6.2.2 -> 6.2.3

    * Expecto.FsCheck 10.2.1-fscheck3 -> 10.2.1

    * FsCheck 3.0.0-rc3 -> 2.16.6

    * FSharp.Core 8.0.300-beta.24080.5 -> 8.0.300-beta.24154.4

    * Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-preview.2.24128.5

    * Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5

    * Microsoft.Extensions.Features 7.0 -> 9.0.0-preview.2.24128.4

    * Microsoft.Extensions.Logging 8.0 -> 9.0.0-preview.2.24128.5

    * Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5

    * Microsoft.Extensions.Options 8.0.2 -> 9.0.0-preview.2.24128.5

    * Microsoft.Extensions.Primitives 8.0 -> 9.0.0-preview.2.24128.5

    * System.IO.Pipelines 8.0 -> 9.0.0-preview.2.24128.5

    * System.Threading.Channels 8.0 -> 9.0.0-preview.2.24128.5

Total time taken: 1 minute, 3 seconds


CheckToml / toml: C:\home\git\polyglot\Cargo.toml

chat_contract_tests

================

Name             Project  Compat   Latest   Kind    Platform

----             -------  ------   ------   ----    --------

ahash            0.8.11   0.7.8    0.7.8    Normal  ---

allocator-api2   0.2.16   Removed  Removed  Normal  ---

cfg-if           1.0.0    Removed  Removed  Normal  ---

equivalent       1.0.1    Removed  Removed  Normal  ---

hashbrown        0.14.3   0.12.3   0.12.3   Normal  ---

indexmap         2.2.6    1.9.3    1.9.3    Normal  ---

proc-macro2      1.0.79   Removed  Removed  Normal  ---

quote            1.0.35   Removed  Removed  Normal  ---

syn              2.0.55   Removed  Removed  Normal  ---

unicode-ident    1.0.12   Removed  Removed  Normal  ---

zerocopy         0.7.32   Removed  Removed  Normal  ---

zerocopy-derive  0.7.32   Removed  Removed  Normal  ---


CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml

Name                  Project  Compat  Latest  Kind    Platform

----                  -------  ------  ------  ----    --------

borsh-derive->syn     2.0.55   2.0.57  2.0.57  Normal  ---

darling_core->syn     2.0.55   2.0.57  2.0.57  Normal  ---

darling_macro->syn    2.0.55   2.0.57  2.0.57  Normal  ---

near-sdk-macros->syn  2.0.55   2.0.57  2.0.57  Normal  ---

serde_derive->syn     2.0.55   2.0.57  2.0.57  Normal  ---

strum_macros->syn     2.0.55   2.0.57  2.0.57  Normal  ---

syn_derive->syn       2.0.55   2.0.57  2.0.57  Normal  ---

zerocopy-derive->syn  2.0.55   2.0.57  2.0.57  Normal  ---


CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml

Name                                              Project                        Compat   Latest   Kind    Platform

----                                              -------                        ------   ------   ----    --------

actix->pin-project-lite                           0.2.13                         0.2.14   0.2.14   Normal  ---

actix-macros->syn                                 2.0.55                         2.0.57   2.0.57   Normal  ---

actix_derive->syn                                 2.0.55                         2.0.57   2.0.57   Normal  ---

ahash->cfg-if                                     1.0.0                          ---      Removed  Normal  ---

ahash->getrandom                                  0.2.12                         Removed  ---      Normal  cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))

ahash->zerocopy                                   0.7.32                         ---      Removed  Normal  ---

async-stream->pin-project-lite                    0.2.13                         0.2.14   0.2.14   Normal  ---

async-stream-impl->syn                            2.0.55                         2.0.57   2.0.57   Normal  ---

async-trait->syn                                  2.0.55                         2.0.57   2.0.57   Normal  ---

borsh-derive->syn                                 2.0.55                         2.0.57   2.0.57   Normal  ---

clap_derive->syn                                  2.0.55                         2.0.57   2.0.57   Normal  ---

curve25519-dalek-derive->syn                      2.0.55                         2.0.57   2.0.57   Normal  ---

darling_core->syn                                 2.0.55                         2.0.57   2.0.57   Normal  ---

darling_macro->syn                                2.0.55                         2.0.57   2.0.57   Normal  ---

derive_arbitrary->syn                             2.0.55                         2.0.57   2.0.57   Normal  ---

enum-map-derive->syn                              2.0.55                         2.0.57   2.0.57   Normal  ---

futures-macro->syn                                2.0.55                         2.0.57   2.0.57   Normal  ---

futures-util->pin-project-lite                    0.2.13                         0.2.14   0.2.14   Normal  ---

getrandom->cfg-if                                 1.0.0                          Removed  ---      Normal  ---

getrandom->js-sys                                 0.3.69                         Removed  ---      Normal  cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))

getrandom->libc                                   0.2.153                        Removed  ---      Normal  cfg(unix)

getrandom->wasi                                   0.11.0+wasi-snapshot-preview1  Removed  ---      Normal  cfg(target_os = "wasi")

getrandom->wasm-bindgen                           0.2.92                         Removed  ---      Normal  cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))

hashbrown->ahash                                  0.7.8                          0.8.11   ---      Normal  ---

hashbrown->ahash                                  0.8.11                         ---      0.7.8    Normal  ---

hashbrown->allocator-api2                         0.2.16                         ---      Removed  Normal  ---

http-body->pin-project-lite                       0.2.13                         0.2.14   0.2.14   Normal  ---

hyper->pin-project-lite                           0.2.13                         0.2.14   0.2.14   Normal  ---

hyper-timeout->pin-project-lite                   0.2.13                         0.2.14   0.2.14   Normal  ---

indexmap->autocfg                                 1.2.0                          Removed  ---      Build   ---

indexmap->equivalent                              1.0.1                          ---      Removed  Normal  ---

indexmap->hashbrown                               0.12.3                         0.14.3   ---      Normal  ---

indexmap->hashbrown                               0.14.3                         ---      0.12.3   Normal  ---

js-sys->wasm-bindgen                              0.2.92                         Removed  ---      Normal  ---

native-tls->security-framework                    2.9.2                          2.10.0   2.10.0   Normal  cfg(any(target_os = "macos", target_os = "ios"))

native-tls->security-framework-sys                2.9.1                          2.10.0   2.10.0   Normal  cfg(any(target_os = "macos", target_os = "ios"))

near-rpc-error-core->syn                          2.0.55                         2.0.57   2.0.57   Normal  ---

near-rpc-error-macro->syn                         2.0.55                         2.0.57   2.0.57   Normal  ---

openssl-macros->syn                               2.0.55                         2.0.57   2.0.57   Normal  ---

pin-project-internal->syn                         2.0.55                         2.0.57   2.0.57   Normal  ---

proc-macro2->unicode-ident                        1.0.12                         ---      Removed  Normal  ---

proc-macro2->unicode-ident                        1.0.12                         Removed  ---      Normal  ---

quote->proc-macro2                                1.0.79                         ---      Removed  Normal  ---

quote->proc-macro2                                1.0.79                         Removed  ---      Normal  ---

reqwest->pin-project-lite                         0.2.13                         0.2.14   0.2.14   Normal  cfg(not(target_arch = "wasm32"))

scroll_derive->syn                                2.0.55                         2.0.57   2.0.57   Normal  ---

security-framework->security-framework-sys        2.9.1                          2.10.0   2.10.0   Normal  ---

serde_derive->syn                                 2.0.55                         2.0.57   2.0.57   Normal  ---

serde_repr->syn                                   2.0.55                         2.0.57   2.0.57   Normal  ---

serde_with->indexmap                              1.9.3                          2.2.6    ---      Normal  ---

serde_with->indexmap                              2.2.6                          ---      1.9.3    Normal  ---

serde_with_macros->syn                            2.0.55                         2.0.57   2.0.57   Normal  ---

syn->proc-macro2                                  1.0.79                         ---      Removed  Normal  ---

syn->proc-macro2                                  1.0.79                         Removed  ---      Normal  ---

syn->quote                                        1.0.35                         ---      Removed  Normal  ---

syn->quote                                        1.0.35                         Removed  ---      Normal  ---

syn->unicode-ident                                1.0.12                         ---      Removed  Normal  ---

syn->unicode-ident                                1.0.12                         Removed  ---      Normal  ---

syn_derive->syn                                   2.0.55                         2.0.57   2.0.57   Normal  ---

thiserror-impl->syn                               2.0.55                         2.0.57   2.0.57   Normal  ---

tokio->pin-project-lite                           0.2.13                         0.2.14   0.2.14   Normal  ---

tokio-io-timeout->pin-project-lite                0.2.13                         0.2.14   0.2.14   Normal  ---

tokio-macros->syn                                 2.0.55                         2.0.57   2.0.57   Normal  ---

tokio-stream->pin-project-lite                    0.2.13                         0.2.14   0.2.14   Normal  ---

tokio-util->pin-project-lite                      0.2.13                         0.2.14   0.2.14   Normal  ---

tower->pin-project-lite                           0.2.13                         0.2.14   0.2.14   Normal  ---

tracing->pin-project-lite                         0.2.13                         0.2.14   0.2.14   Normal  ---

tracing-attributes->syn                           2.0.55                         2.0.57   2.0.57   Normal  ---

wasm-bindgen->cfg-if                              1.0.0                          Removed  ---      Normal  ---

wasm-bindgen->wasm-bindgen-macro                  0.2.92                         Removed  ---      Normal  ---

wasm-bindgen-backend->bumpalo                     3.15.4                         Removed  ---      Normal  ---

wasm-bindgen-backend->log                         0.4.21                         Removed  ---      Normal  ---

wasm-bindgen-backend->once_cell                   1.19.0                         Removed  ---      Normal  ---

wasm-bindgen-backend->proc-macro2                 1.0.79                         Removed  ---      Normal  ---

wasm-bindgen-backend->quote                       1.0.35                         Removed  ---      Normal  ---

wasm-bindgen-backend->syn                         2.0.55                         2.0.57   2.0.57   Normal  ---

wasm-bindgen-backend->syn                         2.0.55                         Removed  2.0.57   Normal  ---

wasm-bindgen-backend->wasm-bindgen-shared         0.2.92                         Removed  ---      Normal  ---

wasm-bindgen-macro->quote                         1.0.35                         Removed  ---      Normal  ---

wasm-bindgen-macro->wasm-bindgen-macro-support    0.2.92                         Removed  ---      Normal  ---

wasm-bindgen-macro-support->proc-macro2           1.0.79                         Removed  ---      Normal  ---

wasm-bindgen-macro-support->quote                 1.0.35                         Removed  ---      Normal  ---

wasm-bindgen-macro-support->syn                   2.0.55                         2.0.57   2.0.57   Normal  ---

wasm-bindgen-macro-support->syn                   2.0.55                         Removed  2.0.57   Normal  ---

wasm-bindgen-macro-support->wasm-bindgen-backend  0.2.92                         Removed  ---      Normal  ---

wasm-bindgen-macro-support->wasm-bindgen-shared   0.2.92                         Removed  ---      Normal  ---

zerocopy->zerocopy-derive                         0.7.32                         ---      Removed  Normal  ---

zerocopy-derive->proc-macro2                      1.0.79                         ---      Removed  Normal  ---

zerocopy-derive->quote                            1.0.35                         ---      Removed  Normal  ---

zerocopy-derive->syn                              2.0.55                         2.0.57   2.0.57   Normal  ---

zerocopy-derive->syn                              2.0.55                         2.0.57   Removed  Normal  ---


CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml

Name                             Project  Compat  Latest  Kind    Platform

----                             -------  ------  ------  ----    --------

serde_derive->syn                2.0.55   2.0.57  2.0.57  Normal  ---

wasm-bindgen-backend->syn        2.0.55   2.0.57  2.0.57  Normal  ---

wasm-bindgen-macro-support->syn  2.0.55   2.0.57  2.0.57  Normal  ---


C:\home\git\polyglot



> polyglot@ outdated-pre C:\home\git\polyglot

> npm-check-updates --target greatest



Using pnpm

Checking C:\home\git\polyglot\package.json





 @types/node        ~20.11  →   ~20.12

 npm-check-updates  ~16.14  →  ~17.0-5



Run ncu --target greatest -u to upgrade package.json


C:\home\git\polyglot\apps\ipfs



> ipfs@ outdated-pre C:\home\git\polyglot\apps\ipfs

> npm-check-updates --target greatest



Using pnpm

Checking C:\home\git\polyglot\apps\ipfs\package.json





 @types/node        ~20.11  →   ~20.12

 npm-check-updates  ~16.14  →  ~17.0-5



Run ncu --target greatest -u to upgrade package.json


C:\home\git\polyglot\apps\spiral\temp\extension



> polyglot@ outdated-pre C:\home\git\polyglot\apps\spiral\temp\extension

> npm-check-updates --target greatest



Using pnpm

Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json





 @playwright/test   1.42.1  →  1.44.0-alpha-2024-03-30

 npm-check-updates  ~16.14  →                  ~17.0-5



Run ncu --target greatest -u to upgrade package.json